MIPS/ld/testsuite: Limit export class call reloc tests to DSO targets
Only run MIPS/LD export class call relocation tests with shared library targets, avoiding: .../ld/ld-new: -shared not supported linker errors and removing: FAIL: MIPS export class call relocation test (o32) regressions with `mipsel-ps2-elf' and `mips64el-ps2-elf' targets. ld/ * testsuite/ld-mips-elf/mips-elf.exp: Limit export class call relocation tests to shared library targets.
This commit is contained in:
parent
5270eddc6e
commit
500c05ddbe
|
@ -1,3 +1,8 @@
|
||||||
|
2018-07-10 Maciej W. Rozycki <macro@mips.com>
|
||||||
|
|
||||||
|
* testsuite/ld-mips-elf/mips-elf.exp: Limit export class call
|
||||||
|
relocation tests to shared library targets.
|
||||||
|
|
||||||
2018-07-10 Alan Modra <amodra@gmail.com>
|
2018-07-10 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* testsuite/lib/ld-lib.exp (check_gc_sections_available): Return 0
|
* testsuite/lib/ld-lib.exp (check_gc_sections_available): Return 0
|
||||||
|
|
|
@ -1050,6 +1050,7 @@ run_dump_test "mips16-and-micromips"
|
||||||
|
|
||||||
# Export class call relocation tests.
|
# Export class call relocation tests.
|
||||||
set abis [concat o32 [expr {$has_newabi ? "n32 n64" : ""}]]
|
set abis [concat o32 [expr {$has_newabi ? "n32 n64" : ""}]]
|
||||||
|
if [check_shared_lib_support] {
|
||||||
foreach { abi } $abis {
|
foreach { abi } $abis {
|
||||||
set loadaddr [string map \
|
set loadaddr [string map \
|
||||||
{o32 0x12340000 n32 0x12340000 n64 0x123456789abc0000} $abi]
|
{o32 0x12340000 n32 0x12340000 n64 0x123456789abc0000} $abi]
|
||||||
|
@ -1060,7 +1061,9 @@ foreach { abi } $abis {
|
||||||
run_ld_link_tests [list \
|
run_ld_link_tests [list \
|
||||||
[list \
|
[list \
|
||||||
"MIPS export class call relocation test ($abi)" \
|
"MIPS export class call relocation test ($abi)" \
|
||||||
"$abi_ldflags($abi) -shared -Ttext $loadaddr -T export-class-call16.ld" "" \
|
"$abi_ldflags($abi) -shared -Ttext $loadaddr\
|
||||||
|
-T export-class-call16.ld" \
|
||||||
|
"" \
|
||||||
"$abi_asflags($abi) -mips3 -KPIC" \
|
"$abi_asflags($abi) -mips3 -KPIC" \
|
||||||
[list export-class-call16-${abi}.s export-class-call16-def.s] \
|
[list export-class-call16-${abi}.s export-class-call16-def.s] \
|
||||||
[list \
|
[list \
|
||||||
|
@ -1068,6 +1071,7 @@ foreach { abi } $abis {
|
||||||
"readelf -A export-class-call16-${abi}.gd"] \
|
"readelf -A export-class-call16-${abi}.gd"] \
|
||||||
"export-class-call16-${abi}.so"]]
|
"export-class-call16-${abi}.so"]]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Magic __ehdr_start symbol tests.
|
# Magic __ehdr_start symbol tests.
|
||||||
set abis [concat o32 [expr {$has_newabi ? "n32 n64" : ""}]]
|
set abis [concat o32 [expr {$has_newabi ? "n32 n64" : ""}]]
|
||||||
|
|
Loading…
Reference in New Issue