FreeBSD/src e353233 (r354741)sys/amd64/amd64 elf_machdep.c, sys/arm/arm elf_machdep.c

Add a sv_copyout_auxargs() hook in sysentvec.

Change the FreeBSD ELF ABIs to use this new hook to copyout ELF auxv
instead of doing it in the sv_fixup hook.  In particular, this new
hook allows the stack space to be allocated at the same time the auxv
values are copied out to userland.  This allows us to avoid wasting
space for unused auxv entries as well as not having to recalculate
where the auxv vector is by walking back up over the argv and
environment vectors.

Reviewed by:    brooks, emaste
Tested on:      amd64 (amd64 and i386 binaries), i386, mips, mips64
Sponsored by:   DARPA
Differential Revision:  https://reviews.freebsd.org/D22355
DeltaFile
+14-10sys/kern/imgact_elf.c
+2-8sys/kern/kern_exec.c
+2-8sys/compat/freebsd32/freebsd32_misc.c
+2-0sys/powerpc/powerpc/elf64_machdep.c
+2-0sys/mips/mips/elf_machdep.c
+1-0sys/i386/i386/elf_machdep.c
+1-0sys/mips/mips/freebsd32_machdep.c
+1-0sys/powerpc/powerpc/elf32_machdep.c
+1-0sys/riscv/riscv/elf_machdep.c
+1-0sys/sparc64/sparc64/elf_machdep.c
+1-0sys/sys/imgact_elf.h
+1-0sys/amd64/amd64/elf_machdep.c
+1-0sys/sys/sysent.h
+1-0sys/arm/arm/elf_machdep.c
+1-0sys/arm64/arm64/elf32_machdep.c
+1-0sys/arm64/arm64/elf_machdep.c
+1-0sys/compat/ia32/ia32_sysvec.c
+34-2617 files

UnifiedSplitRaw