Page MenuHomeFreeBSD

Teach readelf about some OpenBSD ELF program headers

Authored by csjp on Jun 7 2019, 2:44 AM.


  • 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, which will be updated in
a subsequent commit. I am adding it here anyway because this diff is
going to be submitted upstream.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

csjp created this revision.Jun 7 2019, 2:44 AM
csjp updated this revision to Diff 58347.Jun 7 2019, 2:50 AM
  • Fix comment
imp accepted this revision.Jun 7 2019, 3:49 AM
This revision is now accepted and ready to land.Jun 7 2019, 3:49 AM
This revision was automatically updated to reflect the committed changes.