aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sh/rd-sh.exp
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2003-10-13 05:09:21 +0000
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2003-10-13 05:09:21 +0000
commitf19ae42f43165e8ebd10ba171d0757342d9be7ae (patch)
tree9120dbdb1388a3e98a089bc9fa90f59d0b4c5963 /ld/testsuite/ld-sh/rd-sh.exp
parenta8526365041c0b17a7fa57b98f512b45e1edce5c (diff)
downloadgdb-f19ae42f43165e8ebd10ba171d0757342d9be7ae.zip
gdb-f19ae42f43165e8ebd10ba171d0757342d9be7ae.tar.gz
gdb-f19ae42f43165e8ebd10ba171d0757342d9be7ae.tar.bz2
[ld]
* emulparams/shelf32_nbsd.sh (OTHER_SECTIONS): Redefine. [ld/testsuite] * ld-sh/rd-sh.exp (LDFLAGS): Define appropriately for each sh64/sh5 targets. * ld-sh/sh.exp: Don't do relaxing test for sh64*-*-* and sh5*-*-* targets. * ld-sh/sh64/relax.exp (emul32): Set to shelf32_nbsd for netbsd. * ld-sh/sh64/relfail.exp: Set parameters for netbsd. * ld-sh/sh64/sh64.exp: Skip this for netbsd. Trim the section numbers for crangerel1 and crengerel2 tests. * ld-sh/sh64/abi32.sd: Update. * ld-sh/sh64/abi32.xd: Likewise. * ld-sh/sh64/abi64.sd: Likewise. * ld-sh/sh64/abi64.xd: Likewise. * ld-sh/sh64/abixx-noexp.sd: Likewise. * ld-sh/sh64/cmpct1.sd: Likewise. * ld-sh/sh64/cmpct1.xd: Likewise. * ld-sh/sh64/crange1.rd: Likewise. * ld-sh/sh64/crange2.rd: Likewise. * ld-sh/sh64/crange3-cmpct.rd: Likewise. * ld-sh/sh64/crange3-media.rd: Likewise. * ld-sh/sh64/crange3.rd: Likewise. * ld-sh/sh64/crangerel1.rd: Likewise. * ld-sh/sh64/crangerel2.rd: Likewise. * ld-sh/sh64/dlsection.sd: Likewise. * ld-sh/sh64/endian.sbd: Likewise. * ld-sh/sh64/endian.sld: Likewise. * ld-sh/sh64/gotplt.d: Likewise. * ld-sh/sh64/init-cmpct.d: Likewise. * ld-sh/sh64/init-media.d: Likewise. * ld-sh/sh64/init.s: Align functions. * ld-sh/sh64/init64.d: Update. * ld-sh/sh64/mix1-noexp.sd: Likewise. * ld-sh/sh64/mix1.sd: Likewise. * ld-sh/sh64/mix1.xd: Likewise. * ld-sh/sh64/mix2-noexp.sd: Likewise. * ld-sh/sh64/mix2.sd: Likewise. * ld-sh/sh64/mix2.xd:Likewise. * ld-sh/sh64/rel32.xd: Likewise. * ld-sh/sh64/rel64.xd: Likewise. * ld-sh/sh64/reldl32.rd: Likewise. * ld-sh/sh64/reldl64.rd: Likewise. * ld-sh/sh64/shdl32.xd: Update. * ld-sh/sh64/shdl64.sd: Likewise. * ld-sh/sh64/shdl64.xd: Likewise. * ld-sh/shared-1.d: Add -z nocombreloc to ld option. Update. * ld-sh/sub2l-1.d: Make file format match with elf32-sh.*. * ld-sh/weak1.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-sh/rd-sh.exp')
-rw-r--r--ld/testsuite/ld-sh/rd-sh.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-sh/rd-sh.exp b/ld/testsuite/ld-sh/rd-sh.exp
index 886bd1f..ad70b5c 100644
--- a/ld/testsuite/ld-sh/rd-sh.exp
+++ b/ld/testsuite/ld-sh/rd-sh.exp
@@ -29,10 +29,19 @@ if ![istarget sh*-*-*] {
}
global ASFLAGS
+global LDFLAGS
set asflags_save "$ASFLAGS"
+set ldflags_save "$LDFLAGS"
if {[istarget sh64*-*-*] || [istarget sh5*-*-*]} then {
set ASFLAGS "$ASFLAGS -isa=SHcompact"
+ if [istarget sh64*-*-linux*] {
+ set LDFLAGS "$LDFLAGS -mshlelf32_linux"
+ } elseif { [istarget sh64*-*-netbsd*] || [istarget sh5*-*-netbsd*] } {
+ set LDFLAGS "$LDFLAGS -mshlelf32_nbsd -e_start"
+ } else {
+ set LDFLAGS "$LDFLAGS -mshlelf32"
+ }
}
set rd_test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
@@ -52,3 +61,4 @@ foreach shtest $rd_test_list {
}
}
set ASFLAGS "$asflags_save"
+set LDFLAGS "$ldflags_save"