Page MenuHomeFreeBSD

Add infrastructure required for Linux coredump support
ClosedPublic

Authored by trasz on Jun 28 2021, 10:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 4:07 AM
Unknown Object (File)
Wed, Oct 23, 6:26 PM
Unknown Object (File)
Oct 2 2024, 6:12 PM
Unknown Object (File)
Oct 1 2024, 11:33 AM
Unknown Object (File)
Sep 30 2024, 9:27 PM
Unknown Object (File)
Sep 30 2024, 7:21 PM
Unknown Object (File)
Sep 18 2024, 7:24 PM
Unknown Object (File)
Sep 18 2024, 6:49 PM

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Note that this is essentialy a part of https://reviews.freebsd.org/D30019, with Linux-specific bits changed back to FreeBSD-specific ones to preserve old behaviour, and also to make them build.

kib added inline comments.
sys/sys/imgact_elf.h
106

I suggest to rename this type, it is too generic for elf-specific usage.

This revision is now accepted and ready to land.Jun 28 2021, 11:02 AM