Hello there, it’s been a long time since my last post 🙂
Since I’m on vacation, and kinda frustrated about my playbook experience, I decided to statisfy something that always tickled my fancy about shared libraries.
As you may know, under GNU/Linux is it possible to make shared libraries also executable: prominent examples are libc and Qt libraries, as shown in the screenshot below.
Those libraries, when executed from the command line, print useful information about the library version itself, the compiler used, processor features, author, copyright and so on .
But how they achieved that? Libraries don’t have an entry point .. or they do?
LD manual to the rescue
Of course the answer is yes, they do .. sort of. If you look at the options you can issue to ld, you will notice that there is the following option:
View original post 624 more words