This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch][rfa] Detecting Endianness in ld/testsuite
- From: Dave Brolley <brolley at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 08 Dec 2006 17:52:57 -0500
- Subject: [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
}