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: unassignedb...@nondot.org
          Reporter: superjo...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to