bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/14915] New: --copy-dt-needed-entries not working


From: rguenth at gcc dot gnu.org
Subject: [Bug ld/14915] New: --copy-dt-needed-entries not working
Date: Tue, 04 Dec 2012 13:24:27 +0000

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: address@hidden
        ReportedBy: address@hidden
    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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]