aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2021-02-09 15:37:24 +0100
committerTom de Vries <tdevries@suse.de>2021-02-09 15:37:24 +0100
commit5f128a25f235195d1970ec07aec57004dfb90237 (patch)
tree17d09e27c9d96acd6e68b7baf9ca0d1ffc808abc /binutils
parent284beb431f44cf0b4b1567ebf9dfe44a24ccfe2e (diff)
downloadfsf-binutils-gdb-5f128a25f235195d1970ec07aec57004dfb90237.zip
fsf-binutils-gdb-5f128a25f235195d1970ec07aec57004dfb90237.tar.gz
fsf-binutils-gdb-5f128a25f235195d1970ec07aec57004dfb90237.tar.bz2
[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.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dwarf.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 0f07cd4..0e59683 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,10 @@
2021-02-09 Tom de Vries <tdevries@suse.de>
+ PR binutils/27370
+ * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
+
+2021-02-09 Tom de Vries <tdevries@suse.de>
+
PR binutils/27386
* dwarf.c (process_debug_info): Handling DW_UT_skeleton and
DW_UT_split_compile.
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 6797dd1..d6eb892 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -2117,6 +2117,7 @@ get_type_abbrev_from_form (unsigned long form,
switch (form)
{
case DW_FORM_GNU_ref_alt:
+ case DW_FORM_ref_sig8:
/* FIXME: We are unable to handle this form at the moment. */
return NULL;