Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to make a executable dynamic shared object?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dongfangxunlei
n00b
n00b


Joined: 30 Jan 2013
Posts: 23

PostPosted: Tue Feb 25, 2014 12:49 pm    Post subject: How to make a executable dynamic shared object? Reply with quote

libc.so.6,which is part of the glibc,can be executed directly.Why?And how to make such a dynamic object?
Thanks. :P
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2534
Location: In the city of the dreaming spires

PostPosted: Fri Mar 07, 2014 2:12 am    Post subject: Reply with quote

As to why I have no idea, maybe it can be useful for documentation purposes (after all libc.so spits out a text blurb when executed). Just add a main function to the source and use gcc's "-pie" option when building the shared object.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum