aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@orcam.me.uk>2023-06-15 04:45:03 +0100
committerMaciej W. Rozycki <macro@orcam.me.uk>2023-06-15 04:45:03 +0100
commit0b46c1ec2d7d008d9650f0438835804b6b7b344c (patch)
treecb977cc49e5136ab0c24ee7fb0fe420afbb70542 /ld/testsuite/ld-elf
parent0c5c669cefa7aea782abe98d5455cb7f54bbe944 (diff)
downloadgdb-0b46c1ec2d7d008d9650f0438835804b6b7b344c.zip
gdb-0b46c1ec2d7d008d9650f0438835804b6b7b344c.tar.gz
gdb-0b46c1ec2d7d008d9650f0438835804b6b7b344c.tar.bz2
Revert "MIPS: fix some ld testcases with compiler"
This reverts commit a0631c1501c113c04891c9a24a9ff5276257f28d. It was applied unapproved.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r--ld/testsuite/ld-elf/indirect.exp8
-rw-r--r--ld/testsuite/ld-elf/pr23658-2.rd2
-rw-r--r--ld/testsuite/ld-elf/shared.exp12
3 files changed, 6 insertions, 16 deletions
diff --git a/ld/testsuite/ld-elf/indirect.exp b/ld/testsuite/ld-elf/indirect.exp
index dfbb097..ce47713 100644
--- a/ld/testsuite/ld-elf/indirect.exp
+++ b/ld/testsuite/ld-elf/indirect.exp
@@ -219,9 +219,7 @@ proc check_dynamic_syms { test } {
foreach t [list indirect5a indirect5b indirect6a indirect6b] {
set testname [concat $t "dynsym"]
- if { [istarget mips*] } {
- xfail $testname
- } elseif { [check_dynamic_syms tmpdir/$t] } {
+ if { [check_dynamic_syms tmpdir/$t] } {
pass $testname
} else {
fail $testname
@@ -254,9 +252,7 @@ run_ld_link_exec_tests $pie_tests
foreach t [list indirect5c indirect5d indirect6c indirect6d] {
set testname [concat $t "dynsym"]
- if { [istarget mips*] } {
- xfail $testname
- } elseif { [check_dynamic_syms tmpdir/$t] } {
+ if { [check_dynamic_syms tmpdir/$t] } {
pass $testname
} else {
fail $testname
diff --git a/ld/testsuite/ld-elf/pr23658-2.rd b/ld/testsuite/ld-elf/pr23658-2.rd
index e414ae3..9f89c4b 100644
--- a/ld/testsuite/ld-elf/pr23658-2.rd
+++ b/ld/testsuite/ld-elf/pr23658-2.rd
@@ -1,5 +1,5 @@
#...
- +[0-9]+ +(\.MIPS\.abiflags \.MIPS\.options \.dynamic \.hash \.dynsym \.dynstr \.text |)\.interp \.note.4 \.note.1 \.note.2 \.note.3.*
+ +[0-9]+ +\.interp \.note.4 \.note.1 \.note.2 \.note.3.*
#...
+[0-9]+ +\.note\.4 \.note\.1 +
+[0-9]+ +\.note\.2 .note\.3 +
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index 2019275..1eef9f4 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -774,6 +774,9 @@ set build_tests {
{"Build libpr16496b.a"
"" "-fPIC"
{pr16496b.c} {} "libpr16496b.a"}
+ {"Build libpr16496b.so"
+ "-shared -Wl,--no-as-needed tmpdir/pr16496b.o tmpdir/libpr16496a.so" ""
+ {dummy.c} {{objdump {-R} pr16496b.od}} "libpr16496b.so"}
{"Build libpr16452a.so"
"-shared -Wl,-soname,libpr16452a.so,--version-script=pr16452.map" "-fPIC"
{pr16452a.c} {} "libpr16452a.so"}
@@ -794,15 +797,6 @@ set build_tests {
{pr18458b.c} {} "libpr18458b.so"}
}
-# MIPS PIC uses different way: .MIPS.stub
-if { ![istarget mips*-linux*] } {
- append build_tests {
- {"Build libpr16496b.so"
- "-shared -Wl,--no-as-needed tmpdir/pr16496b.o tmpdir/libpr16496a.so" ""
- {dummy.c} {{objdump {-R} pr16496b.od}} "libpr16496b.so"}
- }
-}
-
run_cc_link_tests [list \
[list \
"Build libpr2404a.so" \