HomeFreeBSD

Add infrastructure required for Linux coredump support

Description

Add infrastructure required for Linux coredump support

This adds sv_elf_core_osabi, sv_elf_core_abi_vendor,
and sv_elf_core_prepare_notes fields to struct sysentvec,
and modifies imgact_elf.c to make use of them instead
of hardcoding FreeBSD-specific values. It also updates all
of the ABI definitions to preserve current behaviour.

This makes it possible to implement non-native ELF coredump
support without unnecessary code duplication. It will be used
for Linux coredumps.

Reviewed By: kib
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D30921

(cherry picked from commit 435754a59ee203c3369f47ff9103f269c81581b7)

Details

Provenance
traszAuthored on Jun 29 2021, 7:49 AM
jhbCommitted on May 12 2022, 10:12 PM
Reviewer
kib
Differential Revision
D30921: Add infrastructure required for Linux coredump support
Parents
rGf44a8039fe39: imgact_elf.c: style, remove unnecessary casts
Branches
Unknown
Tags
Unknown