Thread (1 message) 1 message, 1 author, 2001-03-07

Re: who loads argc in elf binary???????

From: David Edelsohn <hidden>
Date: 2001-03-07 19:15:06

	I believe that glibc (including the ld.so dynamic linker) extract
the arguments and place them into registers before calling main().

	For instance, glibc sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
defines a macro called

DL_FIND_ARG_COMPONENTS(cookie, argc, argv, envp, auxp)

which is used by glibc to extract argc/argv/envp from the auxilliary
argument block.

David

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help