[LLVMbugs] [Bug 22244] New: MCJIT doesn't make extern_weak globals null

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 15 15:14:29 PST 2015


            Bug ID: 22244
           Summary: MCJIT doesn't make extern_weak globals null
           Product: tools
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: lli
          Assignee: unassignedbugs at nondot.org
          Reporter: pete.cooper at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13692
  --> http://llvm.org/bugs/attachment.cgi?id=13692&action=edit
This test crashes with lli, and should even be able to be run when MCJIT stops

According to LangRef, extern_weak globals should resolve to null if they aren't

MCJIT isn't able to handle this right now as when it looks up the globals, it
does so by name and doesn't see the linkage type.

The error given is 

LLVM ERROR: Program used external function '_weak_global' which could not be

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/20150115/c7457c45/attachment.html>

More information about the llvm-bugs mailing list