[Date Prev][Date Next][Thread Prev][Thread Next]
- 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.
> to demonstrate it, just compile a normal lua53.dll, and build lua.c
> with any other C modules (e.g. lpath.c), and just:
This will not work unless you link the binary with -Wl,--export-dynamic
or the equivalent . AFAIK POSIX does not support symbols introduced
via program binary, only whatever is opened via dlopen() is guaranteed
to populate runtime symbol table.