/* BFD back-end for PowerPC Microsoft Portable Executable files.
- Copyright (C) 1990-2019 Free Software Foundation, Inc.
+ Copyright (C) 1990-2020 Free Software Foundation, Inc.
Original version pieced together by Kim Knuttila (krk@cygnus.com)
ppc_coff_link_hash_table_create (bfd *abfd)
{
struct ppc_coff_link_hash_table *ret;
- bfd_size_type amt = sizeof (struct ppc_coff_link_hash_table);
+ size_t amt = sizeof (struct ppc_coff_link_hash_table);
ret = (struct ppc_coff_link_hash_table *) bfd_malloc (amt);
if (ret == NULL)
const char *name)
{
/* Add this entry to our toc addr-offset-name list. */
- bfd_size_type amt = sizeof (struct list_ele);
+ size_t amt = sizeof (struct list_ele);
struct list_ele *t = (struct list_ele *) bfd_malloc (amt);
if (t == NULL)
{
asection *s;
bfd_byte *foo;
- bfd_size_type amt;
static char test_char = '1';
if ( global_toc_size == 0 ) /* FIXME: does this get me in trouble? */
/* No toc section? Something is very wrong. */
abort ();
- amt = global_toc_size;
- foo = (bfd_byte *) bfd_alloc (bfd_of_toc_owner, amt);
+ foo = (bfd_byte *) bfd_alloc (bfd_of_toc_owner, global_toc_size);
memset(foo, test_char, (size_t) global_toc_size);
s->size = global_toc_size;
_bfd_stringtab_free (flaginfo.strtab);
- /* Setting bfd_get_symcount to 0 will cause write_object_contents to
+ /* Setting symcount to 0 will cause write_object_contents to
not try to write out the symbols. */
- bfd_get_symcount (abfd) = 0;
+ abfd->symcount = 0;
return TRUE;