[llvm-bugs] [Bug 32376] New: dyld: lazy symbol binding failed: bad lazy bind info

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 22 09:34:06 PDT 2017


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

            Bug ID: 32376
           Summary: dyld: lazy symbol binding failed: bad lazy bind info
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MachO
          Assignee: unassignedbugs at nondot.org
          Reporter: superjoe30 at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18148
  --> https://bugs.llvm.org/attachment.cgi?id=18148&action=edit
tmp_exe.ll

When linking the attached LLVM IR file with LLD, linking succeeds but running
the program gives this error:

$ clang -o tmp_exe.o -c tmp_exe.ll
$ ~/local/bin/lld -flavor darwin -demangle -dynamic -arch x86_64
-macosx_version_min 10.10.0 -pie -o ./tmp_exe ./tmp_exe.o -lSystem
$ ./tmp_exe

dyld: lazy symbol binding failed: bad lazy bind info
dyld: bad lazy bind info
Abort trap: 6

When linking with the system linker, the program runs fine:

$ ld -flavor darwin -demangle -dynamic -arch x86_64 -macosx_version_min 10.10.0
-pie -o ./tmp_exe ./tmp_exe.o -lSystem
$ ./tmp_exe

<expected program output>

-- 
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/20170322/d781cb34/attachment.html>


More information about the llvm-bugs mailing list