mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Update.
2000-11-15 Jakub Jelinek <jakub@redhat.com> * dlfcn/default.c (main): Add test for dladdr of main returning argv[0] in dli_fname field. 2000-11-15 Jakub Jelinek <jakub@redhat.com> * Makeconfig (run-program-prefix): Move test-static test into the variable. * sysdeps/alpha/dl-machine.h (RTLD_START): Update _dl_argv. * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise, schedule instructions. * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise, schedule instructions, fix a bug in copying auxiliary data. * manual/startup.texi (Program Arguments): Fix type of main's envp parameter. Reported by Ral Nez de Arenas Coronado <dervishd@linuxfreak.com>.
This commit is contained in:
@ -314,10 +314,14 @@ $fixup_stack:
|
||||
involves copying everything down, since the stack pointer must
|
||||
always be 16-byte aligned. */
|
||||
ldq $2, 0($sp)
|
||||
ldq $5, _dl_argv
|
||||
subq $31, $1, $6
|
||||
subq $2, $1, $2
|
||||
s8addq $6, $5, $5
|
||||
mov $sp, $4
|
||||
s8addq $1, $sp, $3
|
||||
stq $2, 0($sp)
|
||||
stq $5, _dl_argv
|
||||
/* Copy down argv. */
|
||||
0: ldq $5, 8($3)
|
||||
addq $4, 8, $4
|
||||
|
Reference in New Issue
Block a user