This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Running SO files


Hi,

I have noticed that some shared object (.so) files can be executed. For
example, I can type:

$ /lib/libc.so.6

which prints a message with the version of GNU C library and other
information. How does this work? How is it possible to execute a shared
object file? Does it have a main/start function? How can I create such a
file (one that can be executed)? I have also noticed that this is not true
for every SO file. I would appreciate any information on how this works.

Thank you,

Rodrigo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]