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]

Re: Running SO files


On Fri, May 30, 2008 at 05:57:10PM -0400, Rodrigo Dominguez wrote:
> 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.

They have to have an entry point (linker -e option).  GCC -fpie
creates executable shared libraries, for instance, though I don't
think you can use the output of -fpie as a shared library.

-- 
Daniel Jacobowitz
CodeSourcery


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