Browse Source

* scripttempl/elf.sc (.init): Only do ${INIT_START} and

${INIT_END} if relocating.
	(.fini): Likewise ${FINI_START} and ${FINI_END}.
binutils-2_11-branch
Hans-Peter Nilsson 26 years ago
parent
commit
53db15ed2a
  1. 6
      ld/ChangeLog
  2. 8
      ld/scripttempl/elf.sc

6
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

8
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 = .);}

Loading…
Cancel
Save