/* BFD PowerPC CPU definition
- Copyright (C) 1994-2019 Free Software Foundation, Inc.
+ Copyright (C) 1994-2023 Free Software Foundation, Inc.
Contributed by Ian Lance Taylor, Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
static void *
bfd_arch_ppc_nop_fill (bfd_size_type count,
- bfd_boolean is_bigendian,
- bfd_boolean code)
+ bool is_bigendian,
+ bool code)
{
bfd_byte *fill;
{
#if BFD_DEFAULT_TARGET_SIZE == 64
/* Default for 64 bit target. */
- N (64, bfd_mach_ppc64, "powerpc:common64", TRUE, bfd_powerpc_archs + 1),
+ N (64, bfd_mach_ppc64, "powerpc:common64", true, bfd_powerpc_archs + 1),
/* elf32-ppc:ppc_elf_object_p relies on the default 32 bit arch
being immediately after the 64 bit default. */
- N (32, bfd_mach_ppc, "powerpc:common", FALSE, bfd_powerpc_archs + 2),
+ N (32, bfd_mach_ppc, "powerpc:common", false, bfd_powerpc_archs + 2),
#else
/* Default arch must come first. */
- N (32, bfd_mach_ppc, "powerpc:common", TRUE, bfd_powerpc_archs + 1),
+ N (32, bfd_mach_ppc, "powerpc:common", true, bfd_powerpc_archs + 1),
/* elf64-ppc:ppc64_elf_object_p relies on the default 64 bit arch
being immediately after the 32 bit default. */
- N (64, bfd_mach_ppc64, "powerpc:common64", FALSE, bfd_powerpc_archs + 2),
+ N (64, bfd_mach_ppc64, "powerpc:common64", false, bfd_powerpc_archs + 2),
#endif
- N (32, bfd_mach_ppc_603, "powerpc:603", FALSE, bfd_powerpc_archs + 3),
- N (32, bfd_mach_ppc_ec603e, "powerpc:EC603e", FALSE, bfd_powerpc_archs + 4),
- N (32, bfd_mach_ppc_604, "powerpc:604", FALSE, bfd_powerpc_archs + 5),
- N (32, bfd_mach_ppc_403, "powerpc:403", FALSE, bfd_powerpc_archs + 6),
- N (32, bfd_mach_ppc_601, "powerpc:601", FALSE, bfd_powerpc_archs + 7),
- N (64, bfd_mach_ppc_620, "powerpc:620", FALSE, bfd_powerpc_archs + 8),
- N (64, bfd_mach_ppc_630, "powerpc:630", FALSE, bfd_powerpc_archs + 9),
- N (64, bfd_mach_ppc_a35, "powerpc:a35", FALSE, bfd_powerpc_archs + 10),
- N (64, bfd_mach_ppc_rs64ii, "powerpc:rs64ii", FALSE, bfd_powerpc_archs + 11),
- N (64, bfd_mach_ppc_rs64iii, "powerpc:rs64iii", FALSE, bfd_powerpc_archs + 12),
- N (32, bfd_mach_ppc_7400, "powerpc:7400", FALSE, bfd_powerpc_archs + 13),
- N (32, bfd_mach_ppc_e500, "powerpc:e500", FALSE, bfd_powerpc_archs + 14),
- N (32, bfd_mach_ppc_e500mc, "powerpc:e500mc", FALSE, bfd_powerpc_archs + 15),
- N (64, bfd_mach_ppc_e500mc64, "powerpc:e500mc64",FALSE, bfd_powerpc_archs + 16),
- N (32, bfd_mach_ppc_860, "powerpc:MPC8XX", FALSE, bfd_powerpc_archs + 17),
- N (32, bfd_mach_ppc_750, "powerpc:750", FALSE, bfd_powerpc_archs + 18),
- N (32, bfd_mach_ppc_titan, "powerpc:titan", FALSE, bfd_powerpc_archs + 19),
+ N (32, bfd_mach_ppc_603, "powerpc:603", false, bfd_powerpc_archs + 3),
+ N (32, bfd_mach_ppc_ec603e, "powerpc:EC603e", false, bfd_powerpc_archs + 4),
+ N (32, bfd_mach_ppc_604, "powerpc:604", false, bfd_powerpc_archs + 5),
+ N (32, bfd_mach_ppc_403, "powerpc:403", false, bfd_powerpc_archs + 6),
+ N (32, bfd_mach_ppc_601, "powerpc:601", false, bfd_powerpc_archs + 7),
+ N (64, bfd_mach_ppc_620, "powerpc:620", false, bfd_powerpc_archs + 8),
+ N (64, bfd_mach_ppc_630, "powerpc:630", false, bfd_powerpc_archs + 9),
+ N (64, bfd_mach_ppc_a35, "powerpc:a35", false, bfd_powerpc_archs + 10),
+ N (64, bfd_mach_ppc_rs64ii, "powerpc:rs64ii", false, bfd_powerpc_archs + 11),
+ N (64, bfd_mach_ppc_rs64iii, "powerpc:rs64iii", false, bfd_powerpc_archs + 12),
+ N (32, bfd_mach_ppc_7400, "powerpc:7400", false, bfd_powerpc_archs + 13),
+ N (32, bfd_mach_ppc_e500, "powerpc:e500", false, bfd_powerpc_archs + 14),
+ N (32, bfd_mach_ppc_e500mc, "powerpc:e500mc", false, bfd_powerpc_archs + 15),
+ N (64, bfd_mach_ppc_e500mc64, "powerpc:e500mc64",false, bfd_powerpc_archs + 16),
+ N (32, bfd_mach_ppc_860, "powerpc:MPC8XX", false, bfd_powerpc_archs + 17),
+ N (32, bfd_mach_ppc_750, "powerpc:750", false, bfd_powerpc_archs + 18),
+ N (32, bfd_mach_ppc_titan, "powerpc:titan", false, bfd_powerpc_archs + 19),
{
16, /* Bits in a word. */
"powerpc",
"powerpc:vle",
3,
- FALSE, /* Not the default. */
+ false, /* Not the default. */
powerpc_compatible,
bfd_default_scan,
bfd_arch_default_fill,
0 /* Maximum offset of a reloc from the start of an insn. */
},
- N (64, bfd_mach_ppc_e5500, "powerpc:e5500", FALSE, bfd_powerpc_archs + 21),
- N (64, bfd_mach_ppc_e6500, "powerpc:e6500", FALSE, NULL)
+ N (64, bfd_mach_ppc_e5500, "powerpc:e5500", false, bfd_powerpc_archs + 21),
+ N (64, bfd_mach_ppc_e6500, "powerpc:e6500", false, NULL)
};