aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-12-07 05:26:39 +0000
committerAlan Modra <amodra@gmail.com>2012-12-07 05:26:39 +0000
commit2eb64a9f4b281b98dc6da895c793f35433a925c1 (patch)
tree9d9fff4dd7fae02b6344abb47940e5751376642c
parentdb399005e82cec1ab50246a7c276d6695f3072d4 (diff)
downloadgdb-2eb64a9f4b281b98dc6da895c793f35433a925c1.zip
gdb-2eb64a9f4b281b98dc6da895c793f35433a925c1.tar.gz
gdb-2eb64a9f4b281b98dc6da895c793f35433a925c1.tar.bz2
* ld-elf/shared.exp (libneeded1a.so): Override any system
supplied --as-needed or --add-needed flag.
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-elf/shared.exp2
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 64632bc..2138f26 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-07 Alan Modra <amodra@gmail.com>
+
+ * ld-elf/shared.exp (libneeded1a.so): Override any system
+ supplied --as-needed or --add-needed flag.
+
2012-12-05 H.J. Lu <hongjiu.lu@intel.com>
PR ld/14915
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index eef264e..2feb730 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -183,7 +183,7 @@ set build_tests {
"-shared" "-fPIC"
{needed1b.c} {} "libneeded1b.so"}
{"Build libneeded1a.so"
- "-shared -Ltmpdir -lneeded1b" "-fPIC"
+ "-shared -Wl,--add-needed,--no-as-needed -Ltmpdir -lneeded1b" "-fPIC"
{needed1a.c} {} "libneeded1a.so"}
{"Build libneeded1c.o"
"-r -nostdlib" ""