Prior to this commit, note parsing was incomplete for ELF32 and
broken for ELF64. This commit fixes the following issues:
On ELF64, xwords were parsed instead of words, resulting in
incorrect name and description sizes
On both ELF32 and ELF64, only the first note in a notes section
or segment was being read. Notes sections and segments generally
contain more than one note.
On both ELF32 and ELF64, the note name and description lengths
should be 4-byte aligned. Since the notes format is not really
documented, I cannot cite a standard for this one, but 1 is
a discussion about it.
EDIT: This PR has grown and is now a lot bigger than it should be. Individual commits still make sense though.
Prior to this commit, note parsing was incomplete for ELF32 and broken for ELF64. This commit fixes the following issues:
EDIT: This PR has grown and is now a lot bigger than it should be. Individual commits still make sense though.