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:
Dmitry Chagin 2011-03-26 09:25:35 +00:00
parent f95233b6f5
commit acface683e
2 changed files with 2 additions and 4 deletions

View File

@ -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"));

View File

@ -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);