}
# 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"
}
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"
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
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"