diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 6703b16b2b0..242563ed3a5 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2021-05-11 Hans-Peter Nilsson + + * dwarf.c (process_abbrev_set): Properly parenthesize before + casting to unsigned long. + 2021-05-11 Alan Modra PR 27845 diff --git a/binutils/dwarf.c b/binutils/dwarf.c index aa48f69bbd4..8bc0acb270c 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -1071,7 +1071,7 @@ process_abbrev_set (struct dwarf_section *section, /* PR 17531: file:4bcd9ce9. */ warn (_("Debug info is corrupted, abbrev size (%lx) is larger than " "abbrev section size (%lx)\n"), - (unsigned long) abbrev_base + abbrev_size, + (unsigned long) (abbrev_base + abbrev_size), (unsigned long) section->size); return NULL; }