summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-07-29 13:00:09 +0100
committerNick Clifton <nickc@redhat.com>2022-07-29 13:00:09 +0100
commitc87bc94762a0f5c5960c69278a68c7d60ca2c0c9 (patch)
tree0178a58f3dda74e29d39bbe4ef8d5d060ae1bf7b
parent4b596a7719bfa1bcb8781f59faba66a20c4ab2da (diff)
Stop the linker from complaining about unrecognized DW_FORM_rnglistx and DW_FORM_loclistx attribute formats.
PR 29424 * dwarf2.c (read_attribute_value): Handle DW_FORM_rnglistx and DW_FORM_loclistx.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/dwarf2.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b88f33b5e7..ed88a1775a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2022-07-29 Nick Clifton <nickc@redhat.com>
+
+ PR 29424
+ * dwarf2.c (read_attribute_value): Handle DW_FORM_rnglistx and
+ DW_FORM_loclistx.
+
2022-07-08 Nick Clifton <nickc@redhat.com>
* 2.39 branch created.
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index aaa2d84887..25a80333e6 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -1607,6 +1607,10 @@ read_attribute_value (struct attribute * attr,
attr->u.sval = _bfd_safe_read_leb128 (abfd, &info_ptr,
true, info_ptr_end);
break;
+ case DW_FORM_rnglistx:
+ case DW_FORM_loclistx:
+ /* FIXME: Add support for these forms! */
+ /* Fall through. */
case DW_FORM_ref_udata:
case DW_FORM_udata:
attr->u.val = _bfd_safe_read_leb128 (abfd, &info_ptr,