{
if (!ppcboot_get_tdata (abfd))
{
- bfd_size_type amt = sizeof (ppcboot_data_t);
+ size_t amt = sizeof (ppcboot_data_t);
ppcboot_set_tdata (abfd, bfd_zalloc (abfd, amt));
}
was not defaulted. That is, it must be explicitly specified as
being ppcboot. */
-static const bfd_target *
+static bfd_cleanup
ppcboot_object_p (bfd *abfd)
{
struct stat statbuf;
memcpy (&tdata->header, &hdr, sizeof (ppcboot_hdr_t));
ppcboot_set_arch_mach (abfd, bfd_arch_powerpc, 0L);
- return abfd->xvec;
+ return _bfd_no_cleanup;
}
#define ppcboot_close_and_cleanup _bfd_generic_close_and_cleanup
asection *sec = ppcboot_get_tdata (abfd)->sec;
asymbol *syms;
unsigned int i;
- bfd_size_type amt = PPCBOOT_SYMS * sizeof (asymbol);
+ size_t amt = PPCBOOT_SYMS * sizeof (asymbol);
syms = (asymbol *) bfd_alloc (abfd, amt);
if (syms == NULL)