https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c87bc94762a0f5c5960c69278a68c7d60ca2c0c9 commit c87bc94762a0f5c5960c69278a68c7d60ca2c0c9 Author: Nick Clifton <nickc@redhat.com> Date: Fri Jul 29 13:00:09 2022 +0100 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. Diff: --- bfd/ChangeLog | 6 ++++++ bfd/dwarf2.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b88f33b5e72..ed88a1775ac 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 aaa2d84887f..25a80333e67 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,