http://sourceware.org/bugzilla/show_bug.cgi?id=14915

--- Comment #3 from Michael Matz <matz at suse dot de> 2012-12-04 14:12:29 UTC 
---
(In reply to comment #2)
> 
> gcc -o libt2.so -shared -Wl,--copy-dt-needed-entries -L. -lt1 -v

/usr/lib64/gcc/x86_64-suse-linux/4.5/collect2 --build-id --eh-frame-hdr -m
elf_x86_64 -shared -o libt2.so
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/crti.o
/usr/lib64/gcc/x86_64-suse-linux/4.5/crtbeginS.o -L.
-L/usr/lib64/gcc/x86_64-suse-linux/4.5
-L/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/lib
-L/usr/lib64/gcc/x86_64-suse-linux/4.5/../../.. --copy-dt-needed-entries -lt1
-lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s
--no-as-needed /usr/lib64/gcc/x86_64-suse-linux/4.5/crtendS.o
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/crtn.o

So, the --copy-dt-needed-entries argument is at the right place, right before
-lt1.  During my debugging I of course used this cmdline (well, substed
collect2 with the right ld).  Changing various options like removing libs
or the --as-needed doesn't make a difference for the behaviour we expect.

-- 
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
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to