Closed GoogleCodeExporter closed 9 years ago
Will either of the following work instead?
from ctypes import *
cdll.LoadLibrary("libc.so.6")
-or-
import dl
dl.open("/lib/libc.so.6")
Both dl and ctypes (2.5+) are standard Python modules, please have a look.
Original comment by mdevan.f...@gmail.com
on 13 Nov 2008 at 4:25
Sorry, that will load them into memory, but the LLVM call is loading it as well
as
keeping track of the symbols for linking when necessary. I definitely need the
LLVM
call to be able to dynamically link within the execution engine. Using the
other
python modules loads the files, but llvm does not have any idea they are there.
Using either of the approaches you suggest, I get:
ERROR: Program used external function 'clock_gettime' which could not be resolved!
Abort
But using the code outlined above, it is not a problem.
Original comment by drjustin...@gmail.com
on 13 Nov 2008 at 3:19
Fixed in r46. New function llvm.core.load_library_permanently(). Please check.
Original comment by mdevan.f...@gmail.com
on 14 Nov 2008 at 6:44
Original issue reported on code.google.com by
drjustin...@gmail.com
on 12 Nov 2008 at 6:17