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 Apr 15 2020, 8:23 PM
Parents
rG397df744f90e: Make ps_strings in struct image_params into a pointer.
Branches
Unknown
Tags
Unknown

Event Timeline