[Bug ld/2721] --as-needed vs. DT_NEEDED undef symbols checks

2006-06-05 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2006-06-05 
13:19 ---
Fixed mainline with 
http://sources.redhat.com/ml/binutils-cvs/2006-06/msg00018.html

-- 


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


[Bug ld/2721] --as-needed vs. DT_NEEDED undef symbols checks

2006-06-01 Thread jakub at redhat dot com

--- 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


[Bug ld/2721] --as-needed vs. DT_NEEDED undef symbols checks

2006-06-01 Thread jakub at redhat dot com

--- Additional Comments From jakub at redhat dot com  2006-06-01 15:34 
---
http://sources.redhat.com/ml/binutils/2006-06/msg9.html

-- 


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