[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Proposal] Load module symbols from main program
- From: Karel Tuma <kat@...>
- Date: Fri, 22 Apr 2016 10:55:57 +0200
Excerpts from Xavier Wang's message of 2016-04-22 08:02:20 +0200:
> I have made a Lua patch for this proposal[1].
>
>
> to demonstrate it, just compile a normal lua53.dll, and build lua.c
> with any other C modules (e.g. lpath.c[2]), and just:
>
This will not work unless you link the binary with -Wl,--export-dynamic
or the equivalent [1]. AFAIK POSIX does not support symbols introduced
via program binary, only whatever is opened via dlopen() is guaranteed
to populate runtime symbol table.
[1] http://gcc.gnu.org/wiki/Visibility