From: Nick Clifton Date: Mon, 28 May 2001 10:55:23 +0000 (+0000) Subject: For sh-*-linux-gnu target add a start address for the text section. X-Git-Tag: dberlin-typesystem-branchpoint~416 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e329ce6ace8ea24ba9a160fa16055d29c65d497;p=external%2Fbinutils.git For sh-*-linux-gnu target add a start address for the text section. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index e590148..7dd9075 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-05-28 kaz Kojima + + * ld-sh/sh.exp: For sh-*-linux-gnu target add a start address for + the text section. + 2001-05-25 Alan Modra * ld-elfvers/vers.exp: Replace linuxoldld with linux*oldld and diff --git a/ld/testsuite/ld-sh/sh.exp b/ld/testsuite/ld-sh/sh.exp index 41ca809..437f7ce 100644 --- a/ld/testsuite/ld-sh/sh.exp +++ b/ld/testsuite/ld-sh/sh.exp @@ -56,7 +56,14 @@ if ![ld_assemble $as "-relax $srcdir/$subdir/sh1.s" tmpdir/sh1.o] { set testsrec "SH relaxing to S-records" -if ![ld_simple_link $ld tmpdir/sh1.s1 "-relax --oformat srec tmpdir/sh1.o"] { +if [istarget sh*-linux-gnu] { + # This target needs the explicit entry address. + catch "exec $objdump -x tmpdir/sh1 | grep start\\ address | sed s/start\\ address//" entry_addr + set srec_relax_arg "-Ttext $entry_addr -relax --oformat srec tmpdir/sh1.o" +} else { + set srec_relax_arg "-relax --oformat srec tmpdir/sh1.o" +} +if ![ld_simple_link $ld tmpdir/sh1.s1 $srec_relax_arg ] { fail $testsrec } else { # The file name is embedded in the S-records, so create both