* ld-sh/arch/arch.exp (test_arch): Set the endian flag to suit the multilib
authorNick Clifton <nickc@redhat.com>
Fri, 21 Jul 2006 09:56:40 +0000 (09:56 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 21 Jul 2006 09:56:40 +0000 (09:56 +0000)
   being tested.

ld/testsuite/ChangeLog
ld/testsuite/ld-sh/arch/arch.exp

index 395ae65c372775a570409149071d4996715b0afe..466a20c5fc84aeb5c589124ad16f09eb50ed56f2 100644 (file)
@@ -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,
index 7195f56866a9f16665b0fa4adcd6ed4f07caaea2..d938d988af9c36e19db381ce198e764625282fb0 100644 (file)
@@ -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 {
This page took 0.033657 seconds and 4 git commands to generate.