aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-15 23:34:30 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-15 23:34:30 +0000
commite6961d10d80b83fe946759acfa722cdc2e425bc4 (patch)
treebaf9575b32e39ff0b514695c161f74e2cd4f697f /ld/testsuite
parentfbf5d25e086c877da5956088ce584b1bb78dfb42 (diff)
downloadgdb-e6961d10d80b83fe946759acfa722cdc2e425bc4.zip
gdb-e6961d10d80b83fe946759acfa722cdc2e425bc4.tar.gz
gdb-e6961d10d80b83fe946759acfa722cdc2e425bc4.tar.bz2
ld: vers19 test: add -rpath-link
Using -Wl,-rpath,. isn't sufficient for cross-linkers to locate the necessary libraries. So throw in -Wl,-rpath-link,. to make it work. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog4
-rw-r--r--ld/testsuite/ld-elfvers/vers.exp2
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 1e145cd..dafac0a 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2011-03-15 Mike Frysinger <vapier@gentoo.org>
+
+ * ld-elfvers/vers.exp (vers19): Add -Wl,-rpath-link,. to linker flags.
+
2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
* ld-arm/ifunc-1.s, ld-arm/ifunc-1.dd, ld-arm/ifunc-1.gd,
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp
index d43c12e..d1c2228 100644
--- a/ld/testsuite/ld-elfvers/vers.exp
+++ b/ld/testsuite/ld-elfvers/vers.exp
@@ -893,7 +893,7 @@ build_exec "vers16" vers16.c vers16 "" vers16a.so "" vers16.dsym ""
# Test a weak versioned symbol.
build_vers_lib_pic "vers17" vers17.c vers17 "" vers17.map vers17.ver vers17.dsym ""
build_vers_lib_pic "vers18" vers18.c vers18 vers17.so vers18.map vers18.ver vers18.dsym vers18.sym
-build_exec "vers19" vers19.c vers19 "-Wl,-rpath,." vers18.so vers19.ver vers19.dsym ""
+build_exec "vers19" vers19.c vers19 "-Wl,-rpath,. -Wl,-rpath-link,." vers18.so vers19.ver vers19.dsym ""
build_vers_lib_no_pic "vers20a" vers20.c vers20a "" vers20.map vers20a.ver vers20.dsym ""
exec cp $tmpdir/vers20a.so $tmpdir/vers20b.so