Even more hppa testsuite patches.
[external/binutils.git] / ld / testsuite / ld-srec / srec.exp
index 19f58de..331ff78 100644 (file)
@@ -229,23 +229,15 @@ proc run_srec_test { test objs } {
     }
 
     # ARM targets call __gccmain
-    if [istarget arm-*-coff] {
+    if [istarget arm*-*-*] {
        set flags "$flags --defsym ___gccmain=0"
     }
-    if [istarget arm-*-pe] {
-       set flags "$flags --defsym ___gccmain=0"
-    }
-    if [istarget arm-*-elf] {
-       set flags "$flags --defsym ___gccmain=0"
+    
+    if [istarget strongarm*-*-*] {
+       set flags "$flags --defsym __gccmain=0"
     }
     
     # Thumb targets call __gccmain
-    if [istarget thumb-*-coff] {
-       set flags "$flags --defsym ___gccmain=0"
-    }
-    if [istarget thumb-*-pe] {
-       set flags "$flags --defsym ___gccmain=0"
-    }
     if [istarget thumb-*-*] {
        set flags "$flags --defsym ___gccmain=0"
     }
@@ -333,19 +325,18 @@ setup_xfail "mips*-*-irix5*" "mips*-*-irix6*"
 setup_xfail "*-*-aix*" "*-*-xcoff*"
 
 # The S-record linker doesn't build ARM/Thumb stubs.
-setup_xfail "arm-*-coff*"
+setup_xfail "arm-*-coff"
+setup_xfail "strongarm*-*-*"
 setup_xfail "arm-*-pe*"
-setup_xfail "arm-*elf*"
+setup_xfail "arm-*elf*"
 setup_xfail "thumb-*-coff*"
 setup_xfail "thumb-*-pe*"
 setup_xfail "thumb-*-elf*"
+setup_xfail "arm*-*-linux*"
 
 # The S-record linker doesn't build special EABI sections.
 setup_xfail "powerpc*-*-eabi*"
 
-# The S-record linker doesn't include the .got section.
-setup_xfail "powerpc*-*-linux*"
-
 # The S-record linker doesn't include the .{zda} sections.
 setup_xfail "v850*-*-elf"
 
@@ -353,6 +344,14 @@ 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)
+setup_xfail "*-*-cygwin*" "*-*-mingw*" "*-*-pe*" "*-*-winnt*"
+
 run_srec_test $test1 "tmpdir/sr1.o tmpdir/sr2.o"
 
 # Now try linking a C++ program with global constructors and
@@ -373,16 +372,14 @@ if ![ld_compile "$CXX $CXXFLAGS -fgnu-linker" $srcdir/$subdir/sr3.cc tmpdir/sr3.
 setup_xfail "i*86-*-aout*"
 setup_xfail "mips*-*-irix5*" "mips*-*-irix6*"
 setup_xfail "*-*-aix*" "*-*-xcoff*"
-setup_xfail "arm-*-coff*"
-setup_xfail "arm-*-pe*"
-setup_xfail "arm-*-elf*"
-setup_xfail "thumb-*-coff*"
-setup_xfail "thumb-*-pe*"
-setup_xfail "thumb-*-elf*"
+setup_xfail "arm*-*-*"
+setup_xfail "strongarm*-*-*"
+setup_xfail "thumb-*-*"
 setup_xfail "powerpc*-*-eabi*"
-setup_xfail "powerpc*-*-linux*"
 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"