Export the correct AT_PLATFORM value.
Since signal trampolines are copied to the shared page do not need to leave place on the stack for it. Forgotten in the previous commit. MFC after: 1 Week
This commit is contained in:
parent
f95233b6f5
commit
acface683e
@ -249,8 +249,7 @@ elf_linux_fixup(register_t **stack_base, struct image_params *imgp)
|
||||
struct linux32_ps_strings *arginfo;
|
||||
|
||||
arginfo = (struct linux32_ps_strings *)LINUX32_PS_STRINGS;
|
||||
uplatform = (Elf32_Addr *)((caddr_t)arginfo - linux_szsigcode -
|
||||
linux_szplatform);
|
||||
uplatform = (Elf32_Addr *)((caddr_t)arginfo - linux_szplatform);
|
||||
|
||||
KASSERT(curthread->td_proc == imgp->proc,
|
||||
("unsafe elf_linux_fixup(), should be curproc"));
|
||||
|
@ -249,8 +249,7 @@ elf_linux_fixup(register_t **stack_base, struct image_params *imgp)
|
||||
|
||||
p = imgp->proc;
|
||||
arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings;
|
||||
uplatform = (Elf32_Addr *)((caddr_t)arginfo - linux_szsigcode -
|
||||
linux_szplatform);
|
||||
uplatform = (Elf32_Addr *)((caddr_t)arginfo - linux_szplatform);
|
||||
args = (Elf32_Auxargs *)imgp->auxargs;
|
||||
pos = *stack_base + (imgp->args->argc + imgp->args->envc + 2);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user