This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix build errors when compiling nlmconv.c on a 32-bit host.
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 23 Jan 2015 16:40:45 -0000
- Subject: [binutils-gdb] Fix build errors when compiling nlmconv.c on a 32-bit host.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bb97bdd70c9a4614416767e5fc7ea8d75b24b0b8
commit bb97bdd70c9a4614416767e5fc7ea8d75b24b0b8
Author: Nick Clifton <nickc@redhat.com>
Date: Fri Jan 23 16:39:53 2015 +0000
Fix build errors when compiling nlmconv.c on a 32-bit host.
* nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
by recent delta, when compiling on for a 32-bit host.
Diff:
---
binutils/ChangeLog | 5 +++++
binutils/nlmconv.c | 9 ++++++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 1d1ba9d..5fbccc8 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-23 Nick Clifton <nickc@redhat.com>
+
+ * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
+ by recent delta, when compiling on for a 32-bit host.
+
2015-01-21 Nick Clifton <nickc@redhat.com>
PR binutils/17512
diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c
index ac41199..8ef5b69 100644
--- a/binutils/nlmconv.c
+++ b/binutils/nlmconv.c
@@ -1937,7 +1937,8 @@ powerpc_mangle_relocs (bfd *outbfd, asection *insec,
if (rel->address > contents_size - 4)
{
- non_fatal (_("Out of range relocation: %lx"), rel->address);
+ non_fatal (_("Out of range relocation: %lx"),
+ (long) rel->address);
break;
}
@@ -1992,7 +1993,8 @@ powerpc_mangle_relocs (bfd *outbfd, asection *insec,
case 1:
if (rel->address > contents_size - 2)
{
- non_fatal (_("Out of range relocation: %lx"), rel->address);
+ non_fatal (_("Out of range relocation: %lx"),
+ (long) rel->address);
break;
}
@@ -2014,7 +2016,8 @@ powerpc_mangle_relocs (bfd *outbfd, asection *insec,
/* PR 17512: file: 0455a112. */
if (rel->address > contents_size - 4)
{
- non_fatal (_("Out of range relocation: %lx"), rel->address);
+ non_fatal (_("Out of range relocation: %lx"),
+ (long) rel->address);
break;
}