aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.c
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2015-11-17 11:35:08 +0000
committerNick Clifton <nickc@redhat.com>2015-11-17 11:37:14 +0000
commiteee926f28e8745dcd03adcb1113f3e4a7b79b1e5 (patch)
tree8125ae92157dbfab23e3ea939d0f3b3c58a2f7aa /bfd/elf32-arm.c
parente7286c5668bcc5de0bfe523ac7b7cddabeffebe5 (diff)
downloadgdb-eee926f28e8745dcd03adcb1113f3e4a7b79b1e5.zip
gdb-eee926f28e8745dcd03adcb1113f3e4a7b79b1e5.tar.gz
gdb-eee926f28e8745dcd03adcb1113f3e4a7b79b1e5.tar.bz2
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).
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r--bfd/elf32-arm.c4
1 files changed, 2 insertions, 2 deletions
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;
}