From e59b4dfbd29ce7a0dc6f84fdb58d16cb31c988d8 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 18 Sep 2001 10:05:55 +0000 Subject: * ar.c (print_contents): Cast args of bfd_seek to the right types. Replace bfd_read call with call to bfd_bread. (extract_file): Likewise. * objdump.c (dump_section_header): Cast section->filepos to unsigned long to suit printf format string. * readelf.c (process_section_headers): Similarly for sh_offset. (process_unwind): Likewise. --- binutils/readelf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'binutils/readelf.c') diff --git a/binutils/readelf.c b/binutils/readelf.c index 3457316..cf3c2c2 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -3085,7 +3085,7 @@ process_section_headers (file) { putchar (' '); print_vma (section->sh_addr, LONG_HEX); - printf (" %8.8lx", section->sh_offset); + printf (" %8.8lx", (unsigned long) section->sh_offset); printf ("\n "); print_vma (section->sh_size, LONG_HEX); printf (" "); @@ -3650,7 +3650,7 @@ process_unwind (file) printf ("'%s'", SECTION_NAME (unwsec)); printf (_(" at offset 0x%lx contains %lu entries:\n"), - unwsec->sh_offset, + (unsigned long) unwsec->sh_offset, (unsigned long) (unwsec->sh_size / (3 * addr_size))); (void) slurp_ia64_unwind_table (file, & aux, unwsec); -- cgit v1.1