[LLVMdev] Calling into non-linked function via a pointer

Hayden Livingston halivingston at gmail.com
Tue Feb 17 20:52:41 PST 2015


I'm having a problem of being unable to call into an arbitrary function
that is loaded into memory whose pointer address is known to me but was not
linked into LLVM.

I have added the function and called LLVMAddGlobalMapping with the pointer,
and the program segfaults.

I was wondering if it is a supported scenario that LLVM can generate a call
into an arbitrary function that is not linked.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150217/e9e5fb48/attachment.html>


More information about the llvm-dev mailing list