1
0
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:
Kaspar Schleiser 2020-11-03 11:46:48 +01:00
parent ac549abbb9
commit ee9d6c879a
2 changed files with 22 additions and 0 deletions

View File

@ -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)

View File

@ -0,0 +1,19 @@
SECTIONS
{
.data :
{
KEEP (*(SORT(.xfa.*)))
}
}
INSERT AFTER .text;
SECTIONS
{
.rodata :
{
KEEP (*(SORT(.roxfa.*)))
}
}
INSERT AFTER .text;