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]

[committed] Avoid some binutils test fails on 32-bit hppa-hpux


This change skips/xfails the current fails in binutils-all on 32-bit hpux.
Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11.  Committed to
trunk.

Happy New Year,
Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2010-12-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	* binutils-all/copy-2.d: Change "hppa" to "hppa*" in not-target list.
	* binutils-all/copy-3.d: Add hppa*-*-hpux* to not-target list.
	* binutils-all/objcopy.exp (reverse-bytes): xfail on 32-bit hpux.

Index: binutils-all/copy-2.d
===================================================================
RCS file: /cvs/src/src/binutils/testsuite/binutils-all/copy-2.d,v
retrieving revision 1.6
diff -u -3 -p -r1.6 copy-2.d
--- binutils-all/copy-2.d	23 Sep 2010 12:04:37 -0000	1.6
+++ binutils-all/copy-2.d	1 Jan 2011 01:41:42 -0000
@@ -3,7 +3,7 @@
 #objcopy: --set-section-flags foo=contents,alloc,load,code
 #name: copy with setting section flags 2
 #source: copytest.s
-#not-target: *-*-*aout *-*-aix* h8300-*-* hppa-*-hpux* m68k-*-netbsd m68k-*-openbsd* mips-sony-bsd* mips-*-ultrix* mips-*-osf* mips-*-ecoff* mips-*-irix mips-*-irix[2-4] mips-*-riscos* ns32k-*-netbsd
+#not-target: *-*-*aout *-*-aix* h8300-*-* hppa*-*-hpux* m68k-*-netbsd m68k-*-openbsd* mips-sony-bsd* mips-*-ultrix* mips-*-osf* mips-*-ecoff* mips-*-irix mips-*-irix[2-4] mips-*-riscos* ns32k-*-netbsd
 # Note - we use copytest.s and a section named "foo" rather
 # than .text because for some file formats (eg PE) the .text
 # section has a fixed set of flags and these cannot be changed.
Index: binutils-all/copy-3.d
===================================================================
RCS file: /cvs/src/src/binutils/testsuite/binutils-all/copy-3.d,v
retrieving revision 1.6
diff -u -3 -p -r1.6 copy-3.d
--- binutils-all/copy-3.d	18 Oct 2009 07:43:03 -0000	1.6
+++ binutils-all/copy-3.d	1 Jan 2011 01:41:42 -0000
@@ -3,7 +3,7 @@
 #objcopy: --set-section-flags .text=alloc,data
 #name: copy with setting section flags 3
 #source: bintest.s
-#not-target: *-*-*aout *-*-*pe *-*-*coff i*86-*-cygwin* i*86-*-mingw32* m68k-*-netbsd m68k-*-openbsd* ns32k-*-netbsd x86_64-*-mingw*
+#not-target: *-*-*aout *-*-*pe *-*-*coff hppa*-*-hpux* i*86-*-cygwin* i*86-*-mingw32* m68k-*-netbsd m68k-*-openbsd* ns32k-*-netbsd x86_64-*-mingw*
 # The .text # section in PE/COFF has a fixed set of flags and these
 # cannot be changed.  We skip it for them.
 
Index: binutils-all/objcopy.exp
===================================================================
RCS file: /cvs/src/src/binutils/testsuite/binutils-all/objcopy.exp,v
retrieving revision 1.70
diff -u -3 -p -r1.70 objcopy.exp
--- binutils-all/objcopy.exp	8 Nov 2010 06:43:34 -0000	1.70
+++ binutils-all/objcopy.exp	1 Jan 2011 01:41:42 -0000
@@ -131,6 +131,10 @@ if ![string match "" $got] then {
     set found_rev [regexp -lineanchor $want $revdata -> revdata]
 
     if {$found_orig == 0 || $found_rev == 0} then {
+	# som doesn't have a .data section
+	setup_xfail "hppa*-*-hpux*"
+	clear_xfail "hppa*64*-*-hpux*"
+
         fail "objcopy --reverse-bytes"
     } else {
         scan $origdata "%2x%2x%2x%2x" b1 b2 b3 b4


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