aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/mips.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl/mips.sc')
-rw-r--r--ld/scripttempl/mips.sc12
1 files changed, 6 insertions, 6 deletions
diff --git a/ld/scripttempl/mips.sc b/ld/scripttempl/mips.sc
index 3b080d3..7de30bd 100644
--- a/ld/scripttempl/mips.sc
+++ b/ld/scripttempl/mips.sc
@@ -40,13 +40,13 @@ SECTIONS
{
${RELOCATING+. = ${TEXT_START_ADDR};}
.text : {
- ${RELOCATING+ _ftext = . };
- *(.init)
- ${RELOCATING+ eprol = .};
+ ${RELOCATING+_ftext = .;
+ KEEP (*(SORT_NONE(.init)))
+ eprol = .;}
*(.text)
- *(.fini)
- ${RELOCATING+ etext = .};
- ${RELOCATING+ _etext = .};
+ ${RELOCATING+KEEP (*(SORT_NONE(.fini)))
+ etext = .;
+ _etext = .;}
}
${RELOCATING+. = ${DATA_ADDR};}
.rdata : {