Fix a problematic message with the STM32L4XX fixup on 32-bit hosts.
authorChristophe Lyon <christophe.lyon@linaro.org>
Tue, 17 Nov 2015 11:35:08 +0000 (11:35 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 17 Nov 2015 11:37:14 +0000 (11:37 +0000)
* elf32-arm.c (elf32_arm_write_section): Force offset output as
long (%ld).

bfd/ChangeLog
bfd/elf32-arm.c

index c2532b7543b45eee9ca66816effb37d9886e7dab..bc2880ee950fb913c1d280ab97abcf34fd5fdcbd 100644 (file)
@@ -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
index fd4f743faca4681037a966b4955378dfa5cb231a..49dfc5338e45fd1df518cc8781e918444dc1831e 100644 (file)
@@ -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;
                  }