ELF note parser: provide more info on failure
(cherry picked from commit 29d4f8bfc642f0196c27eb469ea7eb326ff529d1)