]> git.baikalelectronics.ru Git - kernel.git/commit
elf_fdpic_transfer_args_to_stack(): make it generic
authorNicolas Pitre <nicolas.pitre@linaro.org>
Sun, 24 Jul 2016 15:30:18 +0000 (11:30 -0400)
committerGreg Ungerer <gerg@linux-m68k.org>
Mon, 25 Jul 2016 06:51:49 +0000 (16:51 +1000)
commitda1f385c971733c805a5209dd63e706cf83c249e
treed6058da1f3716a7173362a28fd816d4c60fef790
parent828db6333ce8ffd81d4bdf4a23c313b7b2a2c0a5
elf_fdpic_transfer_args_to_stack(): make it generic

This copying of arguments and environment is common to both NOMMU
binary formats we support. Let's make the elf_fdpic version available
to the flat format as well.

While at it, improve the code a bit not to copy below the actual
data area.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Greg Ungerer <gerg@linux-m68k.org>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
fs/binfmt_elf_fdpic.c
fs/exec.c
include/linux/binfmts.h