aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-07-21 09:56:40 +0000
committerNick Clifton <nickc@redhat.com>2006-07-21 09:56:40 +0000
commit3e4cf9243a5580b9b7766d6da9f0d5257705bf2a (patch)
tree6c4c34c88f97163923f30ce35c4b9db743acdfe2 /ld
parent784906c5f159646cf435c0b9ca1f8a4be08936d4 (diff)
downloadgdb-3e4cf9243a5580b9b7766d6da9f0d5257705bf2a.zip
gdb-3e4cf9243a5580b9b7766d6da9f0d5257705bf2a.tar.gz
gdb-3e4cf9243a5580b9b7766d6da9f0d5257705bf2a.tar.bz2
* ld-sh/arch/arch.exp (test_arch): Set the endian flag to suit the multilib
being tested.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-sh/arch/arch.exp6
2 files changed, 9 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 395ae65..466a20c 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-21 Nick Clifton <nickc@redhat.com>
+
+ * ld-sh/arch/arch.exp (test_arch): Set the endian flag to suit the
+ multilib being tested.
+
2006-07-20 Thiemo Seufer <ths@mips.com>
* ld-mips-elf/mips16-call-global-1.s,
diff --git a/ld/testsuite/ld-sh/arch/arch.exp b/ld/testsuite/ld-sh/arch/arch.exp
index 7195f56..d938d98 100644
--- a/ld/testsuite/ld-sh/arch/arch.exp
+++ b/ld/testsuite/ld-sh/arch/arch.exp
@@ -76,9 +76,11 @@ proc test_arch { file1 file2 arch resultfile } {
set name2 [file tail $file2]
set rootname2 [file rootname $name2]
+ set flags [big_or_little_endian]
+
# This must use -r to prevent LD trying to relocate the (unrealistic) file
- send_log "$LD -r -o ${rootname1}_${rootname2}.o $file1 $file2\n"
- catch "exec $LD -r -o ${rootname1}_${rootname2}.o $file1 $file2" ld_output
+ send_log "$LD $flags -r -o ${rootname1}_${rootname2}.o $file1 $file2\n"
+ catch "exec $LD $flags -r -o ${rootname1}_${rootname2}.o $file1 $file2" ld_output
send_log $ld_output
if {[string equal $ld_output ""] == 1} then {