aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-07-07 12:41:55 +0930
committerAlan Modra <amodra@gmail.com>2020-07-07 18:26:34 +0930
commit7193487fa8d496a1df20eb8ea5007e9b43ac07cb (patch)
treea911c9eac439c0baf41e0636fa40ca16061255ed /ld/testsuite/ld-powerpc
parent34e7979860c303d0c16e21e5033246277826c3a6 (diff)
downloadgdb-7193487fa8d496a1df20eb8ea5007e9b43ac07cb.zip
gdb-7193487fa8d496a1df20eb8ea5007e9b43ac07cb.tar.gz
gdb-7193487fa8d496a1df20eb8ea5007e9b43ac07cb.tar.bz2
Use is_xcoff_format in ld testsuite
* testsuite/ld-checks/checks.exp: Use is_xcoff_format. * testsuite/ld-powerpc/powerpc.exp: Likewise. * testsuite/ld-scripts/print-memory-usage.exp: Likewise. * testsuite/ld-srec/srec.exp: Likewise. * testsuite/ld-undefined/require-defined.exp: Likewise. * testsuite/ld-scripts/expr2.d: Likewise. * testsuite/ld-scripts/section-match-1.d: Only run for ELF. * testsuite/ld-elfvers/vers.exp: Delete dead code. * testsuite/ld-elfvsb/elfvsb.exp: Likewise. * testsuite/ld-elfweak/elfweak.exp: Likewise.
Diffstat (limited to 'ld/testsuite/ld-powerpc')
-rw-r--r--ld/testsuite/ld-powerpc/powerpc.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp
index 3e458e4..de676b8 100644
--- a/ld/testsuite/ld-powerpc/powerpc.exp
+++ b/ld/testsuite/ld-powerpc/powerpc.exp
@@ -70,10 +70,10 @@ if {[istarget "*-*-vxworks"]} {
# is ELF, because we pass -melf32ppc to ld and powerpc-nto-ld wants
# -melf32ppcnto.
-if { [istarget "*-*-macos*"]
+if { [is_xcoff_format]
|| [istarget "*-*-pe"] || [istarget "*-*-winnt*"]
- || [istarget "*-*-cygwin*"] || [istarget "*-*-aix*"]
- || [istarget "*-*-beos*"] || [istarget "*-*-lynxos*"]
+ || [istarget "*-*-cygwin*"]
+ || [istarget "*-*-lynxos*"]
|| [istarget "*-*-nto*"] } {
return
}