* ld-elf/shared.exp (libneeded1a.so): Override any system
authorAlan Modra <amodra@gmail.com>
Fri, 7 Dec 2012 05:26:39 +0000 (05:26 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 7 Dec 2012 05:26:39 +0000 (05:26 +0000)
supplied --as-needed or --add-needed flag.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/shared.exp

index 64632bc1f37666a43f1419cb23e20a1254bc7e57..2138f2699cc7675186ddb3e84f3694956eef6963 100644 (file)
@@ -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
index eef264e1581b1d86d91b2a4d6cae509e6c1f64a3..2feb73086c61d34e01b35689cb52c819ec6c7870 100644 (file)
@@ -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" ""