* scripttempl/elf.sc (.init): Only do ${INIT_START} and
authorHans-Peter Nilsson <hp@axis.com>
Mon, 17 Jul 2000 22:41:08 +0000 (22:41 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 17 Jul 2000 22:41:08 +0000 (22:41 +0000)
${INIT_END} if relocating.
(.fini): Likewise ${FINI_START} and ${FINI_END}.

ld/ChangeLog
ld/scripttempl/elf.sc

index d25865bd2c60420b2a94f88bacc5f8a3e3f4eea7..61d9c5f827e9e9b3a81889465c06ba859b0ed5dc 100644 (file)
@@ -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
index 0e56d8abe9069629808a79e9e4f63c84a02c8295..1f5c7164252109bfc2a4237a50d5d09419edbfbb 100644 (file)
@@ -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 = .);}