[readelf] Handle .gdb_index section version 9
authorTom de Vries <tdevries@suse.de>
Tue, 10 Oct 2023 08:26:40 +0000 (10:26 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 10 Oct 2023 08:26:40 +0000 (10:26 +0200)
commit9847ba8f085a7da0d85e90718ca987ab76637cbe
treed660eacc80f3160fcc9c3a52685f9028e1bed1d7
parent8b9c08eddac038663b8f5ede4b4d24e441a6d8a3
[readelf] Handle .gdb_index section version 9

Add the abilitity to print a v9 .gdb_index section.

The v9 section contains an extra table, which is printed as follows:
...
Shortcut table:
Language of main: Fortran 95
Name of main: contains_keyword
...

[ For the example, I used the exec of gdb test-case
gdb.fortran/nested-funcs-2-exp when running the test-case with target board
cc-with-gdb-index. ]

Tested on x86_64-linux.

Approved-By: Nick Clifton <nickc@redhat.com>
binutils/ChangeLog
binutils/dwarf.c