aboutsummaryrefslogtreecommitdiff
path: root/bfd/versados.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/versados.c')
-rw-r--r--bfd/versados.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/bfd/versados.c b/bfd/versados.c
index b555085..72bf141 100644
--- a/bfd/versados.c
+++ b/bfd/versados.c
@@ -387,7 +387,6 @@ process_otr (abfd, otr, pass)
int pass;
{
unsigned long shift;
- long val;
unsigned char *srcp = otr->data;
unsigned char *endp = (unsigned char *) otr + otr->size;
unsigned int bits = (otr->map[0] << 24)
@@ -398,7 +397,7 @@ process_otr (abfd, otr, pass)
struct esdid *esdid = &EDATA (abfd, otr->esdid - 1);
unsigned char *contents = esdid->contents;
int need_contents = 0;
- int dst_idx = esdid->pc;
+ unsigned int dst_idx = esdid->pc;
for (shift = (1 << 31); shift && srcp < endp; shift >>= 1)
{
@@ -668,7 +667,7 @@ versados_get_section_contents (abfd, section, location, offset, count)
memcpy (location,
EDATA (abfd, section->target_index).contents + offset,
- count);
+ (size_t) count);
return true;
}
@@ -721,7 +720,7 @@ versados_get_symtab (abfd, alocation)
asymbol **alocation;
{
unsigned int symcount = bfd_get_symcount (abfd);
- int i;
+ unsigned int i;
asymbol *s;
versados_pass_2 (abfd);
@@ -787,7 +786,7 @@ versados_canonicalize_reloc (abfd, section, relptr, symbols)
arelent **relptr;
asymbol **symbols;
{
- int count;
+ unsigned int count;
arelent *src;
versados_pass_2 (abfd);