How to make a file which is both shared library and executable
Mike Hearn
mike@plan99.net
Thu Sep 7 14:42:00 GMT 2006
On Thu, 07 Sep 2006 07:16:46 -0700, durgaprasad jammula wrote:
> Hi All,
>
> I want to make a shared library which should also be an executable. Can
> you please tell me how to do it.
It used to be kind of a pain to do this, these days you can probably
dlopen PIE binaries, or statically link in crt0 to your shared library ...
something like that. Otherwise you have to do a lot of work (invoking
syscalls directly and such).
thanks -mike
More information about the Gcc
mailing list