* peXXigen.c (rsrc_print_section): Fix compile time warning for
authorNick Clifton <nickc@redhat.com>
Thu, 24 Apr 2014 14:49:37 +0000 (15:49 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 24 Apr 2014 14:49:37 +0000 (15:49 +0100)
32-bit hosts.

bfd/ChangeLog
bfd/peXXigen.c

index be151d02a4a1b4f620e4c4e438ac98b9fb766f80..f22dc907f80991f2d957c3e0842d573eb2fd7643 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-24  Nick Clifton  <nickc@redhat.com>
+
+       * peXXigen.c (rsrc_print_section): Fix compile time warning for
+       32-bit hosts.
+
 2014-04-24  Alan Modra  <amodra@gmail.com>
 
        PR 16867
index 5e97588a7cee6cf65d10382985532fe46f962bbb..d462753c17e9f37474b94b45db38023128bd1ca2 100644 (file)
@@ -2383,9 +2383,11 @@ rsrc_print_section (bfd * abfd, void * vfile)
     }
 
   if (regions.strings_start != NULL)
-    fprintf (file, " String table starts at %lx\n", regions.strings_start - regions.section_start);
+    fprintf (file, " String table starts at %03x\n",
+            (int) (regions.strings_start - regions.section_start));
   if (regions.resource_start != NULL)
-    fprintf (file, " Resources start at %lx\n", regions.resource_start - regions.section_start);
+    fprintf (file, " Resources start at %03xx\n",
+            (int) (regions.resource_start - regions.section_start));
   
   free (regions.section_start);
   return TRUE;
This page took 0.028404 seconds and 4 git commands to generate.