aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfcomm/elfcomm.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elfcomm/elfcomm.exp')
-rw-r--r--ld/testsuite/ld-elfcomm/elfcomm.exp11
1 files changed, 1 insertions, 10 deletions
diff --git a/ld/testsuite/ld-elfcomm/elfcomm.exp b/ld/testsuite/ld-elfcomm/elfcomm.exp
index c9836c1..88cfd89 100644
--- a/ld/testsuite/ld-elfcomm/elfcomm.exp
+++ b/ld/testsuite/ld-elfcomm/elfcomm.exp
@@ -21,16 +21,7 @@
# Make sure that ld correctly handles common symbols in ELF.
# This test can only be run on ELF platforms.
-# Square bracket expressions seem to confuse istarget.
-if { ![istarget hppa*64*-*-hpux*] \
- && ![istarget *-*-gnu] \
- && ![istarget *-*-linux*] \
- && ![istarget *-*-elf] } {
- return
-}
-
-if { [istarget *-*-linux*aout*] \
- || [istarget *-*-linux*oldld*] } {
+if ![is_elf_format] {
return
}