* ld-elf/elf.exp: Use if_elf_format.
authorJason Thorpe <thorpej@netbsd.org>
Thu, 29 May 2003 00:16:46 +0000 (00:16 +0000)
committerJason Thorpe <thorpej@netbsd.org>
Thu, 29 May 2003 00:16:46 +0000 (00:16 +0000)
* ld-elf/sec64k.exp: Likewise.
* ld-elfcomm/elfcomm.exp: Likewise.
* lib/ld-lib.exp (is_elf_format): Match hppa*64*-*-hpux*.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/elf.exp
ld/testsuite/ld-elf/sec64k.exp
ld/testsuite/ld-elfcomm/elfcomm.exp
ld/testsuite/lib/ld-lib.exp

index c99047f..8c6dc9b 100644 (file)
@@ -1,3 +1,10 @@
+2003-05-27  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * ld-elf/elf.exp: Use if_elf_format.
+       * ld-elf/sec64k.exp: Likewise.
+       * ld-elfcomm/elfcomm.exp: Likewise.
+       * lib/ld-lib.exp (is_elf_format): Match hppa*64*-*-hpux*.
+
 2003-05-25  Jason Thorpe  <thorpej@wasabisystems.com>
 
        * ld-mips-elf/mips-elf.exp: Make all NetBSD targets match as elf.
index 1e22971..f975d42 100644 (file)
 
 # Exclude non-ELF targets.
 
-if { ![istarget *-*-linux*] \
-     && ![istarget *-*-gnu] \
-     && ![istarget hppa*64*-*-hpux*] \
-     && ![istarget *-*-elf] } {
-    return
-}
-
-if { [istarget *-*-linux*aout*] \
-     || [istarget *-*-linux*oldld*] } {
+if ![is_elf_format] {
     return
 }
 
index bfc6d0f..fe3e15e 100644 (file)
 
 # Exclude non-ELF targets.
 
-if { ![istarget *-*-linux*] \
-     && ![istarget *-*-gnu] \
-     && ![istarget hppa*64*-*-hpux*] \
-     && ![istarget *-*-elf] } {
-    return
-}
-
-if { [istarget *-*-linux*aout*] \
-     || [istarget *-*-linux*oldld*] } {
+if ![is_elf_format] {
     return
 }
 
index c9836c1..88cfd89 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
 }
 
index 89a7481..23e4f69 100644 (file)
@@ -349,6 +349,7 @@ proc is_elf_format {} {
         && ![istarget *-*-unixware*] \
         && ![istarget *-*-elf*] \
         && ![istarget *-*-eabi*] \
+        && ![istarget hppa*64*-*-hpux*] \
         && ![istarget *-*-linux*] \
         && ![istarget *-*-irix5*] \
         && ![istarget *-*-irix6*] \