[TriLUG] executable and non-executable libraries

Owen Berry oberry at trilug.org
Tue May 15 16:21:39 EDT 2007


On Tue, May 15, 2007 at 03:56:09PM -0400, Owen Berry wrote:
> If I run 'readelf -a' (all ELF info) on /lib/ld-2.5.so and look for the
> entry point address in the symbol table, it points to a function called
> _start. However, if I look at /lib/libc-2.5.so I don't find a
> corresponding entry in the symbol table. Not sure if it *has* to be in
> the symbol table, or if it can just start executing at that address.

Replying to my own post, but I noticed that /lib/libc-2.5.so on that box
was stripped whereas /lib/ld-2.5.so wasn't. So I tried this on another
machine where libc isn't stripped and the entry point address pointed to
__libc_main in the symbol table.

Owen



More information about the TriLUG mailing list