public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH]: Set little endian flag when linking SH arch tests for  little endian multilibs
@ 2006-07-21  9:55 Nick Clifton
  2006-07-21 13:25 ` Andrew STUBBS
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Clifton @ 2006-07-21  9:55 UTC (permalink / raw)
  To: binutils

Hi Guys,

  I am applying the small patch below to make the SH specific linker
  tests set the appropriate endian flag when linking the arch tests.
  Without this, testing little endian SH multilibs was producing lots
  of unexpected failures and untested tests because the linker and
  assembler disagreed about endianness.

Cheers
  Nick

ld/testsuite/ChangeLog
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.

Index: ld/testsuite/ld-sh/arch/arch.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/arch/arch.exp,v
retrieving revision 1.4
diff -c -3 -p -r1.4 arch.exp
*** ld/testsuite/ld-sh/arch/arch.exp	12 May 2005 07:32:08 -0000	1.4
--- ld/testsuite/ld-sh/arch/arch.exp	21 Jul 2006 09:53:25 -0000
*************** proc test_arch { file1 file2 arch result
*** 76,84 ****
      set name2 [file tail $file2]
      set rootname2 [file rootname $name2]
  
      # 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_output
  
      if {[string equal $ld_output ""] == 1} then {
--- 76,86 ----
      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 $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 {

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-07-24 13:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-21  9:55 [PATCH]: Set little endian flag when linking SH arch tests for little endian multilibs Nick Clifton
2006-07-21 13:25 ` Andrew STUBBS
2006-07-23 14:25   ` Nick Clifton
2006-07-24  8:32     ` Andrew STUBBS
2006-07-24 10:42       ` Andrew STUBBS
2006-07-24 13:55         ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).