This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: First line of ld-linux.so that is called
e-entry is relative code. I want to know where this is re-positioned
after GDB loads the program image into memory.
this brings an interesting topic, how does ldd know the the position
of ld-linus.so? cause ld-linux is loaded by kernel. I guess ldd is
just bragging..
On 2/15/07, Patrick Zou <patrick.zou@gmail.com> wrote:
the e_entry is a relative code, ld is loaded at different position. how to tell where it will be re-positioned from GDB?
On 2/14/07, Mike Frysinger <vapier@gentoo.org> wrote:
> On Wednesday 14 February 2007, Patrick Zou wrote:
> > looks like it is _dl_start from rtld.c. How do I confirm this?
>
> ldso is set as the interp so it is executed first ... as for ldso itself, look
> at the e_entry field in the elf header
> -mike
>
>