1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

cpu/msp430_common: add XFA support

This commit is contained in:
Kaspar Schleiser 2020-11-03 11:32:35 +01:00
parent 06ec602782
commit f411fd4814
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,24 @@
SECTIONS
{
.rodata :
{
KEEP (*(SORT(.roxfa.*)))
} > ROM
}
INSERT AFTER .rodata;
SECTIONS
{
.data :
{
KEEP (*(SORT(.xfa.*)))
} > RAM AT> ROM
. = ALIGN(2);
_edata = .;
PROVIDE (edata = .);
PROVIDE (__dataend = .);
}
INSERT AFTER .data;

View File

@ -15,6 +15,8 @@ ASFLAGS += $(CFLAGS_CPU) --defsym $(CPU_MODEL)=1 $(CFLAGS_DBG)
LINKFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG) $(CFLAGS_OPT)
LINKFLAGS += -Wl,--gc-sections -Wl,-L$(MSP430_SUPPORT_FILES)/include
LINKFLAGS += -T $(MSP430_SUPPORT_FILES)/include/$(CPU_MODEL).ld
LINKFLAGS += $(RIOTCPU)/msp430_common/ldscripts/xfa.ld
OPTIONAL_CFLAGS_BLACKLIST += -fdiagnostics-color
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow