[PATCH] D86208: [llvm-readelf] - Start recognizing 'PT_OPENBSD_*' segment types.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 20 14:44:09 PDT 2020


MaskRay added a comment.

> GNU readelf does not handle them properly, I've reported a bug to binutils: https://sourceware.org/bugzilla/show_bug.cgi?id=26405#c0



> PT_LOOS through PT_HIOS - Values in this inclusive range are reserved for operating system-specific semantics.

I think it is entirely fair for readelf not to decode them. PT_OPENBSD_BOOTDATA may be a legacy thing. PT_OPENBSD_RANDOMIZE and PT_OPENBSD_WXNEEDED have some references.  I think we choose to display the strings just because that makes code simpler.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86208/new/

https://reviews.llvm.org/D86208



More information about the llvm-commits mailing list