aboutsummaryrefslogtreecommitdiff
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
commit06335781f67d53f9512551e31195e40d0b584f8f (patch)
tree1a24bac5a8701ebd27fa8dbaa941b186a7d70296 /ld/scripttempl
parentf4b9d8efb98b8d65beae3cec24d881927d1a94f0 (diff)
downloadgdb-06335781f67d53f9512551e31195e40d0b584f8f.zip
gdb-06335781f67d53f9512551e31195e40d0b584f8f.tar.gz
gdb-06335781f67d53f9512551e31195e40d0b584f8f.tar.bz2
* 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 b93953d..643b349 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) }