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.
This commit is contained in:
Alan Modra
2000-02-21 12:01:27 +00:00
parent 2403ff6fdb
commit f6af82bd44
18 changed files with 159 additions and 85 deletions

View File

@ -1,3 +1,11 @@
2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
* objdump.c (dump_section_header): Change `opb' to unsigned.
(find_symbol_for_address): Same here.
(disassemble_data): And here. Change `addr_offset',
`stop_offset', `nextstop_offset' to unsigned long.
(dump_data): Change opb to unsigned.
2000-02-18 Frank Ch. Eigler <fche@redhat.com>
* resrc.c: Remove unmatched #if for cygwin.

View File

@ -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)