diff options
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r-- | bfd/elf32-arm.c | 1932 |
1 files changed, 966 insertions, 966 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 7d7c3ed..51a65d8 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -66,10 +66,10 @@ /* The Adjusted Place, as defined by AAELF. */ #define Pa(X) ((X) & 0xfffffffc) -static bfd_boolean elf32_arm_write_section (bfd *output_bfd, - struct bfd_link_info *link_info, - asection *sec, - bfd_byte *contents); +static bool elf32_arm_write_section (bfd *output_bfd, + struct bfd_link_info *link_info, + asection *sec, + bfd_byte *contents); /* Note: code such as elf32_arm_reloc_type_lookup expect to use e.g. R_ARM_PC24 as an index into this, and find the R_ARM_PC24 HOWTO @@ -82,247 +82,247 @@ static reloc_howto_type elf32_arm_howto_table_1[] = 0, /* rightshift */ 3, /* size (0 = byte, 1 = short, 2 = long) */ 0, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_NONE", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_PC24, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 24, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_PC24", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00ffffff, /* src_mask */ 0x00ffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* 32 bit absolute */ HOWTO (R_ARM_ABS32, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ABS32", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* standard 32bit pc-relative reloc */ HOWTO (R_ARM_REL32, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_REL32", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* 8 bit absolute - R_ARM_LDR_PC_G0 in AAELF */ HOWTO (R_ARM_LDR_PC_G0, /* type */ 0, /* rightshift */ 0, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDR_PC_G0", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* 16 bit absolute */ HOWTO (R_ARM_ABS16, /* type */ 0, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ABS16", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0000ffff, /* src_mask */ 0x0000ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* 12 bit absolute */ HOWTO (R_ARM_ABS12, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 12, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ABS12", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_THM_ABS5, /* type */ 6, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 5, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_ABS5", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000007e0, /* src_mask */ 0x000007e0, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* 8 bit absolute */ HOWTO (R_ARM_ABS8, /* type */ 0, /* rightshift */ 0, /* size (0 = byte, 1 = short, 2 = long) */ 8, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ABS8", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000000ff, /* src_mask */ 0x000000ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_SBREL32, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_SBREL32", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_THM_CALL, /* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 24, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_CALL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x07ff2fff, /* src_mask */ 0x07ff2fff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_THM_PC8, /* type */ 1, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 8, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_PC8", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000000ff, /* src_mask */ 0x000000ff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_BREL_ADJ, /* type */ 1, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_BREL_ADJ", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_DESC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_DESC", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_THM_SWI8, /* type */ 0, /* rightshift */ 0, /* size (0 = byte, 1 = short, 2 = long) */ 0, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_SWI8", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000000, /* src_mask */ 0x00000000, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* BLX instruction for the ARM. */ HOWTO (R_ARM_XPC25, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 24, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_XPC25", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00ffffff, /* src_mask */ 0x00ffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* BLX instruction for the Thumb. */ HOWTO (R_ARM_THM_XPC22, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 24, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_XPC22", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x07ff2fff, /* src_mask */ 0x07ff2fff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* Dynamic TLS relocations. */ @@ -330,43 +330,43 @@ static reloc_howto_type elf32_arm_howto_table_1[] = 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_DTPMOD32", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_DTPOFF32, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_DTPOFF32", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_TPOFF32, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_TPOFF32", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relocs used in ARM Linux */ @@ -374,463 +374,463 @@ static reloc_howto_type elf32_arm_howto_table_1[] = 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_COPY", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_GLOB_DAT, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_GLOB_DAT", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_JUMP_SLOT, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_JUMP_SLOT", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_RELATIVE, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_RELATIVE", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_GOTOFF32, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_GOTOFF32", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_GOTPC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_GOTPC", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_GOT32, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_GOT32", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_PLT32, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 24, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_PLT32", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00ffffff, /* src_mask */ 0x00ffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_CALL, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 24, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_CALL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00ffffff, /* src_mask */ 0x00ffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_JUMP24, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 24, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_JUMP24", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00ffffff, /* src_mask */ 0x00ffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_THM_JUMP24, /* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 24, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_JUMP24", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x07ff2fff, /* src_mask */ 0x07ff2fff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_BASE_ABS, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_BASE_ABS", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_ALU_PCREL7_0, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 12, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_PCREL_7_0", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_ALU_PCREL15_8, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 12, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 8, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_PCREL_15_8",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_ALU_PCREL23_15, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 12, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 16, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_PCREL_23_15",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDR_SBREL_11_0, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 12, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDR_SBREL_11_0",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_ALU_SBREL_19_12, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 8, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 12, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_SBREL_19_12",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000ff000, /* src_mask */ 0x000ff000, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_ALU_SBREL_27_20, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 8, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 20, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_SBREL_27_20",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0ff00000, /* src_mask */ 0x0ff00000, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TARGET1, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TARGET1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_ROSEGREL32, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ROSEGREL32", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_V4BX, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_V4BX", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TARGET2, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TARGET2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_PREL31, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 31, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_PREL31", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x7fffffff, /* src_mask */ 0x7fffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_MOVW_ABS_NC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_MOVW_ABS_NC", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000f0fff, /* src_mask */ 0x000f0fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_MOVT_ABS, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_MOVT_ABS", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000f0fff, /* src_mask */ 0x000f0fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_MOVW_PREL_NC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_MOVW_PREL_NC", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000f0fff, /* src_mask */ 0x000f0fff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_MOVT_PREL, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_MOVT_PREL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000f0fff, /* src_mask */ 0x000f0fff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_THM_MOVW_ABS_NC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_MOVW_ABS_NC",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x040f70ff, /* src_mask */ 0x040f70ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_THM_MOVT_ABS, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_MOVT_ABS", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x040f70ff, /* src_mask */ 0x040f70ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_THM_MOVW_PREL_NC,/* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_MOVW_PREL_NC",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x040f70ff, /* src_mask */ 0x040f70ff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_THM_MOVT_PREL, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_MOVT_PREL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x040f70ff, /* src_mask */ 0x040f70ff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_THM_JUMP19, /* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 19, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_JUMP19", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x043f2fff, /* src_mask */ 0x043f2fff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_THM_JUMP6, /* type */ 1, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 6, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_unsigned,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_JUMP6", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x02f8, /* src_mask */ 0x02f8, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* These are declared as 13-bit signed relocations because we can address -4095 .. 4095(base) by altering ADDW to SUBW or vice @@ -839,57 +839,57 @@ static reloc_howto_type elf32_arm_howto_table_1[] = 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 13, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_ALU_PREL_11_0",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_THM_PC12, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 13, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_PC12", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_ABS32_NOI, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ABS32_NOI", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_REL32_NOI, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_REL32_NOI", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Group relocations. */ @@ -897,379 +897,379 @@ static reloc_howto_type elf32_arm_howto_table_1[] = 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_PC_G0_NC", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_ALU_PC_G0, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_PC_G0", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_ALU_PC_G1_NC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_PC_G1_NC", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_ALU_PC_G1, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_PC_G1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_ALU_PC_G2, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_PC_G2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDR_PC_G1, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDR_PC_G1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDR_PC_G2, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDR_PC_G2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDRS_PC_G0, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDRS_PC_G0", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDRS_PC_G1, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDRS_PC_G1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDRS_PC_G2, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDRS_PC_G2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDC_PC_G0, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDC_PC_G0", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDC_PC_G1, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDC_PC_G1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDC_PC_G2, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDC_PC_G2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_ALU_SB_G0_NC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_SB_G0_NC", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_ALU_SB_G0, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_SB_G0", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_ALU_SB_G1_NC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_SB_G1_NC", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_ALU_SB_G1, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_SB_G1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_ALU_SB_G2, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_ALU_SB_G2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDR_SB_G0, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDR_SB_G0", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDR_SB_G1, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDR_SB_G1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDR_SB_G2, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDR_SB_G2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDRS_SB_G0, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDRS_SB_G0", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDRS_SB_G1, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDRS_SB_G1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDRS_SB_G2, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDRS_SB_G2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDC_SB_G0, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDC_SB_G0", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDC_SB_G1, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDC_SB_G1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_LDC_SB_G2, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_LDC_SB_G2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* End of group relocations. */ @@ -1277,211 +1277,211 @@ static reloc_howto_type elf32_arm_howto_table_1[] = 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_MOVW_BREL_NC", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0000ffff, /* src_mask */ 0x0000ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_MOVT_BREL, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_MOVT_BREL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0000ffff, /* src_mask */ 0x0000ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_MOVW_BREL, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_MOVW_BREL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0000ffff, /* src_mask */ 0x0000ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_THM_MOVW_BREL_NC,/* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_MOVW_BREL_NC",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x040f70ff, /* src_mask */ 0x040f70ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_THM_MOVT_BREL, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_MOVT_BREL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x040f70ff, /* src_mask */ 0x040f70ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_THM_MOVW_BREL, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_MOVW_BREL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x040f70ff, /* src_mask */ 0x040f70ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_GOTDESC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ NULL, /* special_function */ "R_ARM_TLS_GOTDESC", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_CALL, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 24, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_CALL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00ffffff, /* src_mask */ 0x00ffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_DESCSEQ, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 0, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_DESCSEQ", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000000, /* src_mask */ 0x00000000, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_THM_TLS_CALL, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 24, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_TLS_CALL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x07ff07ff, /* src_mask */ 0x07ff07ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_PLT32_ABS, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_PLT32_ABS", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_GOT_ABS, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_GOT_ABS", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_GOT_PREL, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont, /* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_GOT_PREL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_GOT_BREL12, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 12, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_GOT_BREL12", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_GOTOFF12, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 12, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_GOTOFF12", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ EMPTY_HOWTO (R_ARM_GOTRELAX), /* reserved for future GOT-load optimizations */ @@ -1490,171 +1490,171 @@ static reloc_howto_type elf32_arm_howto_table_1[] = 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 0, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont, /* complain_on_overflow */ _bfd_elf_rel_vtable_reloc_fn, /* special_function */ "R_ARM_GNU_VTENTRY", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* GNU extension to record C++ vtable hierarchy */ HOWTO (R_ARM_GNU_VTINHERIT, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 0, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont, /* complain_on_overflow */ NULL, /* special_function */ "R_ARM_GNU_VTINHERIT", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_THM_JUMP11, /* type */ 1, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 11, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed, /* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_JUMP11", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000007ff, /* src_mask */ 0x000007ff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO (R_ARM_THM_JUMP8, /* type */ 1, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 8, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed, /* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_JUMP8", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000000ff, /* src_mask */ 0x000000ff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* TLS relocations */ HOWTO (R_ARM_TLS_GD32, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ NULL, /* special_function */ "R_ARM_TLS_GD32", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_LDM32, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_LDM32", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_LDO32, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_LDO32", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_IE32, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ NULL, /* special_function */ "R_ARM_TLS_IE32", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_LE32, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ NULL, /* special_function */ "R_ARM_TLS_LE32", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_LDO12, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 12, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_LDO12", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_LE12, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 12, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_LE12", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_IE12GP, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 12, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_IE12GP", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* 112-127 private relocations. */ EMPTY_HOWTO (112), @@ -1681,109 +1681,109 @@ static reloc_howto_type elf32_arm_howto_table_1[] = 0, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 0, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_THM_TLS_DESCSEQ",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000000, /* src_mask */ 0x00000000, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ EMPTY_HOWTO (130), EMPTY_HOWTO (131), HOWTO (R_ARM_THM_ALU_ABS_G0_NC,/* type. */ 0, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 16, /* bitsize. */ - FALSE, /* pc_relative. */ + false, /* pc_relative. */ 0, /* bitpos. */ complain_overflow_bitfield,/* complain_on_overflow. */ bfd_elf_generic_reloc, /* special_function. */ "R_ARM_THM_ALU_ABS_G0_NC",/* name. */ - FALSE, /* partial_inplace. */ + false, /* partial_inplace. */ 0x00000000, /* src_mask. */ 0x00000000, /* dst_mask. */ - FALSE), /* pcrel_offset. */ + false), /* pcrel_offset. */ HOWTO (R_ARM_THM_ALU_ABS_G1_NC,/* type. */ 0, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 16, /* bitsize. */ - FALSE, /* pc_relative. */ + false, /* pc_relative. */ 0, /* bitpos. */ complain_overflow_bitfield,/* complain_on_overflow. */ bfd_elf_generic_reloc, /* special_function. */ "R_ARM_THM_ALU_ABS_G1_NC",/* name. */ - FALSE, /* partial_inplace. */ + false, /* partial_inplace. */ 0x00000000, /* src_mask. */ 0x00000000, /* dst_mask. */ - FALSE), /* pcrel_offset. */ + false), /* pcrel_offset. */ HOWTO (R_ARM_THM_ALU_ABS_G2_NC,/* type. */ 0, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 16, /* bitsize. */ - FALSE, /* pc_relative. */ + false, /* pc_relative. */ 0, /* bitpos. */ complain_overflow_bitfield,/* complain_on_overflow. */ bfd_elf_generic_reloc, /* special_function. */ "R_ARM_THM_ALU_ABS_G2_NC",/* name. */ - FALSE, /* partial_inplace. */ + false, /* partial_inplace. */ 0x00000000, /* src_mask. */ 0x00000000, /* dst_mask. */ - FALSE), /* pcrel_offset. */ + false), /* pcrel_offset. */ HOWTO (R_ARM_THM_ALU_ABS_G3_NC,/* type. */ 0, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 16, /* bitsize. */ - FALSE, /* pc_relative. */ + false, /* pc_relative. */ 0, /* bitpos. */ complain_overflow_bitfield,/* complain_on_overflow. */ bfd_elf_generic_reloc, /* special_function. */ "R_ARM_THM_ALU_ABS_G3_NC",/* name. */ - FALSE, /* partial_inplace. */ + false, /* partial_inplace. */ 0x00000000, /* src_mask. */ 0x00000000, /* dst_mask. */ - FALSE), /* pcrel_offset. */ + false), /* pcrel_offset. */ /* Relocations for Armv8.1-M Mainline. */ HOWTO (R_ARM_THM_BF16, /* type. */ 0, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 16, /* bitsize. */ - TRUE, /* pc_relative. */ + true, /* pc_relative. */ 0, /* bitpos. */ complain_overflow_dont,/* do not complain_on_overflow. */ bfd_elf_generic_reloc, /* special_function. */ "R_ARM_THM_BF16", /* name. */ - FALSE, /* partial_inplace. */ + false, /* partial_inplace. */ 0x001f0ffe, /* src_mask. */ 0x001f0ffe, /* dst_mask. */ - TRUE), /* pcrel_offset. */ + true), /* pcrel_offset. */ HOWTO (R_ARM_THM_BF12, /* type. */ 0, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 12, /* bitsize. */ - TRUE, /* pc_relative. */ + true, /* pc_relative. */ 0, /* bitpos. */ complain_overflow_dont,/* do not complain_on_overflow. */ bfd_elf_generic_reloc, /* special_function. */ "R_ARM_THM_BF12", /* name. */ - FALSE, /* partial_inplace. */ + false, /* partial_inplace. */ 0x00010ffe, /* src_mask. */ 0x00010ffe, /* dst_mask. */ - TRUE), /* pcrel_offset. */ + true), /* pcrel_offset. */ HOWTO (R_ARM_THM_BF18, /* type. */ 0, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 18, /* bitsize. */ - TRUE, /* pc_relative. */ + true, /* pc_relative. */ 0, /* bitpos. */ complain_overflow_dont,/* do not complain_on_overflow. */ bfd_elf_generic_reloc, /* special_function. */ "R_ARM_THM_BF18", /* name. */ - FALSE, /* partial_inplace. */ + false, /* partial_inplace. */ 0x007f0ffe, /* src_mask. */ 0x007f0ffe, /* dst_mask. */ - TRUE), /* pcrel_offset. */ + true), /* pcrel_offset. */ }; /* 160 onwards: */ @@ -1793,106 +1793,106 @@ static reloc_howto_type elf32_arm_howto_table_2[8] = 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_IRELATIVE", /* name */ - TRUE, /* partial_inplace */ + true, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_GOTFUNCDESC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_GOTFUNCDESC", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_GOTOFFFUNCDESC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_GOTOFFFUNCDESC",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_FUNCDESC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_FUNCDESC", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_FUNCDESC_VALUE, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 64, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_FUNCDESC_VALUE",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_GD32_FDPIC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_GD32_FDPIC",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_LDM32_FDPIC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_LDM32_FDPIC",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_TLS_IE32_FDPIC, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 32, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_bitfield,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_TLS_IE32_FDPIC",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ }; /* 249-255 extended, currently unused, relocations: */ @@ -1902,57 +1902,57 @@ static reloc_howto_type elf32_arm_howto_table_3[4] = 0, /* rightshift */ 0, /* size (0 = byte, 1 = short, 2 = long) */ 0, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_RREL32", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_RABS32, /* type */ 0, /* rightshift */ 0, /* size (0 = byte, 1 = short, 2 = long) */ 0, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_RABS32", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_RPC24, /* type */ 0, /* rightshift */ 0, /* size (0 = byte, 1 = short, 2 = long) */ 0, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_RPC24", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO (R_ARM_RBASE, /* type */ 0, /* rightshift */ 0, /* size (0 = byte, 1 = short, 2 = long) */ 0, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_ARM_RBASE", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0, /* dst_mask */ - FALSE) /* pcrel_offset */ + false) /* pcrel_offset */ }; static reloc_howto_type * @@ -1972,7 +1972,7 @@ elf32_arm_howto_from_type (unsigned int r_type) return NULL; } -static bfd_boolean +static bool elf32_arm_info_to_howto (bfd * abfd, arelent * bfd_reloc, Elf_Internal_Rela * elf_reloc) { @@ -1985,9 +1985,9 @@ elf32_arm_info_to_howto (bfd * abfd, arelent * bfd_reloc, _bfd_error_handler (_("%pB: unsupported relocation type %#x"), abfd, r_type); bfd_set_error (bfd_error_bad_value); - return FALSE; + return false; } - return TRUE; + return true; } struct elf32_arm_reloc_map @@ -2140,7 +2140,7 @@ elf32_arm_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED, /* Support for core dump NOTE sections. */ -static bfd_boolean +static bool elf32_arm_nabi_grok_prstatus (bfd *abfd, Elf_Internal_Note *note) { int offset; @@ -2149,7 +2149,7 @@ elf32_arm_nabi_grok_prstatus (bfd *abfd, Elf_Internal_Note *note) switch (note->descsz) { default: - return FALSE; + return false; case 148: /* Linux/ARM 32-bit. */ /* pr_cursig */ @@ -2170,13 +2170,13 @@ elf32_arm_nabi_grok_prstatus (bfd *abfd, Elf_Internal_Note *note) size, note->descpos + offset); } -static bfd_boolean +static bool elf32_arm_nabi_grok_psinfo (bfd *abfd, Elf_Internal_Note *note) { switch (note->descsz) { default: - return FALSE; + return false; case 124: /* Linux/ARM elf_prpsinfo. */ elf_tdata (abfd)->core->pid @@ -2198,7 +2198,7 @@ elf32_arm_nabi_grok_psinfo (bfd *abfd, Elf_Internal_Note *note) command[n - 1] = '\0'; } - return TRUE; + return true; } static char * @@ -2426,7 +2426,7 @@ static const bfd_vma elf32_arm_plt_entry_long [] = 0xe5bcf000, /* ldr pc, [ip, #0xNNN]! */ }; -static bfd_boolean elf32_arm_use_long_plt_entry = FALSE; +static bool elf32_arm_use_long_plt_entry = false; #endif /* not FOUR_WORD_PLT */ @@ -3088,7 +3088,7 @@ struct a8_erratum_reloc const char *sym_name; unsigned int r_type; enum arm_st_branch_type branch_type; - bfd_boolean non_a8_stub; + bool non_a8_stub; }; /* The size of the thread control block. */ @@ -3184,7 +3184,7 @@ struct elf_arm_obj_tdata && elf_tdata (bfd) != NULL \ && elf_object_id (bfd) == ARM_ELF_DATA) -static bfd_boolean +static bool elf32_arm_mkobject (bfd *abfd) { return bfd_elf_allocate_object (abfd, sizeof (struct elf_arm_obj_tdata), @@ -3243,7 +3243,7 @@ struct elf32_arm_link_hash_entry #define elf32_arm_link_hash_traverse(table, func, info) \ (elf_link_hash_traverse \ (&(table)->root, \ - (bfd_boolean (*) (struct elf_link_hash_entry *, void *)) (func), \ + (bool (*) (struct elf_link_hash_entry *, void *)) (func), \ (info))) /* Get the ARM elf linker hash table from a link_info structure. */ @@ -3354,7 +3354,7 @@ struct elf32_arm_link_hash_table bfd_size_type plt_entry_size; /* True if the target uses REL relocations. */ - bfd_boolean use_rel; + bool use_rel; /* Nonzero if import library must be a secure gateway import library as per ARMv8-M Security Extensions. */ @@ -3556,7 +3556,7 @@ elf32_arm_link_hash_newfunc (struct bfd_hash_entry * entry, ret->plt.maybe_thumb_refcount = 0; ret->plt.noncall_refcount = 0; ret->plt.got_offset = -1; - ret->is_iplt = FALSE; + ret->is_iplt = false; ret->export_glue = NULL; ret->stub_cache = NULL; @@ -3574,7 +3574,7 @@ elf32_arm_link_hash_newfunc (struct bfd_hash_entry * entry, /* Ensure that we have allocated bookkeeping structures for ABFD's local symbols. */ -static bfd_boolean +static bool elf32_arm_allocate_local_sym_info (bfd *abfd) { if (elf_local_got_refcounts (abfd) == NULL) @@ -3591,7 +3591,7 @@ elf32_arm_allocate_local_sym_info (bfd *abfd) + sizeof (char)); data = bfd_zalloc (abfd, size); if (data == NULL) - return FALSE; + return false; /* It is important that these all be allocated in descending order of required alignment, so that arrays allocated later @@ -3620,7 +3620,7 @@ elf32_arm_allocate_local_sym_info (bfd *abfd) <= __alignof__ (*elf32_arm_local_fdpic_cnts (abfd))); #endif } - return TRUE; + return true; } /* Return the .iplt information for local symbol R_SYMNDX, which belongs @@ -3650,7 +3650,7 @@ elf32_arm_create_local_iplt (bfd *abfd, unsigned long r_symndx) true, point *ROOT_PLT at the target-independent reference count/offset union and *ARM_PLT at the ARM-specific information. */ -static bfd_boolean +static bool elf32_arm_get_plt_info (bfd *abfd, struct elf32_arm_link_hash_table *globals, struct elf32_arm_link_hash_entry *h, unsigned long r_symndx, union gotplt_union **root_plt, @@ -3659,33 +3659,33 @@ elf32_arm_get_plt_info (bfd *abfd, struct elf32_arm_link_hash_table *globals, struct arm_local_iplt_info *local_iplt; if (globals->root.splt == NULL && globals->root.iplt == NULL) - return FALSE; + return false; if (h != NULL) { *root_plt = &h->root.plt; *arm_plt = &h->plt; - return TRUE; + return true; } if (elf32_arm_local_iplt (abfd) == NULL) - return FALSE; + return false; local_iplt = elf32_arm_local_iplt (abfd)[r_symndx]; if (local_iplt == NULL) - return FALSE; + return false; *root_plt = &local_iplt->root; *arm_plt = &local_iplt->arm; - return TRUE; + return true; } -static bfd_boolean using_thumb_only (struct elf32_arm_link_hash_table *globals); +static bool using_thumb_only (struct elf32_arm_link_hash_table *globals); /* Return true if the PLT described by ARM_PLT requires a Thumb stub before it. */ -static bfd_boolean +static bool elf32_arm_plt_needs_thumb_stub_p (struct bfd_link_info *info, struct arm_plt_info *arm_plt) { @@ -3777,17 +3777,17 @@ stub_hash_newfunc (struct bfd_hash_entry *entry, /* Create .got, .gotplt, and .rel(a).got sections in DYNOBJ, and set up shortcuts to them in our hash table. */ -static bfd_boolean +static bool create_got_section (bfd *dynobj, struct bfd_link_info *info) { struct elf32_arm_link_hash_table *htab; htab = elf32_arm_hash_table (info); if (htab == NULL) - return FALSE; + return false; if (! _bfd_elf_create_got_section (dynobj, info)) - return FALSE; + return false; /* Also create .rofixup. */ if (htab->fdpic_p) @@ -3797,15 +3797,15 @@ create_got_section (bfd *dynobj, struct bfd_link_info *info) | SEC_IN_MEMORY | SEC_LINKER_CREATED | SEC_READONLY)); if (htab->srofixup == NULL || !bfd_set_section_alignment (htab->srofixup, 2)) - return FALSE; + return false; } - return TRUE; + return true; } /* Create the .iplt, .rel(a).iplt and .igot.plt sections. */ -static bfd_boolean +static bool create_ifunc_sections (struct bfd_link_info *info) { struct elf32_arm_link_hash_table *htab; @@ -3825,7 +3825,7 @@ create_ifunc_sections (struct bfd_link_info *info) flags | SEC_READONLY | SEC_CODE); if (s == NULL || !bfd_set_section_alignment (s, bed->plt_alignment)) - return FALSE; + return false; htab->root.iplt = s; } @@ -3836,7 +3836,7 @@ create_ifunc_sections (struct bfd_link_info *info) flags | SEC_READONLY); if (s == NULL || !bfd_set_section_alignment (s, bed->s->log_file_align)) - return FALSE; + return false; htab->root.irelplt = s; } @@ -3845,15 +3845,15 @@ create_ifunc_sections (struct bfd_link_info *info) s = bfd_make_section_anyway_with_flags (dynobj, ".igot.plt", flags); if (s == NULL || !bfd_set_section_alignment (s, bed->s->log_file_align)) - return FALSE; + return false; htab->root.igotplt = s; } - return TRUE; + return true; } /* Determine if we're dealing with a Thumb only architecture. */ -static bfd_boolean +static bool using_thumb_only (struct elf32_arm_link_hash_table *globals) { int arch; @@ -3874,14 +3874,14 @@ using_thumb_only (struct elf32_arm_link_hash_table *globals) || arch == TAG_CPU_ARCH_V8M_BASE || arch == TAG_CPU_ARCH_V8M_MAIN || arch == TAG_CPU_ARCH_V8_1M_MAIN) - return TRUE; + return true; - return FALSE; + return false; } /* Determine if we're dealing with a Thumb-2 object. */ -static bfd_boolean +static bool using_thumb2 (struct elf32_arm_link_hash_table *globals) { int arch; @@ -3907,7 +3907,7 @@ using_thumb2 (struct elf32_arm_link_hash_table *globals) /* Determine whether Thumb-2 BL instruction is available. */ -static bfd_boolean +static bool using_thumb2_bl (struct elf32_arm_link_hash_table *globals) { int arch = @@ -3925,25 +3925,25 @@ using_thumb2_bl (struct elf32_arm_link_hash_table *globals) .rel(a).bss sections in DYNOBJ, and set up shortcuts to them in our hash table. */ -static bfd_boolean +static bool elf32_arm_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info) { struct elf32_arm_link_hash_table *htab; htab = elf32_arm_hash_table (info); if (htab == NULL) - return FALSE; + return false; if (!htab->root.sgot && !create_got_section (dynobj, info)) - return FALSE; + return false; if (!_bfd_elf_create_dynamic_sections (dynobj, info)) - return FALSE; + return false; if (htab->root.target_os == is_vxworks) { if (!elf_vxworks_create_dynamic_sections (dynobj, info, &htab->srelplt2)) - return FALSE; + return false; if (bfd_link_pic (info)) { @@ -3993,7 +3993,7 @@ elf32_arm_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info) || (!bfd_link_pic (info) && !htab->root.srelbss)) abort (); - return TRUE; + return true; } /* Copy the extra info we tack onto an elf_link_hash_entry. */ @@ -4079,7 +4079,7 @@ elf32_arm_link_hash_table_create (bfd *abfd) ret->plt_header_size = 20; ret->plt_entry_size = elf32_arm_use_long_plt_entry ? 16 : 12; #endif - ret->use_rel = TRUE; + ret->use_rel = true; ret->obfd = abfd; ret->fdpic_p = 0; @@ -4096,7 +4096,7 @@ elf32_arm_link_hash_table_create (bfd *abfd) /* Determine what kind of NOPs are available. */ -static bfd_boolean +static bool arch_has_arm_nop (struct elf32_arm_link_hash_table *globals) { const int arch = bfd_elf_get_obj_attr_int (globals->obfd, OBJ_ATTR_PROC, @@ -4112,7 +4112,7 @@ arch_has_arm_nop (struct elf32_arm_link_hash_table *globals) || arch == TAG_CPU_ARCH_V8R); } -static bfd_boolean +static bool arm_stub_is_thumb (enum elf32_arm_stub_type stub_type) { switch (stub_type) @@ -4126,13 +4126,13 @@ arm_stub_is_thumb (enum elf32_arm_stub_type stub_type) case arm_stub_long_branch_v4t_thumb_tls_pic: case arm_stub_long_branch_thumb_only_pic: case arm_stub_cmse_branch_thumb_only: - return TRUE; + return true; case arm_stub_none: BFD_FAIL (); - return FALSE; + return false; break; default: - return FALSE; + return false; } } @@ -4154,7 +4154,7 @@ arm_type_of_stub (struct bfd_link_info *info, bfd_signed_vma branch_offset; unsigned int r_type; struct elf32_arm_link_hash_table * globals; - bfd_boolean thumb2, thumb2_bl, thumb_only; + bool thumb2, thumb2_bl, thumb_only; enum elf32_arm_stub_type stub_type = arm_stub_none; int use_plt = 0; enum arm_st_branch_type branch_type = *actual_branch_type; @@ -4585,7 +4585,7 @@ elf32_arm_get_stub_entry (const asection *input_section, return NULL; stub_entry = arm_stub_hash_lookup (&htab->stub_hash_table, - stub_name, FALSE, FALSE); + stub_name, false, false); if (h != NULL) h->stub_cache = stub_entry; @@ -4598,7 +4598,7 @@ elf32_arm_get_stub_entry (const asection *input_section, /* Whether veneers of type STUB_TYPE require to be in a dedicated output section. */ -static bfd_boolean +static bool arm_dedicated_stub_output_section_required (enum elf32_arm_stub_type stub_type) { if (stub_type >= max_stub_type) @@ -4607,10 +4607,10 @@ arm_dedicated_stub_output_section_required (enum elf32_arm_stub_type stub_type) switch (stub_type) { case arm_stub_cmse_branch_thumb_only: - return TRUE; + return true; default: - return FALSE; + return false; } abort (); /* Should be unreachable. */ @@ -4701,7 +4701,7 @@ elf32_arm_create_or_find_stub_sec (asection **link_sec_p, asection *section, { asection *link_sec, *out_sec, **stub_sec_p; const char *stub_sec_prefix; - bfd_boolean dedicated_output_section = + bool dedicated_output_section = arm_dedicated_stub_output_section_required (stub_type); int align; @@ -4787,7 +4787,7 @@ elf32_arm_add_stub (const char *stub_name, asection *section, /* Enter this entry into the linker stub hash table. */ stub_entry = arm_stub_hash_lookup (&htab->stub_hash_table, stub_name, - TRUE, FALSE); + true, false); if (stub_entry == NULL) { if (section == NULL) @@ -4881,7 +4881,7 @@ static bfd_reloc_status_type elf32_arm_final_link_relocate (reloc_howto_type *, bfd *, bfd *, asection *, bfd_byte *, Elf_Internal_Rela *, bfd_vma, struct bfd_link_info *, asection *, const char *, unsigned char, enum arm_st_branch_type, - struct elf_link_hash_entry *, bfd_boolean *, char **); + struct elf_link_hash_entry *, bool *, char **); static unsigned int arm_stub_required_alignment (enum elf32_arm_stub_type stub_type) @@ -4925,7 +4925,7 @@ arm_stub_required_alignment (enum elf32_arm_stub_type stub_type) /* Returns whether stubs of type STUB_TYPE take over the symbol they are veneering (TRUE) or have their own symbol (FALSE). */ -static bfd_boolean +static bool arm_stub_sym_claimed (enum elf32_arm_stub_type stub_type) { if (stub_type >= max_stub_type) @@ -4934,10 +4934,10 @@ arm_stub_sym_claimed (enum elf32_arm_stub_type stub_type) switch (stub_type) { case arm_stub_cmse_branch_thumb_only: - return TRUE; + return true; default: - return FALSE; + return false; } abort (); /* Should be unreachable. */ @@ -4983,12 +4983,12 @@ arm_new_stubs_start_offset_ptr (struct elf32_arm_link_hash_table *htab, } } -static bfd_boolean +static bool arm_build_one_stub (struct bfd_hash_entry *gen_entry, void * in_arg) { #define MAXRELOCS 3 - bfd_boolean removed_sg_veneer; + bool removed_sg_veneer; struct elf32_arm_stub_hash_entry *stub_entry; struct elf32_arm_link_hash_table *globals; struct bfd_link_info *info; @@ -5019,14 +5019,14 @@ arm_build_one_stub (struct bfd_hash_entry *gen_entry, globals = elf32_arm_hash_table (info); if (globals == NULL) - return FALSE; + return false; stub_sec = stub_entry->stub_sec; if ((globals->fix_cortex_a8 < 0) != (arm_stub_required_alignment (stub_entry->stub_type) == 2)) /* We have to do less-strictly-aligned fixes last. */ - return TRUE; + return true; /* Assign a slot at the end of section if none assigned yet. */ if (stub_entry->stub_offset == (bfd_vma) -1) @@ -5103,7 +5103,7 @@ arm_build_one_stub (struct bfd_hash_entry *gen_entry, default: BFD_FAIL (); - return FALSE; + return false; } } @@ -5127,7 +5127,7 @@ arm_build_one_stub (struct bfd_hash_entry *gen_entry, for (i = 0; i < nrelocs; i++) { Elf_Internal_Rela rel; - bfd_boolean unresolved_reloc; + bool unresolved_reloc; char *error_message; bfd_vma points_to = sym_value + template_sequence[stub_reloc_idx[i]].reloc_addend; @@ -5156,7 +5156,7 @@ arm_build_one_stub (struct bfd_hash_entry *gen_entry, &error_message); } - return TRUE; + return true; #undef MAXRELOCS } @@ -5207,7 +5207,7 @@ find_stub_size_and_template (enum elf32_arm_stub_type stub_type, /* As above, but don't actually build the stub. Just bump offset so we know stub section sizes. */ -static bfd_boolean +static bool arm_size_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg ATTRIBUTE_UNUSED) { @@ -5234,12 +5234,12 @@ arm_size_one_stub (struct bfd_hash_entry *gen_entry, /* Already accounted for. */ if (stub_entry->stub_offset != (bfd_vma) -1) - return TRUE; + return true; size = (size + 7) & ~7; stub_entry->stub_sec->size += size; - return TRUE; + return true; } /* External entry points for sizing and building linker stubs. */ @@ -5363,7 +5363,7 @@ elf32_arm_next_input_section (struct bfd_link_info *info, static void group_sections (struct elf32_arm_link_hash_table *htab, bfd_size_type stub_group_size, - bfd_boolean stubs_always_after_branch) + bool stubs_always_after_branch) { asection **list = htab->input_list; @@ -5479,7 +5479,7 @@ static struct elf_link_hash_entry *find_thumb_glue (struct bfd_link_info *, NUM_A8_FIXES_P, A8_FIX_TABLE_SIZE_P. Returns true if an error occurs, false otherwise. */ -static bfd_boolean +static bool cortex_a8_erratum_scan (bfd *input_bfd, struct bfd_link_info *info, struct a8_erratum_fix **a8_fixes_p, @@ -5488,7 +5488,7 @@ cortex_a8_erratum_scan (bfd *input_bfd, struct a8_erratum_reloc *a8_relocs, unsigned int num_a8_relocs, unsigned prev_num_a8_fixes, - bfd_boolean *stub_changed_p) + bool *stub_changed_p) { asection *section; struct elf32_arm_link_hash_table *htab = elf32_arm_hash_table (info); @@ -5497,7 +5497,7 @@ cortex_a8_erratum_scan (bfd *input_bfd, unsigned int a8_fix_table_size = *a8_fix_table_size_p; if (htab == NULL) - return FALSE; + return false; for (section = input_bfd->sections; section != NULL; @@ -5520,7 +5520,7 @@ cortex_a8_erratum_scan (bfd *input_bfd, if (elf_section_data (section)->this_hdr.contents != NULL) contents = elf_section_data (section)->this_hdr.contents; else if (! bfd_malloc_and_get_section (input_bfd, section, &contents)) - return TRUE; + return true; sec_data = elf32_arm_section_data (section); @@ -5531,7 +5531,7 @@ cortex_a8_erratum_scan (bfd *input_bfd, ? section->size : sec_data->map[span + 1].vma; unsigned int i; char span_type = sec_data->map[span].type; - bfd_boolean last_was_32bit = FALSE, last_was_branch = FALSE; + bool last_was_32bit = false, last_was_branch = false; if (span_type != 't') continue; @@ -5551,11 +5551,11 @@ cortex_a8_erratum_scan (bfd *input_bfd, for (i = span_start; i < span_end;) { unsigned int insn = bfd_getl16 (&contents[i]); - bfd_boolean insn_32bit = FALSE, is_blx = FALSE, is_b = FALSE; - bfd_boolean is_bl = FALSE, is_bcc = FALSE, is_32bit_branch; + bool insn_32bit = false, is_blx = false, is_b = false; + bool is_bl = false, is_bcc = false, is_32bit_branch; if ((insn & 0xe000) == 0xe000 && (insn & 0x1800) != 0x0000) - insn_32bit = TRUE; + insn_32bit = true; if (insn_32bit) { @@ -5582,12 +5582,12 @@ cortex_a8_erratum_scan (bfd *input_bfd, && ! last_was_branch) { bfd_signed_vma offset = 0; - bfd_boolean force_target_arm = FALSE; - bfd_boolean force_target_thumb = FALSE; + bool force_target_arm = false; + bool force_target_thumb = false; bfd_vma target; enum elf32_arm_stub_type stub_type = arm_stub_none; struct a8_erratum_reloc key, *found; - bfd_boolean use_plt = FALSE; + bool use_plt = false; key.from = base_vma + i; found = (struct a8_erratum_reloc *) @@ -5606,20 +5606,20 @@ cortex_a8_erratum_scan (bfd *input_bfd, &error_message); if (entry) - found->non_a8_stub = TRUE; + found->non_a8_stub = true; /* Keep a simpler condition, for the sake of clarity. */ if (htab->root.splt != NULL && found->hash != NULL && found->hash->root.plt.offset != (bfd_vma) -1) - use_plt = TRUE; + use_plt = true; if (found->r_type == R_ARM_THM_CALL) { if (found->branch_type == ST_BRANCH_TO_ARM || use_plt) - force_target_arm = TRUE; + force_target_arm = true; else - force_target_thumb = TRUE; + force_target_thumb = true; } } @@ -5677,8 +5677,8 @@ cortex_a8_erratum_scan (bfd *input_bfd, && stub_type == arm_stub_a8_veneer_bl) { stub_type = arm_stub_a8_veneer_blx; - is_blx = TRUE; - is_bl = FALSE; + is_blx = true; + is_bl = false; } /* Conversely, if the original instruction was BLX but the target is Thumb mode, use the BL @@ -5687,8 +5687,8 @@ cortex_a8_erratum_scan (bfd *input_bfd, && stub_type == arm_stub_a8_veneer_blx) { stub_type = arm_stub_a8_veneer_bl; - is_blx = FALSE; - is_bl = TRUE; + is_blx = false; + is_bl = true; } if (is_blx) @@ -5741,7 +5741,7 @@ cortex_a8_erratum_scan (bfd *input_bfd, { free (stub_name); stub_name = NULL; - *stub_changed_p = TRUE; + *stub_changed_p = true; } } @@ -5782,7 +5782,7 @@ cortex_a8_erratum_scan (bfd *input_bfd, *num_a8_fixes_p = num_a8_fixes; *a8_fix_table_size_p = a8_fix_table_size; - return FALSE; + return false; } /* Create or update a stub entry depending on whether the stub can already be @@ -5808,16 +5808,16 @@ elf32_arm_create_stub (struct elf32_arm_link_hash_table *htab, Elf_Internal_Rela *irela, asection *sym_sec, struct elf32_arm_link_hash_entry *hash, char *sym_name, bfd_vma sym_value, enum arm_st_branch_type branch_type, - bfd_boolean *new_stub) + bool *new_stub) { const asection *id_sec; char *stub_name; struct elf32_arm_stub_hash_entry *stub_entry; unsigned int r_type; - bfd_boolean sym_claimed = arm_stub_sym_claimed (stub_type); + bool sym_claimed = arm_stub_sym_claimed (stub_type); BFD_ASSERT (stub_type != arm_stub_none); - *new_stub = FALSE; + *new_stub = false; if (sym_claimed) stub_name = sym_name; @@ -5837,8 +5837,8 @@ elf32_arm_create_stub (struct elf32_arm_link_hash_table *htab, return NULL; } - stub_entry = arm_stub_hash_lookup (&htab->stub_hash_table, stub_name, FALSE, - FALSE); + stub_entry = arm_stub_hash_lookup (&htab->stub_hash_table, stub_name, false, + false); /* The proper stub has already been created, just update its value. */ if (stub_entry != NULL) { @@ -5893,7 +5893,7 @@ elf32_arm_create_stub (struct elf32_arm_link_hash_table *htab, sprintf (stub_entry->output_name, STUB_ENTRY_NAME, sym_name); } - *new_stub = TRUE; + *new_stub = true; return stub_entry; } @@ -5918,7 +5918,7 @@ elf32_arm_create_stub (struct elf32_arm_link_hash_table *htab, The return value gives whether a stub failed to be allocated. */ -static bfd_boolean +static bool cmse_scan (bfd *input_bfd, struct elf32_arm_link_hash_table *htab, obj_attribute *out_attr, struct elf_link_hash_entry **sym_hashes, int *cmse_stub_created) @@ -5933,7 +5933,7 @@ cmse_scan (bfd *input_bfd, struct elf32_arm_link_hash_table *htab, bfd_vma sym_value; asection *section; struct elf32_arm_stub_hash_entry *stub_entry; - bfd_boolean is_v8m, new_stub, cmse_invalid, ret = TRUE; + bool is_v8m, new_stub, cmse_invalid, ret = true; bed = get_elf_backend_data (input_bfd); symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr; @@ -5948,12 +5948,12 @@ cmse_scan (bfd *input_bfd, struct elf32_arm_link_hash_table *htab, symtab_hdr->sh_info, 0, NULL, NULL, NULL); if (symtab_hdr->sh_info && local_syms == NULL) - return FALSE; + return false; /* Scan symbols. */ for (i = 0; i < sym_count; i++) { - cmse_invalid = FALSE; + cmse_invalid = false; if (i < ext_start) { @@ -5965,7 +5965,7 @@ cmse_scan (bfd *input_bfd, struct elf32_arm_link_hash_table *htab, continue; /* Special symbol with local binding. */ - cmse_invalid = TRUE; + cmse_invalid = true; } else { @@ -5978,7 +5978,7 @@ cmse_scan (bfd *input_bfd, struct elf32_arm_link_hash_table *htab, if ((cmse_hash->root.root.type != bfd_link_hash_defined && cmse_hash->root.root.type != bfd_link_hash_defweak) || cmse_hash->root.type != STT_FUNC) - cmse_invalid = TRUE; + cmse_invalid = true; } if (!is_v8m) @@ -5986,8 +5986,8 @@ cmse_scan (bfd *input_bfd, struct elf32_arm_link_hash_table *htab, _bfd_error_handler (_("%pB: special symbol `%s' only allowed for " "ARMv8-M architecture or later"), input_bfd, sym_name); - is_v8m = TRUE; /* Avoid multiple warning. */ - ret = FALSE; + is_v8m = true; /* Avoid multiple warning. */ + ret = false; } if (cmse_invalid) @@ -5995,14 +5995,14 @@ cmse_scan (bfd *input_bfd, struct elf32_arm_link_hash_table *htab, _bfd_error_handler (_("%pB: invalid special symbol `%s'; it must be" " a global or weak function symbol"), input_bfd, sym_name); - ret = FALSE; + ret = false; if (i < ext_start) continue; } sym_name += strlen (CMSE_PREFIX); hash = (struct elf32_arm_link_hash_entry *) - elf_link_hash_lookup (&(htab)->root, sym_name, FALSE, FALSE, TRUE); + elf_link_hash_lookup (&(htab)->root, sym_name, false, false, true); /* No associated normal symbol or it is neither global nor weak. */ if (!hash @@ -6038,7 +6038,7 @@ cmse_scan (bfd *input_bfd, struct elf32_arm_link_hash_table *htab, else _bfd_error_handler (_("%pB: absent standard symbol `%s'"), input_bfd, sym_name); - ret = FALSE; + ret = false; if (!hash) continue; } @@ -6051,7 +6051,7 @@ cmse_scan (bfd *input_bfd, struct elf32_arm_link_hash_table *htab, _bfd_error_handler (_("%pB: `%s' and its special symbol are in different sections"), input_bfd, sym_name); - ret = FALSE; + ret = false; } if (cmse_hash->root.root.u.def.value != sym_value) continue; /* Ignore: could be an entry function starting with SG. */ @@ -6069,7 +6069,7 @@ cmse_scan (bfd *input_bfd, struct elf32_arm_link_hash_table *htab, { _bfd_error_handler (_("%pB: entry function `%s' is empty"), input_bfd, sym_name); - ret = FALSE; + ret = false; } if (!ret) @@ -6081,7 +6081,7 @@ cmse_scan (bfd *input_bfd, struct elf32_arm_link_hash_table *htab, sym_value, branch_type, &new_stub); if (stub_entry == NULL) - ret = FALSE; + ret = false; else { BFD_ASSERT (new_stub); @@ -6098,7 +6098,7 @@ cmse_scan (bfd *input_bfd, struct elf32_arm_link_hash_table *htab, code entry function, ie can be called from non secure code without using a veneer. */ -static bfd_boolean +static bool cmse_entry_fct_p (struct elf32_arm_link_hash_entry *hash) { bfd_byte contents[4]; @@ -6110,9 +6110,9 @@ cmse_entry_fct_p (struct elf32_arm_link_hash_entry *hash) /* Defined symbol of function type. */ if (hash->root.root.type != bfd_link_hash_defined && hash->root.root.type != bfd_link_hash_defweak) - return FALSE; + return false; if (hash->root.type != STT_FUNC) - return FALSE; + return false; /* Read first instruction. */ section = hash->root.root.u.def.section; @@ -6120,7 +6120,7 @@ cmse_entry_fct_p (struct elf32_arm_link_hash_entry *hash) offset = hash->root.root.u.def.value - section->vma; if (!bfd_get_section_contents (abfd, section, contents, offset, sizeof (contents))) - return FALSE; + return false; first_insn = bfd_get_32 (abfd, contents); @@ -6132,7 +6132,7 @@ cmse_entry_fct_p (struct elf32_arm_link_hash_entry *hash) secure gateway veneers (ie. the veneers was not in the input import library) and there is no output import library (GEN_INFO->out_implib_bfd is NULL. */ -static bfd_boolean +static bool arm_list_new_cmse_stub (struct bfd_hash_entry *gen_entry, void *gen_info) { struct elf32_arm_stub_hash_entry *stub_entry; @@ -6143,15 +6143,15 @@ arm_list_new_cmse_stub (struct bfd_hash_entry *gen_entry, void *gen_info) info = (struct bfd_link_info *) gen_info; if (info->out_implib_bfd) - return TRUE; + return true; if (stub_entry->stub_type != arm_stub_cmse_branch_thumb_only) - return TRUE; + return true; if (stub_entry->stub_offset == (bfd_vma) -1) _bfd_error_handler (" %s", stub_entry->output_name); - return TRUE; + return true; } /* Set offset of each secure gateway veneers so that its address remain @@ -6167,7 +6167,7 @@ arm_list_new_cmse_stub (struct bfd_hash_entry *gen_entry, void *gen_info) and this function and HTAB->new_cmse_stub_offset is set to the biggest veneer observed set for new veneers to be layed out after. */ -static bfd_boolean +static bool set_cmse_veneer_addr_from_implib (struct bfd_link_info *info, struct elf32_arm_link_hash_table *htab, int *cmse_stub_created) @@ -6178,7 +6178,7 @@ set_cmse_veneer_addr_from_implib (struct bfd_link_info *info, long i, symcount; bfd *in_implib_bfd; asection *stub_out_sec; - bfd_boolean ret = TRUE; + bool ret = true; Elf_Internal_Sym *intsym; const char *out_sec_name; bfd_size_type cmse_stub_size; @@ -6192,30 +6192,30 @@ set_cmse_veneer_addr_from_implib (struct bfd_link_info *info, /* No input secure gateway import library. */ if (!htab->in_implib_bfd) - return TRUE; + return true; in_implib_bfd = htab->in_implib_bfd; if (!htab->cmse_implib) { _bfd_error_handler (_("%pB: --in-implib only supported for Secure " "Gateway import libraries"), in_implib_bfd); - return FALSE; + return false; } /* Get symbol table size. */ symsize = bfd_get_symtab_upper_bound (in_implib_bfd); if (symsize < 0) - return FALSE; + return false; /* Read in the input secure gateway import library's symbol table. */ sympp = (asymbol **) bfd_malloc (symsize); if (sympp == NULL) - return FALSE; + return false; symcount = bfd_canonicalize_symtab (in_implib_bfd, sympp); if (symcount < 0) { - ret = FALSE; + ret = false; goto free_sym_buf; } @@ -6250,34 +6250,34 @@ set_cmse_veneer_addr_from_implib (struct bfd_link_info *info, "symbol should be absolute, global and " "refer to Thumb functions"), in_implib_bfd, sym_name); - ret = FALSE; + ret = false; continue; } veneer_value = bfd_asymbol_value (sym); stub_offset = veneer_value - cmse_stub_sec_vma; stub_entry = arm_stub_hash_lookup (&htab->stub_hash_table, sym_name, - FALSE, FALSE); + false, false); hash = (struct elf32_arm_link_hash_entry *) - elf_link_hash_lookup (&(htab)->root, sym_name, FALSE, FALSE, TRUE); + elf_link_hash_lookup (&(htab)->root, sym_name, false, false, true); /* Stub entry should have been created by cmse_scan or the symbol be of a secure function callable from non secure code. */ if (!stub_entry && !hash) { - bfd_boolean new_stub; + bool new_stub; _bfd_error_handler (_("entry function `%s' disappeared from secure code"), sym_name); hash = (struct elf32_arm_link_hash_entry *) - elf_link_hash_lookup (&(htab)->root, sym_name, TRUE, TRUE, TRUE); + elf_link_hash_lookup (&(htab)->root, sym_name, true, true, true); stub_entry = elf32_arm_create_stub (htab, arm_stub_cmse_branch_thumb_only, NULL, NULL, bfd_abs_section_ptr, hash, sym_name, veneer_value, ST_BRANCH_TO_THUMB, &new_stub); if (stub_entry == NULL) - ret = FALSE; + ret = false; else { BFD_ASSERT (new_stub); @@ -6294,7 +6294,7 @@ set_cmse_veneer_addr_from_implib (struct bfd_link_info *info, { _bfd_error_handler (_("`%s' refers to a non entry function"), sym_name); - ret = FALSE; + ret = false; } continue; } @@ -6318,7 +6318,7 @@ set_cmse_veneer_addr_from_implib (struct bfd_link_info *info, { _bfd_error_handler (_("%pB: incorrect size for symbol `%s'"), in_implib_bfd, sym_name); - ret = FALSE; + ret = false; } /* Previous veneer address is before current SG veneer section. */ @@ -6328,7 +6328,7 @@ set_cmse_veneer_addr_from_implib (struct bfd_link_info *info, if (stub_entry) stub_entry->stub_offset = 0; stub_offset = 0; - ret = FALSE; + ret = false; } /* Complain if stub offset not a multiple of stub size. */ @@ -6337,7 +6337,7 @@ set_cmse_veneer_addr_from_implib (struct bfd_link_info *info, _bfd_error_handler (_("offset of veneer for entry function `%s' not a multiple of " "its size"), sym_name); - ret = FALSE; + ret = false; } if (!ret) @@ -6365,7 +6365,7 @@ set_cmse_veneer_addr_from_implib (struct bfd_link_info *info, _bfd_error_handler (_("start address of `%s' is different from previous link"), out_sec_name); - ret = FALSE; + ret = false; } free_sym_buf: @@ -6379,7 +6379,7 @@ set_cmse_veneer_addr_from_implib (struct bfd_link_info *info, PC-relative calls to a target that is unreachable with a "bl" instruction. */ -bfd_boolean +bool elf32_arm_size_stubs (bfd *output_bfd, bfd *stub_bfd, struct bfd_link_info *info, @@ -6389,11 +6389,11 @@ elf32_arm_size_stubs (bfd *output_bfd, unsigned int), void (*layout_sections_again) (void)) { - bfd_boolean ret = TRUE; + bool ret = true; obj_attribute *out_attr; int cmse_stub_created = 0; bfd_size_type stub_group_size; - bfd_boolean m_profile, stubs_always_after_branch, first_veneer_scan = TRUE; + bool m_profile, stubs_always_after_branch, first_veneer_scan = true; struct elf32_arm_link_hash_table *htab = elf32_arm_hash_table (info); struct a8_erratum_fix *a8_fixes = NULL; unsigned int num_a8_fixes = 0, a8_fix_table_size = 10; @@ -6401,7 +6401,7 @@ elf32_arm_size_stubs (bfd *output_bfd, unsigned int num_a8_relocs = 0, a8_reloc_table_size = 10, i; if (htab == NULL) - return FALSE; + return false; if (htab->fix_cortex_a8) { @@ -6468,7 +6468,7 @@ elf32_arm_size_stubs (bfd *output_bfd, unsigned int bfd_indx; asection *stub_sec; enum elf32_arm_stub_type stub_type; - bfd_boolean stub_changed = FALSE; + bool stub_changed = false; unsigned prev_num_a8_fixes = num_a8_fixes; num_a8_fixes = 0; @@ -6506,7 +6506,7 @@ elf32_arm_size_stubs (bfd *output_bfd, goto error_ret_free_local; if (cmse_stub_created != 0) - stub_changed = TRUE; + stub_changed = true; } /* Walk over each section attached to the input bfd. */ @@ -6549,7 +6549,7 @@ elf32_arm_size_stubs (bfd *output_bfd, const char *sym_name; unsigned char st_type; enum arm_st_branch_type branch_type; - bfd_boolean created_stub = FALSE; + bool created_stub = false; r_type = ELF32_R_TYPE (irela->r_info); r_indx = ELF32_R_SYM (irela->r_info); @@ -6564,7 +6564,7 @@ elf32_arm_size_stubs (bfd *output_bfd, error_ret_free_local: if (symtab_hdr->contents != (unsigned char *) local_syms) free (local_syms); - return FALSE; + return false; } hash = NULL; @@ -6735,7 +6735,7 @@ elf32_arm_size_stubs (bfd *output_bfd, do { - bfd_boolean new_stub; + bool new_stub; struct elf32_arm_stub_hash_entry *stub_entry; /* Determine what (if any) linker stub is needed. */ @@ -6760,7 +6760,7 @@ elf32_arm_size_stubs (bfd *output_bfd, else if (!new_stub) break; else - stub_changed = TRUE; + stub_changed = true; } while (0); @@ -6839,10 +6839,10 @@ elf32_arm_size_stubs (bfd *output_bfd, if (first_veneer_scan && !set_cmse_veneer_addr_from_implib (info, htab, &cmse_stub_created)) - ret = FALSE; + ret = false; if (prev_num_a8_fixes != num_a8_fixes) - stub_changed = TRUE; + stub_changed = true; if (!stub_changed) break; @@ -6908,7 +6908,7 @@ elf32_arm_size_stubs (bfd *output_bfd, a8_fixes[i].section, htab, a8_fixes[i].stub_type); if (stub_sec == NULL) - return FALSE; + return false; stub_sec->size += find_stub_size_and_template (a8_fixes[i].stub_type, NULL, @@ -6918,7 +6918,7 @@ elf32_arm_size_stubs (bfd *output_bfd, /* Ask the linker to do its stuff. */ (*htab->layout_sections_again) (); - first_veneer_scan = FALSE; + first_veneer_scan = false; } /* Add stubs for Cortex-A8 erratum fixes now. */ @@ -6936,12 +6936,12 @@ elf32_arm_size_stubs (bfd *output_bfd, int template_size, size = 0; stub_entry = arm_stub_hash_lookup (&htab->stub_hash_table, stub_name, - TRUE, FALSE); + true, false); if (stub_entry == NULL) { _bfd_error_handler (_("%pB: cannot create stub entry %s"), section->owner, stub_name); - return FALSE; + return false; } stub_entry->stub_sec = stub_sec; @@ -6982,7 +6982,7 @@ elf32_arm_size_stubs (bfd *output_bfd, functions here. This function is called via arm_elf_finish in the linker. */ -bfd_boolean +bool elf32_arm_build_stubs (struct bfd_link_info *info) { asection *stub_sec; @@ -6992,7 +6992,7 @@ elf32_arm_build_stubs (struct bfd_link_info *info) htab = elf32_arm_hash_table (info); if (htab == NULL) - return FALSE; + return false; for (stub_sec = htab->stub_bfd->sections; stub_sec != NULL; @@ -7011,7 +7011,7 @@ elf32_arm_build_stubs (struct bfd_link_info *info) size = stub_sec->size; stub_sec->contents = (unsigned char *) bfd_zalloc (htab->stub_bfd, size); if (stub_sec->contents == NULL && size != 0) - return FALSE; + return false; stub_sec->size = 0; } @@ -7042,7 +7042,7 @@ elf32_arm_build_stubs (struct bfd_link_info *info) bfd_hash_traverse (table, arm_build_one_stub, info); } - return TRUE; + return true; } /* Locate the Thumb encoded calling stub for NAME. */ @@ -7069,7 +7069,7 @@ find_thumb_glue (struct bfd_link_info *link_info, sprintf (tmp_name, THUMB2ARM_GLUE_ENTRY_NAME, name); hash = elf_link_hash_lookup - (&(hash_table)->root, tmp_name, FALSE, FALSE, TRUE); + (&(hash_table)->root, tmp_name, false, false, true); if (hash == NULL && asprintf (error_message, _("unable to find %s glue '%s' for '%s'"), @@ -7104,7 +7104,7 @@ find_arm_glue (struct bfd_link_info *link_info, sprintf (tmp_name, ARM2THUMB_GLUE_ENTRY_NAME, name); myh = elf_link_hash_lookup - (&(hash_table)->root, tmp_name, FALSE, FALSE, TRUE); + (&(hash_table)->root, tmp_name, false, false, true); if (myh == NULL && asprintf (error_message, _("unable to find %s glue '%s' for '%s'"), @@ -7215,7 +7215,7 @@ arm_allocate_glue_section_space (bfd * abfd, bfd_size_type size, const char * na s->contents = contents; } -bfd_boolean +bool bfd_elf32_arm_allocate_interworking_sections (struct bfd_link_info * info) { struct elf32_arm_link_hash_table * globals; @@ -7243,7 +7243,7 @@ bfd_elf32_arm_allocate_interworking_sections (struct bfd_link_info * info) globals->bx_glue_size, ARM_BX_GLUE_SECTION_NAME); - return TRUE; + return true; } /* Allocate space and symbols for calling a Thumb function from Arm mode. @@ -7278,7 +7278,7 @@ record_arm_to_thumb_glue (struct bfd_link_info * link_info, sprintf (tmp_name, ARM2THUMB_GLUE_ENTRY_NAME, name); myh = elf_link_hash_lookup - (&(globals)->root, tmp_name, FALSE, FALSE, TRUE); + (&(globals)->root, tmp_name, false, false, true); if (myh != NULL) { @@ -7295,7 +7295,7 @@ record_arm_to_thumb_glue (struct bfd_link_info * link_info, val = globals->arm_glue_size + 1; _bfd_generic_link_add_one_symbol (link_info, globals->bfd_of_glue_owner, tmp_name, BSF_GLOBAL, s, val, - NULL, TRUE, FALSE, &bh); + NULL, true, false, &bh); myh = (struct elf_link_hash_entry *) bh; myh->type = ELF_ST_INFO (STB_LOCAL, STT_FUNC); @@ -7355,7 +7355,7 @@ record_arm_bx_glue (struct bfd_link_info * link_info, int reg) sprintf (tmp_name, ARM_BX_GLUE_ENTRY_NAME, reg); myh = elf_link_hash_lookup - (&(globals)->root, tmp_name, FALSE, FALSE, FALSE); + (&(globals)->root, tmp_name, false, false, false); BFD_ASSERT (myh == NULL); @@ -7363,7 +7363,7 @@ record_arm_bx_glue (struct bfd_link_info * link_info, int reg) val = globals->bx_glue_size; _bfd_generic_link_add_one_symbol (link_info, globals->bfd_of_glue_owner, tmp_name, BSF_FUNCTION | BSF_LOCAL, s, val, - NULL, TRUE, FALSE, &bh); + NULL, true, false, &bh); myh = (struct elf_link_hash_entry *) bh; myh->type = ELF_ST_INFO (STB_LOCAL, STT_FUNC); @@ -7447,7 +7447,7 @@ record_vfp11_erratum_veneer (struct bfd_link_info *link_info, hash_table->num_vfp11_fixes); myh = elf_link_hash_lookup - (&(hash_table)->root, tmp_name, FALSE, FALSE, FALSE); + (&(hash_table)->root, tmp_name, false, false, false); BFD_ASSERT (myh == NULL); @@ -7455,7 +7455,7 @@ record_vfp11_erratum_veneer (struct bfd_link_info *link_info, val = hash_table->vfp11_erratum_glue_size; _bfd_generic_link_add_one_symbol (link_info, hash_table->bfd_of_glue_owner, tmp_name, BSF_FUNCTION | BSF_LOCAL, s, val, - NULL, TRUE, FALSE, &bh); + NULL, true, false, &bh); myh = (struct elf_link_hash_entry *) bh; myh->type = ELF_ST_INFO (STB_LOCAL, STT_FUNC); @@ -7480,7 +7480,7 @@ record_vfp11_erratum_veneer (struct bfd_link_info *link_info, hash_table->num_vfp11_fixes); myh = elf_link_hash_lookup - (&(hash_table)->root, tmp_name, FALSE, FALSE, FALSE); + (&(hash_table)->root, tmp_name, false, false, false); if (myh != NULL) abort (); @@ -7488,7 +7488,7 @@ record_vfp11_erratum_veneer (struct bfd_link_info *link_info, bh = NULL; val = offset + 4; _bfd_generic_link_add_one_symbol (link_info, branch_bfd, tmp_name, BSF_LOCAL, - branch_sec, val, NULL, TRUE, FALSE, &bh); + branch_sec, val, NULL, true, false, &bh); myh = (struct elf_link_hash_entry *) bh; myh->type = ELF_ST_INFO (STB_LOCAL, STT_FUNC); @@ -7506,7 +7506,7 @@ record_vfp11_erratum_veneer (struct bfd_link_info *link_info, _bfd_generic_link_add_one_symbol (link_info, hash_table->bfd_of_glue_owner, "$a", BSF_LOCAL, s, 0, NULL, - TRUE, FALSE, &bh); + true, false, &bh); myh = (struct elf_link_hash_entry *) bh; myh->type = ELF_ST_INFO (STB_LOCAL, STT_NOTYPE); @@ -7566,7 +7566,7 @@ record_stm32l4xx_erratum_veneer (struct bfd_link_info *link_info, hash_table->num_stm32l4xx_fixes); myh = elf_link_hash_lookup - (&(hash_table)->root, tmp_name, FALSE, FALSE, FALSE); + (&(hash_table)->root, tmp_name, false, false, false); BFD_ASSERT (myh == NULL); @@ -7574,7 +7574,7 @@ record_stm32l4xx_erratum_veneer (struct bfd_link_info *link_info, val = hash_table->stm32l4xx_erratum_glue_size; _bfd_generic_link_add_one_symbol (link_info, hash_table->bfd_of_glue_owner, tmp_name, BSF_FUNCTION | BSF_LOCAL, s, val, - NULL, TRUE, FALSE, &bh); + NULL, true, false, &bh); myh = (struct elf_link_hash_entry *) bh; myh->type = ELF_ST_INFO (STB_LOCAL, STT_FUNC); @@ -7599,7 +7599,7 @@ record_stm32l4xx_erratum_veneer (struct bfd_link_info *link_info, hash_table->num_stm32l4xx_fixes); myh = elf_link_hash_lookup - (&(hash_table)->root, tmp_name, FALSE, FALSE, FALSE); + (&(hash_table)->root, tmp_name, false, false, false); if (myh != NULL) abort (); @@ -7607,7 +7607,7 @@ record_stm32l4xx_erratum_veneer (struct bfd_link_info *link_info, bh = NULL; val = offset + 4; _bfd_generic_link_add_one_symbol (link_info, branch_bfd, tmp_name, BSF_LOCAL, - branch_sec, val, NULL, TRUE, FALSE, &bh); + branch_sec, val, NULL, true, false, &bh); myh = (struct elf_link_hash_entry *) bh; myh->type = ELF_ST_INFO (STB_LOCAL, STT_FUNC); @@ -7624,7 +7624,7 @@ record_stm32l4xx_erratum_veneer (struct bfd_link_info *link_info, _bfd_generic_link_add_one_symbol (link_info, hash_table->bfd_of_glue_owner, "$t", BSF_LOCAL, s, 0, NULL, - TRUE, FALSE, &bh); + true, false, &bh); myh = (struct elf_link_hash_entry *) bh; myh->type = ELF_ST_INFO (STB_LOCAL, STT_NOTYPE); @@ -7651,7 +7651,7 @@ record_stm32l4xx_erratum_veneer (struct bfd_link_info *link_info, /* Create a fake section for use by the ARM backend of the linker. */ -static bfd_boolean +static bool arm_make_glue_section (bfd * abfd, const char * name) { asection * sec; @@ -7659,19 +7659,19 @@ arm_make_glue_section (bfd * abfd, const char * name) sec = bfd_get_linker_section (abfd, name); if (sec != NULL) /* Already made. */ - return TRUE; + return true; sec = bfd_make_section_anyway_with_flags (abfd, name, ARM_GLUE_SECTION_FLAGS); if (sec == NULL || !bfd_set_section_alignment (sec, 2)) - return FALSE; + return false; /* Set the gc mark to prevent the section from being removed by garbage collection, despite the fact that no relocs refer to this section. */ sec->gc_mark = 1; - return TRUE; + return true; } /* Set size of .plt entries. This function is called from the @@ -7680,25 +7680,25 @@ arm_make_glue_section (bfd * abfd, const char * name) void bfd_elf32_arm_use_long_plt (void) { - elf32_arm_use_long_plt_entry = TRUE; + elf32_arm_use_long_plt_entry = true; } /* Add the glue sections to ABFD. This function is called from the linker scripts in ld/emultempl/{armelf}.em. */ -bfd_boolean +bool bfd_elf32_arm_add_glue_sections_to_bfd (bfd *abfd, struct bfd_link_info *info) { struct elf32_arm_link_hash_table *globals = elf32_arm_hash_table (info); - bfd_boolean dostm32l4xx = globals + bool dostm32l4xx = globals && globals->stm32l4xx_fix != BFD_ARM_STM32L4XX_FIX_NONE; - bfd_boolean addglue; + bool addglue; /* If we are only performing a partial link do not bother adding the glue. */ if (bfd_link_relocatable (info)) - return TRUE; + return true; addglue = arm_make_glue_section (abfd, ARM2THUMB_GLUE_SECTION_NAME) && arm_make_glue_section (abfd, THUMB2ARM_GLUE_SECTION_NAME) @@ -7747,7 +7747,7 @@ bfd_elf32_arm_keep_private_stub_output_sections (struct bfd_link_info *info) This function is called from the linker scripts in ld/emultempl/ {armelf/pe}.em. */ -bfd_boolean +bool bfd_elf32_arm_get_bfd_for_interworking (bfd *abfd, struct bfd_link_info *info) { struct elf32_arm_link_hash_table *globals; @@ -7755,7 +7755,7 @@ bfd_elf32_arm_get_bfd_for_interworking (bfd *abfd, struct bfd_link_info *info) /* If we are only performing a partial link do not bother getting a bfd to hold the glue. */ if (bfd_link_relocatable (info)) - return TRUE; + return true; /* Make sure we don't attach the glue sections to a dynamic object. */ BFD_ASSERT (!(abfd->flags & DYNAMIC)); @@ -7764,12 +7764,12 @@ bfd_elf32_arm_get_bfd_for_interworking (bfd *abfd, struct bfd_link_info *info) BFD_ASSERT (globals != NULL); if (globals->bfd_of_glue_owner != NULL) - return TRUE; + return true; /* Save the bfd for later use. */ globals->bfd_of_glue_owner = abfd; - return TRUE; + return true; } static void @@ -7792,7 +7792,7 @@ check_use_blx (struct elf32_arm_link_hash_table *globals) } } -bfd_boolean +bool bfd_elf32_arm_process_before_allocation (bfd *abfd, struct bfd_link_info *link_info) { @@ -7807,7 +7807,7 @@ bfd_elf32_arm_process_before_allocation (bfd *abfd, /* If we are only performing a partial link do not bother to construct any glue. */ if (bfd_link_relocatable (link_info)) - return TRUE; + return true; /* Here we have a bfd that is to be included on the link. We have a hook to do reloc rummaging, before section sizes are nailed down. */ @@ -7820,20 +7820,20 @@ bfd_elf32_arm_process_before_allocation (bfd *abfd, { _bfd_error_handler (_("%pB: BE8 images only valid in big-endian mode"), abfd); - return FALSE; + return false; } /* PR 5398: If we have not decided to include any loadable sections in the output then we will not have a glue owner bfd. This is OK, it just means that there is nothing else for us to do here. */ if (globals->bfd_of_glue_owner == NULL) - return TRUE; + return true; /* Rummage around all the relocs and map the glue vectors. */ sec = abfd->sections; if (sec == NULL) - return TRUE; + return true; for (; sec != NULL; sec = sec->next) { @@ -7847,7 +7847,7 @@ bfd_elf32_arm_process_before_allocation (bfd *abfd, /* Load the relocs. */ internal_relocs - = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL, FALSE); + = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL, false); if (internal_relocs == NULL) goto error_return; @@ -7938,7 +7938,7 @@ bfd_elf32_arm_process_before_allocation (bfd *abfd, internal_relocs = NULL; } - return TRUE; + return true; error_return: if (elf_section_data (sec)->this_hdr.contents != contents) @@ -7946,7 +7946,7 @@ bfd_elf32_arm_process_before_allocation (bfd *abfd, if (elf_section_data (sec)->relocs != internal_relocs) free (internal_relocs); - return FALSE; + return false; } #endif @@ -8098,7 +8098,7 @@ enum bfd_arm_vfp11_pipe encounter VFP3 instructions, so we allow the full range for DP registers. */ static unsigned int -bfd_arm_vfp11_regno (unsigned int insn, bfd_boolean is_double, unsigned int rx, +bfd_arm_vfp11_regno (unsigned int insn, bool is_double, unsigned int rx, unsigned int x) { if (is_double) @@ -8121,7 +8121,7 @@ bfd_arm_vfp11_write_mask (unsigned int *wmask, unsigned int reg) /* Return TRUE if WMASK overwrites anything in REGS. */ -static bfd_boolean +static bool bfd_arm_vfp11_antidependency (unsigned int wmask, int *regs, int numregs) { int i; @@ -8131,7 +8131,7 @@ bfd_arm_vfp11_antidependency (unsigned int wmask, int *regs, int numregs) unsigned int reg = regs[i]; if (reg < 32 && (wmask & (1 << reg)) != 0) - return TRUE; + return true; reg -= 32; @@ -8139,10 +8139,10 @@ bfd_arm_vfp11_antidependency (unsigned int wmask, int *regs, int numregs) continue; if ((wmask & (3 << (reg * 2))) != 0) - return TRUE; + return true; } - return FALSE; + return false; } /* In this function, we're interested in two things: finding input registers @@ -8158,7 +8158,7 @@ bfd_arm_vfp11_insn_decode (unsigned int insn, unsigned int *destmask, int *regs, int *numregs) { enum bfd_arm_vfp11_pipe vpipe = VFP11_BAD; - bfd_boolean is_double = ((insn & 0xf00) == 0xb00) ? 1 : 0; + bool is_double = ((insn & 0xf00) == 0xb00) ? 1 : 0; if ((insn & 0x0f000e10) == 0x0e000a00) /* A data-processing insn. */ { @@ -8346,7 +8346,7 @@ static int elf32_arm_compare_mapping (const void * a, const void * b); (available from ARM) for details of the erratum. A short version is described in ld.texinfo. */ -bfd_boolean +bool bfd_elf32_arm_vfp11_erratum_scan (bfd *abfd, struct bfd_link_info *link_info) { asection *sec; @@ -8357,7 +8357,7 @@ bfd_elf32_arm_vfp11_erratum_scan (bfd *abfd, struct bfd_link_info *link_info) int use_vector = (globals->vfp11_fix == BFD_ARM_VFP11_FIX_VECTOR); if (globals == NULL) - return FALSE; + return false; /* We use a simple FSM to match troublesome VFP11 instruction sequences. The states transition as follows: @@ -8388,21 +8388,21 @@ bfd_elf32_arm_vfp11_erratum_scan (bfd *abfd, struct bfd_link_info *link_info) /* If we are only performing a partial link do not bother to construct any glue. */ if (bfd_link_relocatable (link_info)) - return TRUE; + return true; /* Skip if this bfd does not correspond to an ELF image. */ if (! is_arm_elf (abfd)) - return TRUE; + return true; /* We should have chosen a fix type by the time we get here. */ BFD_ASSERT (globals->vfp11_fix != BFD_ARM_VFP11_FIX_DEFAULT); if (globals->vfp11_fix == BFD_ARM_VFP11_FIX_NONE) - return TRUE; + return true; /* Skip this BFD if it corresponds to an executable or dynamic object. */ if ((abfd->flags & (EXEC_P | DYNAMIC)) != 0) - return TRUE; + return true; for (sec = abfd->sections; sec != NULL; sec = sec->next) { @@ -8551,13 +8551,13 @@ bfd_elf32_arm_vfp11_erratum_scan (bfd *abfd, struct bfd_link_info *link_info) contents = NULL; } - return TRUE; + return true; error_return: if (elf_section_data (sec)->this_hdr.contents != contents) free (contents); - return FALSE; + return false; } /* Find virtual-memory addresses for VFP11 erratum veneers and return locations @@ -8605,7 +8605,7 @@ bfd_elf32_arm_vfp11_fix_veneer_locations (bfd *abfd, errnode->u.b.veneer->u.v.id); myh = elf_link_hash_lookup - (&(globals)->root, tmp_name, FALSE, FALSE, TRUE); + (&(globals)->root, tmp_name, false, false, true); if (myh == NULL) _bfd_error_handler (_("%pB: unable to find %s veneer `%s'"), @@ -8625,7 +8625,7 @@ bfd_elf32_arm_vfp11_fix_veneer_locations (bfd *abfd, errnode->u.v.id); myh = elf_link_hash_lookup - (&(globals)->root, tmp_name, FALSE, FALSE, TRUE); + (&(globals)->root, tmp_name, false, false, true); if (myh == NULL) _bfd_error_handler (_("%pB: unable to find %s veneer `%s'"), @@ -8692,7 +8692,7 @@ bfd_elf32_arm_stm32l4xx_fix_veneer_locations (bfd *abfd, errnode->u.b.veneer->u.v.id); myh = elf_link_hash_lookup - (&(globals)->root, tmp_name, FALSE, FALSE, TRUE); + (&(globals)->root, tmp_name, false, false, true); if (myh == NULL) _bfd_error_handler (_("%pB: unable to find %s veneer `%s'"), @@ -8711,7 +8711,7 @@ bfd_elf32_arm_stm32l4xx_fix_veneer_locations (bfd *abfd, errnode->u.v.id); myh = elf_link_hash_lookup - (&(globals)->root, tmp_name, FALSE, FALSE, TRUE); + (&(globals)->root, tmp_name, false, false, true); if (myh == NULL) _bfd_error_handler (_("%pB: unable to find %s veneer `%s'"), @@ -8733,7 +8733,7 @@ bfd_elf32_arm_stm32l4xx_fix_veneer_locations (bfd *abfd, free (tmp_name); } -static inline bfd_boolean +static inline bool is_thumb2_ldmia (const insn32 insn) { /* Encoding T2: LDM<c>.W <Rn>{!},<registers> @@ -8741,7 +8741,7 @@ is_thumb2_ldmia (const insn32 insn) return (insn & 0xffd02000) == 0xe8900000; } -static inline bfd_boolean +static inline bool is_thumb2_ldmdb (const insn32 insn) { /* Encoding T1: LDMDB<c> <Rn>{!},<registers> @@ -8749,7 +8749,7 @@ is_thumb2_ldmdb (const insn32 insn) return (insn & 0xffd02000) == 0xe9100000; } -static inline bfd_boolean +static inline bool is_thumb2_vldm (const insn32 insn) { /* A6.5 Extension register load or store instruction @@ -8781,7 +8781,7 @@ is_thumb2_vldm (const insn32 insn) . replaces only if > 8-word accesses . or (testing purposes only) replaces all accesses. */ -static bfd_boolean +static bool stm32l4xx_need_create_replacing_stub (const insn32 insn, bfd_arm_stm32l4xx_fix stm32l4xx_fix) { @@ -8804,7 +8804,7 @@ stm32l4xx_need_create_replacing_stub (const insn32 insn, /* Look for potentially-troublesome code sequences which might trigger the STM STM32L4XX erratum. */ -bfd_boolean +bool bfd_elf32_arm_stm32l4xx_erratum_scan (bfd *abfd, struct bfd_link_info *link_info) { @@ -8813,23 +8813,23 @@ bfd_elf32_arm_stm32l4xx_erratum_scan (bfd *abfd, struct elf32_arm_link_hash_table *globals = elf32_arm_hash_table (link_info); if (globals == NULL) - return FALSE; + return false; /* If we are only performing a partial link do not bother to construct any glue. */ if (bfd_link_relocatable (link_info)) - return TRUE; + return true; /* Skip if this bfd does not correspond to an ELF image. */ if (! is_arm_elf (abfd)) - return TRUE; + return true; if (globals->stm32l4xx_fix == BFD_ARM_STM32L4XX_FIX_NONE) - return TRUE; + return true; /* Skip this BFD if it corresponds to an executable or dynamic object. */ if ((abfd->flags & (EXEC_P | DYNAMIC)) != 0) - return TRUE; + return true; for (sec = abfd->sections; sec != NULL; sec = sec->next) { @@ -8876,17 +8876,17 @@ bfd_elf32_arm_stm32l4xx_erratum_scan (bfd *abfd, for (i = span_start; i < span_end;) { unsigned int insn = bfd_get_16 (abfd, &contents[i]); - bfd_boolean insn_32bit = FALSE; - bfd_boolean is_ldm = FALSE; - bfd_boolean is_vldm = FALSE; - bfd_boolean is_not_last_in_it_block = FALSE; + bool insn_32bit = false; + bool is_ldm = false; + bool is_vldm = false; + bool is_not_last_in_it_block = false; /* The first 16-bits of all 32-bit thumb2 instructions start with opcode[15..13]=0b111 and the encoded op1 can be anything except opcode[12..11]!=0b00. See 32-bit Thumb instruction encoding. */ if ((insn & 0xe000) == 0xe000 && (insn & 0x1800) != 0x0000) - insn_32bit = TRUE; + insn_32bit = true; /* Compute the predicate that tells if the instruction is concerned by the IT block @@ -8964,7 +8964,7 @@ bfd_elf32_arm_stm32l4xx_erratum_scan (bfd *abfd, There can be no nested IT blocks so an IT block is naturally a new one for which it is worth computing its size. */ - bfd_boolean is_newitblock = ((insn & 0xff00) == 0xbf00) + bool is_newitblock = ((insn & 0xff00) == 0xbf00) && ((insn & 0x000f) != 0x0000); /* If we have a new IT block we compute its size. */ if (is_newitblock) @@ -8986,13 +8986,13 @@ bfd_elf32_arm_stm32l4xx_erratum_scan (bfd *abfd, contents = NULL; } - return TRUE; + return true; error_return: if (elf_section_data (sec)->this_hdr.contents != contents) free (contents); - return FALSE; + return false; } /* Set target relocation values needed during linking. */ @@ -9090,7 +9090,7 @@ elf32_thumb_to_arm_stub (struct bfd_link_info * info, myh = find_thumb_glue (info, name, error_message); if (myh == NULL) - return FALSE; + return false; globals = elf32_arm_hash_table (info); BFD_ASSERT (globals != NULL); @@ -9116,7 +9116,7 @@ elf32_thumb_to_arm_stub (struct bfd_link_info * info, " first occurrence: %pB: %s call to %s"), sym_sec->owner, name, input_bfd, "Thumb", "ARM"); - return FALSE; + return false; } --my_offset; @@ -9165,7 +9165,7 @@ elf32_thumb_to_arm_stub (struct bfd_link_info * info, insert_thumb_branch (input_bfd, ret_offset, hit_data - input_section->vma); - return TRUE; + return true; } /* Populate an Arm to Thumb stub. Returns the stub symbol. */ @@ -9298,7 +9298,7 @@ elf32_arm_to_thumb_stub (struct bfd_link_info * info, myh = elf32_arm_create_thumb_stub (info, name, input_bfd, output_bfd, sym_sec, val, s, error_message); if (!myh) - return FALSE; + return false; my_offset = myh->root.u.def.value; tmp = bfd_get_32 (input_bfd, hit_data); @@ -9317,12 +9317,12 @@ elf32_arm_to_thumb_stub (struct bfd_link_info * info, bfd_put_32 (output_bfd, (bfd_vma) tmp, hit_data - input_section->vma); - return TRUE; + return true; } /* Populate Arm stub for an exported Thumb function. */ -static bfd_boolean +static bool elf32_arm_to_thumb_export_stub (struct elf_link_hash_entry *h, void * inf) { struct bfd_link_info * info = (struct bfd_link_info *) inf; @@ -9337,7 +9337,7 @@ elf32_arm_to_thumb_export_stub (struct elf_link_hash_entry *h, void * inf) eh = elf32_arm_hash_entry (h); /* Allocate stubs for exported Thumb functions on v4t. */ if (eh->export_glue == NULL) - return TRUE; + return true; globals = elf32_arm_hash_table (info); BFD_ASSERT (globals != NULL); @@ -9361,7 +9361,7 @@ elf32_arm_to_thumb_export_stub (struct elf_link_hash_entry *h, void * inf) globals->obfd, sec, val, s, &error_message); BFD_ASSERT (myh); - return TRUE; + return true; } /* Populate ARMv4 BX veneers. Returns the absolute adress of the veneer. */ @@ -9488,7 +9488,7 @@ elf32_arm_add_dynreloc (bfd *output_bfd, struct bfd_link_info *info, static void elf32_arm_allocate_plt_entry (struct bfd_link_info *info, - bfd_boolean is_iplt_entry, + bool is_iplt_entry, union gotplt_union *root_plt, struct arm_plt_info *arm_plt) { @@ -9582,7 +9582,7 @@ arm_movt_immediate (bfd_vma value) Returns FALSE if there was a problem. */ -static bfd_boolean +static bool elf32_arm_populate_plt_entry (bfd *output_bfd, struct bfd_link_info *info, union gotplt_union *root_plt, struct arm_plt_info *arm_plt, @@ -9791,7 +9791,7 @@ elf32_arm_populate_plt_entry (bfd *output_bfd, struct bfd_link_info *info, instructions... */ _bfd_error_handler (_("%pB: warning: thumb-1 mode PLT generation not currently supported"), output_bfd); - return FALSE; + return false; } /* Calculate the displacement between the PLT slot and the entry in @@ -9954,7 +9954,7 @@ elf32_arm_populate_plt_entry (bfd *output_bfd, struct bfd_link_info *info, } } - return TRUE; + return true; } /* Some relocations map to different relocations depending on the @@ -10259,7 +10259,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, unsigned char st_type, enum arm_st_branch_type branch_type, struct elf_link_hash_entry * h, - bfd_boolean * unresolved_reloc_p, + bool * unresolved_reloc_p, char ** error_message) { unsigned long r_type = howto->type; @@ -10281,8 +10281,8 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, struct arm_plt_info *arm_plt; bfd_vma plt_offset; bfd_vma gotplt_offset; - bfd_boolean has_iplt_entry; - bfd_boolean resolved_to_zero; + bool has_iplt_entry; + bool resolved_to_zero; globals = elf32_arm_hash_table (info); if (globals == NULL) @@ -10353,7 +10353,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, /* Find out whether the symbol has a PLT. Set ST_VALUE, BRANCH_TYPE and VALUE appropriately for relocations that we resolve at link time. */ - has_iplt_entry = FALSE; + has_iplt_entry = false; if (elf32_arm_get_plt_info (input_bfd, globals, eh, r_symndx, &root_plt, &arm_plt) && root_plt->offset != (bfd_vma) -1) @@ -10363,7 +10363,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, if (h == NULL || eh->is_iplt) { - has_iplt_entry = TRUE; + has_iplt_entry = true; splt = globals->root.iplt; /* Populate .iplt entries here, because not all of them will @@ -10414,7 +10414,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, case R_ARM_NONE: /* We don't need to find a value for this symbol. It's just a marker. */ - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; return bfd_reloc_ok; case R_ARM_ABS12: @@ -10453,7 +10453,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, value = (splt->output_section->vma + splt->output_offset + plt_offset); - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; return _bfd_final_link_relocate (howto, input_bfd, input_section, contents, rel->r_offset, value, rel->r_addend); @@ -10484,7 +10484,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, && r_type != R_ARM_PLT32) { Elf_Internal_Rela outrel; - bfd_boolean skip, relocate; + bool skip, relocate; int isrofixup = 0; if ((r_type == R_ARM_REL32 || r_type == R_ARM_REL32_NOI) @@ -10502,7 +10502,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, return bfd_reloc_notsupported; } - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; if (sreloc == NULL && globals->root.dynamic_sections_created) { @@ -10513,17 +10513,17 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, return bfd_reloc_notsupported; } - skip = FALSE; - relocate = FALSE; + skip = false; + relocate = false; outrel.r_addend = addend; outrel.r_offset = _bfd_elf_section_offset (output_bfd, info, input_section, rel->r_offset); if (outrel.r_offset == (bfd_vma) -1) - skip = TRUE; + skip = true; else if (outrel.r_offset == (bfd_vma) -2) - skip = TRUE, relocate = TRUE; + skip = true, relocate = true; outrel.r_offset += (input_section->output_section->vma + input_section->output_offset); @@ -10558,7 +10558,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, else outrel.r_info = ELF32_R_INFO (symbol, R_ARM_RELATIVE); if (globals->use_rel) - relocate = TRUE; + relocate = true; else outrel.r_addend += dynreloc_value; } @@ -10649,7 +10649,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, + stub_entry->stub_sec->output_section->vma); if (plt_offset != (bfd_vma) -1) - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; } } else @@ -10661,7 +10661,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, value = (splt->output_section->vma + splt->output_offset + plt_offset); - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; /* The PLT entry is in ARM mode, regardless of the target function. */ branch_type = ST_BRANCH_TO_ARM; @@ -10958,7 +10958,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, { bfd_vma relocation; bfd_vma reloc_sign; - bfd_boolean overflow = FALSE; + bool overflow = false; bfd_vma upper_insn = bfd_get_16 (input_bfd, hit_data); bfd_vma lower_insn = bfd_get_16 (input_bfd, hit_data + 2); bfd_signed_vma reloc_signed_max; @@ -11085,7 +11085,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, + stub_entry->stub_sec->output_section->vma); if (plt_offset != (bfd_vma) -1) - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; } /* If this call becomes a call to Arm, force BLX. */ @@ -11123,7 +11123,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, value -= PLT_THUMB_STUB_SIZE; branch_type = ST_BRANCH_TO_THUMB; } - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; } relocation = value + signed_addend; @@ -11152,7 +11152,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, /* Assumes two's complement. */ if (signed_check > reloc_signed_max || signed_check < reloc_signed_min) - overflow = TRUE; + overflow = true; if ((lower_insn & 0x5000) == 0x4000) /* For a BLX instruction, make sure that the relocation is rounded up @@ -11185,7 +11185,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, /* Thumb32 conditional branch instruction. */ { bfd_vma relocation; - bfd_boolean overflow = FALSE; + bool overflow = false; bfd_vma upper_insn = bfd_get_16 (input_bfd, hit_data); bfd_vma lower_insn = bfd_get_16 (input_bfd, hit_data + 2); bfd_signed_vma reloc_signed_max = 0xffffe; @@ -11222,7 +11222,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, + plt_offset); /* Target the Thumb stub before the ARM PLT entry. */ value -= PLT_THUMB_STUB_SIZE; - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; } hash = (struct elf32_arm_link_hash_entry *)h; @@ -11252,7 +11252,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, signed_check = (bfd_signed_vma) relocation; if (signed_check > reloc_signed_max || signed_check < reloc_signed_min) - overflow = TRUE; + overflow = true; /* Put RELOCATION back into the insn. */ { @@ -11376,7 +11376,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, if (sgot == NULL) return bfd_reloc_notsupported; - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; value = sgot->output_section->vma; return _bfd_final_link_relocate (howto, input_bfd, input_section, contents, rel->r_offset, value, @@ -11414,7 +11414,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, off &= ~1; if (globals->root.dynamic_sections_created && !SYMBOL_REFERENCES_LOCAL (info, h)) - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; } else { @@ -11431,7 +11431,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, if (globals->root.dynamic_sections_created) { outrel.r_info = ELF32_R_INFO (h->dynindx, R_ARM_GLOB_DAT); - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; } else outrel.r_info = 0; @@ -11628,7 +11628,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, if (h != NULL) { - bfd_boolean dyn; + bool dyn; dyn = globals->root.dynamic_sections_created; if (WILL_CALL_FINISH_DYNAMIC_SYMBOL (dyn, bfd_link_pic (info), @@ -11636,7 +11636,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, && (!bfd_link_pic (info) || !SYMBOL_REFERENCES_LOCAL (info, h))) { - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; indx = h->dynindx; } off = h->got.offset; @@ -11662,7 +11662,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, off &= ~1; else { - bfd_boolean need_relocs = FALSE; + bool need_relocs = false; Elf_Internal_Rela outrel; int cur_off = off; @@ -11676,7 +11676,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, && !resolved_to_zero) || h->root.type != bfd_link_hash_undefweak)) { - need_relocs = TRUE; + need_relocs = true; BFD_ASSERT (srelgot != NULL); } @@ -12557,7 +12557,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, bfd_put_16 (input_bfd, insn, hit_data); } - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; return bfd_reloc_ok; case R_ARM_GOTOFFFUNCDESC: @@ -12618,7 +12618,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, dynindx, offset, addr, dynreloc_value, seg); } } - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; return bfd_reloc_ok; case R_ARM_GOTFUNCDESC: @@ -12699,7 +12699,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, abort(); } } - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; return bfd_reloc_ok; case R_ARM_FUNCDESC: @@ -12793,7 +12793,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, } } } - *unresolved_reloc_p = FALSE; + *unresolved_reloc_p = false; return bfd_reloc_ok; case R_ARM_THM_BF16: @@ -13043,7 +13043,7 @@ elf32_arm_relocate_section (bfd * output_bfd, globals = elf32_arm_hash_table (info); if (globals == NULL) - return FALSE; + return false; symtab_hdr = & elf_symtab_hdr (input_bfd); sym_hashes = elf_sym_hashes (input_bfd); @@ -13062,7 +13062,7 @@ elf32_arm_relocate_section (bfd * output_bfd, bfd_reloc_status_type r; arelent bfd_reloc; char sym_type; - bfd_boolean unresolved_reloc = FALSE; + bool unresolved_reloc = false; char *error_message = NULL; r_symndx = ELF32_R_SYM (rel->r_info); @@ -13103,7 +13103,7 @@ elf32_arm_relocate_section (bfd * output_bfd, (info, bfd_elf_string_from_elf_section (input_bfd, symtab_hdr->sh_link, sym->st_name), input_bfd, input_section, - rel->r_offset, TRUE); + rel->r_offset, true); if (globals->use_rel) { @@ -13147,7 +13147,7 @@ elf32_arm_relocate_section (bfd * output_bfd, "%s relocation against SEC_MERGE section"), input_bfd, input_section, (uint64_t) rel->r_offset, howto->name); - return FALSE; + return false; } value = bfd_get_32 (input_bfd, contents + rel->r_offset); @@ -13205,7 +13205,7 @@ elf32_arm_relocate_section (bfd * output_bfd, } else { - bfd_boolean warned, ignored; + bool warned, ignored; RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, r_symndx, symtab_hdr, sym_hashes, @@ -13318,7 +13318,7 @@ elf32_arm_relocate_section (bfd * output_bfd, (uint64_t) rel->r_offset, howto->name, h->root.root.string); - return FALSE; + return false; } if (r != bfd_reloc_ok) @@ -13337,7 +13337,7 @@ elf32_arm_relocate_section (bfd * output_bfd, case bfd_reloc_undefined: (*info->callbacks->undefined_symbol) - (info, name, input_bfd, input_section, rel->r_offset, TRUE); + (info, name, input_bfd, input_section, rel->r_offset, true); break; case bfd_reloc_outofrange: @@ -13365,7 +13365,7 @@ elf32_arm_relocate_section (bfd * output_bfd, } } - return TRUE; + return true; } /* Add a new unwind edit to the list described by HEAD, TAIL. If TINDEX is zero, @@ -13456,11 +13456,11 @@ insert_cantunwind_after(asection *text_sec, asection *exidx_sec) The edits are applied when the tables are written (in elf32_arm_write_section). */ -bfd_boolean +bool elf32_arm_fix_exidx_coverage (asection **text_section_order, unsigned int num_text_sections, struct bfd_link_info *info, - bfd_boolean merge_exidx_entries) + bool merge_exidx_entries) { bfd *inp; unsigned int last_second_word = 0, i; @@ -13626,10 +13626,10 @@ elf32_arm_fix_exidx_coverage (asection **text_section_order, && last_unwind_type != 0) insert_cantunwind_after(last_text_sec, last_exidx_sec); - return TRUE; + return true; } -static bfd_boolean +static bool elf32_arm_output_glue_section (struct bfd_link_info *info, bfd *obfd, bfd *ibfd, const char *name) { @@ -13637,31 +13637,31 @@ elf32_arm_output_glue_section (struct bfd_link_info *info, bfd *obfd, sec = bfd_get_linker_section (ibfd, name); if (sec == NULL || (sec->flags & SEC_EXCLUDE) != 0) - return TRUE; + return true; osec = sec->output_section; if (elf32_arm_write_section (obfd, info, sec, sec->contents)) - return TRUE; + return true; if (! bfd_set_section_contents (obfd, osec, sec->contents, sec->output_offset, sec->size)) - return FALSE; + return false; - return TRUE; + return true; } -static bfd_boolean +static bool elf32_arm_final_link (bfd *abfd, struct bfd_link_info *info) { struct elf32_arm_link_hash_table *globals = elf32_arm_hash_table (info); asection *sec, *osec; if (globals == NULL) - return FALSE; + return false; /* Invoke the regular ELF backend linker to do all the work. */ if (!bfd_elf_final_link (abfd, info)) - return FALSE; + return false; /* Process stub sections (eg BE8 encoding, ...). */ struct elf32_arm_link_hash_table *htab = elf32_arm_hash_table (info); @@ -13676,7 +13676,7 @@ elf32_arm_final_link (bfd *abfd, struct bfd_link_info *info) elf32_arm_write_section (abfd, info, sec, sec->contents); if (! bfd_set_section_contents (abfd, osec, sec->contents, sec->output_offset, sec->size)) - return FALSE; + return false; } } @@ -13687,30 +13687,30 @@ elf32_arm_final_link (bfd *abfd, struct bfd_link_info *info) if (! elf32_arm_output_glue_section (info, abfd, globals->bfd_of_glue_owner, ARM2THUMB_GLUE_SECTION_NAME)) - return FALSE; + return false; if (! elf32_arm_output_glue_section (info, abfd, globals->bfd_of_glue_owner, THUMB2ARM_GLUE_SECTION_NAME)) - return FALSE; + return false; if (! elf32_arm_output_glue_section (info, abfd, globals->bfd_of_glue_owner, VFP11_ERRATUM_VENEER_SECTION_NAME)) - return FALSE; + return false; if (! elf32_arm_output_glue_section (info, abfd, globals->bfd_of_glue_owner, STM32L4XX_ERRATUM_VENEER_SECTION_NAME)) - return FALSE; + return false; if (! elf32_arm_output_glue_section (info, abfd, globals->bfd_of_glue_owner, ARM_BX_GLUE_SECTION_NAME)) - return FALSE; + return false; } - return TRUE; + return true; } /* Return a best guess for the machine number based on the attributes. */ @@ -13800,7 +13800,7 @@ bfd_arm_get_mach_from_attributes (bfd * abfd) /* Set the right machine number. */ -static bfd_boolean +static bool elf32_arm_object_p (bfd *abfd) { unsigned int mach; @@ -13816,12 +13816,12 @@ elf32_arm_object_p (bfd *abfd) } bfd_default_set_arch_mach (abfd, bfd_arch_arm, mach); - return TRUE; + return true; } /* Function to keep ARM specific flags in the ELF header. */ -static bfd_boolean +static bool elf32_arm_set_private_flags (bfd *abfd, flagword flags) { if (elf_flags_init (abfd) @@ -13842,22 +13842,22 @@ elf32_arm_set_private_flags (bfd *abfd, flagword flags) else { elf_elfheader (abfd)->e_flags = flags; - elf_flags_init (abfd) = TRUE; + elf_flags_init (abfd) = true; } - return TRUE; + return true; } /* Copy backend specific data from one object module to another. */ -static bfd_boolean +static bool elf32_arm_copy_private_bfd_data (bfd *ibfd, bfd *obfd) { flagword in_flags; flagword out_flags; if (! is_arm_elf (ibfd) || ! is_arm_elf (obfd)) - return TRUE; + return true; in_flags = elf_elfheader (ibfd)->e_flags; out_flags = elf_elfheader (obfd)->e_flags; @@ -13868,11 +13868,11 @@ elf32_arm_copy_private_bfd_data (bfd *ibfd, bfd *obfd) { /* Cannot mix APCS26 and APCS32 code. */ if ((in_flags & EF_ARM_APCS_26) != (out_flags & EF_ARM_APCS_26)) - return FALSE; + return false; /* Cannot mix float APCS and non-float APCS code. */ if ((in_flags & EF_ARM_APCS_FLOAT) != (out_flags & EF_ARM_APCS_FLOAT)) - return FALSE; + return false; /* If the src and dest have different interworking flags then turn off the interworking bit. */ @@ -13892,7 +13892,7 @@ elf32_arm_copy_private_bfd_data (bfd *ibfd, bfd *obfd) } elf_elfheader (obfd)->e_flags = in_flags; - elf_flags_init (obfd) = TRUE; + elf_flags_init (obfd) = true; return _bfd_elf_copy_private_bfd_data (ibfd, obfd); } @@ -13961,7 +13961,7 @@ elf32_arm_obj_attrs_order (int num) } /* Attribute numbers >=64 (mod 128) can be safely ignored. */ -static bfd_boolean +static bool elf32_arm_obj_attrs_handle_unknown (bfd *abfd, int tag) { if ((tag & 127) < 64) @@ -13970,14 +13970,14 @@ elf32_arm_obj_attrs_handle_unknown (bfd *abfd, int tag) (_("%pB: unknown mandatory EABI object attribute %d"), abfd, tag); bfd_set_error (bfd_error_bad_value); - return FALSE; + return false; } else { _bfd_error_handler (_("warning: %pB: unknown EABI object attribute %d"), abfd, tag); - return TRUE; + return true; } } @@ -14324,7 +14324,7 @@ tag_cpu_arch_combine (bfd *ibfd, int oldtag, int *secondary_compat_out, /* Query attributes object to see if integer divide instructions may be present in an object. */ -static bfd_boolean +static bool elf32_arm_attributes_accept_div (const obj_attribute *attr) { int arch = attr[Tag_CPU_arch].i; @@ -14335,28 +14335,28 @@ elf32_arm_attributes_accept_div (const obj_attribute *attr) case 0: /* Integer divide allowed if instruction contained in archetecture. */ if (arch == TAG_CPU_ARCH_V7 && (profile == 'R' || profile == 'M')) - return TRUE; + return true; else if (arch >= TAG_CPU_ARCH_V7E_M) - return TRUE; + return true; else - return FALSE; + return false; case 1: /* Integer divide explicitly prohibited. */ - return FALSE; + return false; default: /* Unrecognised case - treat as allowing divide everywhere. */ case 2: /* Integer divide allowed in ARM state. */ - return TRUE; + return true; } } /* Query attributes object to see if integer divide instructions are forbidden to be in the object. This is not the inverse of elf32_arm_attributes_accept_div. */ -static bfd_boolean +static bool elf32_arm_attributes_forbid_div (const obj_attribute *attr) { return attr[Tag_DIV_use].i == 1; @@ -14365,7 +14365,7 @@ elf32_arm_attributes_forbid_div (const obj_attribute *attr) /* Merge EABI object attributes from IBFD into OBFD. Raise an error if there are conflicting attributes. */ -static bfd_boolean +static bool elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) { bfd *obfd = info->output_bfd; @@ -14375,20 +14375,20 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) 2 = weak requirement. */ static const int order_021[3] = {0, 2, 1}; int i; - bfd_boolean result = TRUE; + bool result = true; const char *sec_name = get_elf_backend_data (ibfd)->obj_attrs_section; /* Skip the linker stubs file. This preserves previous behavior of accepting unknown attributes in the first input file - but is that a bug? */ if (ibfd->flags & BFD_LINKER_CREATED) - return TRUE; + return true; /* Skip any input that hasn't attribute section. This enables to link object files without attribute section with any others. */ if (bfd_get_section_by_name (ibfd, sec_name) == NULL) - return TRUE; + return true; if (!elf_known_obj_attributes_proc (obfd)[0].i) { @@ -14412,7 +14412,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) _bfd_error_handler (_("Error: %pB has both the current and legacy " "Tag_MPextension_use attributes"), ibfd); - result = FALSE; + result = false; } out_attr[Tag_MPextension_use] = @@ -14442,7 +14442,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) (_("error: %pB uses VFP register arguments, %pB does not"), in_attr[Tag_ABI_VFP_args].i ? ibfd : obfd, in_attr[Tag_ABI_VFP_args].i ? obfd : ibfd); - result = FALSE; + result = false; } } @@ -14499,7 +14499,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) /* Return with error if failed to merge. */ if (arch_attr == -1) - return FALSE; + return false; out_attr[i].i = arch_attr; @@ -14571,7 +14571,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) _bfd_error_handler (_("error: %pB: 8-byte data alignment conflicts with %pB"), obfd, ibfd); - result = FALSE; */ + result = false; */ } /* Fall through. */ case Tag_ABI_FP_denormal: @@ -14601,7 +14601,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) (_("error: %pB: unable to merge virtualization attributes " "with %pB"), obfd, ibfd); - result = FALSE; + result = false; } } break; @@ -14628,7 +14628,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) ibfd, in_attr[i].i ? in_attr[i].i : '0', out_attr[i].i ? out_attr[i].i : '0'); - result = FALSE; + result = false; } } break; @@ -14773,7 +14773,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) { _bfd_error_handler (_("error: %pB: conflicting use of R9"), ibfd); - result = FALSE; + result = false; } if (out_attr[i].i == AEABI_R9_unused) out_attr[i].i = in_attr[i].i; @@ -14786,7 +14786,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) _bfd_error_handler (_("error: %pB: SB relative addressing conflicts with use of R9"), ibfd); - result = FALSE; + result = false; } /* Use the smallest value specified. */ if (in_attr[i].i < out_attr[i].i) @@ -14842,7 +14842,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) _bfd_error_handler (_("error: %pB uses iWMMXt register arguments, %pB does not"), ibfd, obfd); - result = FALSE; + result = false; } break; case Tag_compatibility: @@ -14859,7 +14859,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) _bfd_error_handler (_("error: fp16 format mismatch between %pB and %pB"), ibfd, obfd); - result = FALSE; + result = false; } } if (in_attr[i].i != 0) @@ -14896,7 +14896,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) (_("%pB has both the current and legacy " "Tag_MPextension_use attributes"), ibfd); - result = FALSE; + result = false; } } @@ -14934,7 +14934,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) /* Merge Tag_compatibility attributes and any common GNU ones. */ if (!_bfd_elf_merge_object_attributes (ibfd, info)) - return FALSE; + return false; /* Check for any attributes not known on ARM. */ result &= _bfd_elf_merge_unknown_attribute_list (ibfd, obfd); @@ -14945,14 +14945,14 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) /* Return TRUE if the two EABI versions are incompatible. */ -static bfd_boolean +static bool elf32_arm_versions_compatible (unsigned iver, unsigned over) { /* v4 and v5 are the same spec before and after it was released, so allow mixing them. */ if ((iver == EF_ARM_EABI_VER4 && over == EF_ARM_EABI_VER5) || (iver == EF_ARM_EABI_VER5 && over == EF_ARM_EABI_VER4)) - return TRUE; + return true; return (iver == over); } @@ -14960,12 +14960,12 @@ elf32_arm_versions_compatible (unsigned iver, unsigned over) /* Merge backend specific data from an object file to the output object file when linking. */ -static bfd_boolean +static bool elf32_arm_merge_private_bfd_data (bfd *, struct bfd_link_info *); /* Display the flags field. */ -static bfd_boolean +static bool elf32_arm_print_private_bfd_data (bfd *abfd, void * ptr) { FILE * file = (FILE *) ptr; @@ -15105,7 +15105,7 @@ elf32_arm_print_private_bfd_data (bfd *abfd, void * ptr) fputc ('\n', file); - return TRUE; + return true; } static int @@ -15152,7 +15152,7 @@ elf32_arm_gc_mark_hook (asection *sec, /* Look through the relocs for a section during the first phase. */ -static bfd_boolean +static bool elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) { @@ -15163,19 +15163,19 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, bfd *dynobj; asection *sreloc; struct elf32_arm_link_hash_table *htab; - bfd_boolean call_reloc_p; - bfd_boolean may_become_dynamic_p; - bfd_boolean may_need_local_target_p; + bool call_reloc_p; + bool may_become_dynamic_p; + bool may_need_local_target_p; unsigned long nsyms; if (bfd_link_relocatable (info)) - return TRUE; + return true; BFD_ASSERT (is_arm_elf (abfd)); htab = elf32_arm_hash_table (info); if (htab == NULL) - return FALSE; + return false; sreloc = NULL; @@ -15185,13 +15185,13 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, && ! htab->root.dynamic_sections_created) { if (! _bfd_elf_link_create_dynamic_sections (abfd, info)) - return FALSE; + return false; } if (htab->root.dynobj == NULL) htab->root.dynobj = abfd; if (!create_ifunc_sections (info)) - return FALSE; + return false; dynobj = htab->root.dynobj; @@ -15220,7 +15220,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, { _bfd_error_handler (_("%pB: bad symbol index: %d"), abfd, r_symndx); - return FALSE; + return false; } h = NULL; @@ -15233,7 +15233,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, isym = bfd_sym_from_r_symndx (&htab->root.sym_cache, abfd, r_symndx); if (isym == NULL) - return FALSE; + return false; } else { @@ -15246,9 +15246,9 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, eh = (struct elf32_arm_link_hash_entry *) h; - call_reloc_p = FALSE; - may_become_dynamic_p = FALSE; - may_need_local_target_p = FALSE; + call_reloc_p = false; + may_become_dynamic_p = false; + may_need_local_target_p = false; /* Could be done earlier, if h were already available. */ r_type = elf32_arm_tls_transition (info, r_type, h); @@ -15259,7 +15259,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, if (h == NULL) { if (!elf32_arm_allocate_local_sym_info (abfd)) - return FALSE; + return false; elf32_arm_local_fdpic_cnts(abfd)[r_symndx].gotofffuncdesc_cnt += 1; elf32_arm_local_fdpic_cnts(abfd)[r_symndx].funcdesc_offset = -1; } @@ -15291,7 +15291,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, if (h == NULL) { if (!elf32_arm_allocate_local_sym_info (abfd)) - return FALSE; + return false; elf32_arm_local_fdpic_cnts(abfd)[r_symndx].funcdesc_cnt += 1; elf32_arm_local_fdpic_cnts(abfd)[r_symndx].funcdesc_offset = -1; } @@ -15345,7 +15345,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, { /* This is a global offset table entry for a local symbol. */ if (!elf32_arm_allocate_local_sym_info (abfd)) - return FALSE; + return false; elf_local_got_refcounts (abfd)[r_symndx] += 1; old_tls_type = elf32_arm_local_got_tls_type (abfd) [r_symndx]; } @@ -15390,7 +15390,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, case R_ARM_GOTPC: if (htab->root.sgot == NULL && !create_got_section (htab->root.dynobj, info)) - return FALSE; + return false; break; case R_ARM_PC24: @@ -15401,8 +15401,8 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, case R_ARM_THM_CALL: case R_ARM_THM_JUMP24: case R_ARM_THM_JUMP19: - call_reloc_p = TRUE; - may_need_local_target_p = TRUE; + call_reloc_p = true; + may_need_local_target_p = true; break; case R_ARM_ABS12: @@ -15410,7 +15410,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, ldr __GOTT_INDEX__ offsets. */ if (htab->root.target_os != is_vxworks) { - may_need_local_target_p = TRUE; + may_need_local_target_p = true; break; } else goto jump_over; @@ -15428,7 +15428,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, abfd, elf32_arm_howto_table_1[r_type].name, (h) ? h->root.root.string : "a local symbol"); bfd_set_error (bfd_error_bad_value); - return FALSE; + return false; } /* Fall through. */ @@ -15459,32 +15459,32 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, we treat local relative references as calls; see the related SYMBOL_CALLS_LOCAL code in allocate_dynrelocs. */ - call_reloc_p = TRUE; - may_need_local_target_p = TRUE; + call_reloc_p = true; + may_need_local_target_p = true; } else /* We are creating a shared library or relocatable executable, and this is a reloc against a global symbol, or a non-PC-relative reloc against a local symbol. We may need to copy the reloc into the output. */ - may_become_dynamic_p = TRUE; + may_become_dynamic_p = true; } else - may_need_local_target_p = TRUE; + may_need_local_target_p = true; break; /* This relocation describes the C++ object vtable hierarchy. Reconstruct it for later use during GC. */ case R_ARM_GNU_VTINHERIT: if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) - return FALSE; + return false; break; /* This relocation describes which C++ vtable entries are actually used. Record for later use during GC. */ case R_ARM_GNU_VTENTRY: if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_offset)) - return FALSE; + return false; break; } @@ -15522,7 +15522,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, { local_iplt = elf32_arm_create_local_iplt (abfd, r_symndx); if (local_iplt == NULL) - return FALSE; + return false; root_plt = &local_iplt->root; arm_plt = &local_iplt->arm; } @@ -15558,7 +15558,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, (sec, dynobj, 2, abfd, ! htab->use_rel); if (sreloc == NULL) - return FALSE; + return false; } /* If this is a global symbol, count the number of @@ -15569,7 +15569,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, { head = elf32_arm_get_local_dynreloc_list (abfd, r_symndx, isym); if (head == NULL) - return FALSE; + return false; } p = *head; @@ -15579,7 +15579,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, p = (struct elf_dyn_relocs *) bfd_alloc (htab->root.dynobj, amt); if (p == NULL) - return FALSE; + return false; p->next = *head; *head = p; p->sec = sec; @@ -15605,7 +15605,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info, } } - return TRUE; + return true; } static void @@ -15776,7 +15776,7 @@ elf32_arm_update_relocs (asection *o, their own section (as would be the case if code was compiled with -ffunction-sections). */ -static bfd_boolean +static bool elf32_arm_gc_mark_extra_sections (struct bfd_link_info *info, elf_gc_mark_hook_fn gc_mark_hook) { @@ -15789,8 +15789,8 @@ elf32_arm_gc_mark_extra_sections (struct bfd_link_info *info, const struct elf_backend_data *bed; struct elf_link_hash_entry **sym_hashes; struct elf32_arm_link_hash_entry *cmse_hash; - bfd_boolean again, is_v8m, first_bfd_browse = TRUE; - bfd_boolean debug_sec_need_to_be_marked = FALSE; + bool again, is_v8m, first_bfd_browse = true; + bool debug_sec_need_to_be_marked = false; asection *isec; _bfd_elf_gc_mark_extra_sections (info, gc_mark_hook); @@ -15801,10 +15801,10 @@ elf32_arm_gc_mark_extra_sections (struct bfd_link_info *info, /* Marking EH data may cause additional code sections to be marked, requiring multiple passes. */ - again = TRUE; + again = true; while (again) { - again = FALSE; + again = false; for (sub = info->input_bfds; sub != NULL; sub = sub->link.next) { asection *o; @@ -15824,9 +15824,9 @@ elf32_arm_gc_mark_extra_sections (struct bfd_link_info *info, && !o->gc_mark && elf_shdrp[hdr->sh_link]->bfd_section->gc_mark) { - again = TRUE; + again = true; if (!_bfd_elf_gc_mark (info, o, gc_mark_hook)) - return FALSE; + return false; } } @@ -15853,10 +15853,10 @@ elf32_arm_gc_mark_extra_sections (struct bfd_link_info *info, cmse_sec = cmse_hash->root.root.u.def.section; if (!cmse_sec->gc_mark && !_bfd_elf_gc_mark (info, cmse_sec, gc_mark_hook)) - return FALSE; + return false; /* The debug sections related to these secure entry functions are marked on enabling below flag. */ - debug_sec_need_to_be_marked = TRUE; + debug_sec_need_to_be_marked = true; } } @@ -15871,19 +15871,19 @@ elf32_arm_gc_mark_extra_sections (struct bfd_link_info *info, if (!isec->gc_mark && (isec->flags & SEC_DEBUGGING)) isec->gc_mark = 1 ; } - debug_sec_need_to_be_marked = FALSE; + debug_sec_need_to_be_marked = false; } } } - first_bfd_browse = FALSE; + first_bfd_browse = false; } - return TRUE; + return true; } /* Treat mapping symbols as special target symbols. */ -static bfd_boolean +static bool elf32_arm_is_target_special_symbol (bfd * abfd ATTRIBUTE_UNUSED, asymbol * sym) { return bfd_is_arm_special_symbol_name (sym->name, @@ -15930,13 +15930,13 @@ elf32_arm_maybe_function_sym (const asymbol *sym, asection *sec, return size; } -static bfd_boolean +static bool elf32_arm_find_inliner_info (bfd * abfd, const char ** filename_ptr, const char ** functionname_ptr, unsigned int * line_ptr) { - bfd_boolean found; + bool found; found = _bfd_dwarf2_find_inliner_info (abfd, filename_ptr, functionname_ptr, line_ptr, & elf_tdata (abfd)->dwarf2_find_line_info); @@ -15949,7 +15949,7 @@ elf32_arm_find_inliner_info (bfd * abfd, change the definition to something the rest of the link can understand. */ -static bfd_boolean +static bool elf32_arm_adjust_dynamic_symbol (struct bfd_link_info * info, struct elf_link_hash_entry * h) { @@ -15960,7 +15960,7 @@ elf32_arm_adjust_dynamic_symbol (struct bfd_link_info * info, globals = elf32_arm_hash_table (info); if (globals == NULL) - return FALSE; + return false; dynobj = elf_hash_table (info)->dynobj; @@ -16000,7 +16000,7 @@ elf32_arm_adjust_dynamic_symbol (struct bfd_link_info * info, h->needs_plt = 0; } - return TRUE; + return true; } else { @@ -16024,13 +16024,13 @@ elf32_arm_adjust_dynamic_symbol (struct bfd_link_info * info, BFD_ASSERT (def->root.type == bfd_link_hash_defined); h->root.u.def.section = def->root.u.def.section; h->root.u.def.value = def->root.u.def.value; - return TRUE; + return true; } /* If there are no non-GOT references, we do not need a copy relocation. */ if (!h->non_got_ref) - return TRUE; + return true; /* This is a reference to a symbol defined by a dynamic object which is not a function. */ @@ -16042,7 +16042,7 @@ elf32_arm_adjust_dynamic_symbol (struct bfd_link_info * info, can reference data in shared objects directly, so we don't need to do anything here. */ if (bfd_link_pic (info) || globals->root.is_relocatable_executable) - return TRUE; + return true; /* We must allocate the symbol in our .dynbss section, which will become part of the .bss section of the executable. There will be @@ -16081,7 +16081,7 @@ elf32_arm_adjust_dynamic_symbol (struct bfd_link_info * info, /* Allocate space in .plt, .got and associated reloc sections for dynamic relocs. */ -static bfd_boolean +static bool allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf) { struct bfd_link_info *info; @@ -16090,14 +16090,14 @@ allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf) struct elf_dyn_relocs *p; if (h->root.type == bfd_link_hash_indirect) - return TRUE; + return true; eh = (struct elf32_arm_link_hash_entry *) h; info = (struct bfd_link_info *) inf; htab = elf32_arm_hash_table (info); if (htab == NULL) - return FALSE; + return false; if ((htab->root.dynamic_sections_created || h->type == STT_GNU_IFUNC) && h->plt.refcount > 0) @@ -16108,7 +16108,7 @@ allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf) && h->root.type == bfd_link_hash_undefweak) { if (! bfd_elf_link_record_dynamic_symbol (info, h)) - return FALSE; + return false; } /* If the call in the PLT entry binds locally, the associated @@ -16186,7 +16186,7 @@ allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf) if (h->got.refcount > 0) { asection *s; - bfd_boolean dyn; + bool dyn; int tls_type = elf32_arm_hash_entry (h)->tls_type; int indx; @@ -16198,7 +16198,7 @@ allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf) && h->root.type == bfd_link_hash_undefweak) { if (! bfd_elf_link_record_dynamic_symbol (info, h)) - return FALSE; + return false; } s = htab->root.sgot; @@ -16328,7 +16328,7 @@ allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf) if (htab->root.dynamic_sections_created && h->dynindx == -1 && !h->forced_local) if (! bfd_elf_link_record_dynamic_symbol (info, h)) - return FALSE; + return false; if (h->dynindx == -1) { @@ -16363,7 +16363,7 @@ allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf) if (htab->root.dynamic_sections_created && h->dynindx == -1 && !h->forced_local) if (! bfd_elf_link_record_dynamic_symbol (info, h)) - return FALSE; + return false; if (h->dynindx == -1) { @@ -16415,7 +16415,7 @@ allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf) _bfd_generic_link_add_one_symbol (info, s->owner, name, BSF_GLOBAL, s, h->root.u.def.value, - NULL, TRUE, FALSE, &bh); + NULL, true, false, &bh); myh = (struct elf_link_hash_entry *) bh; myh->type = ELF_ST_INFO (STB_LOCAL, STT_FUNC); @@ -16431,7 +16431,7 @@ allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf) } if (h->dyn_relocs == NULL) - return TRUE; + return true; /* In the shared -Bsymbolic case, discard space allocated for dynamic pc-relative relocs against symbols which turn out to be @@ -16492,7 +16492,7 @@ allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf) && !h->forced_local) { if (! bfd_elf_link_record_dynamic_symbol (info, h)) - return FALSE; + return false; } } @@ -16503,7 +16503,7 @@ allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf) against them. For normal symbols we output a relocation against the section that contains them. */ if (! bfd_elf_link_record_dynamic_symbol (info, h)) - return FALSE; + return false; } } @@ -16526,7 +16526,7 @@ allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf) && h->root.type == bfd_link_hash_undefweak) { if (! bfd_elf_link_record_dynamic_symbol (info, h)) - return FALSE; + return false; } /* If that succeeded, we know we'll be keeping all the @@ -16558,7 +16558,7 @@ allocate_dynrelocs_for_symbol (struct elf_link_hash_entry *h, void * inf) elf32_arm_allocate_dynrelocs (info, sreloc, p->count); } - return TRUE; + return true; } void @@ -16576,19 +16576,19 @@ bfd_elf32_arm_set_byteswap_code (struct bfd_link_info *info, /* Set the sizes of the dynamic sections. */ -static bfd_boolean +static bool elf32_arm_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED, struct bfd_link_info * info) { bfd * dynobj; asection * s; - bfd_boolean relocs; + bool relocs; bfd *ibfd; struct elf32_arm_link_hash_table *htab; htab = elf32_arm_hash_table (info); if (htab == NULL) - return FALSE; + return false; dynobj = elf_hash_table (info)->dynobj; BFD_ASSERT (dynobj != NULL); @@ -16723,7 +16723,7 @@ elf32_arm_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED, if (local_iplt->root.refcount > 0) { - elf32_arm_allocate_plt_entry (info, TRUE, + elf32_arm_allocate_plt_entry (info, true, &local_iplt->root, &local_iplt->arm); if (local_iplt->arm.noncall_refcount == 0) @@ -16783,7 +16783,7 @@ elf32_arm_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED, isym = bfd_sym_from_r_symndx (&htab->root.sym_cache, ibfd, symndx); if (isym == NULL) - return FALSE; + return false; /* If all references to an STT_GNU_IFUNC PLT are calls, then all non-call references, including this GOT entry, @@ -16885,7 +16885,7 @@ elf32_arm_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED, /* The check_relocs and adjust_dynamic_symbol entry points have determined the sizes of the various dynamic sections. Allocate memory for them. */ - relocs = FALSE; + relocs = false; for (s = dynobj->sections; s != NULL; s = s->next) { const char * name; @@ -16909,7 +16909,7 @@ elf32_arm_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED, /* Remember whether there are any reloc sections other than .rel(a).plt and .rela.plt.unloaded. */ if (s != htab->root.srelplt && s != htab->srelplt2) - relocs = TRUE; + relocs = true; /* We use the reloc_count field as a counter if we need to copy relocs into the output file. */ @@ -16949,7 +16949,7 @@ elf32_arm_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED, /* Allocate memory for the section contents. */ s->contents = (unsigned char *) bfd_zalloc (dynobj, s->size); if (s->contents == NULL) - return FALSE; + return false; } return _bfd_elf_maybe_vxworks_add_dynamic_tags (output_bfd, info, @@ -16959,7 +16959,7 @@ elf32_arm_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED, /* Size sections even though they're not dynamic. We use it to setup _TLS_MODULE_BASE_, if needed. */ -static bfd_boolean +static bool elf32_arm_always_size_sections (bfd *output_bfd, struct bfd_link_info *info) { @@ -16969,7 +16969,7 @@ elf32_arm_always_size_sections (bfd *output_bfd, htab = elf32_arm_hash_table (info); if (bfd_link_relocatable (info)) - return TRUE; + return true; tls_sec = elf_hash_table (info)->tls_sec; @@ -16978,7 +16978,7 @@ elf32_arm_always_size_sections (bfd *output_bfd, struct elf_link_hash_entry *tlsbase; tlsbase = elf_link_hash_lookup - (elf_hash_table (info), "_TLS_MODULE_BASE_", TRUE, TRUE, FALSE); + (elf_hash_table (info), "_TLS_MODULE_BASE_", true, true, false); if (tlsbase) { @@ -16988,30 +16988,30 @@ elf32_arm_always_size_sections (bfd *output_bfd, if (!(_bfd_generic_link_add_one_symbol (info, output_bfd, "_TLS_MODULE_BASE_", BSF_LOCAL, - tls_sec, 0, NULL, FALSE, + tls_sec, 0, NULL, false, bed->collect, &bh))) - return FALSE; + return false; tlsbase->type = STT_TLS; tlsbase = (struct elf_link_hash_entry *)bh; tlsbase->def_regular = 1; tlsbase->other = STV_HIDDEN; - (*bed->elf_backend_hide_symbol) (info, tlsbase, TRUE); + (*bed->elf_backend_hide_symbol) (info, tlsbase, true); } } if (htab->fdpic_p && !bfd_link_relocatable (info) && !bfd_elf_stack_segment_size (output_bfd, info, "__stacksize", DEFAULT_STACK_SIZE)) - return FALSE; + return false; - return TRUE; + return true; } /* Finish up dynamic symbol handling. We set the contents of various dynamic sections here. */ -static bfd_boolean +static bool elf32_arm_finish_dynamic_symbol (bfd * output_bfd, struct bfd_link_info * info, struct elf_link_hash_entry * h, @@ -17022,7 +17022,7 @@ elf32_arm_finish_dynamic_symbol (bfd * output_bfd, htab = elf32_arm_hash_table (info); if (htab == NULL) - return FALSE; + return false; eh = (struct elf32_arm_link_hash_entry *) h; @@ -17033,7 +17033,7 @@ elf32_arm_finish_dynamic_symbol (bfd * output_bfd, BFD_ASSERT (h->dynindx != -1); if (! elf32_arm_populate_plt_entry (output_bfd, info, &h->plt, &eh->plt, h->dynindx, 0)) - return FALSE; + return false; } if (!h->def_regular) @@ -17097,7 +17097,7 @@ elf32_arm_finish_dynamic_symbol (bfd * output_bfd, && h == htab->root.hgot)) sym->st_shndx = SHN_ABS; - return TRUE; + return true; } static void @@ -17152,7 +17152,7 @@ arm_nacl_put_plt0 (struct elf32_arm_link_hash_table *htab, bfd *output_bfd, /* Finish up the dynamic sections. */ -static bfd_boolean +static bool elf32_arm_finish_dynamic_sections (bfd * output_bfd, struct bfd_link_info * info) { bfd * dynobj; @@ -17162,7 +17162,7 @@ elf32_arm_finish_dynamic_sections (bfd * output_bfd, struct bfd_link_info * info htab = elf32_arm_hash_table (info); if (htab == NULL) - return FALSE; + return false; dynobj = elf_hash_table (info)->dynobj; @@ -17170,7 +17170,7 @@ elf32_arm_finish_dynamic_sections (bfd * output_bfd, struct bfd_link_info * info /* A broken linker script might have discarded the dynamic sections. Catch this here so that we do not seg-fault later on. */ if (sgot != NULL && bfd_is_abs_section (sgot->output_section)) - return FALSE; + return false; sdyn = bfd_get_linker_section (dynobj, ".dynamic"); if (elf_hash_table (info)->dynamic_sections_created) @@ -17221,7 +17221,7 @@ elf32_arm_finish_dynamic_sections (bfd * output_bfd, struct bfd_link_info * info _bfd_error_handler (_("could not find section %s"), name); bfd_set_error (bfd_error_invalid_operation); - return FALSE; + return false; } dyn.d_un.d_ptr = s->output_section->vma + s->output_offset; bfd_elf32_swap_dyn_out (output_bfd, &dyn, dyncon); @@ -17269,7 +17269,7 @@ elf32_arm_finish_dynamic_sections (bfd * output_bfd, struct bfd_link_info * info struct elf_link_hash_entry * eh; eh = elf_link_hash_lookup (elf_hash_table (info), name, - FALSE, FALSE, TRUE); + false, false, true); if (eh != NULL && ARM_GET_SYM_BRANCH_TYPE (eh->target_internal) == ST_BRANCH_TO_THUMB) @@ -17465,10 +17465,10 @@ elf32_arm_finish_dynamic_sections (bfd * output_bfd, struct bfd_link_info * info BFD_ASSERT (htab->srofixup->reloc_count * 4 == htab->srofixup->size); } - return TRUE; + return true; } -static bfd_boolean +static bool elf32_arm_init_file_header (bfd *abfd, struct bfd_link_info *link_info) { Elf_Internal_Ehdr * i_ehdrp; /* ELF file header, internal form. */ @@ -17476,7 +17476,7 @@ elf32_arm_init_file_header (bfd *abfd, struct bfd_link_info *link_info) struct elf_segment_map *m; if (!_bfd_elf_init_file_header (abfd, link_info)) - return FALSE; + return false; i_ehdrp = elf_elfheader (abfd); @@ -17523,7 +17523,7 @@ elf32_arm_init_file_header (bfd *abfd, struct bfd_link_info *link_info) m->p_flags_valid = 1; } } - return TRUE; + return true; } static enum elf_reloc_type_class @@ -17552,7 +17552,7 @@ arm_final_write_processing (bfd *abfd) bfd_arm_update_notes (abfd, ARM_NOTE_SECTION); } -static bfd_boolean +static bool elf32_arm_final_write_processing (bfd *abfd) { arm_final_write_processing (abfd); @@ -17561,7 +17561,7 @@ elf32_arm_final_write_processing (bfd *abfd) /* Return TRUE if this is an unwinding table entry. */ -static bfd_boolean +static bool is_arm_elf_unwind_section_name (bfd * abfd ATTRIBUTE_UNUSED, const char * name) { return (startswith (name, ELF_STRING_ARM_unwind) @@ -17572,7 +17572,7 @@ is_arm_elf_unwind_section_name (bfd * abfd ATTRIBUTE_UNUSED, const char * name) /* Set the type and flags for an ARM section. We do this by the section name, which is a hack, but ought to work. */ -static bfd_boolean +static bool elf32_arm_fake_sections (bfd * abfd, Elf_Internal_Shdr * hdr, asection * sec) { const char * name; @@ -17588,14 +17588,14 @@ elf32_arm_fake_sections (bfd * abfd, Elf_Internal_Shdr * hdr, asection * sec) if (sec->flags & SEC_ELF_PURECODE) hdr->sh_flags |= SHF_ARM_PURECODE; - return TRUE; + return true; } /* Handle an ARM specific section when reading an object file. This is called when bfd_section_from_shdr finds a section with an unknown type. */ -static bfd_boolean +static bool elf32_arm_section_from_shdr (bfd *abfd, Elf_Internal_Shdr * hdr, const char *name, @@ -17614,13 +17614,13 @@ elf32_arm_section_from_shdr (bfd *abfd, break; default: - return FALSE; + return false; } if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex)) - return FALSE; + return false; - return TRUE; + return true; } static _arm_elf_section_data * @@ -17652,7 +17652,7 @@ enum map_symbol_type /* Output a single mapping symbol. */ -static bfd_boolean +static bool elf32_arm_output_map_sym (output_arch_syminfo *osi, enum map_symbol_type type, bfd_vma offset) @@ -17675,9 +17675,9 @@ elf32_arm_output_map_sym (output_arch_syminfo *osi, /* Output mapping symbols for the PLT entry described by ROOT_PLT and ARM_PLT. IS_IPLT_ENTRY_P says whether the PLT is in .iplt rather than .plt. */ -static bfd_boolean +static bool elf32_arm_output_plt_map_1 (output_arch_syminfo *osi, - bfd_boolean is_iplt_entry_p, + bool is_iplt_entry_p, union gotplt_union *root_plt, struct arm_plt_info *arm_plt) { @@ -17685,11 +17685,11 @@ elf32_arm_output_plt_map_1 (output_arch_syminfo *osi, bfd_vma addr, plt_header_size; if (root_plt->offset == (bfd_vma) -1) - return TRUE; + return true; htab = elf32_arm_hash_table (osi->info); if (htab == NULL) - return FALSE; + return false; if (is_iplt_entry_p) { @@ -17708,18 +17708,18 @@ elf32_arm_output_plt_map_1 (output_arch_syminfo *osi, if (htab->root.target_os == is_vxworks) { if (!elf32_arm_output_map_sym (osi, ARM_MAP_ARM, addr)) - return FALSE; + return false; if (!elf32_arm_output_map_sym (osi, ARM_MAP_DATA, addr + 8)) - return FALSE; + return false; if (!elf32_arm_output_map_sym (osi, ARM_MAP_ARM, addr + 12)) - return FALSE; + return false; if (!elf32_arm_output_map_sym (osi, ARM_MAP_DATA, addr + 20)) - return FALSE; + return false; } else if (htab->root.target_os == is_nacl) { if (!elf32_arm_output_map_sym (osi, ARM_MAP_ARM, addr)) - return FALSE; + return false; } else if (htab->fdpic_p) { @@ -17729,35 +17729,35 @@ elf32_arm_output_plt_map_1 (output_arch_syminfo *osi, if (elf32_arm_plt_needs_thumb_stub_p (osi->info, arm_plt)) if (!elf32_arm_output_map_sym (osi, ARM_MAP_THUMB, addr - 4)) - return FALSE; + return false; if (!elf32_arm_output_map_sym (osi, type, addr)) - return FALSE; + return false; if (!elf32_arm_output_map_sym (osi, ARM_MAP_DATA, addr + 16)) - return FALSE; + return false; if (htab->plt_entry_size == 4 * ARRAY_SIZE(elf32_arm_fdpic_plt_entry)) if (!elf32_arm_output_map_sym (osi, type, addr + 24)) - return FALSE; + return false; } else if (using_thumb_only (htab)) { if (!elf32_arm_output_map_sym (osi, ARM_MAP_THUMB, addr)) - return FALSE; + return false; } else { - bfd_boolean thumb_stub_p; + bool thumb_stub_p; thumb_stub_p = elf32_arm_plt_needs_thumb_stub_p (osi->info, arm_plt); if (thumb_stub_p) { if (!elf32_arm_output_map_sym (osi, ARM_MAP_THUMB, addr - 4)) - return FALSE; + return false; } #ifdef FOUR_WORD_PLT if (!elf32_arm_output_map_sym (osi, ARM_MAP_ARM, addr)) - return FALSE; + return false; if (!elf32_arm_output_map_sym (osi, ARM_MAP_DATA, addr + 12)) - return FALSE; + return false; #else /* A three-word PLT with no Thumb thunk contains only Arm code, so only need to output a mapping symbol for the first PLT entry and @@ -17765,24 +17765,24 @@ elf32_arm_output_plt_map_1 (output_arch_syminfo *osi, if (thumb_stub_p || addr == plt_header_size) { if (!elf32_arm_output_map_sym (osi, ARM_MAP_ARM, addr)) - return FALSE; + return false; } #endif } - return TRUE; + return true; } /* Output mapping symbols for PLT entries associated with H. */ -static bfd_boolean +static bool elf32_arm_output_plt_map (struct elf_link_hash_entry *h, void *inf) { output_arch_syminfo *osi = (output_arch_syminfo *) inf; struct elf32_arm_link_hash_entry *eh; if (h->root.type == bfd_link_hash_indirect) - return TRUE; + return true; if (h->root.type == bfd_link_hash_warning) /* When warning symbols are created, they **replace** the "real" @@ -17811,7 +17811,7 @@ arm_stub_claim_sym (struct elf32_arm_stub_hash_entry *stub_entry) /* Output a single local symbol for a generated stub. */ -static bfd_boolean +static bool elf32_arm_output_stub_sym (output_arch_syminfo *osi, const char *name, bfd_vma offset, bfd_vma size) { @@ -17828,7 +17828,7 @@ elf32_arm_output_stub_sym (output_arch_syminfo *osi, const char *name, return osi->func (osi->flaginfo, name, &sym, osi->sec, NULL) == 1; } -static bfd_boolean +static bool arm_map_one_stub (struct bfd_hash_entry * gen_entry, void * in_arg) { @@ -17852,7 +17852,7 @@ arm_map_one_stub (struct bfd_hash_entry * gen_entry, /* Ensure this stub is attached to the current section being processed. */ if (stub_sec != osi->sec) - return TRUE; + return true; addr = (bfd_vma) stub_entry->stub_offset; template_sequence = stub_entry->stub_template; @@ -17867,13 +17867,13 @@ arm_map_one_stub (struct bfd_hash_entry * gen_entry, case ARM_TYPE: if (!elf32_arm_output_stub_sym (osi, stub_name, addr, stub_entry->stub_size)) - return FALSE; + return false; break; case THUMB16_TYPE: case THUMB32_TYPE: if (!elf32_arm_output_stub_sym (osi, stub_name, addr | 1, stub_entry->stub_size)) - return FALSE; + return false; break; default: BFD_FAIL (); @@ -17902,14 +17902,14 @@ arm_map_one_stub (struct bfd_hash_entry * gen_entry, default: BFD_FAIL (); - return FALSE; + return false; } if (template_sequence[i].type != prev_type) { prev_type = template_sequence[i].type; if (!elf32_arm_output_map_sym (osi, sym_type, addr + size)) - return FALSE; + return false; } switch (template_sequence[i].type) @@ -17929,18 +17929,18 @@ arm_map_one_stub (struct bfd_hash_entry * gen_entry, default: BFD_FAIL (); - return FALSE; + return false; } } - return TRUE; + return true; } /* Output mapping symbols for linker generated sections, and for those data-only sections that do not have a $d. */ -static bfd_boolean +static bool elf32_arm_output_arch_local_syms (bfd *output_bfd, struct bfd_link_info *info, void *flaginfo, @@ -17957,7 +17957,7 @@ elf32_arm_output_arch_local_syms (bfd *output_bfd, htab = elf32_arm_hash_table (info); if (htab == NULL) - return FALSE; + return false; check_use_blx (htab); @@ -18083,32 +18083,32 @@ elf32_arm_output_arch_local_syms (bfd *output_bfd, if (!bfd_link_pic (info)) { if (!elf32_arm_output_map_sym (&osi, ARM_MAP_ARM, 0)) - return FALSE; + return false; if (!elf32_arm_output_map_sym (&osi, ARM_MAP_DATA, 12)) - return FALSE; + return false; } } else if (htab->root.target_os == is_nacl) { if (!elf32_arm_output_map_sym (&osi, ARM_MAP_ARM, 0)) - return FALSE; + return false; } else if (using_thumb_only (htab) && !htab->fdpic_p) { if (!elf32_arm_output_map_sym (&osi, ARM_MAP_THUMB, 0)) - return FALSE; + return false; if (!elf32_arm_output_map_sym (&osi, ARM_MAP_DATA, 12)) - return FALSE; + return false; if (!elf32_arm_output_map_sym (&osi, ARM_MAP_THUMB, 16)) - return FALSE; + return false; } else if (!htab->fdpic_p) { if (!elf32_arm_output_map_sym (&osi, ARM_MAP_ARM, 0)) - return FALSE; + return false; #ifndef FOUR_WORD_PLT if (!elf32_arm_output_map_sym (&osi, ARM_MAP_DATA, 16)) - return FALSE; + return false; #endif } } @@ -18121,7 +18121,7 @@ elf32_arm_output_arch_local_syms (bfd *output_bfd, osi.sec_shndx = (_bfd_elf_section_from_bfd_section (output_bfd, osi.sec->output_section)); if (!elf32_arm_output_map_sym (&osi, ARM_MAP_ARM, 0)) - return FALSE; + return false; } if ((htab->root.splt && htab->root.splt->size > 0) || (htab->root.iplt && htab->root.iplt->size > 0)) @@ -18140,10 +18140,10 @@ elf32_arm_output_arch_local_syms (bfd *output_bfd, num_syms = elf_symtab_hdr (input_bfd).sh_info; for (i = 0; i < num_syms; i++) if (local_iplt[i] != NULL - && !elf32_arm_output_plt_map_1 (&osi, TRUE, + && !elf32_arm_output_plt_map_1 (&osi, true, &local_iplt[i]->root, &local_iplt[i]->arm)) - return FALSE; + return false; } } } @@ -18152,25 +18152,25 @@ elf32_arm_output_arch_local_syms (bfd *output_bfd, /* Mapping symbols for the lazy tls trampoline. */ if (!elf32_arm_output_map_sym (&osi, ARM_MAP_ARM, htab->root.tlsdesc_plt)) - return FALSE; + return false; if (!elf32_arm_output_map_sym (&osi, ARM_MAP_DATA, htab->root.tlsdesc_plt + 24)) - return FALSE; + return false; } if (htab->tls_trampoline != 0) { /* Mapping symbols for the tls trampoline. */ if (!elf32_arm_output_map_sym (&osi, ARM_MAP_ARM, htab->tls_trampoline)) - return FALSE; + return false; #ifdef FOUR_WORD_PLT if (!elf32_arm_output_map_sym (&osi, ARM_MAP_DATA, htab->tls_trampoline + 12)) - return FALSE; + return false; #endif } - return TRUE; + return true; } /* Filter normal symbols of CMSE entry functions of ABFD to include in @@ -18224,7 +18224,7 @@ elf32_arm_filter_cmse_symbols (bfd *abfd ATTRIBUTE_UNUSED, } snprintf (cmse_name, maxnamelen, "%s%s", CMSE_PREFIX, name); cmse_hash = (struct elf32_arm_link_hash_entry *) - elf_link_hash_lookup (&(htab)->root, cmse_name, FALSE, FALSE, TRUE); + elf_link_hash_lookup (&(htab)->root, cmse_name, false, false, true); if (!cmse_hash || (cmse_hash->root.root.type != bfd_link_hash_defined @@ -18267,7 +18267,7 @@ elf32_arm_filter_implib_symbols (bfd *abfd ATTRIBUTE_UNUSED, /* Allocate target specific section data. */ -static bfd_boolean +static bool elf32_arm_new_section_hook (bfd *abfd, asection *sec) { if (!sec->used_by_bfd) @@ -18277,7 +18277,7 @@ elf32_arm_new_section_hook (bfd *abfd, asection *sec) sdata = (_arm_elf_section_data *) bfd_zalloc (abfd, amt); if (sdata == NULL) - return FALSE; + return false; sec->used_by_bfd = sdata; } @@ -18350,7 +18350,7 @@ struct a8_branch_to_stub_data /* Helper to insert branches to Cortex-A8 erratum stubs in the right places for a particular section. */ -static bfd_boolean +static bool make_branch_to_a8_stub (struct bfd_hash_entry *gen_entry, void *in_arg) { @@ -18368,7 +18368,7 @@ make_branch_to_a8_stub (struct bfd_hash_entry *gen_entry, if (stub_entry->target_section != data->writing_section || stub_entry->stub_type < arm_stub_a8_veneer_lwm) - return TRUE; + return true; contents = data->contents; @@ -18397,7 +18397,7 @@ make_branch_to_a8_stub (struct bfd_hash_entry *gen_entry, { _bfd_error_handler (_("%pB: error: Cortex-A8 erratum stub is " "allocated in unsafe location"), abfd); - return FALSE; + return false; } switch (stub_entry->stub_type) @@ -18424,7 +18424,7 @@ make_branch_to_a8_stub (struct bfd_hash_entry *gen_entry, happens. */ _bfd_error_handler (_("%pB: error: Cortex-A8 erratum stub out " "of range (input file too large)"), abfd); - return FALSE; + return false; } /* i1 = not(j1 eor s), so: @@ -18446,13 +18446,13 @@ make_branch_to_a8_stub (struct bfd_hash_entry *gen_entry, default: BFD_FAIL (); - return FALSE; + return false; } bfd_put_16 (abfd, (branch_insn >> 16) & 0xffff, &contents[loc]); bfd_put_16 (abfd, branch_insn & 0xffff, &contents[loc + 2]); - return TRUE; + return true; } /* Beginning of stm32l4xx work-around. */ @@ -19072,13 +19072,13 @@ stm32l4xx_create_replacing_stub_vldm (struct elf32_arm_link_hash_table * htab, } else { - bfd_boolean is_dp = /* DP encoding. */ + bool is_dp = /* DP encoding. */ (initial_insn & 0xfe100f00) == 0xec100b00; - bfd_boolean is_ia_nobang = /* (IA without !). */ + bool is_ia_nobang = /* (IA without !). */ (((initial_insn << 7) >> 28) & 0xd) == 0x4; - bfd_boolean is_ia_bang = /* (IA with !) - includes VPOP. */ + bool is_ia_bang = /* (IA with !) - includes VPOP. */ (((initial_insn << 7) >> 28) & 0xd) == 0x5; - bfd_boolean is_db_bang = /* (DB with !). */ + bool is_db_bang = /* (DB with !). */ (((initial_insn << 7) >> 28) & 0xd) == 0x9; int base_reg = ((unsigned int) initial_insn << 12) >> 28; /* d = UInt (Vd:D);. */ @@ -19190,7 +19190,7 @@ stm32l4xx_create_replacing_stub (struct elf32_arm_link_hash_table * htab, /* Do code byteswapping. Return FALSE afterwards so that the section is written out as normal. */ -static bfd_boolean +static bool elf32_arm_write_section (bfd *output_bfd, struct bfd_link_info *link_info, asection *sec, @@ -19209,13 +19209,13 @@ elf32_arm_write_section (bfd *output_bfd, unsigned int i; if (globals == NULL) - return FALSE; + return false; /* If this section has not been allocated an _arm_elf_section_data structure then we cannot record anything. */ arm_data = get_arm_elf_section_data (sec); if (arm_data == NULL) - return FALSE; + return false; mapcount = arm_data->mapcount; map = arm_data->map; @@ -19394,7 +19394,7 @@ elf32_arm_write_section (bfd *output_bfd, bfd_vma add_to_offsets = 0; if (edited_contents == NULL) - return FALSE; + return false; for (in_index = 0, out_index = 0; in_index * 8 < input_size || edit_node;) { if (edit_node) @@ -19475,7 +19475,7 @@ elf32_arm_write_section (bfd *output_bfd, edited_contents, (file_ptr) sec->output_offset, sec->size); - return TRUE; + return true; } /* Fix code to point to Cortex-A8 erratum stubs. */ @@ -19491,7 +19491,7 @@ elf32_arm_write_section (bfd *output_bfd, } if (mapcount == 0) - return FALSE; + return false; if (globals->byteswap_code) { @@ -19545,19 +19545,19 @@ elf32_arm_write_section (bfd *output_bfd, arm_data->mapsize = 0; arm_data->map = NULL; - return FALSE; + return false; } /* Mangle thumb function symbols as we read them in. */ -static bfd_boolean +static bool elf32_arm_swap_symbol_in (bfd * abfd, const void *psrc, const void *pshn, Elf_Internal_Sym *dst) { if (!bfd_elf32_swap_symbol_in (abfd, psrc, pshn, dst)) - return FALSE; + return false; dst->st_target_internal = 0; /* New EABI objects mark thumb function symbols by setting the low bit of @@ -19584,7 +19584,7 @@ elf32_arm_swap_symbol_in (bfd * abfd, else ARM_SET_SYM_BRANCH_TYPE (dst->st_target_internal, ST_BRANCH_UNKNOWN); - return TRUE; + return true; } @@ -19627,7 +19627,7 @@ elf32_arm_swap_symbol_out (bfd *abfd, /* Add the PT_ARM_EXIDX program header. */ -static bfd_boolean +static bool elf32_arm_modify_segment_map (bfd *abfd, struct bfd_link_info *info ATTRIBUTE_UNUSED) { @@ -19648,7 +19648,7 @@ elf32_arm_modify_segment_map (bfd *abfd, m = (struct elf_segment_map *) bfd_zalloc (abfd, sizeof (struct elf_segment_map)); if (m == NULL) - return FALSE; + return false; m->p_type = PT_ARM_EXIDX; m->count = 1; m->sections[0] = sec; @@ -19658,7 +19658,7 @@ elf32_arm_modify_segment_map (bfd *abfd, } } - return TRUE; + return true; } /* We may add a PT_ARM_EXIDX program header. */ @@ -19679,20 +19679,20 @@ elf32_arm_additional_program_headers (bfd *abfd, /* Hook called by the linker routine which adds symbols from an object file. */ -static bfd_boolean +static bool elf32_arm_add_symbol_hook (bfd *abfd, struct bfd_link_info *info, Elf_Internal_Sym *sym, const char **namep, flagword *flagsp, asection **secp, bfd_vma *valp) { if (elf32_arm_hash_table (info) == NULL) - return FALSE; + return false; if (elf32_arm_hash_table (info)->root.target_os == is_vxworks && !elf_vxworks_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)) - return FALSE; + return false; - return TRUE; + return true; } /* We use this to override swap_symbol_in and swap_symbol_out. */ @@ -19850,7 +19850,7 @@ elf32_arm_get_synthetic_symtab (bfd *abfd, if (plt == NULL) return 0; - if (!elf32_arm_size_info.slurp_reloc_table (abfd, relplt, dynsyms, TRUE)) + if (!elf32_arm_size_info.slurp_reloc_table (abfd, relplt, dynsyms, true)) return -1; data = plt->contents; @@ -19925,12 +19925,12 @@ elf32_arm_get_synthetic_symtab (bfd *abfd, return n; } -static bfd_boolean +static bool elf32_arm_section_flags (const Elf_Internal_Shdr *hdr) { if (hdr->sh_flags & SHF_ARM_PURECODE) hdr->bfd_section->flags |= SEC_ELF_PURECODE; - return TRUE; + return true; } static flagword @@ -19956,7 +19956,7 @@ elf32_arm_count_additional_relocs (asection *sec) FALSE otherwise. ISECTION is the best guess matching section from the input bfd IBFD, but it might be NULL. */ -static bfd_boolean +static bool elf32_arm_copy_special_section_fields (const bfd *ibfd ATTRIBUTE_UNUSED, bfd *obfd ATTRIBUTE_UNUSED, const Elf_Internal_Shdr *isection ATTRIBUTE_UNUSED, @@ -20023,7 +20023,7 @@ elf32_arm_copy_special_section_fields (const bfd *ibfd ATTRIBUTE_UNUSED, then the index section should be too. */ if (oheaders[i]->sh_flags & SHF_GROUP) osection->sh_flags |= SHF_GROUP; - return TRUE; + return true; } } break; @@ -20039,7 +20039,7 @@ elf32_arm_copy_special_section_fields (const bfd *ibfd ATTRIBUTE_UNUSED, break; } - return FALSE; + return false; } /* Returns TRUE if NAME is an ARM mapping symbol. @@ -20049,7 +20049,7 @@ elf32_arm_copy_special_section_fields (const bfd *ibfd ATTRIBUTE_UNUSED, Other tools might also produce $b (Thumb BL), $f, $p, $m and $v, but we do not support them here. $t.x indicates the start of ThumbEE instructions. */ -static bfd_boolean +static bool is_arm_mapping_symbol (const char * name) { return name != NULL /* Paranoia. */ @@ -20170,7 +20170,7 @@ elf32_arm_backend_symbol_processing (bfd *abfd, asymbol *sym) #undef elf_backend_lookup_section_flags_hook #define elf_backend_lookup_section_flags_hook elf32_arm_lookup_section_flags -#define elf_backend_linux_prpsinfo32_ugid16 TRUE +#define elf_backend_linux_prpsinfo32_ugid16 true #include "elf32-target.h" @@ -20209,14 +20209,14 @@ elf32_arm_nacl_link_hash_table_create (bfd *abfd) really need to use elf32_arm_modify_segment_map. But we do it anyway just to reduce gratuitous differences with the stock ARM backend. */ -static bfd_boolean +static bool elf32_arm_nacl_modify_segment_map (bfd *abfd, struct bfd_link_info *info) { return (elf32_arm_modify_segment_map (abfd, info) && nacl_modify_segment_map (abfd, info)); } -static bfd_boolean +static bool elf32_arm_nacl_final_write_processing (bfd *abfd) { arm_final_write_processing (abfd); @@ -20306,7 +20306,7 @@ elf32_arm_fdpic_link_hash_table_create (bfd *abfd) /* We need dynamic symbols for every section, since segments can relocate independently. */ -static bfd_boolean +static bool elf32_arm_fdpic_omit_section_dynsym (bfd *output_bfd ATTRIBUTE_UNUSED, struct bfd_link_info *info ATTRIBUTE_UNUSED, @@ -20319,12 +20319,12 @@ elf32_arm_fdpic_omit_section_dynsym (bfd *output_bfd ATTRIBUTE_UNUSED, /* If sh_type is yet undecided, assume it could be SHT_PROGBITS/SHT_NOBITS. */ case SHT_NULL: - return FALSE; + return false; /* There shouldn't be section relative relocations against any other section. */ default: - return TRUE; + return true; } } @@ -20374,7 +20374,7 @@ elf32_arm_vxworks_link_hash_table_create (bfd *abfd) return ret; } -static bfd_boolean +static bool elf32_arm_vxworks_final_write_processing (bfd *abfd) { arm_final_write_processing (abfd); @@ -20410,24 +20410,24 @@ elf32_arm_vxworks_final_write_processing (bfd *abfd) /* Merge backend specific data from an object file to the output object file when linking. */ -static bfd_boolean +static bool elf32_arm_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) { bfd *obfd = info->output_bfd; flagword out_flags; flagword in_flags; - bfd_boolean flags_compatible = TRUE; + bool flags_compatible = true; asection *sec; /* Check if we have the same endianness. */ if (! _bfd_generic_verify_endian_match (ibfd, info)) - return FALSE; + return false; if (! is_arm_elf (ibfd) || ! is_arm_elf (obfd)) - return TRUE; + return true; if (!elf32_arm_merge_eabi_attributes (ibfd, info)) - return FALSE; + return false; /* The input BFD must have had its flags initialised. */ /* The following seems bogus to me -- The flags are initialized in @@ -20447,7 +20447,7 @@ elf32_arm_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) { _bfd_error_handler (_("error: %pB is already in final BE8 format"), ibfd); - return FALSE; + return false; } if (!elf_flags_init (obfd)) @@ -20460,26 +20460,26 @@ elf32_arm_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) to the default values. */ if (bfd_get_arch_info (ibfd)->the_default && elf_elfheader (ibfd)->e_flags == 0) - return TRUE; + return true; - elf_flags_init (obfd) = TRUE; + elf_flags_init (obfd) = true; elf_elfheader (obfd)->e_flags = in_flags; if (bfd_get_arch (obfd) == bfd_get_arch (ibfd) && bfd_get_arch_info (obfd)->the_default) return bfd_set_arch_mach (obfd, bfd_get_arch (ibfd), bfd_get_mach (ibfd)); - return TRUE; + return true; } /* Determine what should happen if the input ARM architecture does not match the output ARM architecture. */ if (! bfd_arm_merge_machines (ibfd, obfd)) - return FALSE; + return false; /* Identical flags must be compatible. */ if (in_flags == out_flags) - return TRUE; + return true; /* Check to see if the input BFD actually contains any sections. If not, its flags may not have been initialised either, but it @@ -20493,8 +20493,8 @@ elf32_arm_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) in data sections ? */ if (!(ibfd->flags & DYNAMIC)) { - bfd_boolean null_input_bfd = TRUE; - bfd_boolean only_data_sections = TRUE; + bool null_input_bfd = true; + bool only_data_sections = true; for (sec = ibfd->sections; sec != NULL; sec = sec->next) { @@ -20505,15 +20505,15 @@ elf32_arm_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) if ((bfd_section_flags (sec) & (SEC_LOAD | SEC_CODE | SEC_HAS_CONTENTS)) == (SEC_LOAD | SEC_CODE | SEC_HAS_CONTENTS)) - only_data_sections = FALSE; + only_data_sections = false; - null_input_bfd = FALSE; + null_input_bfd = false; break; } } if (null_input_bfd || only_data_sections) - return TRUE; + return true; } /* Complain about various flag mismatches. */ @@ -20524,7 +20524,7 @@ elf32_arm_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) (_("error: source object %pB has EABI version %d, but target %pB has EABI version %d"), ibfd, (in_flags & EF_ARM_EABIMASK) >> 24, obfd, (out_flags & EF_ARM_EABIMASK) >> 24); - return FALSE; + return false; } /* Not sure what needs to be checked for EABI versions >= 1. */ @@ -20539,7 +20539,7 @@ elf32_arm_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) (_("error: %pB is compiled for APCS-%d, whereas target %pB uses APCS-%d"), ibfd, in_flags & EF_ARM_APCS_26 ? 26 : 32, obfd, out_flags & EF_ARM_APCS_26 ? 26 : 32); - flags_compatible = FALSE; + flags_compatible = false; } if ((in_flags & EF_ARM_APCS_FLOAT) != (out_flags & EF_ARM_APCS_FLOAT)) @@ -20553,7 +20553,7 @@ elf32_arm_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) (_("error: %pB passes floats in integer registers, whereas %pB passes them in float registers"), ibfd, obfd); - flags_compatible = FALSE; + flags_compatible = false; } if ((in_flags & EF_ARM_VFP_FLOAT) != (out_flags & EF_ARM_VFP_FLOAT)) @@ -20567,7 +20567,7 @@ elf32_arm_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) (_("error: %pB uses %s instructions, whereas %pB does not"), ibfd, "FPA", obfd); - flags_compatible = FALSE; + flags_compatible = false; } if ((in_flags & EF_ARM_MAVERICK_FLOAT) != (out_flags & EF_ARM_MAVERICK_FLOAT)) @@ -20581,7 +20581,7 @@ elf32_arm_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) (_("error: %pB does not use %s instructions, whereas %pB does"), ibfd, "Maverick", obfd); - flags_compatible = FALSE; + flags_compatible = false; } #ifdef EF_ARM_SOFT_FLOAT @@ -20604,7 +20604,7 @@ elf32_arm_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) (_("error: %pB uses hardware FP, whereas %pB uses software FP"), ibfd, obfd); - flags_compatible = FALSE; + flags_compatible = false; } } #endif |