summaryrefslogtreecommitdiff
path: root/ld/scripttempl/elf.sc
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2000-07-17 22:41:08 +0000
committerHans-Peter Nilsson <hp@axis.com>2000-07-17 22:41:08 +0000
commit9c221befe84dea5af16b26f6e939d8ee92dfb437 (patch)
treee36f35b249df5a2142dc07b811628b2206e6c447 /ld/scripttempl/elf.sc
parent2043163fb8a1cbed94315a7d4ab1a52bec0840ac (diff)
downloadbinutils-redhat-9c221befe84dea5af16b26f6e939d8ee92dfb437.tar.gz
* scripttempl/elf.sc (.init): Only do ${INIT_START} and
${INIT_END} if relocating. (.fini): Likewise ${FINI_START} and ${FINI_END}.
Diffstat (limited to 'ld/scripttempl/elf.sc')
-rw-r--r--ld/scripttempl/elf.sc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index 0e56d8abe9..1f5c716425 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -198,9 +198,9 @@ SECTIONS
.init ${RELOCATING-0} :
{
- ${INIT_START}
+ ${RELOCATING+${INIT_START}}
KEEP (*(.init))
- ${INIT_END}
+ ${RELOCATING+${INIT_END}}
} =${NOP-0}
${DATA_PLT-${BSS_PLT-${PLT}}}
@@ -217,9 +217,9 @@ SECTIONS
} =${NOP-0}
.fini ${RELOCATING-0} :
{
- ${FINI_START}
+ ${RELOCATING+${FINI_START}}
KEEP (*(.fini))
- ${FINI_END}
+ ${RELOCATING+${FINI_END}}
} =${NOP-0}
${RELOCATING+PROVIDE (__etext = .);}
${RELOCATING+PROVIDE (_etext = .);}