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

Dibyendu Majumdar via llvm-dev llvm-dev at lists.llvm.org
Mon Apr 13 14:34:51 PDT 2020


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


More information about the llvm-dev mailing list