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: Ld : _start address ?


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


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