diff options
author | Nick Clifton <nickc@redhat.com> | 2015-01-23 16:39:53 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-01-23 16:39:53 +0000 |
commit | bb97bdd70c9a4614416767e5fc7ea8d75b24b0b8 (patch) | |
tree | 35364da0686cadd275a5ff01bea3f74bad3c07ce /binutils/nlmconv.c | |
parent | 743649fd80776de922475362bf3ac8b44511bb24 (diff) | |
download | gdb-bb97bdd70c9a4614416767e5fc7ea8d75b24b0b8.zip gdb-bb97bdd70c9a4614416767e5fc7ea8d75b24b0b8.tar.gz gdb-bb97bdd70c9a4614416767e5fc7ea8d75b24b0b8.tar.bz2 |
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.
Diffstat (limited to 'binutils/nlmconv.c')
-rw-r--r-- | binutils/nlmconv.c | 9 |
1 files changed, 6 insertions, 3 deletions
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; } |