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.
This commit is contained in:
Nick Clifton 2015-01-23 16:39:53 +00:00
parent 743649fd80
commit bb97bdd70c
2 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -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;
}