\f
/* Create a ppcboot object. Invoked via bfd_set_format. */
-static bfd_boolean
+static bool
ppcboot_mkobject (bfd *abfd)
{
if (!ppcboot_get_tdata (abfd))
ppcboot_set_tdata (abfd, bfd_zalloc (abfd, amt));
}
- return TRUE;
+ return true;
}
\f
/* Set the architecture to PowerPC */
-static bfd_boolean
+static bool
ppcboot_set_arch_mach (bfd *abfd,
enum bfd_architecture arch,
unsigned long machine)
arch = bfd_arch_powerpc;
else if (arch != bfd_arch_powerpc)
- return FALSE;
+ return false;
return bfd_default_set_arch_mach (abfd, arch, machine);
}
\f
/* Get contents of the only section. */
-static bfd_boolean
+static bool
ppcboot_get_section_contents (bfd *abfd,
asection *section ATTRIBUTE_UNUSED,
void * location,
{
if (bfd_seek (abfd, offset + (file_ptr) sizeof (ppcboot_hdr_t), SEEK_SET) != 0
|| bfd_bread (location, count, abfd) != count)
- return FALSE;
- return TRUE;
+ return false;
+ return true;
}
\f
syms = (asymbol *) bfd_alloc (abfd, amt);
if (syms == NULL)
- return FALSE;
+ return false;
/* Start symbol. */
syms[0].the_bfd = abfd;
\f
/* Write section contents of a ppcboot file. */
-static bfd_boolean
+static bool
ppcboot_set_section_contents (bfd *abfd,
asection *sec,
const void * data,
for (s = abfd->sections; s != NULL; s = s->next)
s->filepos = s->vma - low;
- abfd->output_has_begun = TRUE;
+ abfd->output_has_begun = true;
}
return _bfd_generic_set_section_contents (abfd, sec, data, offset, size);
\f
/* Print out the program headers. */
-static bfd_boolean
+static bool
ppcboot_bfd_print_private_bfd_data (bfd *abfd, void * farg)
{
FILE *f = (FILE *)farg;
}
fprintf (f, "\n");
- return TRUE;
+ return true;
}
\f