]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/exec.c
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)
commit7e7ec6a934349ef6983f06f7ac0da09cc8a42983
treed6058da1f3716a7173362a28fd816d4c60fef790
parentc995ee28d29d6f256c3a8a6c4e66469554374f25
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