Ld : _start address ?

Mike Frysinger vapier@gentoo.org
Thu Dec 29 08:04:00 GMT 2005


On Thursday 29 December 2005 02:50, Sandeep Kumar wrote:
> Can somebody please tell me where does the loader takes the program
> entry point address from. Its not e_entry of the elf header coz even
> after overwriting it with some other valid address , the flow of
> control doesn't changes.

your problem is that you're trying to hack too late ... the kernel parses the 
elf e_entry value, sticks it in the array of elf auxiliary vectors on the 
stack (AT_ENTRY), and then transfers control to userspace ... the dynamic 
loader then pulls the entry value off of the stack
-mike



More information about the Binutils mailing list