diff options
author | Mark Wielaard <mark@klomp.org> | 2018-11-11 23:50:41 +0100 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2018-11-13 13:40:00 +0100 |
commit | 7a3f6fe60b8519b5372f5a5521ccbac59411f33f (patch) | |
tree | 48f21c4114d440e49483699a2dda27198b2f76d4 /src/readelf.c | |
parent | cff53f1784c9a4344604bedf41b7d499b3eb30d5 (diff) |
Recognize NT_VERSION notes.
NT_VERSION notes are emitted by the gas .version directive.
They have an empty description and (ab)use the owner name to store the
version data string.
Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'src/readelf.c')
-rw-r--r-- | src/readelf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/readelf.c b/src/readelf.c index c6c3fb32..659e34fb 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -12201,6 +12201,7 @@ handle_notes_data (Ebl *ebl, const GElf_Ehdr *ehdr, ? ebl_core_note_type_name (ebl, nhdr.n_type, buf, sizeof (buf)) : ebl_object_note_type_name (ebl, name, nhdr.n_type, + nhdr.n_descsz, buf2, sizeof (buf2))); /* Filter out invalid entries. */ |