http://llvm.org/bugs/show_bug.cgi?id=22244

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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
crashing

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

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
resolved!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to