aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2003-05-29 00:16:46 +0000
committerJason Thorpe <thorpej@netbsd.org>2003-05-29 00:16:46 +0000
commit43f9d75bc1bbff5dec60756e9f12de5ae4a3d7dc (patch)
tree5832f44d2862f83a7eec5b2eb26155e1bc9ace5b /ld
parent7bd7a2abff06c260fe9ce300754853f8b3f0fdd2 (diff)
downloadgdb-43f9d75bc1bbff5dec60756e9f12de5ae4a3d7dc.zip
gdb-43f9d75bc1bbff5dec60756e9f12de5ae4a3d7dc.tar.gz
gdb-43f9d75bc1bbff5dec60756e9f12de5ae4a3d7dc.tar.bz2
* 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*.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog7
-rw-r--r--ld/testsuite/ld-elf/elf.exp10
-rw-r--r--ld/testsuite/ld-elf/sec64k.exp10
-rw-r--r--ld/testsuite/ld-elfcomm/elfcomm.exp11
-rw-r--r--ld/testsuite/lib/ld-lib.exp1
5 files changed, 11 insertions, 28 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index c99047f..8c6dc9b 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -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.
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp
index 1e22971..f975d42 100644
--- a/ld/testsuite/ld-elf/elf.exp
+++ b/ld/testsuite/ld-elf/elf.exp
@@ -18,15 +18,7 @@
# 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
}
diff --git a/ld/testsuite/ld-elf/sec64k.exp b/ld/testsuite/ld-elf/sec64k.exp
index bfc6d0f..fe3e15e 100644
--- a/ld/testsuite/ld-elf/sec64k.exp
+++ b/ld/testsuite/ld-elf/sec64k.exp
@@ -20,15 +20,7 @@
# 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
}
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
}
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 89a7481..23e4f69 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -349,6 +349,7 @@ proc is_elf_format {} {
&& ![istarget *-*-unixware*] \
&& ![istarget *-*-elf*] \
&& ![istarget *-*-eabi*] \
+ && ![istarget hppa*64*-*-hpux*] \
&& ![istarget *-*-linux*] \
&& ![istarget *-*-irix5*] \
&& ![istarget *-*-irix6*] \