aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2003-05-09 15:35:09 +0000
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2003-05-09 15:35:09 +0000
commit4648dfcf5b6bdda114c06be26f586a81e0922ee2 (patch)
tree8422506d8c11c385f0e069578f728bf960242cc1 /ld
parent2ebb4b8890392116df80469e328ad7988e04b193 (diff)
downloadgdb-4648dfcf5b6bdda114c06be26f586a81e0922ee2.zip
gdb-4648dfcf5b6bdda114c06be26f586a81e0922ee2.tar.gz
gdb-4648dfcf5b6bdda114c06be26f586a81e0922ee2.tar.bz2
* ld-elfvsb/elf-offset.ld: Add .rel.eh_frame and .rela.eh_frame
to linker script. * ld-elfvsb/elfvsb.exp (visibility_run): Add setup_xfails for s390x. * ld-selective/selective.exp: Disable for s390 and s390x. * ld-shared/elf-offset.ld: Add .rel.eh_frame and .rela.eh_frame to linker script. * ld-shared/shared.exp (shared_test): Add setup_xfails for s390x. * ld-undefined/undefined.exp (checkund): Remove setup_xfail for s390x.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog11
-rw-r--r--ld/testsuite/ld-elfvsb/elf-offset.ld2
-rw-r--r--ld/testsuite/ld-elfvsb/elfvsb.exp12
-rw-r--r--ld/testsuite/ld-selective/selective.exp5
-rw-r--r--ld/testsuite/ld-shared/elf-offset.ld2
-rw-r--r--ld/testsuite/ld-shared/shared.exp2
-rw-r--r--ld/testsuite/ld-undefined/undefined.exp2
7 files changed, 34 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index e694c51..db9e409 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,14 @@
+2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
+
+ * ld-elfvsb/elf-offset.ld: Add .rel.eh_frame and .rela.eh_frame
+ to linker script.
+ * ld-elfvsb/elfvsb.exp (visibility_run): Add setup_xfails for s390x.
+ * ld-selective/selective.exp: Disable for s390 and s390x.
+ * ld-shared/elf-offset.ld: Add .rel.eh_frame and .rela.eh_frame
+ to linker script.
+ * ld-shared/shared.exp (shared_test): Add setup_xfails for s390x.
+ * ld-undefined/undefined.exp (checkund): Remove setup_xfail for s390x.
+
2003-05-08 H.J. Lu <hongjiu.lu@intel.com>
* ld-elfvers/vers.exp: Add vers27d4 and vers27d5 to test
diff --git a/ld/testsuite/ld-elfvsb/elf-offset.ld b/ld/testsuite/ld-elfvsb/elf-offset.ld
index dfe4293..5e6611a 100644
--- a/ld/testsuite/ld-elfvsb/elf-offset.ld
+++ b/ld/testsuite/ld-elfvsb/elf-offset.ld
@@ -58,6 +58,8 @@ SECTIONS
.rela.bss : { *(.rela.bss) }
.rel.plt : { *(.rel.plt) }
.rela.plt : { *(.rela.plt) }
+ .rel.eh_frame : { *(.rel.eh_frame) }
+ .rela.eh_frame : { *(.rela.eh_frame) }
.init : { KEEP (*(.init)) }
.plt : { *(.plt) }
.text :
diff --git a/ld/testsuite/ld-elfvsb/elfvsb.exp b/ld/testsuite/ld-elfvsb/elfvsb.exp
index b53b96a..fb89619 100644
--- a/ld/testsuite/ld-elfvsb/elfvsb.exp
+++ b/ld/testsuite/ld-elfvsb/elfvsb.exp
@@ -259,6 +259,12 @@ proc visibility_run {visibility} {
setup_xfail "ia64-*-linux*"
setup_xfail "alpha*-*-linux*"
}
+ if { ![ string match $visibility "hidden" ]
+ && ![ string match $visibility "hidden_undef" ]
+ && ![ string match $visibility "hidden_undef_def" ]
+ && ![ string match $visibility "protected_undef" ] } {
+ setup_xfail "s390x-*-linux*"
+ }
setup_xfail "x86_64-*-linux*"
visibility_test $visibility vnp "visibility ($visibility) (non PIC)" mainnp.o sh1np.o sh2np.o elfvsb
@@ -347,6 +353,12 @@ proc visibility_run {visibility} {
setup_xfail "ia64-*-linux*"
setup_xfail "alpha*-*-linux*"
}
+ if { ![ string match $visibility "hidden" ]
+ && ![ string match $visibility "hidden_undef" ]
+ && ![ string match $visibility "hidden_undef_def" ]
+ && ![ string match $visibility "protected_undef" ] } {
+ setup_xfail "s390x-*-linux*"
+ }
setup_xfail "x86_64-*-linux*"
visibility_test $visibility vmpnp "visibility ($visibility) (PIC main, non PIC so)" mainp.o sh1np.o sh2np.o elfvsb
}
diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp
index e88ce1f..7c318ea 100644
--- a/ld/testsuite/ld-selective/selective.exp
+++ b/ld/testsuite/ld-selective/selective.exp
@@ -39,6 +39,11 @@ if {[istarget "alpha*-*-*"]} {
return
}
+# s390 does not support selective linking
+if {[istarget "s390*-*-*"]} {
+ return
+}
+
# List contains test-items with three items followed by four lists:
# 1:name 2:test-type (CC or C++; add as needed) 3:filename 4:ld-flags
# 5:must-have-symbols 6:must-not-have-symbols 7:xfail-targets.
diff --git a/ld/testsuite/ld-shared/elf-offset.ld b/ld/testsuite/ld-shared/elf-offset.ld
index dfe4293..5e6611a 100644
--- a/ld/testsuite/ld-shared/elf-offset.ld
+++ b/ld/testsuite/ld-shared/elf-offset.ld
@@ -58,6 +58,8 @@ SECTIONS
.rela.bss : { *(.rela.bss) }
.rel.plt : { *(.rel.plt) }
.rela.plt : { *(.rela.plt) }
+ .rel.eh_frame : { *(.rel.eh_frame) }
+ .rela.eh_frame : { *(.rela.eh_frame) }
.init : { KEEP (*(.init)) }
.plt : { *(.plt) }
.text :
diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp
index a6b8cc2..0cc8332 100644
--- a/ld/testsuite/ld-shared/shared.exp
+++ b/ld/testsuite/ld-shared/shared.exp
@@ -201,6 +201,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
setup_xfail "ia64-*-linux*"
setup_xfail "alpha*-*-linux*"
setup_xfail "x86_64-*-linux*"
+ setup_xfail "s390x-*-linux*"
shared_test shnp "shared (non PIC)" mainnp.o sh1np.o sh2np.o shared
# Test ELF shared library relocations with a non-zero load
@@ -256,6 +257,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG $picflag" $srcdir/$subdir/main.c $tmpdir/m
setup_xfail "ia64-*-linux*"
setup_xfail "alpha*-*-linux*"
setup_xfail "x86_64-*-linux*"
+ setup_xfail "s390x-*-linux*"
shared_test shmpnp "shared (PIC main, non PIC so)" mainp.o sh1np.o sh2np.o shared
}
} else {
diff --git a/ld/testsuite/ld-undefined/undefined.exp b/ld/testsuite/ld-undefined/undefined.exp
index a881376..a8a27cd 100644
--- a/ld/testsuite/ld-undefined/undefined.exp
+++ b/ld/testsuite/ld-undefined/undefined.exp
@@ -142,8 +142,6 @@ setup_xfail "sh64-*-*"
# the function. Therefore the line number in the error message is 8 instead
# of 9. On 64 bit s/390 this works because of the new brasl instruction that
# doesn't need a literal pool entry.
-# With gcc 3.1 s/390 uses dwarf-2 and the test will fail on 64 bit as well.
setup_xfail s390-*-*
-setup_xfail s390x-*-*
checkund $ml $testline