who loads argc in elf binary???????
A message that is not in the archive (sent off-list or not yet received): [email protected]
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/
Re: Changes to PPC Linux required for GCC 3.1
In reply to a message not in the archiveQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Daniel Jacobowitz writes:
Daniel> Has either of you tried to boot a kernel in which RELOC is a function? Daniel> If I'm following any of what's going on here, function symbols are Daniel> global. To call the function you would need to use RELOC.
PowerPC branches are relative.
David
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/