[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/2721] --as-needed vs. DT_NEEDED undef symbols checks
From: |
jakub at redhat dot com |
Subject: |
[Bug ld/2721] --as-needed vs. DT_NEEDED undef symbols checks |
Date: |
1 Jun 2006 13:40:32 -0000 |
------- 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.