[binutils] Handle DW_FORM_ref_sig8 in get_type_abbrev_from_form
authorTom de Vries <tdevries@suse.de>
Tue, 9 Feb 2021 14:37:24 +0000 (15:37 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 9 Feb 2021 14:37:24 +0000 (15:37 +0100)
commit5f128a25f235195d1970ec07aec57004dfb90237
tree17d09e27c9d96acd6e68b7baf9ca0d1ffc808abc
parent284beb431f44cf0b4b1567ebf9dfe44a24ccfe2e
[binutils] Handle DW_FORM_ref_sig8 in get_type_abbrev_from_form

When compiling an exec like this:
...
$ gcc -fdebug-types-section hello.c -gdwarf-5
...
we run into:
...
$ readelf -w a.out > READELF
readelf: Warning: Unexpected form 20 encountered whilst finding \
  abbreviation for type
...

Fix this by handling DW_FORM_ref_sig8 conservatively in
get_type_abbrev_from_form.

binutils/ChangeLog:

2021-02-09  Tom de Vries  <tdevries@suse.de>

PR binutils/27370
* dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
binutils/ChangeLog
binutils/dwarf.c