aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/comm-data.exp
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@mips.com>2018-01-31 14:47:12 +0000
committerMaciej W. Rozycki <macro@mips.com>2018-01-31 14:47:12 +0000
commit8988502d75343349cee39575c0e4a0b33f7c80e0 (patch)
treea5ed05a601c9c3c79dc2e006912beda909693490 /ld/testsuite/ld-mips-elf/comm-data.exp
parentf3a9baf18db14707276a8c911d4a6409ad965926 (diff)
downloadbinutils-8988502d75343349cee39575c0e4a0b33f7c80e0.zip
binutils-8988502d75343349cee39575c0e4a0b33f7c80e0.tar.gz
binutils-8988502d75343349cee39575c0e4a0b33f7c80e0.tar.bz2
MIPS/LD/testsuite: Correct dynamic links with VR4100, VR4300 and VR5000
Correct LD test suite failures with VR4100, VR4300 and VR5000 bare metal MIPS/ELF targets which do not default to linking with shared libraries, which leads to link failures like: .../ld/ld-new: cannot find -lcomm-data FAIL: Common symbol override test or: .../ld/ld-new: attempted static link of dynamic object `tmpdir/pr14170.so' FAIL: PR ld/14170 removing: FAIL: Build pr22471b.so FAIL: Build pr22471 FAIL: Build pr22649-2b.so FAIL: Build pr22649-2d.so FAIL: Build pr22150 FAIL: PR ld/14170 FAIL: --gc-sections with __gxx_personality test failures. ld/ * testsuite/ld-elf/comm-data.exp: Pass `-call_shared' to links involving a shared library for `mips*vr4100*-*-elf*', `mips*vr4300*-*-elf*' and `mips*vr5000*-*-elf*' targets. * testsuite/ld-elf/provide-hidden.exp: Likewise. * testsuite/ld-elf/shared.exp: Likewise. * testsuite/ld-gc/gc.exp: Likewise. * testsuite/ld-mips-elf/comm-data.exp: Likewise.
Diffstat (limited to 'ld/testsuite/ld-mips-elf/comm-data.exp')
-rw-r--r--ld/testsuite/ld-mips-elf/comm-data.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/testsuite/ld-mips-elf/comm-data.exp b/ld/testsuite/ld-mips-elf/comm-data.exp
index 28ee3b8..109e8ce 100644
--- a/ld/testsuite/ld-mips-elf/comm-data.exp
+++ b/ld/testsuite/ld-mips-elf/comm-data.exp
@@ -136,7 +136,8 @@ proc mips_comm_data_test { abi flag emul reloc } {
run_ld_link_tests [list \
[list \
"$testname" \
- "$LDFLAGS $ZFLAG -T ../ld-elf/comm-data2.ld -Ltmpdir -lmips-$abi-$reloc-comm-data" "" \
+ "$LDFLAGS -call_shared $ZFLAG -T ../ld-elf/comm-data2.ld -Ltmpdir\
+ -lmips-$abi-$reloc-comm-data" "" \
"$AFLAGS -call_nonpic" \
{ ../ld-elf/comm-data2.s } \
{ \