aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/lib
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-02-21 08:18:49 +0000
committerAlan Modra <amodra@gmail.com>2005-02-21 08:18:49 +0000
commit2562953678f04d6574d5dffdbc41242e5b487ff5 (patch)
tree0b11ef922d34d46f76effa8a2073e5145901f474 /ld/testsuite/lib
parenteefe576e605babfb4b79cd52576c395302245604 (diff)
downloadgdb-2562953678f04d6574d5dffdbc41242e5b487ff5.zip
gdb-2562953678f04d6574d5dffdbc41242e5b487ff5.tar.gz
gdb-2562953678f04d6574d5dffdbc41242e5b487ff5.tar.bz2
* ld-elf/warn1.d: Specify -Ttext.
* ld-scripts/align.exp (align2a, align2b: Don't run on aout targets. * ld-scripts/align2.t: Discard all but .text and .data. * ld-scripts/align2a.d: Accept non-readonly for coff. * ld-scripts/align2b.d: Likewise. * lib/ld-lib.exp (is_aout_format): New function.
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r--ld/testsuite/lib/ld-lib.exp34
1 files changed, 32 insertions, 2 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index c36c2e5..dbc8662 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1,6 +1,6 @@
# Support routines for LD testsuite.
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
-# Free Software Foundation, Inc.
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+# 2004, 2005 Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -417,6 +417,36 @@ proc is_elf64 { binary_file } {
}
#
+# is_aout_format
+# true if the object format is known to be aout
+proc is_aout_format {} {
+ if { [istarget *-*-*\[ab\]out*] \
+ || [istarget *-*-linux*oldld*] \
+ || [istarget *-*-msdos*] \
+ || [istarget arm-*-netbsd] \
+ || [istarget i?86-*-netbsd] \
+ || [istarget i?86-*-mach*] \
+ || [istarget i?86-*-vsta] \
+ || [istarget pdp11-*-*] \
+ || [istarget m68*-ericsson-ose] \
+ || [istarget m68k-hp-bsd*] \
+ || [istarget m68*-*-hpux*] \
+ || [istarget m68*-*-netbsd] \
+ || [istarget m68*-*-netbsd*4k*] \
+ || [istarget m68k-sony-*] \
+ || [istarget m68*-sun-sunos\[34\]*] \
+ || [istarget m68*-wrs-vxworks*] \
+ || [istarget ns32k-*-*] \
+ || [istarget sparc*-*-netbsd] \
+ || [istarget sparc-sun-sunos4*] \
+ || [istarget vax-dec-ultrix*] \
+ || [istarget vax-*-netbsd] } {
+ return 1
+ }
+ return 0
+}
+
+#
# is_pecoff_format
# true if the object format is known to be PECOFF
#