From: Nick Clifton Date: Fri, 29 Jul 2022 11:58:10 +0000 (+0100) Subject: Stop the linker from complaining about unrecognised DW_FORM-rnglistx and DW_FORM_locl... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b44cfc5de139d7e2410e91846df0f0164d663d0b;p=binutils-gdb.git Stop the linker from complaining about unrecognised DW_FORM-rnglistx and DW_FORM_loclistx format attributes. PR 29424 * dwarf2.c (read_attribute_value): Handle DW_FORM_rnglistx and DW_FORM_loclistx. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index acbb8f9e817..afabbc0f56a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2022-07-29 Nick Clifton + + PR 29424 + * dwarf2.c (read_attribute_value): Handle DW_FORM_rnglistx and + DW_FORM_loclistx. + 2022-07-26 Nick Clifton * elfnn-loongarch.c (loongarch_elf_relocate_section): Fix diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index aaa2d84887f..47618788513 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -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,