diff options
author | 2022-07-29 13:00:09 +0100 | |
---|---|---|
committer | 2022-07-29 13:00:09 +0100 | |
commit | c87bc94762a0f5c5960c69278a68c7d60ca2c0c9 (patch) | |
tree | 0178a58f3dda74e29d39bbe4ef8d5d060ae1bf7b | |
parent | ld: Extend ac_default_ld_warn_rwx_segments to all SPARC targets [PR29411] (diff) | |
download | binutils-gdb-c87bc94762a0f5c5960c69278a68c7d60ca2c0c9.tar.gz binutils-gdb-c87bc94762a0f5c5960c69278a68c7d60ca2c0c9.tar.bz2 binutils-gdb-c87bc94762a0f5c5960c69278a68c7d60ca2c0c9.zip |
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/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/dwarf2.c | 4 |
2 files changed, 10 insertions, 0 deletions
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, |