Fix %lx format used with bfd_size_type mismatch in readelf.c
authorHans-Peter Nilsson <hp@bitrange.com>
Sat, 1 Nov 2014 02:34:00 +0000 (03:34 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Sat, 1 Nov 2014 02:34:00 +0000 (03:34 +0100)
* readelf.c (get_32bit_elf_symbols): Cast error
parameters of bfd_size_type with the %lx format to
unsigned long.

binutils/ChangeLog
binutils/readelf.c

index 1db5338fadf6f8db220025caf83306c78d9c9144..3718f9bf1fa40056cec466ac978a636a569ddb27 100644 (file)
@@ -1,3 +1,9 @@
+2014-11-01  Hans-Peter Nilsson  <hp@axis.com>
+
+       * readelf.c (get_32bit_elf_symbols): Cast error
+       parameters of bfd_size_type with the %lx format to
+       unsigned long.
+
 2014-10-31  Andrew Pinski  <apinski@cavium.com>
             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
 
index f5aa28d9da50467092fe7841043dec53031bb7d2..856055596a440837aec8249d059c371141c4e7b5 100644 (file)
@@ -4590,7 +4590,7 @@ get_32bit_elf_symbols (FILE * file,
   if (section->sh_size > current_file_size)
     {
       error (_("Section %s has an invalid sh_size of 0x%lx\n"),
-            SECTION_NAME (section), section->sh_size);
+            SECTION_NAME (section), (unsigned long) section->sh_size);
       goto exit_point;
     }
 
@@ -4677,7 +4677,7 @@ get_64bit_elf_symbols (FILE * file,
   if (section->sh_size > current_file_size)
     {
       error (_("Section %s has an invalid sh_size of 0x%lx\n"),
-            SECTION_NAME (section), section->sh_size);
+            SECTION_NAME (section), (unsigned long) section->sh_size);
       goto exit_point;
     }