From 2eb64a9f4b281b98dc6da895c793f35433a925c1 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 7 Dec 2012 05:26:39 +0000 Subject: [PATCH] * ld-elf/shared.exp (libneeded1a.so): Override any system supplied --as-needed or --add-needed flag. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-elf/shared.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 64632bc1f37..2138f2699cc 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-12-07 Alan Modra + + * ld-elf/shared.exp (libneeded1a.so): Override any system + supplied --as-needed or --add-needed flag. + 2012-12-05 H.J. Lu PR ld/14915 diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index eef264e1581..2feb73086c6 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" "" -- 2.30.2