[LLVMdev] 2.6 JIT using wrong address for external functions
Howell, Nathan
nhowell at ebay.com
Mon Dec 7 14:52:36 PST 2009
Enabling the lazy JIT worked for now... since my functions are always
fully inlined. I'll upgrade to ToT next time I'm feeling adventurous :-)
Thanks Jeffrey.
-----Original Message-----
From: Jeffrey Yasskin [mailto:jyasskin at google.com]
Sent: Monday, December 07, 2009 11:32 AM
To: Howell, Nathan
Cc: LLVM Developers Mailing List
Subject: Re: [LLVMdev] 2.6 JIT using wrong address for external
functions
I had that problem too: http://llvm.org/bugs/show_bug.cgi?id=5116. To
work around the problem, you can:
* Switch to the thread-unsafe lazy jit.
* Allocate your JIT code within 2GB of your text segment.
* Find a way to look up the external function with dlsym or maybe the
ExecutionEngine's LazyFunctionCreator instead of addGlobalMapping.
* Upgrade to the top of the svn tree.
More information about the llvm-dev
mailing list