diff options
author | Mark Wielaard <mjw@redhat.com> | 2012-03-21 16:05:31 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2012-03-21 16:05:31 +0100 |
commit | 30bb714e7446d35d15cd53b3c794dd8ac08d0a29 (patch) | |
tree | d7efcf64872f67597b11e40fa32de6379a5e07fe | |
parent | 495501611820a9d5c462fda56045c146f7b922d7 (diff) |
readelf.c (print_gdb_index_section): Accept version 6.
No changes in the format. Version 6 contains symbols for inlined
functions, older versions didn't.
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/readelf.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ff19b484..62817567 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-03-21 Mark Wielaard <mjw@redhat.com> + + * readelf.c (print_gdb_index_section): Accept version 6. + 2012-01-31 Mark Wielaard <mjw@redhat.com> * readelf.c (attr_callback): Don't special case DW_FORM_sec_offset. diff --git a/src/readelf.c b/src/readelf.c index 88766889..f9f56aad 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -7118,8 +7118,9 @@ print_gdb_index_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr, printf (gettext (" Version: %" PRId32 "\n"), vers); // The only difference between version 4 and version 5 is the - // hash used for generating the table. - if (vers < 4 || vers > 5) + // hash used for generating the table. Version 6 contains symbols + // for inlined functions, older versions didn't. + if (vers < 4 || vers > 6) { printf (gettext (" unknown version, cannot parse section\n")); return; |