This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to make a file which is both shared library and executable


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]