summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/lib/libbsp/sh/shsim/startup/linkcmds7
1 files changed, 5 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/sh/shsim/startup/linkcmds b/c/src/lib/libbsp/sh/shsim/startup/linkcmds
index 76adc08e2b..4c4692be83 100644
--- a/c/src/lib/libbsp/sh/shsim/startup/linkcmds
+++ b/c/src/lib/libbsp/sh/shsim/startup/linkcmds
@@ -108,10 +108,13 @@ SECTIONS
*(.gnu.warning)
*(.gnu.linkonce.t*)
} > ram
+ .fini :
+ {
+ KEEP (*(.fini))
+ } =0
_etext = .;
PROVIDE (etext = .);
- .fini . : { *(.fini) } =0
- .rodata . : { *(.rodata*) *(.gnu.linkonce.r*) }
+ .rodata . : { *(.rodata*) .rodata.* *(.gnu.linkonce.r*) }
.rodata1 . : { *(.rodata1) }
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */