MIPS/LD/testsuite: Update `run_dump_test' cases for non-DSO targets
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.
This commit is contained in:
parent
6d9dabbbc6
commit
197b262f98
24
ld/ChangeLog
24
ld/ChangeLog
@ -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>
|
2018-04-27 Maciej W. Rozycki <macro@mips.com>
|
||||||
|
|
||||||
* testsuite/lib/ld-lib.exp (run_dump_test): Use `match_target'
|
* testsuite/lib/ld-lib.exp (run_dump_test): Use `match_target'
|
||||||
|
@ -3,4 +3,5 @@
|
|||||||
#as: -EB -n32 -march=from-abi
|
#as: -EB -n32 -march=from-abi
|
||||||
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
|
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
|
||||||
#objdump: -dr --prefix-addresses --show-raw-insn
|
#objdump: -dr --prefix-addresses --show-raw-insn
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
#dump: bal-jalx-pic-ignore-micromips.d
|
#dump: bal-jalx-pic-ignore-micromips.d
|
||||||
|
@ -3,4 +3,5 @@
|
|||||||
#as: -EB -64 -march=from-abi
|
#as: -EB -64 -march=from-abi
|
||||||
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
|
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
|
||||||
#objdump: -dr --prefix-addresses --show-raw-insn
|
#objdump: -dr --prefix-addresses --show-raw-insn
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
#dump: bal-jalx-pic-ignore-micromips.d
|
#dump: bal-jalx-pic-ignore-micromips.d
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#as: -EB -32
|
#as: -EB -32
|
||||||
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
|
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
|
||||||
#objdump: -dr --prefix-addresses --show-raw-insn
|
#objdump: -dr --prefix-addresses --show-raw-insn
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
|
|
||||||
.*: +file format .*mips.*
|
.*: +file format .*mips.*
|
||||||
|
|
||||||
|
@ -3,4 +3,5 @@
|
|||||||
#as: -EB -n32 -march=from-abi
|
#as: -EB -n32 -march=from-abi
|
||||||
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
|
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
|
||||||
#objdump: -dr --prefix-addresses --show-raw-insn
|
#objdump: -dr --prefix-addresses --show-raw-insn
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
#dump: bal-jalx-pic-ignore.d
|
#dump: bal-jalx-pic-ignore.d
|
||||||
|
@ -3,4 +3,5 @@
|
|||||||
#as: -EB -64 -march=from-abi
|
#as: -EB -64 -march=from-abi
|
||||||
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
|
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
|
||||||
#objdump: -dr --prefix-addresses --show-raw-insn
|
#objdump: -dr --prefix-addresses --show-raw-insn
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
#dump: bal-jalx-pic-ignore.d
|
#dump: bal-jalx-pic-ignore.d
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#as: -EB -32
|
#as: -EB -32
|
||||||
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
|
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
|
||||||
#objdump: -dr --prefix-addresses --show-raw-insn
|
#objdump: -dr --prefix-addresses --show-raw-insn
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
|
|
||||||
.*: +file format .*mips.*
|
.*: +file format .*mips.*
|
||||||
|
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
#source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
|
#source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
|
||||||
#as: -EB -n32 -march=from-abi
|
#as: -EB -n32 -march=from-abi
|
||||||
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
|
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
#error: \A[^\n]*: in function `bar':\n
|
#error: \A[^\n]*: in function `bar':\n
|
||||||
#error: \(\.text\+0x1014\): unsupported branch between ISA modes\Z
|
#error: \(\.text\+0x1014\): unsupported branch between ISA modes\Z
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
#source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
|
#source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
|
||||||
#as: -EB -64 -march=from-abi
|
#as: -EB -64 -march=from-abi
|
||||||
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
|
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
#error: \A[^\n]*: in function `bar':\n
|
#error: \A[^\n]*: in function `bar':\n
|
||||||
#error: \(\.text\+0x1014\): unsupported branch between ISA modes\Z
|
#error: \(\.text\+0x1014\): unsupported branch between ISA modes\Z
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
#source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
|
#source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
|
||||||
#as: -EB -32
|
#as: -EB -32
|
||||||
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
|
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
#error: \A[^\n]*: in function `bar':\n
|
#error: \A[^\n]*: in function `bar':\n
|
||||||
#error: \(\.text\+0x1014\): unsupported branch between ISA modes\Z
|
#error: \(\.text\+0x1014\): unsupported branch between ISA modes\Z
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
#source: ../../../gas/testsuite/gas/mips/branch-addend.s
|
#source: ../../../gas/testsuite/gas/mips/branch-addend.s
|
||||||
#as: -EB -n32 -march=from-abi
|
#as: -EB -n32 -march=from-abi
|
||||||
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
|
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
#error: \A[^\n]*: in function `bar':\n
|
#error: \A[^\n]*: in function `bar':\n
|
||||||
#error: \(\.text\+0x1014\): unsupported branch between ISA modes\Z
|
#error: \(\.text\+0x1014\): unsupported branch between ISA modes\Z
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
#source: ../../../gas/testsuite/gas/mips/branch-addend.s
|
#source: ../../../gas/testsuite/gas/mips/branch-addend.s
|
||||||
#as: -EB -64 -march=from-abi
|
#as: -EB -64 -march=from-abi
|
||||||
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
|
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
#error: \A[^\n]*: in function `bar':\n
|
#error: \A[^\n]*: in function `bar':\n
|
||||||
#error: \(\.text\+0x1014\): unsupported branch between ISA modes\Z
|
#error: \(\.text\+0x1014\): unsupported branch between ISA modes\Z
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
#source: ../../../gas/testsuite/gas/mips/branch-addend.s
|
#source: ../../../gas/testsuite/gas/mips/branch-addend.s
|
||||||
#as: -EB -32
|
#as: -EB -32
|
||||||
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
|
#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
#error: \A[^\n]*: in function `bar':\n
|
#error: \A[^\n]*: in function `bar':\n
|
||||||
#error: \(\.text\+0x1014\): unsupported branch between ISA modes\Z
|
#error: \(\.text\+0x1014\): unsupported branch between ISA modes\Z
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#source: hash1.s
|
#source: hash1.s
|
||||||
#ld: -shared --hash-style=sysv
|
#ld: -shared --hash-style=sysv
|
||||||
#objdump: -dr
|
#objdump: -dr
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
#pass
|
#pass
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#source: hash1.s
|
#source: hash1.s
|
||||||
#ld: -shared --hash-style=both
|
#ld: -shared --hash-style=both
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
#error: .gnu.hash is incompatible with the MIPS ABI
|
#error: .gnu.hash is incompatible with the MIPS ABI
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#source: hash1.s
|
#source: hash1.s
|
||||||
#ld: -shared --hash-style=gnu
|
#ld: -shared --hash-style=gnu
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
#error: .gnu.hash is incompatible with the MIPS ABI
|
#error: .gnu.hash is incompatible with the MIPS ABI
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#as: -march=from-abi -KPIC -n32 -EB
|
#as: -march=from-abi -KPIC -n32 -EB
|
||||||
#objdump: --prefix-addresses -d --show-raw-insn
|
#objdump: --prefix-addresses -d --show-raw-insn
|
||||||
#ld: -shared -melf32btsmipn32
|
#ld: -shared -melf32btsmipn32
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
|
|
||||||
.*: file format elf.*mips.*
|
.*: file format elf.*mips.*
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#as: -march=from-abi -KPIC -64 -EB
|
#as: -march=from-abi -KPIC -64 -EB
|
||||||
#objdump: --prefix-addresses -d --show-raw-insn
|
#objdump: --prefix-addresses -d --show-raw-insn
|
||||||
#ld: -shared -melf64btsmip
|
#ld: -shared -melf64btsmip
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
|
|
||||||
.*: file format elf.*mips.*
|
.*: file format elf.*mips.*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user