summaryrefslogtreecommitdiffstats
path: root/src/readelf.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2012-03-21 16:05:31 +0100
committerMark Wielaard <[email protected]>2012-03-21 16:05:31 +0100
commit30bb714e7446d35d15cd53b3c794dd8ac08d0a29 (patch)
treed7efcf64872f67597b11e40fa32de6379a5e07fe /src/readelf.c
parent495501611820a9d5c462fda56045c146f7b922d7 (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.
Diffstat (limited to 'src/readelf.c')
-rw-r--r--src/readelf.c5
1 files changed, 3 insertions, 2 deletions
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;