public inbox for binutils-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Stop the linker from complaining about unrecognised DW_FORM-rnglistx and DW_FORM_loclistx format att
@ 2022-07-29 11:58 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2022-07-29 11:58 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b44cfc5de139d7e2410e91846df0f0164d663d0b

commit b44cfc5de139d7e2410e91846df0f0164d663d0b
Author: Nick Clifton <nickc@redhat.com>
Date:   Fri Jul 29 12:58:10 2022 +0100

    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:
---
 bfd/ChangeLog | 6 ++++++
 bfd/dwarf2.c  | 5 +++++
 2 files changed, 11 insertions(+)

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  <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
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,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-29 11:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-29 11:58 [binutils-gdb] Stop the linker from complaining about unrecognised DW_FORM-rnglistx and DW_FORM_loclistx format att Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).