aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-08-18 07:51:08 +0000
committerAlan Modra <amodra@gmail.com>2005-08-18 07:51:08 +0000
commit48733062ff1b494f5a6a40dbb318abe587eb5444 (patch)
treed41f14d423cb5a52ad8306208dc74e9a1c32bbd9 /ld
parent2caf1300cf795be1a48b6cdb72e0b168a669540e (diff)
downloadgdb-48733062ff1b494f5a6a40dbb318abe587eb5444.zip
gdb-48733062ff1b494f5a6a40dbb318abe587eb5444.tar.gz
gdb-48733062ff1b494f5a6a40dbb318abe587eb5444.tar.bz2
* ld-d10v/default_layout.d: Adjust for section removal.
* ld-elf/empty.s: Define "main". * ld-elf/frame.exp: Don't run for hppa64 and v850. * ld-elf/group1.d: xfail various targets. * ld-elf/merge.d: Likewise. * ld-elf/merge2.d: Likewise. * ld-elf/warn1.d: Likewise. * ld-scripts/defined2.d: Likewise. * ld-scripts/defined3.d: Likewise. * ld-scripts/empty-aligned.d: Likewise. * ld-scripts/size-2.d: Likewise. * ld-scripts/weak.exp: Likewise. * ld-selective/sel-dump.exp: Likewise. * ld-undefined/weak-undef.exp: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog17
-rw-r--r--ld/testsuite/ld-d10v/default_layout.d2
-rw-r--r--ld/testsuite/ld-elf/empty.s3
-rw-r--r--ld/testsuite/ld-elf/frame.exp6
-rw-r--r--ld/testsuite/ld-elf/group1.d1
-rw-r--r--ld/testsuite/ld-elf/merge.d9
-rw-r--r--ld/testsuite/ld-elf/merge2.d3
-rw-r--r--ld/testsuite/ld-elf/warn1.d1
-rw-r--r--ld/testsuite/ld-scripts/defined2.d1
-rw-r--r--ld/testsuite/ld-scripts/defined3.d1
-rw-r--r--ld/testsuite/ld-scripts/empty-aligned.d1
-rw-r--r--ld/testsuite/ld-scripts/size-2.d1
-rw-r--r--ld/testsuite/ld-scripts/weak.exp3
-rw-r--r--ld/testsuite/ld-selective/sel-dump.exp5
-rw-r--r--ld/testsuite/ld-undefined/weak-undef.exp2
15 files changed, 47 insertions, 9 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 095180b..61a50e1 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,5 +1,22 @@
2005-08-18 Alan Modra <amodra@bigpond.net.au>
+ * ld-d10v/default_layout.d: Adjust for section removal.
+ * ld-elf/empty.s: Define "main".
+ * ld-elf/frame.exp: Don't run for hppa64 and v850.
+ * ld-elf/group1.d: xfail various targets.
+ * ld-elf/merge.d: Likewise.
+ * ld-elf/merge2.d: Likewise.
+ * ld-elf/warn1.d: Likewise.
+ * ld-scripts/defined2.d: Likewise.
+ * ld-scripts/defined3.d: Likewise.
+ * ld-scripts/empty-aligned.d: Likewise.
+ * ld-scripts/size-2.d: Likewise.
+ * ld-scripts/weak.exp: Likewise.
+ * ld-selective/sel-dump.exp: Likewise.
+ * ld-undefined/weak-undef.exp: Likewise.
+
+2005-08-18 Alan Modra <amodra@bigpond.net.au>
+
* ld-scripts/crossref.exp: Remove a29k support.
* ld-srec/srec.exp: Likewise.
diff --git a/ld/testsuite/ld-d10v/default_layout.d b/ld/testsuite/ld-d10v/default_layout.d
index 3f96889..c14feb4 100644
--- a/ld/testsuite/ld-d10v/default_layout.d
+++ b/ld/testsuite/ld-d10v/default_layout.d
@@ -8,5 +8,3 @@ Sections:
Idx Name Size VMA LMA File off Algn
0 \.text 00000004 01014000 01014000 00001000 2\*\*0
CONTENTS, ALLOC, LOAD, READONLY, CODE
- 1 \.stack 00000000 0200bffc 0200bffc .* 2\*\*0
- CONTENTS
diff --git a/ld/testsuite/ld-elf/empty.s b/ld/testsuite/ld-elf/empty.s
index e2c8203..8c2d0e6 100644
--- a/ld/testsuite/ld-elf/empty.s
+++ b/ld/testsuite/ld-elf/empty.s
@@ -10,4 +10,7 @@ _start:
.type __start,"function"
.global __start
__start:
+ .type main,"function"
+ .global main
+main:
.long 0
diff --git a/ld/testsuite/ld-elf/frame.exp b/ld/testsuite/ld-elf/frame.exp
index a731f11..6b8d3e2 100644
--- a/ld/testsuite/ld-elf/frame.exp
+++ b/ld/testsuite/ld-elf/frame.exp
@@ -35,6 +35,12 @@ if { [istarget "sh*-*-elf*"] } {
return
}
+# ??? These targets have their own .tbss section, with different meaning
+# to the usual ELF .tbss.
+if { [istarget "hppa64-*-*"] || [istarget "v850-*-*"] } {
+ return
+}
+
set test1 "read-only .eh_frame section"
set test2 "read-only .gcc_except_table section"
diff --git a/ld/testsuite/ld-elf/group1.d b/ld/testsuite/ld-elf/group1.d
index fca0837..0d65932 100644
--- a/ld/testsuite/ld-elf/group1.d
+++ b/ld/testsuite/ld-elf/group1.d
@@ -2,6 +2,7 @@
#source: group1b.s
#ld: -T group.ld
#readelf: -s
+#xfail: "arc-*-*" "d30v-*-*" "dlx-*-*" "i960-*-*" "or32-*-*" "pj-*-*"
Symbol table '.symtab' contains .* entries:
#...
.*: 0[0]*1000 0 (NOTYPE|OBJECT) WEAK DEFAULT . foo
diff --git a/ld/testsuite/ld-elf/merge.d b/ld/testsuite/ld-elf/merge.d
index fc55c63..02d7e0c 100644
--- a/ld/testsuite/ld-elf/merge.d
+++ b/ld/testsuite/ld-elf/merge.d
@@ -1,10 +1,11 @@
#source: merge.s
#ld: -T merge.ld
#objdump: -s
-#xfail: "arc-*-*" "avr-*-*" "cris-*-*" "dlx-*-*" "fr30-*-*" "frv-*-*"
-#xfail: "hppa*-*-*" "h8300-*-*" "i960-*-*" "ip2k-*-*" "m32r-*-*" "mcore-*-*"
-#xfail: "mn10*-*-*" "mips*-*-*" "openrisc-*-*" "pj-*-*" "sparc*-*-*"
-#xfail: "xtensa-*-*" "crisv32-*-*"
+#xfail: "arc-*-*" "avr-*-*" "cris*-*-*" "crx-*-*" "d10v-*-*" "d30v-*-*"
+#xfail: "dlx-*-*" "fr30-*-*" "frv-*-*" "hppa*-*-*" "h8300-*-*"
+#xfail: "i370-*-*" "i860-*-*" "i960-*-*" "ip2k-*-*" "iq2000-*-*"
+#xfail: "mcore-*-*" "mn102*-*-*" "mips*-*-*" "ms1-*-*" "msp430-*-*"
+#xfail: "or32-*-*" "pj-*-*" "sparc*-*-*" "vax-*-*" "xstormy16-*-*" "xtensa-*-*"
.*: file format .*elf.*
diff --git a/ld/testsuite/ld-elf/merge2.d b/ld/testsuite/ld-elf/merge2.d
index 9465ad5..40884a3 100644
--- a/ld/testsuite/ld-elf/merge2.d
+++ b/ld/testsuite/ld-elf/merge2.d
@@ -1,7 +1,8 @@
#source: merge2.s
#ld: -T merge.ld
#objdump: -s
-#xfail: "arc-*-*" "dlx-*-*"
+#xfail: "arc-*-*" "d30v-*-*" "dlx-*-*" "hppa64-*-*"
+#xfail: "i960-*-*" "ip2k-*-*" "iq2000-*-*" "or32-*-*" "pj-*-*"
.*: file format .*elf.*
diff --git a/ld/testsuite/ld-elf/warn1.d b/ld/testsuite/ld-elf/warn1.d
index d5ee7b4..7beb9da 100644
--- a/ld/testsuite/ld-elf/warn1.d
+++ b/ld/testsuite/ld-elf/warn1.d
@@ -5,6 +5,7 @@
#warning: ^[^\\n]*\): warning: witty one-liner$
#readelf: -s
#notarget: "sparc64-*-solaris2*" "sparcv9-*-solaris2*"
+#xfail: "arc-*-*" "d30v-*-*" "dlx-*-*" "i960-*-*" "or32-*-*" "pj-*-*"
# Check that warnings are generated for the .gnu.warning.SYMBOL
# construct and that the symbol still appears as expected.
diff --git a/ld/testsuite/ld-scripts/defined2.d b/ld/testsuite/ld-scripts/defined2.d
index 6e6e068..40728bd 100644
--- a/ld/testsuite/ld-scripts/defined2.d
+++ b/ld/testsuite/ld-scripts/defined2.d
@@ -1,6 +1,7 @@
#ld: -Tdefined2.t
#nm: -B
#source: phdrs.s
+#xfail: "rs6000-*-aix*"
# Check that arithmetic on DEFINED works.
# Matching both A and T accounts for formats that can't tell a .text
diff --git a/ld/testsuite/ld-scripts/defined3.d b/ld/testsuite/ld-scripts/defined3.d
index 0b3831c..61061b6 100644
--- a/ld/testsuite/ld-scripts/defined3.d
+++ b/ld/testsuite/ld-scripts/defined3.d
@@ -2,6 +2,7 @@
#nm: -B
#source: phdrs.s
#source: defined.s
+#xfail: "rs6000-*-aix*"
# Check that DEFINED matches only symbols defined before its location.
# The ellipsis account for target-specific symbols. Matching both A and T
diff --git a/ld/testsuite/ld-scripts/empty-aligned.d b/ld/testsuite/ld-scripts/empty-aligned.d
index e342f7b..4b7b84b 100644
--- a/ld/testsuite/ld-scripts/empty-aligned.d
+++ b/ld/testsuite/ld-scripts/empty-aligned.d
@@ -1,6 +1,7 @@
#source: empty-aligned.s
#ld: -T empty-aligned.t
#readelf: -l --wide
+#xfail: "hppa64-*-*"
#...
Program Headers:
diff --git a/ld/testsuite/ld-scripts/size-2.d b/ld/testsuite/ld-scripts/size-2.d
index f44f908..beb18e4 100644
--- a/ld/testsuite/ld-scripts/size-2.d
+++ b/ld/testsuite/ld-scripts/size-2.d
@@ -1,6 +1,7 @@
#source: size-2.s
#ld: -T size-2.t
#readelf: -l --wide
+#xfail: "hppa64-*-*" "v850-*-*"
#...
Program Headers:
diff --git a/ld/testsuite/ld-scripts/weak.exp b/ld/testsuite/ld-scripts/weak.exp
index 84e5dff..925c812 100644
--- a/ld/testsuite/ld-scripts/weak.exp
+++ b/ld/testsuite/ld-scripts/weak.exp
@@ -31,6 +31,9 @@ if {! [istarget i?86-*-*]} {
setup_xfail *-*-pe*
}
+# hppa64 and or32 are incredibly broken
+setup_xfail hppa64-*-* or32-*-*
+
if {! [ld_assemble $as $srcdir/$subdir/weak1.s tmpdir/weak1.o]
|| ! [ld_assemble $as $srcdir/$subdir/weak2.s tmpdir/weak2.o]} then {
# It's OK if .weak doesn't work on this target.
diff --git a/ld/testsuite/ld-selective/sel-dump.exp b/ld/testsuite/ld-selective/sel-dump.exp
index fe113d7..63f246c 100644
--- a/ld/testsuite/ld-selective/sel-dump.exp
+++ b/ld/testsuite/ld-selective/sel-dump.exp
@@ -25,7 +25,8 @@ set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
for { set i 0 } { $i < [llength $test_list] } { incr i } {
# We need to strip the ".d", but can leave the dirname.
verbose [file rootname [lindex $test_list $i]]
- setup_xfail "alpha*-*" "arc*-*" "d30v*-*" "dlx*-*" "i370*-*" "i860*-*"
- setup_xfail "i960*-*" "ia64*-*" "mn10200-*" "or32-*" "pj-*"
+ setup_xfail "alpha*-*" "arc*-*" "d30v*-*" "dlx*-*" "hppa64-*-*"
+ setup_xfail "i370*-*" "i860*-*" "i960*-*" "ia64*-*" "mn10200-*"
+ setup_xfail "or32-*" "pj-*"
run_dump_test [file rootname [lindex $test_list $i]]
}
diff --git a/ld/testsuite/ld-undefined/weak-undef.exp b/ld/testsuite/ld-undefined/weak-undef.exp
index 076b52a..b87c319 100644
--- a/ld/testsuite/ld-undefined/weak-undef.exp
+++ b/ld/testsuite/ld-undefined/weak-undef.exp
@@ -46,6 +46,8 @@ if {! [istarget i?86-*-*]} {
setup_xfail *-*-pe*
}
+setup_xfail hppa64-*-* pj-*-*
+
if {! [ld_assemble $as $srcdir/$subdir/weak-undef.s tmpdir/weak-undef.o]} then {
# It's OK if .weak doesn't work on this target.
unresolved $testname