]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
readelf.c (print_gdb_index_section): Accept version 6.
authorMark Wielaard <mjw@redhat.com>
Wed, 21 Mar 2012 15:05:31 +0000 (16:05 +0100)
committerMark Wielaard <mjw@redhat.com>
Wed, 21 Mar 2012 15:05:31 +0000 (16:05 +0100)
No changes in the format.  Version 6 contains symbols for inlined
functions, older versions didn't.

src/ChangeLog
src/readelf.c

index ff19b484fda16ea0ba376f88a5d27ac41bff6789..62817567f91a71b5bcfc2d356ba8f0f9d75335d0 100644 (file)
@@ -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.
index 88766889b286397ef274348262ca0537e795a8cf..f9f56aadaa28024b39c6ecc00cb26b947c7727c2 100644 (file)
@@ -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;