This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch][rfa] Detecting Endianness in ld/testsuite


Hi,

Some gcc ports use -mel and -meb to specify little and big endianness respectively. I'd like to commit the attached patch which addresses this in ld/testsuite/* scripts.

OK to commit?

Dave
2006-12-08  Dave Brolley  <brolley@redhat.com>

	* lib/ld-lib.exp (big_or_little_endian): Accept -meb and
	-mel for big and little endian respectively.

? ld/ld.info
Index: ld/testsuite/lib/ld-lib.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/lib/ld-lib.exp,v
retrieving revision 1.43
diff -c -p -r1.43 ld-lib.exp
*** ld/testsuite/lib/ld-lib.exp	2 Oct 2006 16:53:04 -0000	1.43
--- ld/testsuite/lib/ld-lib.exp	8 Dec 2006 22:48:55 -0000
*************** proc big_or_little_endian {} {
*** 90,100 ****
  
  	foreach x $tmp_flags {
  	    case $x in {
! 		{*big*endian eb EB -eb -EB -mb} {
  		    set flags " -EB"
  		    return $flags
  		}
! 		{*little*endian el EL -el -EL -ml} {
  		    set flags " -EL"
  		    return $flags
  		}
--- 90,100 ----
  
  	foreach x $tmp_flags {
  	    case $x in {
! 		{*big*endian eb EB -eb -EB -mb -meb} {
  		    set flags " -EB"
  		    return $flags
  		}
! 		{*little*endian el EL -el -EL -ml -mel} {
  		    set flags " -EL"
  		    return $flags
  		}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]