------- Additional Comments From jakub at redhat dot com 2006-06-01 13:40 ------- Oops, actually, swap the order of libfoo.so and libbar.so on the last command line and then it is a regression from older binutils (e.g. 2.16.91.0.6 20060212).
echo 'int foo1;' | gcc -shared -fpic -o /usr/lib/libfoo.so -xc - -xnone \ -Wl,-soname,libfoo.so echo 'int foo1; int foo2;' | gcc -shared -fpic -o libfoo.so -xc - -xnone \ -Wl,-soname,libfoo.so echo 'int foo (void) { extern int foo2; return foo2; }' \ | gcc -shared -fpic -o libbar.so -xc - -xnone ./libfoo.so echo 'extern int foo (void); int main (void) { return foo (); }' \ | gcc -o test -xc - -xnone -Wl,--as-needed ./libbar.so ./libfoo.so \ -Wl,--no-as-needed -- http://sourceware.org/bugzilla/show_bug.cgi?id=2721 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils