From: Mark Wielaard Date: Wed, 21 Mar 2012 15:05:31 +0000 (+0100) Subject: readelf.c (print_gdb_index_section): Accept version 6. X-Git-Tag: elfutils-0.154~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30bb714e7446d35d15cd53b3c794dd8ac08d0a29;p=thirdparty%2Felfutils.git 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. --- diff --git a/src/ChangeLog b/src/ChangeLog index ff19b484f..62817567f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-03-21 Mark Wielaard + + * readelf.c (print_gdb_index_section): Accept version 6. + 2012-01-31 Mark Wielaard * readelf.c (attr_callback): Don't special case DW_FORM_sec_offset. diff --git a/src/readelf.c b/src/readelf.c index 88766889b..f9f56aada 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;