supplied --as-needed or --add-needed flag.
+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
"-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" ""