[llvm-bugs] [Bug 32572] New: LLD strips library path in DT_NEEDED

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 7 14:59:05 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32572

            Bug ID: 32572
           Summary: LLD strips library path in DT_NEEDED
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: eugeni.stepanov at gmail.com
                CC: llvm-bugs at lists.llvm.org

When shared libraries are specified on the command line with full path and
without -l, LLD fails to put the entire path in the DT_NEEDED entry.

clang++ -fuse-ld=$ld 1.o /path/to/library.so
readelf -d a.out | grep NEEDED

for $ld in (bfd, gold), the result is
0x0000000000000001 (NEEDED) Shared library: [/path/to/library.so]

for $ld in (lld), the result is
0x0000000000000001 (NEEDED) Shared library: [library.so]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170407/7950d0c0/attachment.html>


More information about the llvm-bugs mailing list