* 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 c99047f47bbb675292694b974f6ff83130b70e35..8c6dc9b36ef65d5d7f6d0a455c70bbfb0f658b00 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 1e2297164d896736f24de7c65fbab37fab7a511d..f975d42289e352b159dbf44d99f7e42274f4a79f 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 bfc6d0fdcc430b944f08342409345a074142b44b..fe3e15ea82f90449d23e8bc043d3aeb26439d978 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 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
 }
 
index 89a748195e3c41c91296cbb72ea043e22bd32765..23e4f698bd9e8ed63aa531ea2d0f82fdbebb93df 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*] \