Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Initial process start

On Sat, Mar 07, 2020 at 11:19:47AM +0100, Göran Weinholt wrote:
> Hello,
> I'm porting a compiler to NetBSD/amd64 and would like to know about the
> initial process state. Using gdb, I've surmised that rbx points to argv
> and envp. The process also gets a stack and I guess auxv is somewhere in
> there. I also see that rax, rcx, rdx, rsi, rdi, and rbp are set to zero.

Check the ELF ABI for x86_64, AFAICT we conform to it.
Section 3.4.1 describes the initial stack and register state.


Home | Main Index | Thread Index | Old Index