Keep raw note descriptors in ELF note sections as raw bytes (#372)
authorMarco Bonelli <mb5.marcob@gmail.com>
Fri, 17 Sep 2021 20:37:03 +0000 (22:37 +0200)
committerGitHub <noreply@github.com>
Fri, 17 Sep 2021 20:37:03 +0000 (13:37 -0700)
commitcc47f5fb6dbe16aee110faa6270d9ef2fa7a290f
tree80c089309b41f55d427e3ac3a93ea073781abca4
parent9db67b19b237f0d75f119633b3f23f4b67a60b3d
Keep raw note descriptors in ELF note sections as raw bytes (#372)

* ELF notes: keep raw note descriptors as bytes

* py3compat: add bytes2hex function

* elf/descriptions: use bytes2hex where needed

* ELF notes: convert to string only for known types
elftools/common/py3compat.py
elftools/elf/descriptions.py
elftools/elf/notes.py
examples/elf_notes.py