From: Hans-Peter Nilsson Date: Sat, 1 Nov 2014 02:34:00 +0000 (+0100) Subject: Fix %lx format used with bfd_size_type mismatch in readelf.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a03f3073118b862339be183023b5964a3fa8dae;p=binutils-gdb.git 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. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 1db5338fadf..3718f9bf1fa 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2014-11-01 Hans-Peter Nilsson + + * 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 Naveen H.S diff --git a/binutils/readelf.c b/binutils/readelf.c index f5aa28d9da5..856055596a4 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; }