[llvm-bugs] [Bug 48325] New: A shared library linked by lld crashes at loading

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Nov 28 14:49:07 PST 2020


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

            Bug ID: 48325
           Summary: A shared library linked by lld crashes at loading
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MachO
          Assignee: unassignedbugs at nondot.org
          Reporter: dpldobrev at protonmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 24218
  --> https://bugs.llvm.org/attachment.cgi?id=24218&action=edit
The corrupted binary and its source and object code

I have attached a shared library and its object file linked by LLD. It was
produced with the following options:

-flavor darwinnew -lc++ -lSystem -dylib -sdk_version 10.12.0

Its source code is attached too. It's been compiled by Clang revision
0c8f9b8099fd0500cd885bc699924e20371014ff (https://github.com/llvm/llvm-project)
with:

-cc1 -O3

lld has been built from the same revision.

The archive also contains working versions of the code, the object file and the
library. The only differences are two implicit constructors and one implicit
destructor all made explicit.

The problem might not be in the linker but rather in the compiler - I'm not
sure. In case I've been wrong in my guess it's lld, please reassign to the
respective category.

-- 
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/20201128/144481aa/attachment.html>


More information about the llvm-bugs mailing list