ld testsuite hppa patches

Alan Modra alan@linuxcare.com.au
Mon Jul 10 10:02:00 GMT 2000


Even more hppa testsuite patches.  Committed.

Alan Modra
-- 
Linuxcare.  Support for the Revolution.

ld/testsuite/ChangeLog
	* ld-srec/srec.exp: xfail hppa.

	* ld-scripts/weak.exp: Define $global$ for hppa.

	* ld-scripts/crossref.exp: Fix string quoting.

Index: ld/testsuite/ld-scripts/crossref.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/crossref.exp,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 crossref.exp
--- crossref.exp	1999/05/03 07:29:09	1.1.1.1
+++ crossref.exp	2000/07/10 13:26:23
@@ -28,7 +28,7 @@ if [istarget a29k*-*-*] {
 
 # hppa-elf needs a definition for $global$.
 if [istarget hppa*-*-*] {
-    set flags "$flags --defsym '\$global\$'=0"
+    set flags "$flags --defsym \\\$global\\\$=0"
 }
 
 verbose -log "$ld $flags -o tmpdir/cross1 -T $srcdir/$subdir/cross1.t tmpdir/cross1.o tmpdir/cross2.o"
Index: ld/testsuite/ld-scripts/weak.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/weak.exp,v
retrieving revision 1.2
diff -u -p -r1.2 weak.exp
--- weak.exp	1999/06/12 10:47:07	1.2
+++ weak.exp	2000/07/10 13:26:23
@@ -35,7 +35,13 @@ set weak_regexp_big \
 set weak_regexp_little \
 ".*Contents of section .text:.*1000 08100000 0c200000 12121212 34343434.*Contents of section .data:.*2000 08100000 0c200000 56565656 78787878.*"
 
-if {! [ld_simple_link $ld tmpdir/weak "-T $srcdir/$subdir/weak.t tmpdir/weak1.o tmpdir/weak2.o"] } then {
+# hppa-elf needs a definition for $global$.
+set flags ""
+if [istarget hppa*-*-*] {
+    set flags "--defsym \\\$global\\\$=0"
+}
+
+if {! [ld_simple_link $ld tmpdir/weak "$flags -T $srcdir/$subdir/weak.t tmpdir/weak1.o tmpdir/weak2.o"] } then {
     fail $testname
 } else {
     if {[which $objdump] == 0} then {
Index: ld/testsuite/ld-selective/selective.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-selective/selective.exp,v
retrieving revision 1.5
diff -u -p -r1.5 selective.exp
--- selective.exp	2000/04/12 12:47:25	1.5
+++ selective.exp	2000/07/10 13:26:25
@@ -46,6 +46,8 @@ if { [which $CXX] == 0 } {
     return
 }
 
+setup_xfail "hppa*-*-*"
+
 if { ![ld_compile "$CC $cflags" $srcdir/$subdir/1.c tmpdir/1.o]} {
     unresolved $test1
     return
@@ -72,6 +74,8 @@ if ![ld_simple_link $ld tmpdir/1.x "$ldf
 	}
     }
 }
+
+setup_xfail "hppa*-*-*"
 
 if { ![ld_compile "$CC $cflags" $srcdir/$subdir/2.c tmpdir/2.o]} {
     unresolved $test2
Index: ld/testsuite/ld-srec/srec.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-srec/srec.exp,v
retrieving revision 1.3
diff -u -p -r1.3 srec.exp
--- srec.exp	1999/10/28 16:22:48	1.3
+++ srec.exp	2000/07/10 13:26:25
@@ -344,6 +344,9 @@ setup_xfail "v850*-*-elf"
 setup_xfail "alpha*-*-elf*" "alpha*-*-linux-gnu*" "alpha*-*-gnu*"
 setup_xfail "alpha*-*-netbsd*"
 
+# The S-record linker hasn't any hope of coping with HPPA relocs.
+setup_xfail "hppa*-*-*"
+
 # The S-record linker doesn't support the special PE headers - the PE
 # emulation tries to write pe-specific information to the PE headers
 # in the output bfd, but it's not a PE bfd (it's an srec bfd)
@@ -376,6 +379,7 @@ setup_xfail "powerpc*-*-eabi*"
 setup_xfail "v850*-*-elf"
 setup_xfail "alpha*-*-elf*" "alpha*-*-linux-gnu*" "alpha*-*-gnu*"
 setup_xfail "alpha*-*-netbsd*"
+setup_xfail "hppa*-*-*"
 setup_xfail "*-*-cygwin*" "*-*-mingw*" "*-*-pe*" "*-*-winnt*"
 
 run_srec_test $test2 "tmpdir/sr3.o"



More information about the Binutils mailing list