summaryrefslogtreecommitdiffstats
path: root/src/readelf.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2013-03-18 13:54:50 +0100
committerMark Wielaard <[email protected]>2013-03-19 11:44:40 +0100
commita73fecc109e400fd9f538bf25a73ccf9cdf1d598 (patch)
tree77ddc1647cd1b824338ce60cc8918f52a140d46f /src/readelf.c
parentf1b06b5c1d9837832e74a61e19220ad5670bbc40 (diff)
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 <[email protected]>
Diffstat (limited to 'src/readelf.c')
-rw-r--r--src/readelf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/readelf.c b/src/readelf.c
index c04cd201..9c7880d9 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 <[email protected]>, 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;