Stop the linker from complaining about unrecognised DW_FORM-rnglistx and DW_FORM_locl...
authorNick Clifton <nickc@redhat.com>
Fri, 29 Jul 2022 11:58:10 +0000 (12:58 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 29 Jul 2022 11:58:10 +0000 (12:58 +0100)
PR 29424
* dwarf2.c (read_attribute_value): Handle DW_FORM_rnglistx and
DW_FORM_loclistx.

bfd/ChangeLog
bfd/dwarf2.c

index acbb8f9e817d55393ea43b95c465ce9c8d3d8c9d..afabbc0f56aa5964ff7947ceace4625c1b9b3c99 100644 (file)
@@ -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-26  Nick Clifton  <nickc@redhat.com>
 
        * elfnn-loongarch.c (loongarch_elf_relocate_section): Fix
index aaa2d84887feecd6c1d91dd2094a58825529993d..4761878851362abd6d843fa6122f2d4136ac2593 100644 (file)
@@ -1607,6 +1607,11 @@ 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,