aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-09-18 10:05:55 +0000
committerAlan Modra <amodra@gmail.com>2001-09-18 10:05:55 +0000
commite59b4dfbd29ce7a0dc6f84fdb58d16cb31c988d8 (patch)
tree92801e005af874205a94a0735513895d67201f7d /binutils/objdump.c
parent17c1c87fca0e11b8d81916ab21b04a58c6bd3146 (diff)
downloadgdb-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/objdump.c')
-rw-r--r--binutils/objdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index be29232..168f246 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -287,7 +287,7 @@ dump_section_header (abfd, section, ignored)
bfd_printf_vma (abfd, bfd_get_section_vma (abfd, section));
printf (" ");
bfd_printf_vma (abfd, section->lma);
- printf (" %08lx 2**%u", section->filepos,
+ printf (" %08lx 2**%u", (unsigned long) section->filepos,
bfd_get_section_alignment (abfd, section));
if (! wide_output)
printf ("\n ");