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

2006-09-07 Thread Mike Hearn
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

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

2006-09-07 Thread John Love-Jensen
Hi Durga, Please do not cross-post to both gcc and gcc-help lists. Here is an example to do what you want: http://gcc.gnu.org/ml/gcc-help/2003-07/msg00232.html HTH, --Eljay

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

2006-09-07 Thread durgaprasad jammula
Hi All, I want to make a shared library which should also be an executable. Can you please tell me how to do it. For example, in linux, consider /lib/libc.so.6. We can execute that as a command and we can use that also as a shared library. Even I want to make my libraries like that.