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

Hayden Livingston halivingston at gmail.com
Tue Feb 17 21:05:21 PST 2015


I forgot add the error I'm getting:

LLVM ERROR: Tried to execute an unknown external function: MyFunction

On Tue, Feb 17, 2015 at 8:52 PM, Hayden Livingston <halivingston at gmail.com>
wrote:

> 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/ea6e82d5/attachment.html>


More information about the llvm-dev mailing list