HomeFreeBSD

Teach readelf about some OpenBSD ELF program headers

Description

Teach readelf about some OpenBSD ELF program headers

  • Add constants for OpenBSD wxneeded, bootdata and randomize to the FreeBSD elf_common.h file. This is the file that gets used by the elftoolchain library.
  • Update readelf and elfdump utilities to decode these program headers if they are encountered.

Note: FreeBSD has it's own version of elfdump(1), which will be updated
in a subsequent commit. I am adding it here anyway because this diff is
going to be submitted upstream.

Discussed with: emaste
Reviewed by: imp
MFC afer: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20548

M contrib/elftoolchain/elfdump/elfdump.c
M contrib/elftoolchain/readelf/readelf.c
M sys/sys/elf_common.h

Details

Provenance
csjpAuthored on
Reviewer
imp
Differential Revision
D20548: Teach readelf about some OpenBSD ELF program headers
Parents
rS348775: MFC r348476, r348630 (by alc):
Branches
Unknown
Tags
Unknown