diff options
author | Alan Modra <amodra@gmail.com> | 2000-02-21 12:01:27 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-02-21 12:01:27 +0000 |
commit | f6af82bd4470673eef9562d4ed3a2717c1d749ab (patch) | |
tree | 049fedd33d8bf74259017f441ef55ee8920b9cc2 /binutils/objdump.c | |
parent | 2403ff6fdb9d23ee79863d2b2aacac46a2d8283d (diff) | |
download | gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.zip gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.tar.gz gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.tar.bz2 |
This lot mainly cleans up `comparison between signed and unsigned' gcc
warnings. One usused var, and a macro parenthesis fix too. Also check
input sections are elf when doing gc in elflink.h.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r-- | binutils/objdump.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c index deaf991..488d4f3 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -340,7 +340,7 @@ dump_section_header (abfd, section, ignored) PTR ignored ATTRIBUTE_UNUSED; { char *comma = ""; - int opb = bfd_octets_per_byte (abfd); + unsigned int opb = bfd_octets_per_byte (abfd); printf ("%3d %-13s %08lx ", section->index, bfd_get_section_name (abfd, section), @@ -743,7 +743,7 @@ find_symbol_for_address (abfd, sec, vma, require_sec, place) long min = 0; long max = sorted_symcount; long thisplace; - int opb = bfd_octets_per_byte (abfd); + unsigned int opb = bfd_octets_per_byte (abfd); if (sorted_symcount < 1) return NULL; @@ -1574,12 +1574,12 @@ static void disassemble_data (abfd) bfd *abfd; { - long addr_offset; + unsigned long addr_offset; disassembler_ftype disassemble_fn; struct disassemble_info disasm_info; struct objdump_disasm_info aux; asection *section; - int opb = bfd_octets_per_byte (abfd); + unsigned int opb = bfd_octets_per_byte (abfd); print_files = NULL; prev_functionname = NULL; @@ -1659,7 +1659,7 @@ disassemble_data (abfd) arelent **relbuf = NULL; arelent **relpp = NULL; arelent **relppend = NULL; - long stop_offset; + unsigned long stop_offset; asymbol *sym = NULL; long place = 0; @@ -1743,7 +1743,7 @@ disassemble_data (abfd) while (addr_offset < stop_offset) { asymbol *nextsym; - long nextstop_offset; + unsigned long nextstop_offset; boolean insns; if (sym != NULL && bfd_asymbol_value (sym) <= section->vma + addr_offset) @@ -2264,7 +2264,7 @@ dump_data (abfd) bfd_size_type datasize = 0; bfd_size_type addr_offset; bfd_size_type start_offset, stop_offset; - int opb = bfd_octets_per_byte (abfd); + unsigned int opb = bfd_octets_per_byte (abfd); for (section = abfd->sections; section != NULL; section = section->next) |