]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Teach readelf about some OpenBSD ELF program headers
authorcsjp <csjp@FreeBSD.org>
Fri, 7 Jun 2019 14:51:55 +0000 (14:51 +0000)
committercsjp <csjp@FreeBSD.org>
Fri, 7 Jun 2019 14:51:55 +0000 (14:51 +0000)
commit1cb7944721e65b05cfa8b13ede794e3ed98f47b0
tree77ac3cdfca3fc85d63a13e954921982dd157666d
parent8ebeb68c968b3853a76118b32523d3d7f68896de
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
contrib/elftoolchain/elfdump/elfdump.c
contrib/elftoolchain/readelf/readelf.c
sys/sys/elf_common.h