how to make shared library an executable
<p>I was searching for asked question. i saw this link <a href="https://hev.cc/2512.html" rel="nofollow">https://hev.cc/2512.html</a> which is doing exactly the same thing which I want. But there is no explanation of whats going on. I am also confused whether shared library with out main() can be made executable if yes how? I can guess i have to give global main() but know no details. Any further easy reference and guidance is much appreciated  </p>

<p>I am working on x86-64 64 bit Ubuntu with kernel 3.13</p>