summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authortanek liang <[email protected]>2017-11-15 19:56:51 +0800
committerBernard Xiong <[email protected]>2017-11-16 11:05:32 +0800
commita0c2e50e362f422e8d0cdfae01218484f875a171 (patch)
tree48d2417c931f9e78c22b1ee9de31711b0f8a66be /bsp
parent37bb0e96e298805622a705159ecb696ce4840a15 (diff)
[bsp] support GCC for RT_USING_MODULE
Diffstat (limited to 'bsp')
-rw-r--r--bsp/lpc54608-LPCXpresso/link.lds16
1 files changed, 16 insertions, 0 deletions
diff --git a/bsp/lpc54608-LPCXpresso/link.lds b/bsp/lpc54608-LPCXpresso/link.lds
index b3b8961ac5..585e846084 100644
--- a/bsp/lpc54608-LPCXpresso/link.lds
+++ b/bsp/lpc54608-LPCXpresso/link.lds
@@ -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 = .;