bsp,abstract-machine,extra.ld: use INSERT BEFORE command

This commit is contained in:
Zihao Yu 2023-06-04 16:58:36 +08:00
parent 4b1e2858ae
commit 64e349a5f1
2 changed files with 3 additions and 8 deletions

View file

@ -7,7 +7,7 @@ NAME = rtthread
SRCS = $(shell find src -name "*.c")
CFLAGS += -DHAVE_CCONFIG_H -D__RTTHREAD__
CFLAGS += -Wno-nonnull-compare
LDFLAGS += extra.ld
LDFLAGS += -T extra.ld
-include $(FILE_MK)
include $(AM_HOME)/Makefile

View file

@ -1,9 +1,6 @@
SECTIONS {
. = ALIGN(8);
.myextra : {
.data.extra : {
/* section information for finsh shell */
. = ALIGN(8);
__fsymtab_start = .;
KEEP(*(FSymTab))
__fsymtab_end = .;
@ -24,7 +21,5 @@ SECTIONS {
KEEP(*(UtestTcTab))
__rt_utest_tc_tab_end = .;
}
end = .;
_end = .;
_heap_start = ALIGN(0x1000);
}
INSERT BEFORE .data;