X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Fcoff-ppc.c;h=bc7118fe051926bf2b63d3b17dc42f3f4eca7d22;hb=2745674244d6aecddcf636475034bdb9c0a6b4a0;hp=3efa89de5ac9385963c4793e026a4535663c696d;hpb=b3adc24a0713411ab38a21dc894dd40dbc5c8f4f;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/coff-ppc.c b/bfd/coff-ppc.c index 3efa89de5a..bc7118fe05 100644 --- a/bfd/coff-ppc.c +++ b/bfd/coff-ppc.c @@ -179,7 +179,7 @@ static struct bfd_link_hash_table * 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) @@ -771,7 +771,7 @@ record_toc (asection *toc_section, 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) @@ -1513,7 +1513,6 @@ ppc_allocate_toc_section (struct bfd_link_info *info ATTRIBUTE_UNUSED) { 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? */ @@ -1528,8 +1527,7 @@ ppc_allocate_toc_section (struct bfd_link_info *info ATTRIBUTE_UNUSED) /* 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;