This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix a problematic message with the STM32L4XX fixup on 32-bit hosts.
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 17 Nov 2015 11:37:33 -0000
- Subject: [binutils-gdb] Fix a problematic message with the STM32L4XX fixup on 32-bit hosts.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=eee926f28e8745dcd03adcb1113f3e4a7b79b1e5
commit eee926f28e8745dcd03adcb1113f3e4a7b79b1e5
Author: Christophe Lyon <christophe.lyon@linaro.org>
Date: Tue Nov 17 11:35:08 2015 +0000
Fix a problematic message with the STM32L4XX fixup on 32-bit hosts.
* elf32-arm.c (elf32_arm_write_section): Force offset output as
long (%ld).
Diff:
---
bfd/ChangeLog | 5 +++++
bfd/elf32-arm.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c2532b7..bc2880e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2015-11-17 Christophe Lyon <christophe.lyon@linaro.org>
+
+ * elf32-arm.c (elf32_arm_write_section): Force offset output as
+ long (%ld).
+
2015-11-13 Tristan Gingold <gingold@adacore.com>
* version.m4: Bump version to 2.26.51
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index fd4f743..49dfc53 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -17010,10 +17010,10 @@ elf32_arm_write_section (bfd *output_bfd,
(*_bfd_error_handler)
(_("%B(%#x): error: Cannot create STM32L4XX veneer. "
- "Jump out of range by %d bytes. "
+ "Jump out of range by %ld bytes. "
"Cannot encode branch instruction. "),
output_bfd,
- stm32l4xx_errnode->vma - 4,
+ (long) (stm32l4xx_errnode->vma - 4),
out_of_range);
continue;
}