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

${INIT_END} if relocating.
	(.fini): Likewise ${FINI_START} and ${FINI_END}.
This commit is contained in:
Hans-Peter Nilsson
2000-07-17 22:41:08 +00:00
parent df09b66531
commit 53db15ed2a
2 changed files with 10 additions and 4 deletions

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