[llvm-bugs] [Bug 33707] New: lld incorrectly links shared library with a static indirect call

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 6 21:34:01 PDT 2017


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

            Bug ID: 33707
           Summary: lld incorrectly links shared library with a static
                    indirect call
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: orivej at gmx.fr
                CC: llvm-bugs at lists.llvm.org

lld from master [1] links `test.so` in this example [2] in a way that `main`
crashes because after `memsetv = memset` `memsetv` has incorrect address. This
is a regression since LLD 4.0.0.

[1] https://github.com/llvm-project/lld/commit/3ae143c
[2] https://gist.github.com/orivej/0c7c51a6bbf06ce55d8da7a99e2d8cff

-- 
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/20170707/6e8586e5/attachment.html>


More information about the llvm-bugs mailing list