http://sourceware.org/bugzilla/show_bug.cgi?id=14915
Bug #: 14915
Summary: --copy-dt-needed-entries not working
Product: binutils
Version: 2.23
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
> gcc -o libt1.so -shared -lm
> gcc -o libt2.so -shared -Wl,--copy-dt-needed-entries -L. -lt1
libt1.so is as expected:
> readelf -d libt1.so
Dynamic section at offset 0xe48 contains 22 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000c (INIT) 0x480
...
but libt2.so does not have a NEEDED entry for libm.so.6:
> readelf -d libt2.so
Dynamic section at offset 0xe48 contains 22 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libt1.so]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000c (INIT) 0x480
...
(trying to come up with a testcase where --[no-]copy-dt-needed-entries matters)
Same behavior with ld 2.18 (and --[no-]add-needed) btw. Same behavior
if libt2.so is not a shared object.
--
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