bsp,abstract-machine,extra.ld: use INSERT BEFORE command
This commit is contained in:
parent
4b1e2858ae
commit
64e349a5f1
2 changed files with 3 additions and 8 deletions
|
@ -7,7 +7,7 @@ NAME = rtthread
|
||||||
SRCS = $(shell find src -name "*.c")
|
SRCS = $(shell find src -name "*.c")
|
||||||
CFLAGS += -DHAVE_CCONFIG_H -D__RTTHREAD__
|
CFLAGS += -DHAVE_CCONFIG_H -D__RTTHREAD__
|
||||||
CFLAGS += -Wno-nonnull-compare
|
CFLAGS += -Wno-nonnull-compare
|
||||||
LDFLAGS += extra.ld
|
LDFLAGS += -T extra.ld
|
||||||
-include $(FILE_MK)
|
-include $(FILE_MK)
|
||||||
include $(AM_HOME)/Makefile
|
include $(AM_HOME)/Makefile
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
SECTIONS {
|
SECTIONS {
|
||||||
. = ALIGN(8);
|
.data.extra : {
|
||||||
|
|
||||||
.myextra : {
|
|
||||||
/* section information for finsh shell */
|
/* section information for finsh shell */
|
||||||
. = ALIGN(8);
|
|
||||||
__fsymtab_start = .;
|
__fsymtab_start = .;
|
||||||
KEEP(*(FSymTab))
|
KEEP(*(FSymTab))
|
||||||
__fsymtab_end = .;
|
__fsymtab_end = .;
|
||||||
|
@ -24,7 +21,5 @@ SECTIONS {
|
||||||
KEEP(*(UtestTcTab))
|
KEEP(*(UtestTcTab))
|
||||||
__rt_utest_tc_tab_end = .;
|
__rt_utest_tc_tab_end = .;
|
||||||
}
|
}
|
||||||
end = .;
|
|
||||||
_end = .;
|
|
||||||
_heap_start = ALIGN(0x1000);
|
|
||||||
}
|
}
|
||||||
|
INSERT BEFORE .data;
|
||||||
|
|
Loading…
Add table
Reference in a new issue