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:
parent
06ec602782
commit
f411fd4814
24
cpu/msp430_common/ldscripts/xfa.ld
Normal file
24
cpu/msp430_common/ldscripts/xfa.ld
Normal 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;
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user