From: Mark Wielaard Date: Mon, 18 Mar 2013 12:54:50 +0000 (+0100) Subject: readelf: Accept version 8 .gdb_index section format. X-Git-Tag: elfutils-0.156~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a73fecc109e400fd9f538bf25a73ccf9cdf1d598;p=thirdparty%2Felfutils.git readelf: Accept version 8 .gdb_index section format. Version 8 just indicates that if the .gdb_index was generated by the gold linker it correctly includes TUs for symbols. http://sourceware.org/PR15021 Signed-off-by: Mark Wielaard --- diff --git a/src/ChangeLog b/src/ChangeLog index 2275c5c2f..07811773e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2013-03-18 Mark Wielaard + + * readelf.c (print_gdb_index_section): Accept version 8. + 2013-03-01 Mark Wielaard * findtextrel.c (process_file): Release ELF and close file when not diff --git a/src/readelf.c b/src/readelf.c index c04cd201c..9c7880d9f 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -1,5 +1,5 @@ /* Print information from ELF file in human-readable form. - Copyright (C) 1999-2012 Red Hat, Inc. + Copyright (C) 1999-2013 Red Hat, Inc. This file is part of elfutils. Written by Ulrich Drepper , 1999. @@ -7272,8 +7272,10 @@ print_gdb_index_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr, // The only difference between version 4 and version 5 is the // hash used for generating the table. Version 6 contains symbols - // for inlined functions, older versions didn't. - if (vers < 4 || vers > 7) + // for inlined functions, older versions didn't. Version 7 adds + // symbol kinds. Version 8 just indicates that it correctly includes + // TUs for symbols. + if (vers < 4 || vers > 8) { printf (gettext (" unknown version, cannot parse section\n")); return;