Exporting symbols from static binary?
Andreas Schwab
schwab@LS5.informatik.uni-dortmund.de
Wed Mar 31 23:46:00 GMT 1999
Sam Lantinga <slouken@devolution.com> writes:
|> Linux, x86:
|>
|> We are trying to build a statically linked binary which still exports
|> symbols to shared objects it loads dynamically via dlopen().
You can't do that. Static binaries have no dynamic symbol table, as you
have already found out.
|> As a side note, if for some reason two versions of libc are linked, either
|> explicitly via -lc,/usr/lib/libc.a, or implicitly by the dependencies of
|> the shared libraries the binary is linked with, then the resulting binary
|> will crash with a segmentation fault.
Then don't do that. But if -lc causes two different versions of libc to
be linked in then your installation is broken somehow.
--
Andreas Schwab "And now for something
schwab@issan.cs.uni-dortmund.de completely different"
schwab@gnu.org
More information about the Gcc
mailing list