aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dwarf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 6703b16..242563e 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2021-05-11 Hans-Peter Nilsson <hp@axis.com>
+
+ * dwarf.c (process_abbrev_set): Properly parenthesize before
+ casting to unsigned long.
+
2021-05-11 Alan Modra <amodra@gmail.com>
PR 27845
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index aa48f69..8bc0acb 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;
}