[LLVMdev] jit with external functions

Ram Bhamidipaty rambham at gmail.com
Sat Dec 9 12:30:17 PST 2006

On 12/9/06, Chris Lattner <sabre at nondot.org> wrote:
> On Sat, 9 Dec 2006, Ram Bhamidipaty wrote:
> > Will it also handle symbols that are in shared libraries loaded into
> > the process?
> I'm not sure, but I thought so.
> > I am creating a python module that has the llvm functionality. This
> > module is loaded
> > into the process as a shared library. I want to generate llvm assembler that has
> > calls to functions in this shared library.
> >
> > I just tried an experiment and I got this back:
> >
> > ERROR: Program used external function 'rtcg_callback' which could not
> > be resolved!
> > Aborted
> Guess not :).

Thanks for the info. I believe the problem is in how python is loading
its shared
libraries. I think if the libraries were loaded with RTLD_GLOBAL then the
symbols in the shared library would be available to other libraries. For now its
enough that I can register the symbols I need.

Thank you.

More information about the llvm-dev mailing list