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

Paolo Bonzini paolo.bonzini@lu.unisi.ch
Thu Sep 7 16:58:00 GMT 2006


John Love-Jensen wrote:
> 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

Except that the interp is now /lib/ld-linux.so.2 and that argc/argv 
passing seems not to work anymore.  But overall yes, that will give you 
what you want.

Paolo



More information about the Gcc-help mailing list