* ld-elf/elf.exp: Use if_elf_format.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elfcomm / elfcomm.exp
index c9836c116f739322b4322d37227335b6e127bd69..88cfd898e4360358c8886cfdb63472cc2432cf6d 100644 (file)
 # 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
 }
 
This page took 0.022971 seconds and 4 git commands to generate.