How to make a file which is both shared library and executable
Thu Sep 7 14:40:00 GMT 2006
Please do not cross-post to both gcc and gcc-help lists.
Here is an example to do what you want:
More information about the Gcc-help