summaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2003-10-18 15:49:10 +0000
committerHans-Peter Nilsson <hp@axis.com>2003-10-18 15:49:10 +0000
commitcd259f112e73f1471d027fd59a9a39ff64205738 (patch)
tree88fc73dc7eeca6dcc49db41b6189dd8ac8a885ec /ld/scripttempl
parent1cf916f514a634cf9e5bd592196ac61a19cfb0e1 (diff)
downloadbinutils-redhat-cd259f112e73f1471d027fd59a9a39ff64205738.tar.gz
* emultempl/mmix-elfnmmo.em (mmix_before_allocation): Force linker
relaxation always; don't exclude relocatable linking. Adjust for _bfd_mmix_prepare_linker_allocated_gregs renamed to _bfd_mmix_before_linker_allocation. (mmix_after_allocation): Adjust for _bfd_mmix_finalize_linker_allocated_gregs renamed to _bfd_mmix_after_linker_allocation. * scripttempl/mmo.sc: Use ADDR (.text), not . - SIZEOF (.text).
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/mmo.sc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/scripttempl/mmo.sc b/ld/scripttempl/mmo.sc
index b93953db53..643b349539 100644
--- a/ld/scripttempl/mmo.sc
+++ b/ld/scripttempl/mmo.sc
@@ -55,7 +55,7 @@ SECTIONS
${RELOCATING+ PROVIDE(_etext = .);}
${RELOCATING+ PROVIDE(__etext = .);}
}
- ${RELOCATING+Main = DEFINED (Main) ? Main : (DEFINED (_start) ? _start : . - SIZEOF (.text));}
+ ${RELOCATING+Main = DEFINED (Main) ? Main : (DEFINED (_start) ? _start : ADDR (.text));}
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }