http://llvm.org/bugs/show_bug.cgi?id=2606
Summary: global variables declared in module A but defined in
module B are not resolved by the JIT
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Generic Execution Engine Support
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
Created an attachment (id=1868)
--> (http://llvm.org/bugs/attachment.cgi?id=1868)
modified HowToUseJIT.cpp which reproduces the problem
If you declare and use a global variable in module A and define it in module B
the execution engine will not resolve the symbol in module A.
The attached modified version of HowToUseJIT.cpp shows this problem. You can
manually work around this limitation by explicitly calling addGlobalMapping on
the declaration using the same pointer that's mapped to the definition.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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