ld testsuite adjustments

Alan Modra amodra@bigpond.net.au
Thu Aug 18 07:50:00 GMT 2005


This just makes the ld testsuite results look better.

	* ld-d10v/default_layout.d: Adjust for section removal.
	* ld-elf/empty.s: Define "main".
	* ld-elf/frame.exp: Don't run for hppa64 and v850.
	* ld-elf/group1.d: xfail various targets.
	* ld-elf/merge.d: Likewise.
	* ld-elf/merge2.d: Likewise.
	* ld-elf/warn1.d: Likewise.
	* ld-scripts/defined2.d: Likewise.
	* ld-scripts/defined3.d: Likewise.
	* ld-scripts/empty-aligned.d: Likewise.
	* ld-scripts/size-2.d: Likewise.
	* ld-scripts/weak.exp: Likewise.
	* ld-selective/sel-dump.exp: Likewise.
	* ld-undefined/weak-undef.exp: Likewise.

Index: ld/testsuite/ld-d10v/default_layout.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-d10v/default_layout.d,v
retrieving revision 1.3
diff -u -p -r1.3 default_layout.d
--- ld/testsuite/ld-d10v/default_layout.d	15 Apr 2005 06:02:54 -0000	1.3
+++ ld/testsuite/ld-d10v/default_layout.d	18 Aug 2005 07:07:54 -0000
@@ -8,5 +8,3 @@ Sections:
 Idx Name          Size      VMA       LMA       File off  Algn
   0 \.text         00000004  01014000  01014000  00001000  2\*\*0
                   CONTENTS, ALLOC, LOAD, READONLY, CODE
-  1 \.stack        00000000  0200bffc  0200bffc  .*  2\*\*0
-                  CONTENTS
Index: ld/testsuite/ld-elf/empty.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/empty.s,v
retrieving revision 1.2
diff -u -p -r1.2 empty.s
--- ld/testsuite/ld-elf/empty.s	15 Aug 2005 14:08:58 -0000	1.2
+++ ld/testsuite/ld-elf/empty.s	18 Aug 2005 07:07:55 -0000
@@ -10,4 +10,7 @@ _start:
 	.type __start,"function"
 	.global __start
 __start:
+	.type main,"function"
+	.global main
+main:
 	.long 0
Index: ld/testsuite/ld-elf/frame.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/frame.exp,v
retrieving revision 1.5
diff -u -p -r1.5 frame.exp
--- ld/testsuite/ld-elf/frame.exp	12 May 2005 07:32:05 -0000	1.5
+++ ld/testsuite/ld-elf/frame.exp	18 Aug 2005 07:07:55 -0000
@@ -35,6 +35,12 @@ if { [istarget "sh*-*-elf*"] } {
     return
 }
 
+# ??? These targets have their own .tbss section, with different meaning
+# to the usual ELF .tbss.
+if { [istarget "hppa64-*-*"] || [istarget "v850-*-*"] } {
+    return
+}
+
 set test1	"read-only .eh_frame section"
 set test2	"read-only .gcc_except_table section"
 
Index: ld/testsuite/ld-elf/group1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/group1.d,v
retrieving revision 1.3
diff -u -p -r1.3 group1.d
--- ld/testsuite/ld-elf/group1.d	31 Jan 2005 21:58:43 -0000	1.3
+++ ld/testsuite/ld-elf/group1.d	18 Aug 2005 07:07:55 -0000
@@ -2,6 +2,7 @@
 #source: group1b.s
 #ld: -T group.ld
 #readelf: -s
+#xfail: "arc-*-*" "d30v-*-*" "dlx-*-*" "i960-*-*" "or32-*-*" "pj-*-*"
 Symbol table '.symtab' contains .* entries:
 #...
     .*: 0[0]*1000     0 (NOTYPE|OBJECT)  WEAK   DEFAULT    . foo
Index: ld/testsuite/ld-elf/merge.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/merge.d,v
retrieving revision 1.5
diff -u -p -r1.5 merge.d
--- ld/testsuite/ld-elf/merge.d	4 Nov 2004 15:04:05 -0000	1.5
+++ ld/testsuite/ld-elf/merge.d	18 Aug 2005 07:07:55 -0000
@@ -1,10 +1,11 @@
 #source: merge.s
 #ld: -T merge.ld
 #objdump: -s
-#xfail: "arc-*-*" "avr-*-*" "cris-*-*" "dlx-*-*" "fr30-*-*" "frv-*-*"
-#xfail: "hppa*-*-*" "h8300-*-*" "i960-*-*" "ip2k-*-*" "m32r-*-*" "mcore-*-*"
-#xfail: "mn10*-*-*" "mips*-*-*" "openrisc-*-*" "pj-*-*" "sparc*-*-*"
-#xfail: "xtensa-*-*" "crisv32-*-*"
+#xfail: "arc-*-*" "avr-*-*" "cris*-*-*" "crx-*-*" "d10v-*-*" "d30v-*-*"
+#xfail: "dlx-*-*" "fr30-*-*" "frv-*-*" "hppa*-*-*" "h8300-*-*"
+#xfail: "i370-*-*" "i860-*-*" "i960-*-*" "ip2k-*-*" "iq2000-*-*"
+#xfail: "mcore-*-*" "mn102*-*-*" "mips*-*-*" "ms1-*-*" "msp430-*-*"
+#xfail: "or32-*-*" "pj-*-*" "sparc*-*-*" "vax-*-*" "xstormy16-*-*" "xtensa-*-*"
 
 .*:     file format .*elf.*
 
Index: ld/testsuite/ld-elf/merge2.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/merge2.d,v
retrieving revision 1.2
diff -u -p -r1.2 merge2.d
--- ld/testsuite/ld-elf/merge2.d	15 Aug 2005 14:08:58 -0000	1.2
+++ ld/testsuite/ld-elf/merge2.d	18 Aug 2005 07:07:55 -0000
@@ -1,7 +1,8 @@
 #source: merge2.s
 #ld: -T merge.ld
 #objdump: -s
-#xfail: "arc-*-*" "dlx-*-*"
+#xfail: "arc-*-*" "d30v-*-*" "dlx-*-*" "hppa64-*-*"
+#xfail: "i960-*-*" "ip2k-*-*" "iq2000-*-*" "or32-*-*" "pj-*-*"
 
 .*:     file format .*elf.*
 
Index: ld/testsuite/ld-elf/warn1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/warn1.d,v
retrieving revision 1.4
diff -u -p -r1.4 warn1.d
--- ld/testsuite/ld-elf/warn1.d	22 Feb 2005 18:29:19 -0000	1.4
+++ ld/testsuite/ld-elf/warn1.d	18 Aug 2005 07:07:55 -0000
@@ -5,6 +5,7 @@
 #warning: ^[^\\n]*\): warning: witty one-liner$
 #readelf: -s
 #notarget: "sparc64-*-solaris2*" "sparcv9-*-solaris2*"
+#xfail: "arc-*-*" "d30v-*-*" "dlx-*-*" "i960-*-*" "or32-*-*" "pj-*-*"
 
 # Check that warnings are generated for the .gnu.warning.SYMBOL
 # construct and that the symbol still appears as expected.
Index: ld/testsuite/ld-scripts/defined2.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/defined2.d,v
retrieving revision 1.2
diff -u -p -r1.2 defined2.d
--- ld/testsuite/ld-scripts/defined2.d	8 Apr 2004 00:51:37 -0000	1.2
+++ ld/testsuite/ld-scripts/defined2.d	18 Aug 2005 07:07:55 -0000
@@ -1,6 +1,7 @@
 #ld: -Tdefined2.t
 #nm: -B
 #source: phdrs.s
+#xfail: "rs6000-*-aix*"
 
 # Check that arithmetic on DEFINED works.
 # Matching both A and T accounts for formats that can't tell a .text
Index: ld/testsuite/ld-scripts/defined3.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/defined3.d,v
retrieving revision 1.2
diff -u -p -r1.2 defined3.d
--- ld/testsuite/ld-scripts/defined3.d	8 Apr 2004 00:51:37 -0000	1.2
+++ ld/testsuite/ld-scripts/defined3.d	18 Aug 2005 07:07:55 -0000
@@ -2,6 +2,7 @@
 #nm: -B
 #source: phdrs.s
 #source: defined.s
+#xfail: "rs6000-*-aix*"
 
 # Check that DEFINED matches only symbols defined before its location.
 # The ellipsis account for target-specific symbols.  Matching both A and T
Index: ld/testsuite/ld-scripts/empty-aligned.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/empty-aligned.d,v
retrieving revision 1.4
diff -u -p -r1.4 empty-aligned.d
--- ld/testsuite/ld-scripts/empty-aligned.d	15 Aug 2005 14:08:58 -0000	1.4
+++ ld/testsuite/ld-scripts/empty-aligned.d	18 Aug 2005 07:07:55 -0000
@@ -1,6 +1,7 @@
 #source: empty-aligned.s
 #ld: -T empty-aligned.t
 #readelf: -l --wide
+#xfail: "hppa64-*-*"
 
 #...
 Program Headers:
Index: ld/testsuite/ld-scripts/size-2.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/size-2.d,v
retrieving revision 1.4
diff -u -p -r1.4 size-2.d
--- ld/testsuite/ld-scripts/size-2.d	22 Jul 2004 16:52:41 -0000	1.4
+++ ld/testsuite/ld-scripts/size-2.d	18 Aug 2005 07:07:55 -0000
@@ -1,6 +1,7 @@
 #source: size-2.s
 #ld: -T size-2.t
 #readelf: -l --wide
+#xfail: "hppa64-*-*" "v850-*-*"
 
 #...
 Program Headers:
Index: ld/testsuite/ld-scripts/weak.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/weak.exp,v
retrieving revision 1.9
diff -u -p -r1.9 weak.exp
--- ld/testsuite/ld-scripts/weak.exp	12 May 2005 07:32:08 -0000	1.9
+++ ld/testsuite/ld-scripts/weak.exp	18 Aug 2005 07:07:55 -0000
@@ -31,6 +31,9 @@ if {! [istarget i?86-*-*]} {
     setup_xfail *-*-pe*
 }
 
+# hppa64 and or32 are incredibly broken
+setup_xfail hppa64-*-* or32-*-*
+
 if {! [ld_assemble $as $srcdir/$subdir/weak1.s tmpdir/weak1.o]
     || ! [ld_assemble $as $srcdir/$subdir/weak2.s tmpdir/weak2.o]} then {
     # It's OK if .weak doesn't work on this target.
Index: ld/testsuite/ld-selective/sel-dump.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-selective/sel-dump.exp,v
retrieving revision 1.7
diff -u -p -r1.7 sel-dump.exp
--- ld/testsuite/ld-selective/sel-dump.exp	12 May 2005 07:32:08 -0000	1.7
+++ ld/testsuite/ld-selective/sel-dump.exp	18 Aug 2005 07:07:55 -0000
@@ -25,7 +25,8 @@ set test_list [lsort [glob -nocomplain $
 for { set i 0 } { $i < [llength $test_list] } { incr i } {
     # We need to strip the ".d", but can leave the dirname.
     verbose [file rootname [lindex $test_list $i]]
-    setup_xfail "alpha*-*" "arc*-*" "d30v*-*" "dlx*-*" "i370*-*" "i860*-*"
-    setup_xfail "i960*-*" "ia64*-*" "mn10200-*" "or32-*" "pj-*"
+    setup_xfail "alpha*-*" "arc*-*" "d30v*-*" "dlx*-*" "hppa64-*-*"
+    setup_xfail "i370*-*" "i860*-*" "i960*-*" "ia64*-*" "mn10200-*"
+    setup_xfail  "or32-*" "pj-*"
     run_dump_test [file rootname [lindex $test_list $i]]
 }
Index: ld/testsuite/ld-undefined/weak-undef.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-undefined/weak-undef.exp,v
retrieving revision 1.6
diff -u -p -r1.6 weak-undef.exp
--- ld/testsuite/ld-undefined/weak-undef.exp	12 May 2005 07:32:09 -0000	1.6
+++ ld/testsuite/ld-undefined/weak-undef.exp	18 Aug 2005 07:07:55 -0000
@@ -46,6 +46,8 @@ if {! [istarget i?86-*-*]} {
     setup_xfail *-*-pe*
 }
 
+setup_xfail hppa64-*-* pj-*-*
+
 if {! [ld_assemble $as $srcdir/$subdir/weak-undef.s tmpdir/weak-undef.o]} then {
     # It's OK if .weak doesn't work on this target.
     unresolved $testname

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list