aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@bitrange.com>2014-11-01 03:34:00 +0100
committerHans-Peter Nilsson <hp@bitrange.com>2014-11-01 03:34:00 +0100
commit2a03f3073118b862339be183023b5964a3fa8dae (patch)
tree975b6bc8ba3fbccf3750e2a493c7bc14af0af144 /binutils
parent657a7d7d23a4de2cdc4140254e5ee6df5789ad26 (diff)
downloadgdb-2a03f3073118b862339be183023b5964a3fa8dae.zip
gdb-2a03f3073118b862339be183023b5964a3fa8dae.tar.gz
gdb-2a03f3073118b862339be183023b5964a3fa8dae.tar.bz2
Fix %lx format used with bfd_size_type mismatch in readelf.c
* readelf.c (get_32bit_elf_symbols): Cast error parameters of bfd_size_type with the %lx format to unsigned long.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/readelf.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 1db5338..3718f9b 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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>
diff --git a/binutils/readelf.c b/binutils/readelf.c
index f5aa28d..8560555 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -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;
}