[LLVMbugs] [Bug 6580] New: lli JIT fails to resolve cbe mangled method names containing . and :
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 11 04:57:38 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6580
Summary: lli JIT fails to resolve cbe mangled method names
containing . and :
Product: new-bugs
Version: trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: xerxes at zafena.se
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4477)
--> (http://llvm.org/bugs/attachment.cgi?id=4477)
bugpoint.safe.ll
testcase:
llvm-as bugpoint.safe.ll
llvm-as bugpoint.test.ll
llc -march=c bugpoint.safe.bc -o temporary.c
gcc -xc temporary.c -O2 -o ./bugpoint.safe.bc.cbe.c.so -fPIC -shared
-fno-strict-aliasing
echo "running lli with jit calling functions in bugpoint.safe.bc.cbe.c.so"
lli -load ./bugpoint.safe.bc.cbe.c.so < bugpoint.test.bc
output:
running lli with jit calling functions in bugpoint.safe.bc.cbe.c.so
LLVM ERROR: Program used external function '.' which could not be resolved!
possitive test to make sure the llvm ir for the testcase are correct:
echo "running using only lli with jit"
cat bugpoint.safe.ll > combined.ll
cat bugpoint.test.ll >> combined.ll
llvm-as combined.ll
lli < combined.bc
expected output:
running using only lli with jit
Hello Works
Hello Works
Hello Works
Hello Works
--
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.
More information about the llvm-bugs
mailing list