aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/elf.sc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-08-01 01:03:47 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-08-01 01:03:47 +0000
commitb2e4da5a836b3d5246dc2fa183e18c1f63232490 (patch)
tree7494febf76283b2d95c98e8c8d182da3b95df21e /ld/scripttempl/elf.sc
parent488916061e57e6b83b8229475789a78b8f7b5fb1 (diff)
downloadgdb-b2e4da5a836b3d5246dc2fa183e18c1f63232490.zip
gdb-b2e4da5a836b3d5246dc2fa183e18c1f63232490.tar.gz
gdb-b2e4da5a836b3d5246dc2fa183e18c1f63232490.tar.bz2
Don't call compare_section in case of by_none
PR ld/14156 * ldlang.c (wild_sort): Don't call compare_section in case of by_none. * scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections. * scripttempl/elf32msp430.sc: Likewise. * scripttempl/elf32msp430_3.sc: Likewise. * scripttempl/elfd10v.sc: Likewise. * scripttempl/elfd30v.sc: Likewise. * scripttempl/elfxtensa.sc: Likewise.
Diffstat (limited to 'ld/scripttempl/elf.sc')
-rw-r--r--ld/scripttempl/elf.sc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index 17c2cf1..51a655e 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -462,7 +462,7 @@ cat <<EOF
.init ${RELOCATING-0} :
{
${RELOCATING+${INIT_START}}
- KEEP (*(.init))
+ KEEP (*(SORT_NONE(.init)))
${RELOCATING+${INIT_END}}
} ${FILL}
@@ -483,7 +483,7 @@ cat <<EOF
.fini ${RELOCATING-0} :
{
${RELOCATING+${FINI_START}}
- KEEP (*(.fini))
+ KEEP (*(SORT_NONE(.fini)))
${RELOCATING+${FINI_END}}
} ${FILL}
${RELOCATING+PROVIDE (__${ETEXT_NAME} = .);}