eliben / pyelftools

Parsing ELF and DWARF in Python
Other
1.99k stars 507 forks source link

Support for the GNU note with the AARCH64 CPU features #527

Closed sevaa closed 9 months ago

sevaa commented 9 months ago

Addresses #526.

Used this chance to refactor note describing - uint32 with a bitmap seems to be a common theme.

0xC0000000 is the first vendor defined property code - quite likely to be reused elsewhere. Added a machine type check to somewhat prevent false positives on other CPU vendors' binaries.

As usual, some overlooked constants here and there.