Page MenuHomeFreeBSD

Add infrastructure required for Linux coredump support
ClosedPublic

Authored by trasz on Jun 28 2021, 10:02 AM.
Tags
None
Referenced Files
F173475262: D30921.diff
Sat, Sep 26, 5:20 AM
F173453473: D30921.id91431.diff
Sat, Sep 26, 1:40 AM
Unknown Object (File)
Sun, Sep 20, 2:59 AM
Unknown Object (File)
Sun, Sep 20, 2:55 AM
Unknown Object (File)
Sun, Sep 20, 2:29 AM
Unknown Object (File)
Sat, Sep 19, 2:01 AM
Unknown Object (File)
Fri, Sep 11, 7:50 AM
Unknown Object (File)
Thu, Sep 10, 9:48 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40140
Build 37029: arc lint + arc unit

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