* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[deliverable/binutils-gdb.git] / ld / testsuite / ld-srec / srec.exp
index 7a52c895a8fc9b66505b08cb7fe5ba5ca2001c54..19f58de56f79260a1af38df0aa0a85eb44b10d08 100644 (file)
@@ -235,7 +235,10 @@ proc run_srec_test { test objs } {
     if [istarget arm-*-pe] {
        set flags "$flags --defsym ___gccmain=0"
     }
-
+    if [istarget arm-*-elf] {
+       set flags "$flags --defsym ___gccmain=0"
+    }
+    
     # Thumb targets call __gccmain
     if [istarget thumb-*-coff] {
        set flags "$flags --defsym ___gccmain=0"
@@ -243,6 +246,9 @@ proc run_srec_test { test objs } {
     if [istarget thumb-*-pe] {
        set flags "$flags --defsym ___gccmain=0"
     }
+    if [istarget thumb-*-*] {
+       set flags "$flags --defsym ___gccmain=0"
+    }
 
     # PowerPC EABI code calls __eabi.
     if [istarget powerpc*-*-eabi*] {
@@ -254,6 +260,11 @@ proc run_srec_test { test objs } {
        set flags "$flags --defsym __truncsipsi2_d0_d2=0"
     }
 
+    # V850 targets need libgcc.a
+    if [istarget v850*-*-elf] {
+       set objs "$objs -L ../gcc -lgcc"
+    }
+    
     if { ![ld_simple_link $ld tmpdir/sr1 "$flags $objs"] \
         || ![ld_simple_link $ld tmpdir/sr2.sr "$flags -oformat srec $objs"] } {
        setup_xfail "hppa*-*-*elf*"
@@ -322,11 +333,26 @@ 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-*-pe*"
+setup_xfail "arm-*elf*"
 setup_xfail "thumb-*-coff*"
+setup_xfail "thumb-*-pe*"
+setup_xfail "thumb-*-elf*"
 
 # 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"
+
+# The S-record linker doesn't handle Alpha Elf relaxation.
+setup_xfail "alpha*-*-elf*" "alpha*-*-linux-gnu*" "alpha*-*-gnu*"
+setup_xfail "alpha*-*-netbsd*"
+
 run_srec_test $test1 "tmpdir/sr1.o tmpdir/sr2.o"
 
 # Now try linking a C++ program with global constructors and
@@ -347,7 +373,16 @@ 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 "powerpc*-*-eabi*"
+setup_xfail "powerpc*-*-linux*"
+setup_xfail "v850*-*-elf"
+setup_xfail "alpha*-*-elf*" "alpha*-*-linux-gnu*" "alpha*-*-gnu*"
+setup_xfail "alpha*-*-netbsd*"
 
 run_srec_test $test2 "tmpdir/sr3.o"
This page took 0.025466 seconds and 4 git commands to generate.