Use consistent type in binutils/dwarf.c
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 14 Jun 2021 13:43:19 +0000 (15:43 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 14 Jun 2021 13:45:55 +0000 (15:45 +0200)
commit0121f438e83e06efd29e43779edf4a01004a39ff
treee5abd2f0fa0caee9825852dc427a8bf2227acc18
parent90d3edf01630093142e833235abea548aa78e65b
Use consistent type in binutils/dwarf.c

If you look at the type used for implicit_const objects in binutils/dwarf.c,
you'll get sometimes bfd_signed_vma and sometimes dwarf_signed_vma.

They are the same on 64-bit hosts, but not on 32-bit hosts, and the latter
discrepancy, in particular in process_abbrev_set, is responsible for the
following error issued by objdump on some object files containing DWARF 5:

binutils/dwarf.c:1108: read LEB value is too large to store in destination
variable

binutis/
* dwarf.c (struct abbrev_attr): Change type of implicit_const.
(add_abbrev_attr): Likewise.
(process_abbrev_set): Likewise.
(display_debug_abbrev): Adjust to above change.
binutils/ChangeLog
binutils/dwarf.c