summaryrefslogtreecommitdiffstats
path: root/src/readelf.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2018-05-08 15:34:03 +0200
committerMark Wielaard <[email protected]>2018-05-11 17:27:00 +0200
commitaf1438086468f936dfb041daed59a3367fe24a07 (patch)
tree554faa8bbdfd721a9368a94ba377be223eca2a39 /src/readelf.c
parent982b6fe9e31683607d476d7f90d1b56cbb78aa21 (diff)
libdw: Handle DW_FORM_[ref|strp]_sup[48] as DW_FORM_GNU_[ref|strp]_alt.
Although we don't yet handle DWARF5 supplemental files, they are like mostly like GNU alt files. This way using any of the supplemental files will at least generate an appropriate error message. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/readelf.c')
-rw-r--r--src/readelf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/readelf.c b/src/readelf.c
index c2fcfff9..c69910ab 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -6130,6 +6130,8 @@ attr_callback (Dwarf_Attribute *attrp, void *arg)
case DW_FORM_ref2:
case DW_FORM_ref1:
case DW_FORM_GNU_ref_alt:
+ case DW_FORM_ref_sup4:
+ case DW_FORM_ref_sup8:
if (cbargs->silent)
break;
Dwarf_Die ref;