HomeFreeBSD

Add a sv_copyout_auxargs() hook in sysentvec.

Description

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

Details

Provenance
jhbAuthored on
Reviewer
brooks
Differential Revision
D22355: Add a sv_copyout_auxargs() hook in sysentvec.
Parents
rS354740: Fix build race in bsd.files.mk
Branches
Unknown
Tags
Unknown