[bsp] support GCC for RT_USING_MODULE

This commit is contained in:
tanek liang 2017-11-15 19:56:51 +08:00 committed by Bernard Xiong
parent 37bb0e96e2
commit a0c2e50e36
1 changed files with 16 additions and 0 deletions

View File

@ -44,6 +44,13 @@ SECTIONS
__rt_init_end = .;
. = ALIGN(4);
/* section information for modules */
__rtmsymtab_start = .;
KEEP(*(RTMSymTab))
__rtmsymtab_end = .;
. = ALIGN(4);
PROVIDE(__ctors_start__ = .);
/* old GCC version uses .ctors */
KEEP(*(SORT(.ctors.*)))
@ -52,6 +59,15 @@ SECTIONS
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array))
PROVIDE(__ctors_end__ = .);
. = ALIGN(4);
KEEP(*(.fini))
. = ALIGN(4);
__fini_array_start = .;
KEEP (*(.fini_array))
KEEP (*(SORT(.fini_array.*)))
__fini_array_end = .;
. = ALIGN(4);
_etext = .;