pic32_common: Add CPU specific xfa.ld variant
This commit is contained in:
parent
abca94b25d
commit
a23b29d42e
@ -6,7 +6,6 @@ include $(RIOTCPU)/mips32r2_common/Makefile.include
|
|||||||
CFLAGS += -D_SYS__PTHREADTYPES_H_
|
CFLAGS += -D_SYS__PTHREADTYPES_H_
|
||||||
|
|
||||||
CFLAGS += -DCPU_FAM_$(call uppercase_and_underscore,$(CPU_FAM))
|
CFLAGS += -DCPU_FAM_$(call uppercase_and_underscore,$(CPU_FAM))
|
||||||
|
LINKFLAGS += -L$(RIOTCPU)/mips_pic32_common/ldscripts
|
||||||
INCLUDES += -I$(RIOTCPU)/mips_pic32_common/include
|
INCLUDES += -I$(RIOTCPU)/mips_pic32_common/include
|
||||||
|
|
||||||
DIRS += $(RIOTCPU)/$(CPU)/$(CPU_MODEL)
|
DIRS += $(RIOTCPU)/$(CPU)/$(CPU_MODEL)
|
||||||
|
|||||||
21
cpu/mips_pic32_common/ldscripts/xfa.ld
Normal file
21
cpu/mips_pic32_common/ldscripts/xfa.ld
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
SECTIONS
|
||||||
|
{
|
||||||
|
.data :
|
||||||
|
{
|
||||||
|
KEEP (*(SORT(.xfa.*)))
|
||||||
|
}
|
||||||
|
_fdata = ADDR(.data);
|
||||||
|
_edata = (_fdata + SIZEOF(.data));
|
||||||
|
}
|
||||||
|
|
||||||
|
INSERT BEFORE .sbss;
|
||||||
|
|
||||||
|
SECTIONS
|
||||||
|
{
|
||||||
|
.rodata :
|
||||||
|
{
|
||||||
|
KEEP (*(SORT(.roxfa.*)))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
INSERT AFTER .dtors;
|
||||||
Loading…
x
Reference in New Issue
Block a user