HomeFreeBSD

Export argc, argv, envc, envv, and ps_strings in auxargs.

Description

Export argc, argv, envc, envv, and ps_strings in auxargs.

This simplifies discovery of these values, potentially with reducing the
number of syscalls we need to make at runtime. Longer term, we wish to
convert the startup process to pass an auxargs pointer to _start() and
use that rather than walking off the end of envv. This is cleaner,
more C-friendly, and for systems with strong bounds (e.g. CHERI)
necessary.

Reviewed by: kib
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D24407

Details

Provenance
brooksAuthored on
Reviewer
kib
Differential Revision
D24407: Export argc, argv, envc, envv, and ps_strings in auxargs.
Parents
rS359987: Make ps_strings in struct image_params into a pointer.
Branches
Unknown
Tags
Unknown