diff options
author | Alan Modra <amodra@gmail.com> | 2001-09-18 10:05:55 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-09-18 10:05:55 +0000 |
commit | e59b4dfbd29ce7a0dc6f84fdb58d16cb31c988d8 (patch) | |
tree | 92801e005af874205a94a0735513895d67201f7d /binutils/readelf.c | |
parent | 17c1c87fca0e11b8d81916ab21b04a58c6bd3146 (diff) | |
download | gdb-e59b4dfbd29ce7a0dc6f84fdb58d16cb31c988d8.zip gdb-e59b4dfbd29ce7a0dc6f84fdb58d16cb31c988d8.tar.gz gdb-e59b4dfbd29ce7a0dc6f84fdb58d16cb31c988d8.tar.bz2 |
* 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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |