[llvm-dev] LLVM 10 ORC2 issue with symbol resolution

Lang Hames via llvm-dev llvm-dev at lists.llvm.org
Mon Apr 13 15:24:48 PDT 2020


Hi Dibyendu,

Thanks for the help.


No worries! Glad you were able to get it working. :)

Regards,
Lang.

On Mon, Apr 13, 2020 at 2:35 PM Dibyendu Majumdar <mobile at majumdar.org.uk>
wrote:

> Hi Lang,
>
> On Mon, 13 Apr 2020 at 22:00, Lang Hames <lhames at gmail.com> wrote:
> >> I am not sure the --export-dynamic applies as I am explicitly
> >> registering my symbols.
> >> llvm::orc::MangleAndInterner mangle(*ES, *this->DL);
> >> llvm::orc::SymbolMap Symbols;
> >> for (int i = 0; global_syms[i].name != nullptr; i++) {
> >>   Symbols.insert({mangle(global_syms[i].name),
> >
> >
> > Ahh. You're right: If you are managing registration yourself then
> process symbol visibility should not be an issue.
> >
> > In this case the first thing that I would do to diagnose the problem is
> dump the content of your Symbols map and ensure that there really is an
> entry in there for the symbols that generated the missing-symbols error
> (luaV_tointeger_ and luaG_runerror).
> >
> >> llvm::JITSymbolFlags::FlagNames::Absolute
> >
>
> Looks like you are right - I wasn't registering all the functions I
> thought I was. So it is a user error.
>
> Thanks for the help.
>
> Regards
> Dibyendu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200413/d58688cc/attachment.html>


More information about the llvm-dev mailing list