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 9b880a8..13a162f 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-21 Hans-Peter Nilsson <hp@axis.com>
+
+ * dwarf.c (display_debug_loc): Cast section_end - start to long
+ for output format.
+
2007-11-20 Nick Clifton <nickc@redhat.com>
* dwarf.c (display_debug_loc): Issue a warning if there are bytes
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index a673564..6fa270d 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -2627,7 +2627,7 @@ display_debug_loc (struct dwarf_section *section, void *file)
if (start < section_end)
warn (_("There are %ld unused bytes at the end of section %s\n"),
- section_end - start, section->name);
+ (long) (section_end - start), section->name);
return 1;
}