* coff-ppc.c (record_toc): Add cast to avoid warning.
(ppc_allocate_toc_section): Likewise. (coff_ppc_relocate_section): Remove ANSI C string concatenation. (ppc_coff_reloc_type_lookup): Remove unreached code. * coffcode.h (coff_write_object_contents): Don't take the address of an array. * peicode.h (pe_print_idata): Add casts to avoid warning. (pe_print_edata): Likewise. (pe_print_reloc): Remove ANSI C string concatenation.
This commit is contained in:
parent
9a8629d511
commit
f9fa5df367
|
@ -1,3 +1,15 @@
|
||||||
|
Fri Apr 19 19:21:56 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* coff-ppc.c (record_toc): Add cast to avoid warning.
|
||||||
|
(ppc_allocate_toc_section): Likewise.
|
||||||
|
(coff_ppc_relocate_section): Remove ANSI C string concatenation.
|
||||||
|
(ppc_coff_reloc_type_lookup): Remove unreached code.
|
||||||
|
* coffcode.h (coff_write_object_contents): Don't take the address
|
||||||
|
of an array.
|
||||||
|
* peicode.h (pe_print_idata): Add casts to avoid warning.
|
||||||
|
(pe_print_edata): Likewise.
|
||||||
|
(pe_print_reloc): Remove ANSI C string concatenation.
|
||||||
|
|
||||||
Thu Apr 18 18:51:18 1996 Ian Lance Taylor <ian@cygnus.com>
|
Thu Apr 18 18:51:18 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* libcoff-in.h (struct coff_final_link_info): Add last_bf_index
|
* libcoff-in.h (struct coff_final_link_info): Add last_bf_index
|
||||||
|
|
|
@ -828,7 +828,7 @@ record_toc(toc_section, our_toc_offset, cat, name)
|
||||||
{
|
{
|
||||||
/* add this entry to our toc addr-offset-name list */
|
/* add this entry to our toc addr-offset-name list */
|
||||||
struct list_ele *t;
|
struct list_ele *t;
|
||||||
t = bfd_malloc (sizeof (struct list_ele));
|
t = (struct list_ele *) bfd_malloc (sizeof (struct list_ele));
|
||||||
if (t == NULL)
|
if (t == NULL)
|
||||||
abort ();
|
abort ();
|
||||||
t->next = 0;
|
t->next = 0;
|
||||||
|
@ -1491,8 +1491,7 @@ fprintf(stderr,
|
||||||
if (our_toc_offset >= 65535)
|
if (our_toc_offset >= 65535)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"TOCDEFN Relocation exceeded "
|
"TOCDEFN Relocation exceeded displacement of 65535\n");
|
||||||
"displacment of 65535\n");
|
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1714,8 +1713,7 @@ fprintf(stderr,
|
||||||
false, false, true);
|
false, false, true);
|
||||||
if (myh == 0)
|
if (myh == 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Missing idata magic cookies, "
|
fprintf(stderr, "Missing idata magic cookies, this cannot work anyway...\n");
|
||||||
"this cannot work anyway...\n");
|
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1974,7 +1972,7 @@ ppc_allocate_toc_section (info)
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
foo = bfd_alloc(bfd_of_toc_owner, global_toc_size);
|
foo = (bfd_byte *) bfd_alloc(bfd_of_toc_owner, global_toc_size);
|
||||||
memset(foo, test_char, global_toc_size);
|
memset(foo, test_char, global_toc_size);
|
||||||
|
|
||||||
s->_raw_size = s->_cooked_size = global_toc_size;
|
s->_raw_size = s->_cooked_size = global_toc_size;
|
||||||
|
@ -2545,8 +2543,7 @@ ppc_coff_reloc_type_lookup (abfd, code)
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
/*NOTREACHED*/
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef HOW2MAP
|
#undef HOW2MAP
|
||||||
|
|
Loading…
Reference in New Issue