MIPS/LD/testsuite: Update `run_dump_test' cases for non-DSO targets
authorMaciej W. Rozycki <macro@mips.com>
Fri, 27 Apr 2018 14:25:20 +0000 (15:25 +0100)
committerMaciej W. Rozycki <macro@mips.com>
Fri, 27 Apr 2018 14:25:20 +0000 (15:25 +0100)
Mark these `run_dump_test' cases across `ld-mips-elf/mips-elf.exp' that
are run unconditionally and require shared library support for exclusion
for targets that do not have such support, removing these failures:

FAIL: MIPS BAL/JALX in PIC mode
FAIL: microMIPS BAL/JALX in PIC mode
FAIL: MIPS BAL/JALX in PIC mode (ignore branch ISA)
FAIL: microMIPS BAL/JALX in PIC mode (ignore branch ISA)
FAIL: ld-mips-elf/hash1a
FAIL: ld-mips-elf/hash1b
FAIL: ld-mips-elf/hash1c

with `mipsel-ps2-elf' and `mips64el-ps2-elf' targets.  Tests that are
guarded with `linux_gnu' will have to be reviewed separately.

ld/
* testsuite/ld-mips-elf/bal-jalx-pic.d: Only run for
`check_shared_lib_support' targets.
* testsuite/ld-mips-elf/bal-jalx-pic-n32.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-n64.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-micromips.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips.d:
Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n32.d:
Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n64.d:
Likewise.
* testsuite/ld-mips-elf/hash1a.d: Likewise.
* testsuite/ld-mips-elf/hash1b.d: Likewise.
* testsuite/ld-mips-elf/hash1c.d: Likewise.
* testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
* testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.

18 files changed:
ld/ChangeLog
ld/testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n32.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n64.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-ignore.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-micromips.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-n32.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-n64.d
ld/testsuite/ld-mips-elf/bal-jalx-pic.d
ld/testsuite/ld-mips-elf/hash1a.d
ld/testsuite/ld-mips-elf/hash1b.d
ld/testsuite/ld-mips-elf/hash1c.d
ld/testsuite/ld-mips-elf/relax-jalr-n32-shared.d
ld/testsuite/ld-mips-elf/relax-jalr-n64-shared.d

index 21ec587..d11cd06 100644 (file)
@@ -1,5 +1,29 @@
 2018-04-27  Maciej W. Rozycki  <macro@mips.com>
 
+       * testsuite/ld-mips-elf/bal-jalx-pic.d: Only run for
+       `check_shared_lib_support' targets.
+       * testsuite/ld-mips-elf/bal-jalx-pic-n32.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-n64.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-micromips.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips.d:
+       Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n32.d:
+       Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n64.d:
+       Likewise.
+       * testsuite/ld-mips-elf/hash1a.d: Likewise.
+       * testsuite/ld-mips-elf/hash1b.d: Likewise.
+       * testsuite/ld-mips-elf/hash1c.d: Likewise.
+       * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
+       * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
+
+2018-04-27  Maciej W. Rozycki  <macro@mips.com>
+
        * testsuite/lib/ld-lib.exp (run_dump_test): Use `match_target'
        in place of `istarget' for matching with `target', `alltargets'
        and `notarget' options.
index 9a293c5..6ebc06b 100644 (file)
@@ -3,4 +3,5 @@
 #as: -EB -n32 -march=from-abi
 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
 #objdump: -dr --prefix-addresses --show-raw-insn
+#target: [check_shared_lib_support]
 #dump: bal-jalx-pic-ignore-micromips.d
index 2b78bb9..a3b42d1 100644 (file)
@@ -3,4 +3,5 @@
 #as: -EB -64 -march=from-abi
 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
 #objdump: -dr --prefix-addresses --show-raw-insn
+#target: [check_shared_lib_support]
 #dump: bal-jalx-pic-ignore-micromips.d
index 0b48b3a..06f7c3c 100644 (file)
@@ -3,6 +3,7 @@
 #as: -EB -32
 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
 #objdump: -dr --prefix-addresses --show-raw-insn
+#target: [check_shared_lib_support]
 
 .*: +file format .*mips.*
 
index c402ba8..6602a51 100644 (file)
@@ -3,4 +3,5 @@
 #as: -EB -n32 -march=from-abi
 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
 #objdump: -dr --prefix-addresses --show-raw-insn
+#target: [check_shared_lib_support]
 #dump: bal-jalx-pic-ignore.d
index e1bbb92..c6be693 100644 (file)
@@ -3,4 +3,5 @@
 #as: -EB -64 -march=from-abi
 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
 #objdump: -dr --prefix-addresses --show-raw-insn
+#target: [check_shared_lib_support]
 #dump: bal-jalx-pic-ignore.d
index 279b87a..203c483 100644 (file)
@@ -3,6 +3,7 @@
 #as: -EB -32
 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
 #objdump: -dr --prefix-addresses --show-raw-insn
+#target: [check_shared_lib_support]
 
 .*: +file format .*mips.*
 
index abfb2ab..bd45be5 100644 (file)
@@ -2,5 +2,6 @@
 #source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
 #as: -EB -n32 -march=from-abi
 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
+#target: [check_shared_lib_support]
 #error: \A[^\n]*: in function `bar':\n
 #error:   \(\.text\+0x1014\): unsupported branch between ISA modes\Z
index e73b5de..4817d0b 100644 (file)
@@ -2,5 +2,6 @@
 #source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
 #as: -EB -64 -march=from-abi
 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
+#target: [check_shared_lib_support]
 #error: \A[^\n]*: in function `bar':\n
 #error:   \(\.text\+0x1014\): unsupported branch between ISA modes\Z
index cadbda0..70b2ee7 100644 (file)
@@ -2,5 +2,6 @@
 #source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
 #as: -EB -32
 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
+#target: [check_shared_lib_support]
 #error: \A[^\n]*: in function `bar':\n
 #error:   \(\.text\+0x1014\): unsupported branch between ISA modes\Z
index e995683..215c330 100644 (file)
@@ -2,5 +2,6 @@
 #source: ../../../gas/testsuite/gas/mips/branch-addend.s
 #as: -EB -n32 -march=from-abi
 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
+#target: [check_shared_lib_support]
 #error: \A[^\n]*: in function `bar':\n
 #error:   \(\.text\+0x1014\): unsupported branch between ISA modes\Z
index a82a866..decd6ea 100644 (file)
@@ -2,5 +2,6 @@
 #source: ../../../gas/testsuite/gas/mips/branch-addend.s
 #as: -EB -64 -march=from-abi
 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
+#target: [check_shared_lib_support]
 #error: \A[^\n]*: in function `bar':\n
 #error:   \(\.text\+0x1014\): unsupported branch between ISA modes\Z
index 6967023..483608a 100644 (file)
@@ -2,5 +2,6 @@
 #source: ../../../gas/testsuite/gas/mips/branch-addend.s
 #as: -EB -32
 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
+#target: [check_shared_lib_support]
 #error: \A[^\n]*: in function `bar':\n
 #error:   \(\.text\+0x1014\): unsupported branch between ISA modes\Z
index f3adaa8..c189c93 100644 (file)
@@ -1,4 +1,5 @@
 #source: hash1.s
 #ld: -shared --hash-style=sysv
 #objdump: -dr
+#target: [check_shared_lib_support]
 #pass
index 5af9037..5cafede 100644 (file)
@@ -1,3 +1,4 @@
 #source: hash1.s
 #ld: -shared --hash-style=both
+#target: [check_shared_lib_support]
 #error: .gnu.hash is incompatible with the MIPS ABI
index 09bff3c..379620a 100644 (file)
@@ -1,3 +1,4 @@
 #source: hash1.s
 #ld: -shared --hash-style=gnu
+#target: [check_shared_lib_support]
 #error: .gnu.hash is incompatible with the MIPS ABI
index 2eb8152..597c809 100644 (file)
@@ -3,6 +3,7 @@
 #as: -march=from-abi -KPIC -n32 -EB
 #objdump: --prefix-addresses -d --show-raw-insn
 #ld: -shared -melf32btsmipn32
+#target: [check_shared_lib_support]
 
 .*:     file format elf.*mips.*
 
index fcb0b12..e46fba2 100644 (file)
@@ -3,6 +3,7 @@
 #as: -march=from-abi -KPIC -64 -EB
 #objdump: --prefix-addresses -d --show-raw-insn
 #ld: -shared -melf64btsmip
+#target: [check_shared_lib_support]
 
 .*:     file format elf.*mips.*