mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/native: add XFA support
This commit is contained in:
parent
ac549abbb9
commit
ee9d6c879a
@ -59,6 +59,9 @@ else
|
||||
LINKFLAGS += -ldl
|
||||
endif
|
||||
|
||||
# XFA (cross file array) support
|
||||
LINKFLAGS += -T$(RIOTBASE)/cpu/native/ldscripts/xfa.ld
|
||||
|
||||
# clean up unused functions
|
||||
CFLAGS += -ffunction-sections -fdata-sections
|
||||
ifeq ($(OS),Darwin)
|
||||
|
19
cpu/native/ldscripts/xfa.ld
Normal file
19
cpu/native/ldscripts/xfa.ld
Normal file
@ -0,0 +1,19 @@
|
||||
SECTIONS
|
||||
{
|
||||
.data :
|
||||
{
|
||||
KEEP (*(SORT(.xfa.*)))
|
||||
}
|
||||
}
|
||||
|
||||
INSERT AFTER .text;
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.rodata :
|
||||
{
|
||||
KEEP (*(SORT(.roxfa.*)))
|
||||
}
|
||||
}
|
||||
|
||||
INSERT AFTER .text;
|
Loading…
Reference in New Issue
Block a user