Add support for note GNU_PROPERTY_X86_FEATURE_1_AND (#388)
authorMarco Bonelli <marco@mebeim.net>
Wed, 15 Dec 2021 19:25:34 +0000 (20:25 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Dec 2021 19:25:34 +0000 (11:25 -0800)
commit8f7a0becaface09435c4374947548b7851e3d1a2
tree9cdac9b807d86d6fbe145073b8b5253b9acdb50a
parent968929444c9b7ec29f39b9665066228183a4905a
Add support for note GNU_PROPERTY_X86_FEATURE_1_AND (#388)

- Implement support for GNU property note type
  GNU_PROPERTY_X86_FEATURE_1_AND (which is a feature bitmask) and its
  relative flags.
- Fix off-by-one in "Data size" column alignment for readelf.py note
  sections dump.

References:

- https://gitlab.com/x86-psABIs/x86-64-ABI
elftools/elf/descriptions.py
elftools/elf/enums.py
elftools/elf/structs.py
scripts/readelf.py
test/testfiles_for_readelf/note_gnu_property.S
test/testfiles_for_readelf/note_gnu_property.elf
test/testfiles_for_readelf/note_gnu_property.o.elf