http://sourceware.org/bugzilla/show_bug.cgi?id=10238
--- Comment #19 from H.J. Lu <hjl.tools at gmail dot com> 2012-12-10 16:46:15
UTC ---
(In reply to comment #18)
> # Build libl3.so with no dependents
> echo 'l3() { ; }' > l3.c
> gcc -Xlinker --no-as-needed -Xlinker --copy-dt-needed-entries -Xlinker
> -rpath=. -shared -fPIC -o libl3.so l3.c
>
> # Build libl2.so that depends on libl3.so
> echo 'l2() { l3(); }' > l2.c
> gcc -Xlinker --no-as-needed -Xlinker --copy-dt-needed-entries -Xlinker
> -rpath=. -shared -fPIC -o libl2.so l2.c -L. -ll3
>
> # Build libl1.so that depends on libl2.so
> echo 'l1() { l2(); }' > l1.c
> gcc -Xlinker --no-as-needed -Xlinker --copy-dt-needed-entries -Xlinker
> -rpath=. -shared -fPIC -o libl1.so l1.c -L. -ll2
>
> # Build main source file which depends on l1 only (so indirectly on l2)
> echo 'main() { l1(); }' > top.c
> gcc top.c -L. -ll1
Please re-try this with bfd linker on trunk. I just fixed a
--copy-dt-needed-entries -shared bug:
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils