aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-nios2.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-03-31 10:30:54 +1030
committerAlan Modra <amodra@gmail.com>2021-03-31 10:49:23 +1030
commit0a1b45a20eaa98d4d9026dc1fd17e79e741183af (patch)
tree059b2b296b4d60784a82cd6a52dae47dcac4d66a /bfd/elf32-nios2.c
parentfaa7a26040c617a6d29f601998b99a1da882c672 (diff)
downloadgdb-0a1b45a20eaa98d4d9026dc1fd17e79e741183af.zip
gdb-0a1b45a20eaa98d4d9026dc1fd17e79e741183af.tar.gz
gdb-0a1b45a20eaa98d4d9026dc1fd17e79e741183af.tar.bz2
Use bool in bfd
* sysdep.h: POISON_BFD_BOOLEAN: Define. * aix5ppc-core.c, * aout-cris.c, * aout-ns32k.c, * aout-target.h, * aoutx.h, * arc-got.h, * archive.c, * archive64.c, * archures.c, * bfd-in.h, * bfd.c, * bfdwin.c, * binary.c, * cache.c, * coff-alpha.c, * coff-arm.c, * coff-arm.h, * coff-bfd.c, * coff-bfd.h, * coff-go32.c, * coff-i386.c, * coff-ia64.c, * coff-mcore.c, * coff-mips.c, * coff-rs6000.c, * coff-sh.c, * coff-stgo32.c, * coff-tic30.c, * coff-tic4x.c, * coff-tic54x.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c, * coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c, * compress.c, * corefile.c, * cpu-aarch64.c, * cpu-aarch64.h, * cpu-alpha.c, * cpu-arc.c, * cpu-arm.c, * cpu-arm.h, * cpu-avr.c, * cpu-bfin.c, * cpu-bpf.c, * cpu-cr16.c, * cpu-cris.c, * cpu-crx.c, * cpu-csky.c, * cpu-d10v.c, * cpu-d30v.c, * cpu-dlx.c, * cpu-epiphany.c, * cpu-fr30.c, * cpu-frv.c, * cpu-ft32.c, * cpu-h8300.c, * cpu-hppa.c, * cpu-i386.c, * cpu-ia64.c, * cpu-iamcu.c, * cpu-ip2k.c, * cpu-iq2000.c, * cpu-k1om.c, * cpu-l1om.c, * cpu-lm32.c, * cpu-m10200.c, * cpu-m10300.c, * cpu-m32c.c, * cpu-m32r.c, * cpu-m68hc11.c, * cpu-m68hc12.c, * cpu-m68k.c, * cpu-m9s12x.c, * cpu-m9s12xg.c, * cpu-mcore.c, * cpu-mep.c, * cpu-metag.c, * cpu-microblaze.c, * cpu-mips.c, * cpu-mmix.c, * cpu-moxie.c, * cpu-msp430.c, * cpu-mt.c, * cpu-nds32.c, * cpu-nfp.c, * cpu-nios2.c, * cpu-ns32k.c, * cpu-or1k.c, * cpu-pdp11.c, * cpu-pj.c, * cpu-powerpc.c, * cpu-pru.c, * cpu-riscv.c, * cpu-rl78.c, * cpu-rs6000.c, * cpu-rx.c, * cpu-s12z.c, * cpu-s390.c, * cpu-score.c, * cpu-sh.c, * cpu-sparc.c, * cpu-spu.c, * cpu-tic30.c, * cpu-tic4x.c, * cpu-tic54x.c, * cpu-tic6x.c, * cpu-tilegx.c, * cpu-tilepro.c, * cpu-v850.c, * cpu-v850_rh850.c, * cpu-vax.c, * cpu-visium.c, * cpu-wasm32.c, * cpu-xc16x.c, * cpu-xgate.c, * cpu-xstormy16.c, * cpu-xtensa.c, * cpu-z80.c, * cpu-z8k.c, * dwarf1.c, * dwarf2.c, * ecoff-bfd.h, * ecoff.c, * ecofflink.c, * elf-attrs.c, * elf-bfd.h, * elf-eh-frame.c, * elf-hppa.h, * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-nacl.c, * elf-nacl.h, * elf-properties.c, * elf-s390-common.c, * elf-s390.h, * elf-strtab.c, * elf-vxworks.c, * elf-vxworks.h, * elf.c, * elf32-am33lin.c, * elf32-arc.c, * elf32-arm.c, * elf32-arm.h, * elf32-avr.c, * elf32-avr.h, * elf32-bfin.c, * elf32-bfin.h, * elf32-cr16.c, * elf32-cr16.h, * elf32-cris.c, * elf32-crx.c, * elf32-csky.c, * elf32-csky.h, * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c, * elf32-gen.c, * elf32-h8300.c, * elf32-hppa.c, * elf32-hppa.h, * elf32-i386.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, * elf32-m68hc1x.c, * elf32-m68hc1x.h, * elf32-m68k.c, * elf32-m68k.h, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c, * elf32-metag.h, * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-nios2.c, * elf32-nios2.h, * elf32-or1k.c, * elf32-pj.c, * elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c, * elf32-rx.c, * elf32-s12z.c, * elf32-s390.c, * elf32-score.c, * elf32-score.h, * elf32-score7.c, * elf32-sh-relocs.h, * elf32-sh.c, * elf32-sparc.c, * elf32-spu.c, * elf32-spu.h, * elf32-tic6x.c, * elf32-tic6x.h, * elf32-tilegx.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-v850.h, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c, * elf32-xc16x.c, * elf32-xgate.c, * elf32-xstormy16.c, * elf32-xtensa.c, * elf32-z80.c, * elf64-alpha.c, * elf64-bpf.c, * elf64-gen.c, * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c, * elf64-nfp.c, * elf64-ppc.c, * elf64-ppc.h, * elf64-s390.c, * elf64-sparc.c, * elf64-tilegx.c, * elf64-x86-64.c, * elfcode.h, * elfcore.h, * elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-aarch64.h, * elfxx-ia64.c, * elfxx-ia64.h, * elfxx-mips.c, * elfxx-mips.h, * elfxx-riscv.c, * elfxx-riscv.h, * elfxx-sparc.c, * elfxx-sparc.h, * elfxx-target.h, * elfxx-tilegx.c, * elfxx-tilegx.h, * elfxx-x86.c, * elfxx-x86.h, * format.c, * genlink.h, * hash.c, * i386aout.c, * i386lynx.c, * i386msdos.c, * ihex.c, * libaout.h, * libbfd-in.h, * libbfd.c, * libcoff-in.h, * libecoff.h, * libpei.h, * libxcoff.h, * linker.c, * mach-o-aarch64.c, * mach-o-arm.c, * mach-o-i386.c, * mach-o-x86-64.c, * mach-o.c, * mach-o.h, * merge.c, * mmo.c, * netbsd.h, * opncls.c, * pc532-mach.c, * pdp11.c, * pe-arm.c, * pe-i386.c, * pe-mcore.c, * pe-sh.c, * pe-x86_64.c, * peXXigen.c, * pef.c, * pei-arm.c, * pei-i386.c, * pei-ia64.c, * pei-mcore.c, * pei-sh.c, * pei-x86_64.c, * peicode.h, * plugin.c, * plugin.h, * ppcboot.c, * reloc.c, * reloc16.c, * rs6000-core.c, * section.c, * simple.c, * som.c, * som.h, * srec.c, * stabs.c, * syms.c, * targets.c, * tekhex.c, * verilog.c, * vms-alpha.c, * vms-lib.c, * vms-misc.c, * vms.h, * wasm-module.c, * xcofflink.c, * xcofflink.h, * xsym.c, * xsym.h: Replace bfd_boolean with bool, FALSE with false, and TRUE with true throughout. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. * libcoff.h: Regenerate.
Diffstat (limited to 'bfd/elf32-nios2.c')
-rw-r--r--bfd/elf32-nios2.c892
1 files changed, 446 insertions, 446 deletions
diff --git a/bfd/elf32-nios2.c b/bfd/elf32-nios2.c
index 0235e5d..5fb2e5d 100644
--- a/bfd/elf32-nios2.c
+++ b/bfd/elf32-nios2.c
@@ -84,649 +84,649 @@ static reloc_howto_type elf_nios2_r1_howto_table_rel[] = {
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_NIOS2_NONE", /* name */
- FALSE, /* partial_inplace */
+ false, /* partial_inplace */
0, /* src_mask */
0, /* dst_mask */
- FALSE), /* pcrel_offset */
+ false), /* pcrel_offset */
/* 16-bit signed immediate relocation. */
HOWTO (R_NIOS2_S16, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
- FALSE, /* pc_relative */
+ false, /* pc_relative */
6, /* bitpos */
complain_overflow_signed, /* complain on overflow */
bfd_elf_generic_reloc, /* special function */
"R_NIOS2_S16", /* name */
- FALSE, /* partial_inplace */
+ false, /* partial_inplace */
0x003fffc0, /* src_mask */
0x003fffc0, /* dest_mask */
- FALSE), /* pcrel_offset */
+ false), /* pcrel_offset */
/* 16-bit unsigned immediate relocation. */
HOWTO (R_NIOS2_U16, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
- FALSE, /* pc_relative */
+ false, /* pc_relative */
6, /* bitpos */
complain_overflow_unsigned, /* complain on overflow */
bfd_elf_generic_reloc, /* special function */
"R_NIOS2_U16", /* name */
- FALSE, /* partial_inplace */
+ false, /* partial_inplace */
0x003fffc0, /* src_mask */
0x003fffc0, /* dest_mask */
- FALSE), /* pcrel_offset */
+ false), /* pcrel_offset */
HOWTO (R_NIOS2_PCREL16, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
- TRUE, /* pc_relative */
+ true, /* pc_relative */
6, /* bitpos */
complain_overflow_signed, /* complain on overflow */
nios2_elf32_pcrel16_relocate, /* special function */
"R_NIOS2_PCREL16", /* name */
- FALSE, /* partial_inplace */
+ false, /* partial_inplace */
0x003fffc0, /* src_mask */
0x003fffc0, /* dest_mask */
- TRUE), /* pcrel_offset */
+ true), /* pcrel_offset */
HOWTO (R_NIOS2_CALL26, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
26, /* bitsize */
- FALSE, /* pc_relative */
+ false, /* pc_relative */
6, /* bitpos */
complain_overflow_dont, /* complain on overflow */
nios2_elf32_call26_relocate, /* special function */
"R_NIOS2_CALL26", /* name */
- FALSE, /* partial_inplace */
+ false, /* partial_inplace */
0xffffffc0, /* src_mask */
0xffffffc0, /* dst_mask */
- FALSE), /* pcrel_offset */
+ false), /* pcrel_offset */
HOWTO (R_NIOS2_IMM5,
0,
2,
5,
- FALSE,
+ false,
6,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_IMM5",
- FALSE,
+ false,
0x000007c0,
0x000007c0,
- FALSE),
+ false),
HOWTO (R_NIOS2_CACHE_OPX,
0,
2,
5,
- FALSE,
+ false,
22,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_CACHE_OPX",
- FALSE,
+ false,
0x07c00000,
0x07c00000,
- FALSE),
+ false),
HOWTO (R_NIOS2_IMM6,
0,
2,
6,
- FALSE,
+ false,
6,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_IMM6",
- FALSE,
+ false,
0x00000fc0,
0x00000fc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_IMM8,
0,
2,
8,
- FALSE,
+ false,
6,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_IMM8",
- FALSE,
+ false,
0x00003fc0,
0x00003fc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_HI16,
0,
2,
32,
- FALSE,
+ false,
6,
complain_overflow_dont,
nios2_elf32_hi16_relocate,
"R_NIOS2_HI16",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_LO16,
0,
2,
32,
- FALSE,
+ false,
6,
complain_overflow_dont,
nios2_elf32_lo16_relocate,
"R_NIOS2_LO16",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_HIADJ16,
0,
2,
32,
- FALSE,
+ false,
6,
complain_overflow_dont,
nios2_elf32_hiadj16_relocate,
"R_NIOS2_HIADJ16",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_BFD_RELOC_32,
0,
2, /* long */
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_BFD_RELOC32",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_BFD_RELOC_16,
0,
1, /* short */
16,
- FALSE,
+ false,
0,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_BFD_RELOC16",
- FALSE,
+ false,
0x0000ffff,
0x0000ffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_BFD_RELOC_8,
0,
0, /* byte */
8,
- FALSE,
+ false,
0,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_BFD_RELOC8",
- FALSE,
+ false,
0x000000ff,
0x000000ff,
- FALSE),
+ false),
HOWTO (R_NIOS2_GPREL,
0,
2,
32,
- FALSE,
+ false,
6,
complain_overflow_dont,
nios2_elf32_gprel_relocate,
"R_NIOS2_GPREL",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_GNU_VTINHERIT,
0,
2, /* short */
0,
- FALSE,
+ false,
0,
complain_overflow_dont,
NULL,
"R_NIOS2_GNU_VTINHERIT",
- FALSE,
+ false,
0,
0,
- FALSE),
+ false),
HOWTO (R_NIOS2_GNU_VTENTRY,
0,
2, /* byte */
0,
- FALSE,
+ false,
0,
complain_overflow_dont,
_bfd_elf_rel_vtable_reloc_fn,
"R_NIOS2_GNU_VTENTRY",
- FALSE,
+ false,
0,
0,
- FALSE),
+ false),
HOWTO (R_NIOS2_UJMP,
0,
2,
32,
- FALSE,
+ false,
6,
complain_overflow_dont,
nios2_elf32_ujmp_relocate,
"R_NIOS2_UJMP",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_CJMP,
0,
2,
32,
- FALSE,
+ false,
6,
complain_overflow_dont,
nios2_elf32_cjmp_relocate,
"R_NIOS2_CJMP",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_CALLR,
0,
2,
32,
- FALSE,
+ false,
6,
complain_overflow_dont,
nios2_elf32_callr_relocate,
"R_NIOS2_CALLR",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_ALIGN,
0,
2,
0,
- FALSE,
+ false,
0,
complain_overflow_dont,
nios2_elf32_ignore_reloc,
"R_NIOS2_ALIGN",
- FALSE,
+ false,
0,
0,
- TRUE),
+ true),
HOWTO (R_NIOS2_GOT16,
0,
2,
16,
- FALSE,
+ false,
6,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_GOT16",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_CALL16,
0,
2,
16,
- FALSE,
+ false,
6,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_CALL16",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_GOTOFF_LO,
0,
2,
16,
- FALSE,
+ false,
6,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_GOTOFF_LO",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_GOTOFF_HA,
0,
2,
16,
- FALSE,
+ false,
6,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_GOTOFF_HA",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_PCREL_LO,
0,
2,
16,
- TRUE,
+ true,
6,
complain_overflow_dont,
nios2_elf32_pcrel_lo16_relocate,
"R_NIOS2_PCREL_LO",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- TRUE),
+ true),
HOWTO (R_NIOS2_PCREL_HA,
0,
2,
16,
- FALSE, /* This is a PC-relative relocation, but we need to subtract
+ false, /* This is a PC-relative relocation, but we need to subtract
PC ourselves before the HIADJ. */
6,
complain_overflow_dont,
nios2_elf32_pcrel_hiadj16_relocate,
"R_NIOS2_PCREL_HA",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- TRUE),
+ true),
HOWTO (R_NIOS2_TLS_GD16,
0,
2,
16,
- FALSE,
+ false,
6,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_GD16",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_LDM16,
0,
2,
16,
- FALSE,
+ false,
6,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_LDM16",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_LDO16,
0,
2,
16,
- FALSE,
+ false,
6,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_LDO16",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_IE16,
0,
2,
16,
- FALSE,
+ false,
6,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_IE16",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_LE16,
0,
2,
16,
- FALSE,
+ false,
6,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_LE16",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_DTPMOD,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_DTPMOD",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_DTPREL,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_DTPREL",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_TPREL,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_TPREL",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_COPY,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_COPY",
- FALSE,
+ false,
0,
0,
- FALSE),
+ false),
HOWTO (R_NIOS2_GLOB_DAT,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_GLOB_DAT",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_JUMP_SLOT,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_JUMP_SLOT",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_RELATIVE,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_RELATIVE",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_GOTOFF,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_GOTOFF",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_CALL26_NOAT, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
26, /* bitsize */
- FALSE, /* pc_relative */
+ false, /* pc_relative */
6, /* bitpos */
complain_overflow_dont, /* complain on overflow */
nios2_elf32_call26_relocate, /* special function */
"R_NIOS2_CALL26_NOAT", /* name */
- FALSE, /* partial_inplace */
+ false, /* partial_inplace */
0xffffffc0, /* src_mask */
0xffffffc0, /* dst_mask */
- FALSE), /* pcrel_offset */
+ false), /* pcrel_offset */
HOWTO (R_NIOS2_GOT_LO,
0,
2,
16,
- FALSE,
+ false,
6,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_GOT_LO",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_GOT_HA,
0,
2,
16,
- FALSE,
+ false,
6,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_GOT_HA",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_CALL_LO,
0,
2,
16,
- FALSE,
+ false,
6,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_CALL_LO",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_CALL_HA,
0,
2,
16,
- FALSE,
+ false,
6,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_CALL_HA",
- FALSE,
+ false,
0x003fffc0,
0x003fffc0,
- FALSE),
+ false),
/* Add other relocations here. */
};
@@ -737,830 +737,830 @@ static reloc_howto_type elf_nios2_r2_howto_table_rel[] = {
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_NIOS2_NONE", /* name */
- FALSE, /* partial_inplace */
+ false, /* partial_inplace */
0, /* src_mask */
0, /* dst_mask */
- FALSE), /* pcrel_offset */
+ false), /* pcrel_offset */
/* 16-bit signed immediate relocation. */
HOWTO (R_NIOS2_S16, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
- FALSE, /* pc_relative */
+ false, /* pc_relative */
16, /* bitpos */
complain_overflow_signed, /* complain on overflow */
bfd_elf_generic_reloc, /* special function */
"R_NIOS2_S16", /* name */
- FALSE, /* partial_inplace */
+ false, /* partial_inplace */
0xffff0000, /* src_mask */
0xffff0000, /* dest_mask */
- FALSE), /* pcrel_offset */
+ false), /* pcrel_offset */
/* 16-bit unsigned immediate relocation. */
HOWTO (R_NIOS2_U16, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
- FALSE, /* pc_relative */
+ false, /* pc_relative */
16, /* bitpos */
complain_overflow_unsigned, /* complain on overflow */
bfd_elf_generic_reloc, /* special function */
"R_NIOS2_U16", /* name */
- FALSE, /* partial_inplace */
+ false, /* partial_inplace */
0xffff0000, /* src_mask */
0xffff0000, /* dest_mask */
- FALSE), /* pcrel_offset */
+ false), /* pcrel_offset */
HOWTO (R_NIOS2_PCREL16, /* type */
0, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
16, /* bitsize */
- TRUE, /* pc_relative */
+ true, /* pc_relative */
16, /* bitpos */
complain_overflow_signed, /* complain on overflow */
nios2_elf32_pcrel16_relocate, /* special function */
"R_NIOS2_PCREL16", /* name */
- FALSE, /* partial_inplace */
+ false, /* partial_inplace */
0xffff0000, /* src_mask */
0xffff0000, /* dest_mask */
- TRUE), /* pcrel_offset */
+ true), /* pcrel_offset */
HOWTO (R_NIOS2_CALL26, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
26, /* bitsize */
- FALSE, /* pc_relative */
+ false, /* pc_relative */
6, /* bitpos */
complain_overflow_dont, /* complain on overflow */
nios2_elf32_call26_relocate, /* special function */
"R_NIOS2_CALL26", /* name */
- FALSE, /* partial_inplace */
+ false, /* partial_inplace */
0xffffffc0, /* src_mask */
0xffffffc0, /* dst_mask */
- FALSE), /* pcrel_offset */
+ false), /* pcrel_offset */
HOWTO (R_NIOS2_IMM5,
0,
2,
5,
- FALSE,
+ false,
21,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_IMM5",
- FALSE,
+ false,
0x03e00000,
0x03e00000,
- FALSE),
+ false),
HOWTO (R_NIOS2_CACHE_OPX,
0,
2,
5,
- FALSE,
+ false,
11,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_CACHE_OPX",
- FALSE,
+ false,
0x0000f800,
0x0000f800,
- FALSE),
+ false),
HOWTO (R_NIOS2_IMM6,
0,
2,
6,
- FALSE,
+ false,
26,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_IMM6",
- FALSE,
+ false,
0xfc000000,
0xfc000000,
- FALSE),
+ false),
HOWTO (R_NIOS2_IMM8,
0,
2,
8,
- FALSE,
+ false,
24,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_IMM8",
- FALSE,
+ false,
0xff000000,
0xff000000,
- FALSE),
+ false),
HOWTO (R_NIOS2_HI16,
0,
2,
32,
- FALSE,
+ false,
16,
complain_overflow_dont,
nios2_elf32_hi16_relocate,
"R_NIOS2_HI16",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_LO16,
0,
2,
32,
- FALSE,
+ false,
16,
complain_overflow_dont,
nios2_elf32_lo16_relocate,
"R_NIOS2_LO16",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_HIADJ16,
0,
2,
32,
- FALSE,
+ false,
16,
complain_overflow_dont,
nios2_elf32_hiadj16_relocate,
"R_NIOS2_HIADJ16",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_BFD_RELOC_32,
0,
2, /* long */
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_BFD_RELOC32",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_BFD_RELOC_16,
0,
1, /* short */
16,
- FALSE,
+ false,
0,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_BFD_RELOC16",
- FALSE,
+ false,
0x0000ffff,
0x0000ffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_BFD_RELOC_8,
0,
0, /* byte */
8,
- FALSE,
+ false,
0,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_BFD_RELOC8",
- FALSE,
+ false,
0x000000ff,
0x000000ff,
- FALSE),
+ false),
HOWTO (R_NIOS2_GPREL,
0,
2,
32,
- FALSE,
+ false,
16,
complain_overflow_dont,
nios2_elf32_gprel_relocate,
"R_NIOS2_GPREL",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_GNU_VTINHERIT,
0,
2, /* short */
0,
- FALSE,
+ false,
0,
complain_overflow_dont,
NULL,
"R_NIOS2_GNU_VTINHERIT",
- FALSE,
+ false,
0,
0,
- FALSE),
+ false),
HOWTO (R_NIOS2_GNU_VTENTRY,
0,
2, /* byte */
0,
- FALSE,
+ false,
0,
complain_overflow_dont,
_bfd_elf_rel_vtable_reloc_fn,
"R_NIOS2_GNU_VTENTRY",
- FALSE,
+ false,
0,
0,
- FALSE),
+ false),
HOWTO (R_NIOS2_UJMP,
0,
2,
32,
- FALSE,
+ false,
16,
complain_overflow_dont,
nios2_elf32_ujmp_relocate,
"R_NIOS2_UJMP",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_CJMP,
0,
2,
32,
- FALSE,
+ false,
16,
complain_overflow_dont,
nios2_elf32_cjmp_relocate,
"R_NIOS2_CJMP",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_CALLR,
0,
2,
32,
- FALSE,
+ false,
16,
complain_overflow_dont,
nios2_elf32_callr_relocate,
"R_NIOS2_CALLR",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_ALIGN,
0,
2,
0,
- FALSE,
+ false,
0,
complain_overflow_dont,
nios2_elf32_ignore_reloc,
"R_NIOS2_ALIGN",
- FALSE,
+ false,
0,
0,
- TRUE),
+ true),
HOWTO (R_NIOS2_GOT16,
0,
2,
16,
- FALSE,
+ false,
16,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_GOT16",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_CALL16,
0,
2,
16,
- FALSE,
+ false,
16,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_CALL16",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_GOTOFF_LO,
0,
2,
16,
- FALSE,
+ false,
16,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_GOTOFF_LO",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_GOTOFF_HA,
0,
2,
16,
- FALSE,
+ false,
16,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_GOTOFF_HA",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_PCREL_LO,
0,
2,
16,
- TRUE,
+ true,
16,
complain_overflow_dont,
nios2_elf32_pcrel_lo16_relocate,
"R_NIOS2_PCREL_LO",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- TRUE),
+ true),
HOWTO (R_NIOS2_PCREL_HA,
0,
2,
16,
- FALSE, /* This is a PC-relative relocation, but we need to subtract
+ false, /* This is a PC-relative relocation, but we need to subtract
PC ourselves before the HIADJ. */
16,
complain_overflow_dont,
nios2_elf32_pcrel_hiadj16_relocate,
"R_NIOS2_PCREL_HA",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- TRUE),
+ true),
HOWTO (R_NIOS2_TLS_GD16,
0,
2,
16,
- FALSE,
+ false,
16,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_GD16",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_LDM16,
0,
2,
16,
- FALSE,
+ false,
16,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_LDM16",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_LDO16,
0,
2,
16,
- FALSE,
+ false,
16,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_LDO16",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_IE16,
0,
2,
16,
- FALSE,
+ false,
16,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_IE16",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_LE16,
0,
2,
16,
- FALSE,
+ false,
16,
complain_overflow_bitfield,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_LE16",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_DTPMOD,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_DTPMOD",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_DTPREL,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_DTPREL",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_TLS_TPREL,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_TLS_TPREL",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_COPY,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_COPY",
- FALSE,
+ false,
0,
0,
- FALSE),
+ false),
HOWTO (R_NIOS2_GLOB_DAT,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_GLOB_DAT",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_JUMP_SLOT,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_JUMP_SLOT",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_RELATIVE,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_RELATIVE",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_GOTOFF,
0,
2,
32,
- FALSE,
+ false,
0,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_GOTOFF",
- FALSE,
+ false,
0xffffffff,
0xffffffff,
- FALSE),
+ false),
HOWTO (R_NIOS2_CALL26_NOAT, /* type */
2, /* rightshift */
2, /* size (0 = byte, 1 = short, 2 = long) */
26, /* bitsize */
- FALSE, /* pc_relative */
+ false, /* pc_relative */
6, /* bitpos */
complain_overflow_dont, /* complain on overflow */
nios2_elf32_call26_relocate, /* special function */
"R_NIOS2_CALL26_NOAT", /* name */
- FALSE, /* partial_inplace */
+ false, /* partial_inplace */
0xffffffc0, /* src_mask */
0xffffffc0, /* dst_mask */
- FALSE), /* pcrel_offset */
+ false), /* pcrel_offset */
HOWTO (R_NIOS2_GOT_LO,
0,
2,
16,
- FALSE,
+ false,
16,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_GOT_LO",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_GOT_HA,
0,
2,
16,
- FALSE,
+ false,
16,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_GOT_HA",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_CALL_LO,
0,
2,
16,
- FALSE,
+ false,
16,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_CALL_LO",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_CALL_HA,
0,
2,
16,
- FALSE,
+ false,
16,
complain_overflow_dont,
bfd_elf_generic_reloc,
"R_NIOS2_CALL_HA",
- FALSE,
+ false,
0xffff0000,
0xffff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_R2_S12,
0,
2,
12,
- FALSE,
+ false,
16,
complain_overflow_signed,
bfd_elf_generic_reloc,
"R_NIOS2_R2_S12",
- FALSE,
+ false,
0x0fff0000,
0x0fff0000,
- FALSE),
+ false),
HOWTO (R_NIOS2_R2_I10_1_PCREL,
1,
1,
10,
- TRUE,
+ true,
6,
complain_overflow_signed,
bfd_elf_generic_reloc, /* FIXME? */
"R_NIOS2_R2_I10_1_PCREL",
- FALSE,
+ false,
0xffc0,
0xffc0,
- TRUE),
+ true),
HOWTO (R_NIOS2_R2_T1I7_1_PCREL,
1,
1,
7,
- TRUE,
+ true,
9,
complain_overflow_signed,
bfd_elf_generic_reloc, /* FIXME? */
"R_NIOS2_R2_T1I7_1_PCREL",
- FALSE,
+ false,
0xfe00,
0xfe00,
- TRUE),
+ true),
HOWTO (R_NIOS2_R2_T1I7_2,
2,
1,
7,
- FALSE,
+ false,
9,
complain_overflow_unsigned,
bfd_elf_generic_reloc,
"R_NIOS2_R2_T1I7_2",
- FALSE,
+ false,
0xfe00,
0xfe00,
- FALSE),
+ false),
HOWTO (R_NIOS2_R2_T2I4,
0,
1,
4,
- FALSE,
+ false,
12,
complain_overflow_unsigned,
bfd_elf_generic_reloc,
"R_NIOS2_R2_T2I4",
- FALSE,
+ false,
0xf000,
0xf000,
- FALSE),
+ false),
HOWTO (R_NIOS2_R2_T2I4_1,
1,
1,
4,
- FALSE,
+ false,
12,
complain_overflow_unsigned,
bfd_elf_generic_reloc,
"R_NIOS2_R2_T2I4_1",
- FALSE,
+ false,
0xf000,
0xf000,
- FALSE),
+ false),
HOWTO (R_NIOS2_R2_T2I4_2,
2,
1,
4,
- FALSE,
+ false,
12,
complain_overflow_unsigned,
bfd_elf_generic_reloc,
"R_NIOS2_R2_T2I4_2",
- FALSE,
+ false,
0xf000,
0xf000,
- FALSE),
+ false),
HOWTO (R_NIOS2_R2_X1I7_2,
2,
1,
7,
- FALSE,
+ false,
6,
complain_overflow_unsigned,
bfd_elf_generic_reloc,
"R_NIOS2_R2_X1I7_2",
- FALSE,
+ false,
0x1fc0,
0x1fc0,
- FALSE),
+ false),
HOWTO (R_NIOS2_R2_X2L5,
0,
1,
5,
- FALSE,
+ false,
6,
complain_overflow_unsigned,
bfd_elf_generic_reloc,
"R_NIOS2_R2_X2L5",
- FALSE,
+ false,
0x07c0,
0x07c0,
- FALSE),
+ false),
HOWTO (R_NIOS2_R2_F1I5_2,
2,
1,
5,
- FALSE,
+ false,
6,
complain_overflow_unsigned,
bfd_elf_generic_reloc,
"R_NIOS2_R2_F1L5_2",
- FALSE,
+ false,
0x07c0,
0x07c0,
- FALSE),
+ false),
HOWTO (R_NIOS2_R2_L5I4X1,
2,
1,
4,
- FALSE,
+ false,
6,
complain_overflow_unsigned,
bfd_elf_generic_reloc,
"R_NIOS2_R2_L5I4X1",
- FALSE,
+ false,
0x03c0,
0x03c0,
- FALSE),
+ false),
HOWTO (R_NIOS2_R2_T1X1I6,
0,
1,
6,
- FALSE,
+ false,
9,
complain_overflow_unsigned,
bfd_elf_generic_reloc,
"R_NIOS2_R2_T1X1I6",
- FALSE,
+ false,
0x7e00,
0x7e00,
- FALSE),
+ false),
HOWTO (R_NIOS2_R2_T1X1I6_2,
2,
2,
6,
- FALSE,
+ false,
9,
complain_overflow_unsigned,
bfd_elf_generic_reloc,
"R_NIOS2_R2_T1I1X6_2",
- FALSE,
+ false,
0x7e00,
0x7e00,
- FALSE),
+ false),
/* Add other relocations here. */
};
@@ -1776,7 +1776,7 @@ struct elf32_nios2_link_hash_table
bfd *stub_bfd;
/* Linker call-backs. */
- asection * (*add_stub_section) (const char *, asection *, bfd_boolean);
+ asection * (*add_stub_section) (const char *, asection *, bool);
void (*layout_sections_again) (void);
/* Array to keep track of which stub sections have been created, and
@@ -1819,7 +1819,7 @@ struct nios2_elf32_obj_tdata
char *local_got_tls_type;
/* TRUE if TLS GD relocs have been seen for this object. */
- bfd_boolean has_tlsgd;
+ bool has_tlsgd;
};
#define elf32_nios2_tdata(abfd) \
@@ -1911,7 +1911,7 @@ bfd_vma hiadj (bfd_vma symbol_value)
/* Implement elf_backend_grok_prstatus:
Support for core dump NOTE sections. */
-static bfd_boolean
+static bool
nios2_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
{
int offset;
@@ -1920,7 +1920,7 @@ nios2_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
switch (note->descsz)
{
default:
- return FALSE;
+ return false;
case 212: /* Linux/Nios II */
/* pr_cursig */
@@ -1942,13 +1942,13 @@ nios2_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
}
/* Implement elf_backend_grok_psinfo. */
-static bfd_boolean
+static bool
nios2_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
{
switch (note->descsz)
{
default:
- return FALSE;
+ return false;
case 124: /* Linux/Nios II elf_prpsinfo */
elf_tdata (abfd)->core->program
@@ -1969,7 +1969,7 @@ nios2_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
command[n - 1] = '\0';
}
- return TRUE;
+ return true;
}
/* Assorted hash table functions. */
@@ -2126,7 +2126,7 @@ nios2_get_stub_entry (const asection *input_section,
return NULL;
hsh = nios2_stub_hash_lookup (&htab->bstab,
- stub_name, FALSE, FALSE);
+ stub_name, false, false);
if (hh != NULL)
hh->hsh_cache = hsh;
@@ -2149,21 +2149,21 @@ nios2_add_stub (const char *stub_name,
asection *stub_sec;
asection **secptr, **linkptr;
struct elf32_nios2_stub_hash_entry *hsh;
- bfd_boolean afterp;
+ bool afterp;
if (stub_type == nios2_stub_call26_before)
{
link_sec = htab->stub_group[section->id].first_sec;
secptr = &(htab->stub_group[section->id].first_stub_sec);
linkptr = &(htab->stub_group[link_sec->id].first_stub_sec);
- afterp = FALSE;
+ afterp = false;
}
else
{
link_sec = htab->stub_group[section->id].last_sec;
secptr = &(htab->stub_group[section->id].last_stub_sec);
linkptr = &(htab->stub_group[link_sec->id].last_stub_sec);
- afterp = TRUE;
+ afterp = true;
}
stub_sec = *secptr;
if (stub_sec == NULL)
@@ -2194,7 +2194,7 @@ nios2_add_stub (const char *stub_name,
/* Enter this entry into the linker stub hash table. */
hsh = nios2_stub_hash_lookup (&htab->bstab, stub_name,
- TRUE, FALSE);
+ true, false);
if (hsh == NULL)
{
/* xgettext:c-format */
@@ -2476,7 +2476,7 @@ nios2_type_of_stub (asection *input_sec,
return nios2_stub_none;
}
-static bfd_boolean
+static bool
nios2_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg ATTRIBUTE_UNUSED)
{
struct elf32_nios2_stub_hash_entry *hsh
@@ -2523,15 +2523,15 @@ nios2_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg ATTRIBUTE_U
break;
default:
BFD_FAIL ();
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
/* As above, but don't actually build the stub. Just bump offset so
we know stub section sizes. */
-static bfd_boolean
+static bool
nios2_size_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg ATTRIBUTE_UNUSED)
{
struct elf32_nios2_stub_hash_entry *hsh
@@ -2545,9 +2545,9 @@ nios2_size_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg ATTRIBUTE_UN
break;
default:
BFD_FAIL ();
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
/* Read in all local syms for all input bfds.
@@ -2602,14 +2602,14 @@ get_local_syms (bfd *output_bfd ATTRIBUTE_UNUSED, bfd *input_bfd,
}
/* Determine and set the size of the stub section for a final link. */
-bfd_boolean
+bool
nios2_elf32_size_stubs (bfd *output_bfd, bfd *stub_bfd,
struct bfd_link_info *info,
asection *(*add_stub_section) (const char *,
- asection *, bfd_boolean),
+ asection *, bool),
void (*layout_sections_again) (void))
{
- bfd_boolean stub_changed = FALSE;
+ bool stub_changed = false;
struct elf32_nios2_link_hash_table *htab = elf32_nios2_hash_table (info);
/* Stash our params away. */
@@ -2627,7 +2627,7 @@ nios2_elf32_size_stubs (bfd *output_bfd, bfd *stub_bfd,
{
if (htab->all_local_syms)
goto error_ret_free_local;
- return FALSE;
+ return false;
}
while (1)
@@ -2800,7 +2800,7 @@ nios2_elf32_size_stubs (bfd *output_bfd, bfd *stub_bfd,
hsh = nios2_stub_hash_lookup (&htab->bstab,
stub_name,
- FALSE, FALSE);
+ false, false);
if (hsh != NULL)
{
/* The proper stub has already been created. */
@@ -2819,7 +2819,7 @@ nios2_elf32_size_stubs (bfd *output_bfd, bfd *stub_bfd,
hsh->stub_type = stub_type;
hsh->hh = hh;
hsh->addend = irela->r_addend;
- stub_changed = TRUE;
+ stub_changed = true;
}
/* We're done with the internal relocs, free them. */
@@ -2842,21 +2842,21 @@ nios2_elf32_size_stubs (bfd *output_bfd, bfd *stub_bfd,
/* Ask the linker to do its stuff. */
(*htab->layout_sections_again) ();
- stub_changed = FALSE;
+ stub_changed = false;
}
free (htab->all_local_syms);
- return TRUE;
+ return true;
error_ret_free_local:
free (htab->all_local_syms);
- return FALSE;
+ return false;
}
/* Build all the stubs associated with the current output file. The
stubs are kept in a hash table attached to the main linker hash
table. This function is called via nios2elf_finish in the linker. */
-bfd_boolean
+bool
nios2_elf32_build_stubs (struct bfd_link_info *info)
{
asection *stub_sec;
@@ -2880,7 +2880,7 @@ nios2_elf32_build_stubs (struct bfd_link_info *info)
size = stub_sec->size;
stub_sec->contents = bfd_zalloc (htab->stub_bfd, size);
if (stub_sec->contents == NULL && size != 0)
- return FALSE;
+ return false;
stub_sec->size = 0;
}
@@ -2888,7 +2888,7 @@ nios2_elf32_build_stubs (struct bfd_link_info *info)
table = &htab->bstab;
bfd_hash_traverse (table, nios2_build_one_stub, info);
- return TRUE;
+ return true;
}
@@ -2899,7 +2899,7 @@ nios2_elf32_build_stubs (struct bfd_link_info *info)
/* Merge backend specific data from an object file to the output
object file when linking. */
-static bfd_boolean
+static bool
nios2_elf32_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
{
bfd *obfd = info->output_bfd;
@@ -2907,18 +2907,18 @@ nios2_elf32_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
flagword new_flags;
if (!is_nios2_elf (ibfd) || !is_nios2_elf (obfd))
- return TRUE;
+ return true;
/* Check if we have the same endianness. */
if (! _bfd_generic_verify_endian_match (ibfd, info))
- return FALSE;
+ return false;
new_flags = elf_elfheader (ibfd)->e_flags;
old_flags = elf_elfheader (obfd)->e_flags;
if (!elf_flags_init (obfd))
{
/* First call, no flags set. */
- elf_flags_init (obfd) = TRUE;
+ elf_flags_init (obfd) = true;
elf_elfheader (obfd)->e_flags = new_flags;
switch (new_flags)
@@ -2933,7 +2933,7 @@ nios2_elf32_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
_bfd_error_handler
(_("error: %pB: big-endian R2 is not supported"), ibfd);
bfd_set_error (bfd_error_bad_value);
- return FALSE;
+ return false;
}
bfd_default_set_arch_mach (obfd, bfd_arch_nios2, bfd_mach_nios2r2);
break;
@@ -2950,13 +2950,13 @@ nios2_elf32_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
(_("error: %pB: conflicting CPU architectures %d/%d"),
ibfd, new_flags, old_flags);
bfd_set_error (bfd_error_bad_value);
- return FALSE;
+ return false;
}
/* Merge Tag_compatibility attributes and any common GNU ones. */
_bfd_elf_merge_object_attributes (ibfd, info);
- return TRUE;
+ return true;
}
/* Implement bfd_elf32_bfd_reloc_type_lookup:
@@ -3006,7 +3006,7 @@ nios2_elf32_bfd_reloc_name_lookup (bfd *abfd,
/* Implement elf_info_to_howto:
Given a ELF32 relocation, fill in a arelent structure. */
-static bfd_boolean
+static bool
nios2_elf32_info_to_howto (bfd *abfd, arelent *cache_ptr,
Elf_Internal_Rela *dst)
{
@@ -3019,9 +3019,9 @@ nios2_elf32_info_to_howto (bfd *abfd, arelent *cache_ptr,
_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;
}
/* Return the base VMA address which should be subtracted from real addresses
@@ -3051,20 +3051,20 @@ tpoff (struct bfd_link_info *info, bfd_vma address)
/* Set the GP value for OUTPUT_BFD. Returns FALSE if this is a
dangerous relocation. */
-static bfd_boolean
+static bool
nios2_elf_assign_gp (bfd *output_bfd, bfd_vma *pgp, struct bfd_link_info *info)
{
- bfd_boolean gp_found;
+ bool gp_found;
struct bfd_hash_entry *h;
struct bfd_link_hash_entry *lh;
/* If we've already figured out what GP will be, just return it. */
*pgp = _bfd_get_gp_value (output_bfd);
if (*pgp)
- return TRUE;
+ return true;
- h = bfd_hash_lookup (&info->hash->table, "_gp", FALSE, FALSE);
+ h = bfd_hash_lookup (&info->hash->table, "_gp", false, false);
lh = (struct bfd_link_hash_entry *) h;
lookup:
if (lh)
@@ -3074,11 +3074,11 @@ nios2_elf_assign_gp (bfd *output_bfd, bfd_vma *pgp, struct bfd_link_info *info)
case bfd_link_hash_undefined:
case bfd_link_hash_undefweak:
case bfd_link_hash_common:
- gp_found = FALSE;
+ gp_found = false;
break;
case bfd_link_hash_defined:
case bfd_link_hash_defweak:
- gp_found = TRUE;
+ gp_found = true;
{
asection *sym_sec = lh->u.def.section;
bfd_vma sym_value = lh->u.def.value;
@@ -3100,19 +3100,19 @@ nios2_elf_assign_gp (bfd *output_bfd, bfd_vma *pgp, struct bfd_link_info *info)
}
}
else
- gp_found = FALSE;
+ gp_found = false;
if (!gp_found)
{
/* Only get the error once. */
*pgp = 4;
_bfd_set_gp_value (output_bfd, *pgp);
- return FALSE;
+ return false;
}
_bfd_set_gp_value (output_bfd, *pgp);
- return TRUE;
+ return true;
}
/* Retrieve the previously cached _gp pointer, returning bfd_reloc_dangerous
@@ -3121,7 +3121,7 @@ nios2_elf_assign_gp (bfd *output_bfd, bfd_vma *pgp, struct bfd_link_info *info)
symbol value for an external symbol if we are producing relocatable
output. */
static bfd_reloc_status_type
-nios2_elf_final_gp (bfd *output_bfd, asymbol *symbol, bfd_boolean relocatable,
+nios2_elf_final_gp (bfd *output_bfd, asymbol *symbol, bool relocatable,
char **error_message, bfd_vma *pgp)
{
if (bfd_is_und_section (symbol->section) && !relocatable)
@@ -3572,7 +3572,7 @@ nios2_elf32_gprel_relocate (bfd *abfd, arelent *reloc_entry, asymbol *symbol,
+ symbol->section->output_offset);
/* This assumes we've already cached the _gp symbol. */
- r = nios2_elf_final_gp (abfd, symbol, FALSE, msg, &gp);
+ r = nios2_elf_final_gp (abfd, symbol, false, msg, &gp);
if (r == bfd_reloc_ok)
{
relocation = relocation + reloc_entry->addend - gp;
@@ -3726,7 +3726,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
const char *format;
char *msgbuf = NULL;
char *msg = NULL;
- bfd_boolean unresolved_reloc;
+ bool unresolved_reloc;
bfd_vma off;
int use_plt;
@@ -3746,7 +3746,7 @@ nios2_elf32_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,
@@ -3764,7 +3764,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
if (howto)
{
- bfd_boolean resolved_to_zero;
+ bool resolved_to_zero;
resolved_to_zero = (h != NULL
&& UNDEFWEAK_NO_DYNAMIC_RELOC (info, h));
@@ -3922,7 +3922,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
+ splt->output_offset
+ h->plt.offset);
- unresolved_reloc = FALSE;
+ unresolved_reloc = false;
}
/* Detect R_NIOS2_CALL26 relocations that would overflow the
256MB segment. Replace the target with a reference to a
@@ -3998,7 +3998,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
if (h != NULL)
{
- bfd_boolean dyn;
+ bool dyn;
eh = (struct elf32_nios2_link_hash_entry *)h;
use_plt = (eh->got_types_used == CALL_USED
@@ -4036,7 +4036,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
}
}
else
- unresolved_reloc = FALSE;
+ unresolved_reloc = false;
}
else
{
@@ -4225,7 +4225,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
indx = 0;
if (h != NULL)
{
- bfd_boolean dyn;
+ bool dyn;
dyn = htab->root.dynamic_sections_created;
if (WILL_CALL_FINISH_DYNAMIC_SYMBOL (dyn,
bfd_link_pic (info),
@@ -4233,7 +4233,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
&& (!bfd_link_pic (info)
|| !SYMBOL_REFERENCES_LOCAL (info, h)))
{
- unresolved_reloc = FALSE;
+ unresolved_reloc = false;
indx = h->dynindx;
}
off = h->got.offset;
@@ -4256,7 +4256,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
off &= ~1;
else
{
- bfd_boolean need_relocs = FALSE;
+ bool need_relocs = false;
Elf_Internal_Rela outrel;
bfd_byte *loc = NULL;
int cur_off = off;
@@ -4271,7 +4271,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
&& !resolved_to_zero)
|| h->root.type != bfd_link_hash_undefweak))
{
- need_relocs = TRUE;
+ need_relocs = true;
if (htab->root.srelgot == NULL)
abort ();
loc = htab->root.srelgot->contents;
@@ -4383,7 +4383,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
"permitted in shared object"),
input_bfd, input_section,
(uint64_t) rel->r_offset, howto->name);
- return FALSE;
+ return false;
}
else
relocation = tpoff (info, relocation) - TP_OFFSET;
@@ -4403,22 +4403,22 @@ nios2_elf32_relocate_section (bfd *output_bfd,
{
Elf_Internal_Rela outrel;
bfd_byte *loc;
- bfd_boolean skip, relocate;
+ bool skip, relocate;
/* When generating a shared object, these relocations
are copied into the output file to be resolved at run
time. */
- skip = FALSE;
- relocate = FALSE;
+ skip = false;
+ relocate = false;
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);
@@ -4437,7 +4437,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
{
/* This symbol is local, or marked to become local. */
outrel.r_addend = relocation + rel->r_addend;
- relocate = TRUE;
+ relocate = true;
outrel.r_info = ELF32_R_INFO (0, R_NIOS2_RELATIVE);
}
@@ -4503,7 +4503,7 @@ nios2_elf32_relocate_section (bfd *output_bfd,
case bfd_reloc_undefined:
(*info->callbacks->undefined_symbol) (info, name, input_bfd,
input_section,
- rel->r_offset, TRUE);
+ rel->r_offset, true);
break;
case bfd_reloc_outofrange:
@@ -4532,28 +4532,28 @@ nios2_elf32_relocate_section (bfd *output_bfd,
(*info->callbacks->warning) (info, msg, name, input_bfd,
input_section, rel->r_offset);
free (msgbuf);
- return FALSE;
+ return false;
}
}
}
- return TRUE;
+ return true;
}
/* Implement elf-backend_section_flags:
Convert NIOS2 specific section flags to bfd internal section flags. */
-static bfd_boolean
+static bool
nios2_elf32_section_flags (const Elf_Internal_Shdr *hdr)
{
if (hdr->sh_flags & SHF_NIOS2_GPREL)
hdr->bfd_section->flags |= SEC_SMALL_DATA;
- return TRUE;
+ return true;
}
/* Implement elf_backend_fake_sections:
Set the correct type for an NIOS2 ELF section. We do this by the
section name, which is a hack, but ought to work. */
-static bfd_boolean
+static bool
nios2_elf32_fake_sections (bfd *abfd ATTRIBUTE_UNUSED,
Elf_Internal_Shdr *hdr, asection *sec)
{
@@ -4565,12 +4565,12 @@ nios2_elf32_fake_sections (bfd *abfd ATTRIBUTE_UNUSED,
|| strcmp (name, ".lit4") == 0 || strcmp (name, ".lit8") == 0)
hdr->sh_flags |= SHF_NIOS2_GPREL;
- return TRUE;
+ return true;
}
/* Create .got, .gotplt, and .rela.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_nios2_link_hash_table *htab;
@@ -4579,12 +4579,12 @@ create_got_section (bfd *dynobj, struct bfd_link_info *info)
htab = elf32_nios2_hash_table (info);
if (! _bfd_elf_create_got_section (dynobj, info))
- return FALSE;
+ return false;
/* In order for the two loads in .PLTresolve to share the same %hiadj,
_GLOBAL_OFFSET_TABLE_ must be aligned to a 16-byte boundary. */
if (!bfd_set_section_alignment (htab->root.sgotplt, 4))
- return FALSE;
+ return false;
/* The Nios II ABI specifies that GOT-relative relocations are relative
to the linker-created symbol _gp_got, rather than using
@@ -4594,26 +4594,26 @@ create_got_section (bfd *dynobj, struct bfd_link_info *info)
"_gp_got");
htab->h_gp_got = h;
if (h == NULL)
- return FALSE;
+ return false;
- return TRUE;
+ return true;
}
/* Implement elf_backend_create_dynamic_sections:
Create .plt, .rela.plt, .got, .got.plt, .rela.got, .dynbss, and
.rela.bss sections in DYNOBJ, and set up shortcuts to them in our
hash table. */
-static bfd_boolean
+static bool
nios2_elf32_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info)
{
struct elf32_nios2_link_hash_table *htab;
htab = elf32_nios2_hash_table (info);
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;
/* In order for the two loads in a shared object .PLTresolve to share the
same %hiadj, the start of the PLT (as well as the GOT) must be aligned
@@ -4648,7 +4648,7 @@ nios2_elf32_copy_indirect_symbol (struct bfd_link_info *info,
/* Set the right machine number for a NIOS2 ELF file. */
-static bfd_boolean
+static bool
nios2_elf32_object_p (bfd *abfd)
{
unsigned long mach;
@@ -4666,12 +4666,12 @@ nios2_elf32_object_p (bfd *abfd)
break;
}
- return TRUE;
+ return true;
}
/* Implement elf_backend_check_relocs:
Look through the relocs for a section during the first phase. */
-static bfd_boolean
+static bool
nios2_elf32_check_relocs (bfd *abfd, struct bfd_link_info *info,
asection *sec, const Elf_Internal_Rela *relocs)
{
@@ -4684,7 +4684,7 @@ nios2_elf32_check_relocs (bfd *abfd, struct bfd_link_info *info,
bfd_signed_vma *local_got_refcounts;
if (bfd_link_relocatable (info))
- return TRUE;
+ return true;
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
sym_hashes = elf_sym_hashes (abfd);
@@ -4782,7 +4782,7 @@ nios2_elf32_check_relocs (bfd *abfd, struct bfd_link_info *info,
local_got_refcounts
= ((bfd_signed_vma *) bfd_zalloc (abfd, size));
if (local_got_refcounts == NULL)
- return FALSE;
+ return false;
elf_local_got_refcounts (abfd) = local_got_refcounts;
elf32_nios2_local_got_tls_type (abfd)
= (char *) (local_got_refcounts + symtab_hdr->sh_info);
@@ -4813,7 +4813,7 @@ nios2_elf32_check_relocs (bfd *abfd, struct bfd_link_info *info,
if (htab->root.dynobj == NULL)
htab->root.dynobj = abfd;
if (!create_got_section (htab->root.dynobj, info))
- return FALSE;
+ return false;
}
break;
@@ -4825,14 +4825,14 @@ nios2_elf32_check_relocs (bfd *abfd, struct bfd_link_info *info,
Reconstruct it for later use during GC. */
case R_NIOS2_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_NIOS2_GNU_VTENTRY:
if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend))
- return FALSE;
+ return false;
break;
case R_NIOS2_BFD_RELOC_32:
@@ -4880,9 +4880,9 @@ nios2_elf32_check_relocs (bfd *abfd, struct bfd_link_info *info,
htab->root.dynobj = abfd;
sreloc = _bfd_elf_make_dynamic_reloc_section
- (sec, htab->root.dynobj, 2, abfd, TRUE);
+ (sec, htab->root.dynobj, 2, abfd, true);
if (sreloc == NULL)
- return FALSE;
+ return false;
}
/* If this is a global symbol, we count the number of
@@ -4902,7 +4902,7 @@ nios2_elf32_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;
s = bfd_section_from_elf_index (abfd, isym->st_shndx);
if (s == NULL)
@@ -4919,7 +4919,7 @@ nios2_elf32_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;
@@ -4934,7 +4934,7 @@ nios2_elf32_check_relocs (bfd *abfd, struct bfd_link_info *info,
}
}
- return TRUE;
+ return true;
}
@@ -4961,7 +4961,7 @@ nios2_elf32_gc_mark_hook (asection *sec,
/* Implement elf_backend_finish_dynamic_symbols:
Finish up dynamic symbol handling. We set the contents of various
dynamic sections here. */
-static bfd_boolean
+static bool
nios2_elf32_finish_dynamic_symbol (bfd *output_bfd,
struct bfd_link_info *info,
struct elf_link_hash_entry *h,
@@ -5145,11 +5145,11 @@ nios2_elf32_finish_dynamic_symbol (bfd *output_bfd,
|| h == htab->h_gp_got)
sym->st_shndx = SHN_ABS;
- return TRUE;
+ return true;
}
/* Implement elf_backend_finish_dynamic_sections. */
-static bfd_boolean
+static bool
nios2_elf32_finish_dynamic_sections (bfd *output_bfd,
struct bfd_link_info *info)
{
@@ -5278,7 +5278,7 @@ nios2_elf32_finish_dynamic_sections (bfd *output_bfd,
elf_section_data (sgotplt->output_section)->this_hdr.sh_entsize = 4;
}
- return TRUE;
+ return true;
}
/* Implement elf_backend_adjust_dynamic_symbol:
@@ -5287,7 +5287,7 @@ nios2_elf32_finish_dynamic_sections (bfd *output_bfd,
dynamic object, but we're not including those sections. We have to
change the definition to something the rest of the link can
understand. */
-static bfd_boolean
+static bool
nios2_elf32_adjust_dynamic_symbol (struct bfd_link_info *info,
struct elf_link_hash_entry *h)
{
@@ -5326,7 +5326,7 @@ nios2_elf32_adjust_dynamic_symbol (struct bfd_link_info *info,
h->needs_plt = 0;
}
- return TRUE;
+ return true;
}
/* Reinitialize the plt offset now that it is not used as a reference
@@ -5342,13 +5342,13 @@ nios2_elf32_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.
@@ -5357,13 +5357,13 @@ nios2_elf32_adjust_dynamic_symbol (struct bfd_link_info *info,
For such cases we need not do anything here; the relocations will
be handled correctly by relocate_section. */
if (bfd_link_pic (info))
- return TRUE;
+ return true;
if (h->size == 0)
{
_bfd_error_handler (_("dynamic variable `%s' is zero size"),
h->root.root.string);
- return TRUE;
+ return true;
}
/* We must allocate the symbol in our .dynbss section, which will
@@ -5403,7 +5403,7 @@ nios2_elf32_adjust_dynamic_symbol (struct bfd_link_info *info,
s->size = BFD_ALIGN (s->size, (bfd_size_type)1 << align2);
if (align2 > bfd_section_alignment (s)
&& !bfd_set_section_alignment (s, align2))
- return FALSE;
+ return false;
/* Define the symbol as being at this point in the section. */
h->root.u.def.section = s;
@@ -5412,18 +5412,18 @@ nios2_elf32_adjust_dynamic_symbol (struct bfd_link_info *info,
/* Increment the section size to make room for the symbol. */
s->size += h->size;
- return TRUE;
+ return true;
}
/* Worker function for nios2_elf32_size_dynamic_sections. */
-static bfd_boolean
+static bool
adjust_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
{
struct bfd_link_info *info;
struct elf32_nios2_link_hash_table *htab;
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"
@@ -5439,13 +5439,13 @@ adjust_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
if (htab->root.splt == h->root.u.def.section)
h->root.u.def.value += htab->res_n_size;
- return TRUE;
+ return true;
}
/* Another worker function for nios2_elf32_size_dynamic_sections.
Allocate space in .plt, .got and associated reloc sections for
dynamic relocs. */
-static bfd_boolean
+static bool
allocate_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
{
struct bfd_link_info *info;
@@ -5455,7 +5455,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
int use_plt;
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"
@@ -5474,7 +5474,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
if (h->dynindx == -1
&& !h->forced_local
&& !bfd_elf_link_record_dynamic_symbol (info, h))
- return FALSE;
+ return false;
if (WILL_CALL_FINISH_DYNAMIC_SYMBOL (1, bfd_link_pic (info), h))
{
@@ -5531,7 +5531,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
if (h->got.refcount > 0)
{
asection *s;
- bfd_boolean dyn;
+ bool dyn;
int tls_type = eh->tls_type;
int indx;
@@ -5540,7 +5540,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
if (h->dynindx == -1
&& !h->forced_local
&& !bfd_elf_link_record_dynamic_symbol (info, h))
- return FALSE;
+ return false;
s = htab->root.sgot;
h->got.offset = s->size;
@@ -5594,7 +5594,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
h->got.offset = (bfd_vma) -1;
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
@@ -5634,7 +5634,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
else if (h->dynindx == -1
&& !h->forced_local
&& !bfd_elf_link_record_dynamic_symbol (info, h))
- return FALSE;
+ return false;
}
}
else
@@ -5654,7 +5654,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
if (h->dynindx == -1
&& !h->forced_local
&& !bfd_elf_link_record_dynamic_symbol (info, h))
- return FALSE;
+ return false;
/* If that succeeded, we know we'll be keeping all the
relocs. */
@@ -5674,18 +5674,18 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
sreloc->size += p->count * sizeof (Elf32_External_Rela);
}
- return TRUE;
+ return true;
}
/* Implement elf_backend_size_dynamic_sections:
Set the sizes of the dynamic sections. */
-static bfd_boolean
+static bool
nios2_elf32_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_nios2_link_hash_table *htab;
@@ -5813,7 +5813,7 @@ nios2_elf32_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;
@@ -5830,7 +5830,7 @@ nios2_elf32_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
if (s->size != 0)
{
if (s != htab->root.srelplt)
- relocs = TRUE;
+ relocs = true;
/* We use the reloc_count field as a counter if we need
to copy relocs into the output file. */
@@ -5866,7 +5866,7 @@ nios2_elf32_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
/* Allocate memory for the section contents. */
s->contents = (bfd_byte *) bfd_zalloc (dynobj, s->size);
if (s->contents == NULL)
- return FALSE;
+ return false;
}
/* Adjust dynamic symbols that point to the plt to account for the
@@ -5941,7 +5941,7 @@ nios2_elf32_reloc_type_class (const struct bfd_link_info *info ATTRIBUTE_UNUSED,
}
/* Return 1 if target is one of ours. */
-static bfd_boolean
+static bool
is_nios2_elf_target (const struct bfd_target *targ)
{
return (targ == &nios2_elf32_le_vec
@@ -5951,7 +5951,7 @@ is_nios2_elf_target (const struct bfd_target *targ)
/* Implement elf_backend_add_symbol_hook.
This hook is called by the linker when adding symbols from an object
file. We use it to put .comm items in .sbss, and not .bss. */
-static bfd_boolean
+static bool
nios2_elf_add_symbol_hook (bfd *abfd,
struct bfd_link_info *info,
Elf_Internal_Sym *sym,
@@ -5980,20 +5980,20 @@ nios2_elf_add_symbol_hook (bfd *abfd,
htab->sbss = bfd_make_section_anyway_with_flags (htab->root.dynobj,
".sbss", flags);
if (htab->sbss == NULL)
- return FALSE;
+ return false;
}
*secp = htab->sbss;
*valp = sym->st_size;
}
- return TRUE;
+ return true;
}
/* Implement elf_backend_can_make_relative_eh_frame:
Decide whether to attempt to turn absptr or lsda encodings in
shared libraries into pcrel within the given input section. */
-static bfd_boolean
+static bool
nios2_elf32_can_make_relative_eh_frame (bfd *input_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info
ATTRIBUTE_UNUSED,
@@ -6001,7 +6001,7 @@ nios2_elf32_can_make_relative_eh_frame (bfd *input_bfd ATTRIBUTE_UNUSED,
ATTRIBUTE_UNUSED)
{
/* We can't use PC-relative encodings in the .eh_frame section. */
- return FALSE;
+ return false;
}
/* Implement elf_backend_special_sections. */