[bsp] support GCC for RT_USING_MODULE
This commit is contained in:
parent
37bb0e96e2
commit
a0c2e50e36
|
@ -44,6 +44,13 @@ SECTIONS
|
||||||
__rt_init_end = .;
|
__rt_init_end = .;
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|
||||||
|
/* section information for modules */
|
||||||
|
|
||||||
|
__rtmsymtab_start = .;
|
||||||
|
KEEP(*(RTMSymTab))
|
||||||
|
__rtmsymtab_end = .;
|
||||||
|
. = ALIGN(4);
|
||||||
|
|
||||||
PROVIDE(__ctors_start__ = .);
|
PROVIDE(__ctors_start__ = .);
|
||||||
/* old GCC version uses .ctors */
|
/* old GCC version uses .ctors */
|
||||||
KEEP(*(SORT(.ctors.*)))
|
KEEP(*(SORT(.ctors.*)))
|
||||||
|
@ -52,6 +59,15 @@ SECTIONS
|
||||||
KEEP (*(SORT(.init_array.*)))
|
KEEP (*(SORT(.init_array.*)))
|
||||||
KEEP (*(.init_array))
|
KEEP (*(.init_array))
|
||||||
PROVIDE(__ctors_end__ = .);
|
PROVIDE(__ctors_end__ = .);
|
||||||
|
. = ALIGN(4);
|
||||||
|
|
||||||
|
KEEP(*(.fini))
|
||||||
|
. = ALIGN(4);
|
||||||
|
|
||||||
|
__fini_array_start = .;
|
||||||
|
KEEP (*(.fini_array))
|
||||||
|
KEEP (*(SORT(.fini_array.*)))
|
||||||
|
__fini_array_end = .;
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .;
|
_etext = .;
|
||||||
|
|
Loading…
Reference in New Issue