aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/elf32xc16x.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl/elf32xc16x.sc')
-rw-r--r--ld/scripttempl/elf32xc16x.sc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/scripttempl/elf32xc16x.sc b/ld/scripttempl/elf32xc16x.sc
index b432558..a451d41 100644
--- a/ld/scripttempl/elf32xc16x.sc
+++ b/ld/scripttempl/elf32xc16x.sc
@@ -38,7 +38,8 @@ SECTIONS
{
.init :
{
- *(.init)
+ KEEP (*(SORT_NONE(.init)))
+ ${RELOCATING+KEEP (*(SORT_NONE(.fini)))}
} ${RELOCATING+ >introm}
.text :