aboutsummaryrefslogtreecommitdiff
path: root/ld
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
commit53db15ed2a5bfdd1d1bfefb96212f9b48b436cc4 (patch)
treebc75895df55c1ecd52bb529c40c3f524214d672f /ld
parentdf09b665310b1ee5d618eba1c55cd8f37e7e86fb (diff)
downloadgdb-53db15ed2a5bfdd1d1bfefb96212f9b48b436cc4.zip
gdb-53db15ed2a5bfdd1d1bfefb96212f9b48b436cc4.tar.gz
gdb-53db15ed2a5bfdd1d1bfefb96212f9b48b436cc4.tar.bz2
* scripttempl/elf.sc (.init): Only do ${INIT_START} and
${INIT_END} if relocating. (.fini): Likewise ${FINI_START} and ${FINI_END}.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/scripttempl/elf.sc8
2 files changed, 10 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index d25865b..61d9c5f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2000-07-18 Hans-Peter Nilsson <hp@axis.com>
+
+ * scripttempl/elf.sc (.init): Only do ${INIT_START} and
+ ${INIT_END} if relocating.
+ (.fini): Likewise ${FINI_START} and ${FINI_END}.
+
2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
* src/ld/emultempl/pe.em (gld_*_open_dynamic_archive): New search
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index 0e56d8a..1f5c716 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 = .);}