This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Running SO files
- From: Daniel Jacobowitz <drow at false dot org>
- To: Rodrigo Dominguez <roddomi at hotmail dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 30 May 2008 18:03:30 -0400
- Subject: Re: Running SO files
- References: <BAY109-DAV8EACDD15DAF3301A270CBB9BE0@phx.gbl>
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