Fix build errors when compiling nlmconv.c on a 32-bit host.
authorNick Clifton <nickc@redhat.com>
Fri, 23 Jan 2015 16:39:53 +0000 (16:39 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 23 Jan 2015 16:39:53 +0000 (16:39 +0000)
* nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
by recent delta, when compiling on for a 32-bit host.

binutils/ChangeLog
binutils/nlmconv.c

index 1d1ba9d800e886993468a45ff6477c1f2e708137..5fbccc8ed3579431efc55724ee281db6e0d29dab 100644 (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
index ac411993608fc49dec5108b9cad1d9e3a7fc557c..8ef5b69746c2a8855ed54d8caee09df0c0724948 100644 (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;
                }
                       
This page took 0.03483 seconds and 4 git commands to generate.