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 21ec587766069109e0e6398162b80225c1bf63ef..d11cd0608cf0fb922986b03bb56b94bacd203a8b 100644 (file)
@@ -1,3 +1,27 @@
+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'
index 9a293c58c11ee2fed69c1b5214a6b2354a6ac9a5..6ebc06b18e6a8d55925d020cd48fd97d3a9c03ac 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 2b78bb92af5701ba312bb0c0f3b15c627e6f26ae..a3b42d19ff1fe1227a3c6e40df354d897b52c7a4 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 0b48b3ada0bf8a0696ec5eb87e7ed0b582bc7fb0..06f7c3c6c061863c86b5f94d98ea42aa18a9f768 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 c402ba810b796ab2da57e6546a46bffecb1385c8..6602a515121ae0d40143bfa887982cd746741278 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 e1bbb927fa437f00a5e6147a7daac6a3989b6716..c6be6932befbdcb26b3d66fc536e621b5054dd00 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 279b87acbc3ee0b9da0e7ac1ca3ebeeddce69f60..203c48333a0b90bf9270c73f744dc2ce1c35d048 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 abfb2ab03c103d318452d9e96491c485cbff8f03..bd45be580f89f0ccd4de4dcd7d0f53e636954075 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 e73b5deb984e5e172bbd5ef99ff910e3b4a09dfa..4817d0b6a82e92747312a12edf4ebdbdcfd29395 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 cadbda08f6edbb2368c79f0607e9ce63f91c48f2..70b2ee72167b5bd5b84c417752e496f2bfe697b5 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 e9956831bbc0fd10564500b2b2d2c92a6900c820..215c3308bd3d209b74c6576079208d4a098320d0 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 a82a8666e2b846c4829b816be7dde34700d82cf9..decd6eafcc7f4e9d1a07ff2b2cb84c89b31f06f0 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 696702356d7847777f0c9100be6ccc320baba816..483608ad597cfe22774b46fd20f286038b004f76 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 f3adaa8d5e7bc63e698ed0f2c65d449a2e02bae8..c189c93acd0660eca8a0142e2d23511477eadb49 100644 (file)
@@ -1,4 +1,5 @@
 #source: hash1.s
 #ld: -shared --hash-style=sysv
 #objdump: -dr
+#target: [check_shared_lib_support]
 #pass
index 5af9037cfc37dbfd60c4609e66f931f2e624e4fe..5cafede5ebd2e6cf3b43a9a1d49e0a50c015f7bf 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 09bff3cad962dbd00ccaf4a06ded26b8cd496b96..379620af20b13f134fae4b2ef98cfe5b2a2c3999 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 2eb81522319233fe780b3dde71cd1869f58b5117..597c8091c868aa0738b043ee917c23ef36a29f3f 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 fcb0b126e316557b1e37a53f7c6c27f361064d0a..e46fba2b85c016dc4274cd3ea9e906faa7370c4b 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.*