diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-31 10:30:54 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-31 10:49:23 +1030 |
commit | 0a1b45a20eaa98d4d9026dc1fd17e79e741183af (patch) | |
tree | 059b2b296b4d60784a82cd6a52dae47dcac4d66a /bfd/elf32-nds32.c | |
parent | Use bool in gprof (diff) | |
download | binutils-gdb-0a1b45a20eaa98d4d9026dc1fd17e79e741183af.tar.gz binutils-gdb-0a1b45a20eaa98d4d9026dc1fd17e79e741183af.tar.bz2 binutils-gdb-0a1b45a20eaa98d4d9026dc1fd17e79e741183af.zip |
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-nds32.c')
-rw-r--r-- | bfd/elf32-nds32.c | 1610 |
1 files changed, 805 insertions, 805 deletions
diff --git a/bfd/elf32-nds32.c b/bfd/elf32-nds32.c index 61a52af56ac..31a3ca02925 100644 --- a/bfd/elf32-nds32.c +++ b/bfd/elf32-nds32.c @@ -62,14 +62,14 @@ static bfd_reloc_status_type nds32_elf_do_9_pcrel_reloc static bfd_vma calculate_memory_address (bfd *, Elf_Internal_Rela *, Elf_Internal_Sym *, Elf_Internal_Shdr *); static int nds32_get_section_contents (bfd *, asection *, - bfd_byte **, bfd_boolean); + bfd_byte **, bool); static int nds32_get_local_syms (bfd *, asection *ATTRIBUTE_UNUSED, Elf_Internal_Sym **); -static bfd_boolean nds32_relax_fp_as_gp +static bool nds32_relax_fp_as_gp (struct bfd_link_info *link_info, bfd *abfd, asection *sec, Elf_Internal_Rela *internal_relocs, Elf_Internal_Rela *irelend, Elf_Internal_Sym *isymbuf); -static bfd_boolean nds32_fag_remove_unused_fpbase +static bool nds32_fag_remove_unused_fpbase (bfd *abfd, asection *sec, Elf_Internal_Rela *internal_relocs, Elf_Internal_Rela *irelend); @@ -253,7 +253,7 @@ struct elf_nds32_obj_tdata #define elf32_nds32_relax_group_ptr(bfd) \ &(elf_nds32_tdata (bfd)->relax_group) -static bfd_boolean +static bool nds32_elf_mkobject (bfd *abfd) { return bfd_elf_allocate_object (abfd, sizeof (struct elf_nds32_obj_tdata), @@ -275,60 +275,60 @@ static reloc_howto_type nds32_elf_howto_table[] = 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_NDS32_NONE", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* A 16 bit absolute relocation. */ HOWTO2 (R_NDS32_16, /* 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 */ nds32_elf_generic_reloc,/* special_function */ "R_NDS32_16", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffff, /* src_mask */ 0xffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* A 32 bit absolute relocation. */ HOWTO2 (R_NDS32_32, /* 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 */ nds32_elf_generic_reloc,/* special_function */ "R_NDS32_32", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* A 20 bit address. */ HOWTO2 (R_NDS32_20, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_unsigned,/* complain_on_overflow */ nds32_elf_generic_reloc,/* special_function */ "R_NDS32_20", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xfffff, /* src_mask */ 0xfffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* An PC Relative 9-bit relocation, shifted by 2. This reloc is complicated because relocations are relative to pc & -4. @@ -342,45 +342,45 @@ static reloc_howto_type nds32_elf_howto_table[] = 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 */ nds32_elf_9_pcrel_reloc,/* special_function */ "R_NDS32_9_PCREL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xff, /* src_mask */ 0xff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* A relative 15 bit relocation, right shifted by 1. */ HOWTO2 (R_NDS32_15_PCREL, /* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 14, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_15_PCREL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x3fff, /* src_mask */ 0x3fff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* A relative 17 bit relocation, right shifted by 1. */ HOWTO2 (R_NDS32_17_PCREL, /* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_17_PCREL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffff, /* src_mask */ 0xffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* A relative 25 bit relocation, right shifted by 1. */ /* It's not clear whether this should have partial_inplace set or not. @@ -391,447 +391,447 @@ static reloc_howto_type nds32_elf_howto_table[] = 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_NDS32_25_PCREL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffff, /* src_mask */ 0xffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* High 20 bits of address when lower 12 is or'd in. */ HOWTO2 (R_NDS32_HI20, /* type */ 12, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ nds32_elf_hi20_reloc, /* special_function */ "R_NDS32_HI20", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Lower 12 bits of address. */ HOWTO2 (R_NDS32_LO12S3, /* type */ 3, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 9, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ nds32_elf_lo12_reloc, /* special_function */ "R_NDS32_LO12S3", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000001ff, /* src_mask */ 0x000001ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Lower 12 bits of address. */ HOWTO2 (R_NDS32_LO12S2, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 10, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ nds32_elf_lo12_reloc, /* special_function */ "R_NDS32_LO12S2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000003ff, /* src_mask */ 0x000003ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Lower 12 bits of address. */ HOWTO2 (R_NDS32_LO12S1, /* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 11, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ nds32_elf_lo12_reloc, /* special_function */ "R_NDS32_LO12S1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000007ff, /* src_mask */ 0x000007ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Lower 12 bits of address. */ HOWTO2 (R_NDS32_LO12S0, /* 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 */ nds32_elf_lo12_reloc, /* special_function */ "R_NDS32_LO12S0", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Small data area 15 bits offset. */ HOWTO2 (R_NDS32_SDA15S3, /* type */ 3, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ nds32_elf_sda15_reloc, /* special_function */ "R_NDS32_SDA15S3", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00007fff, /* src_mask */ 0x00007fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Small data area 15 bits offset. */ HOWTO2 (R_NDS32_SDA15S2, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ nds32_elf_sda15_reloc, /* special_function */ "R_NDS32_SDA15S2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00007fff, /* src_mask */ 0x00007fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Small data area 15 bits offset. */ HOWTO2 (R_NDS32_SDA15S1, /* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ nds32_elf_sda15_reloc, /* special_function */ "R_NDS32_SDA15S1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00007fff, /* src_mask */ 0x00007fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Small data area 15 bits offset. */ HOWTO2 (R_NDS32_SDA15S0, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ nds32_elf_sda15_reloc, /* special_function */ "R_NDS32_SDA15S0", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00007fff, /* src_mask */ 0x00007fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* GNU extension to record C++ vtable hierarchy */ HOWTO2 (R_NDS32_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_NDS32_GNU_VTINHERIT",/* 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 member usage */ HOWTO2 (R_NDS32_GNU_VTENTRY, /* 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_rel_vtable_reloc_fn,/* special_function */ "R_NDS32_GNU_VTENTRY", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* A 16 bit absolute relocation. */ HOWTO2 (R_NDS32_16_RELA, /* 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_NDS32_16_RELA", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffff, /* src_mask */ 0xffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* A 32 bit absolute relocation. */ HOWTO2 (R_NDS32_32_RELA, /* 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_NDS32_32_RELA", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* A 20 bit address. */ HOWTO2 (R_NDS32_20_RELA, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_20_RELA", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xfffff, /* src_mask */ 0xfffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_9_PCREL_RELA, /* 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_NDS32_9_PCREL_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xff, /* src_mask */ 0xff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* A relative 15 bit relocation, right shifted by 1. */ HOWTO2 (R_NDS32_15_PCREL_RELA,/* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 14, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_15_PCREL_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x3fff, /* src_mask */ 0x3fff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* A relative 17 bit relocation, right shifted by 1. */ HOWTO2 (R_NDS32_17_PCREL_RELA,/* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_17_PCREL_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffff, /* src_mask */ 0xffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* A relative 25 bit relocation, right shifted by 2. */ HOWTO2 (R_NDS32_25_PCREL_RELA,/* 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_NDS32_25_PCREL_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffff, /* src_mask */ 0xffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* High 20 bits of address when lower 16 is or'd in. */ HOWTO2 (R_NDS32_HI20_RELA, /* type */ 12, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_HI20_RELA", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Lower 12 bits of address. */ HOWTO2 (R_NDS32_LO12S3_RELA, /* type */ 3, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 9, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_LO12S3_RELA", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000001ff, /* src_mask */ 0x000001ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Lower 12 bits of address. */ HOWTO2 (R_NDS32_LO12S2_RELA, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 10, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_LO12S2_RELA", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000003ff, /* src_mask */ 0x000003ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Lower 12 bits of address. */ HOWTO2 (R_NDS32_LO12S1_RELA, /* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 11, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_LO12S1_RELA", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000007ff, /* src_mask */ 0x000007ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Lower 12 bits of address. */ HOWTO2 (R_NDS32_LO12S0_RELA, /* 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_NDS32_LO12S0_RELA", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Small data area 15 bits offset. */ HOWTO2 (R_NDS32_SDA15S3_RELA, /* type */ 3, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_SDA15S3_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00007fff, /* src_mask */ 0x00007fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Small data area 15 bits offset. */ HOWTO2 (R_NDS32_SDA15S2_RELA, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_SDA15S2_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00007fff, /* src_mask */ 0x00007fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_SDA15S1_RELA, /* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_SDA15S1_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00007fff, /* src_mask */ 0x00007fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_SDA15S0_RELA, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_SDA15S0_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00007fff, /* src_mask */ 0x00007fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* GNU extension to record C++ vtable hierarchy */ HOWTO2 (R_NDS32_RELA_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_NDS32_RELA_GNU_VTINHERIT",/* 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 member usage */ HOWTO2 (R_NDS32_RELA_GNU_VTENTRY,/* 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_rel_vtable_reloc_fn,/* special_function */ "R_NDS32_RELA_GNU_VTENTRY",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0, /* src_mask */ 0, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Like R_NDS32_20, but referring to the GOT table entry for the symbol. */ @@ -839,15 +839,15 @@ static reloc_howto_type nds32_elf_howto_table[] = 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_GOT20", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xfffff, /* src_mask */ 0xfffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Like R_NDS32_PCREL, but referring to the procedure linkage table entry for the symbol. */ @@ -855,15 +855,15 @@ static reloc_howto_type nds32_elf_howto_table[] = 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_NDS32_25_PLTREL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffff, /* src_mask */ 0xffffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* This is used only by the dynamic linker. The symbol should exist both in the object being run and in some shared library. The @@ -874,15 +874,15 @@ static reloc_howto_type nds32_elf_howto_table[] = 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_NDS32_COPY", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Like R_NDS32_20, but used when setting global offset table entries. */ @@ -890,30 +890,30 @@ static reloc_howto_type nds32_elf_howto_table[] = 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_NDS32_GLOB_DAT", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Marks a procedure linkage table entry for a symbol. */ HOWTO2 (R_NDS32_JMP_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_NDS32_JMP_SLOT", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Used only by the dynamic linker. When the object is run, this longword is set to the load address of the object, plus the @@ -922,29 +922,29 @@ static reloc_howto_type nds32_elf_howto_table[] = 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_NDS32_RELATIVE", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_GOTOFF, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_GOTOFF", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xfffff, /* src_mask */ 0xfffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* An PC Relative 20-bit relocation used when setting PIC offset table register. */ @@ -952,15 +952,15 @@ static reloc_howto_type nds32_elf_howto_table[] = 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_GOTPC20", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xfffff, /* src_mask */ 0xfffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* Like R_NDS32_HI20, but referring to the GOT table entry for the symbol. */ @@ -968,28 +968,28 @@ static reloc_howto_type nds32_elf_howto_table[] = 12, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_GOT_HI20", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_GOT_LO12, /* 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_NDS32_GOT_LO12", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* An PC Relative relocation used when setting PIC offset table register. Like R_NDS32_HI20, but referring to the GOT table entry for @@ -998,55 +998,55 @@ static reloc_howto_type nds32_elf_howto_table[] = 12, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_GOTPC_HI20", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO2 (R_NDS32_GOTPC_LO12, /* 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_NDS32_GOTPC_LO12", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO2 (R_NDS32_GOTOFF_HI20, /* type */ 12, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_GOTOFF_HI20", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_GOTOFF_LO12, /* 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_NDS32_GOTOFF_LO12", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Alignment hint for relaxable instruction. This is used with R_NDS32_LABEL as a pair. Relax this instruction from 4 bytes to 2 @@ -1055,918 +1055,918 @@ static reloc_howto_type nds32_elf_howto_table[] = 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_INSN16", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Alignment hint for label. */ HOWTO2 (R_NDS32_LABEL, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LABEL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for unconditional call sequence */ HOWTO2 (R_NDS32_LONGCALL1, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LONGCALL1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for conditional call sequence. */ HOWTO2 (R_NDS32_LONGCALL2, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LONGCALL2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for conditional call sequence. */ HOWTO2 (R_NDS32_LONGCALL3, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LONGCALL3", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for unconditional branch sequence. */ HOWTO2 (R_NDS32_LONGJUMP1, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LONGJUMP1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for conditional branch sequence. */ HOWTO2 (R_NDS32_LONGJUMP2, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LONGJUMP2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for conditional branch sequence. */ HOWTO2 (R_NDS32_LONGJUMP3, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LONGJUMP3", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for load/store sequence. */ HOWTO2 (R_NDS32_LOADSTORE, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LOADSTORE", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for load/store sequence. */ HOWTO2 (R_NDS32_9_FIXED_RELA, /* type */ 0, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_9_FIXED_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000000ff, /* src_mask */ 0x000000ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for load/store sequence. */ HOWTO2 (R_NDS32_15_FIXED_RELA,/* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_15_FIXED_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00003fff, /* src_mask */ 0x00003fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for load/store sequence. */ HOWTO2 (R_NDS32_17_FIXED_RELA,/* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_17_FIXED_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0000ffff, /* src_mask */ 0x0000ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for load/store sequence. */ HOWTO2 (R_NDS32_25_FIXED_RELA,/* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_25_FIXED_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00ffffff, /* src_mask */ 0x00ffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* High 20 bits of PLT symbol offset relative to PC. */ HOWTO2 (R_NDS32_PLTREL_HI20, /* type */ 12, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_PLTREL_HI20", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Low 12 bits of PLT symbol offset relative to PC. */ HOWTO2 (R_NDS32_PLTREL_LO12, /* 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_NDS32_PLTREL_LO12", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* High 20 bits of PLT symbol offset relative to GOT (GP). */ HOWTO2 (R_NDS32_PLT_GOTREL_HI20, /* type */ 12, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_PLT_GOTREL_HI20",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Low 12 bits of PLT symbol offset relative to GOT (GP). */ HOWTO2 (R_NDS32_PLT_GOTREL_LO12,/* 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_NDS32_PLT_GOTREL_LO12",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Small data area 12 bits offset. */ HOWTO2 (R_NDS32_SDA12S2_DP_RELA,/* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 12, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_SDA12S2_DP_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Small data area 12 bits offset. */ HOWTO2 (R_NDS32_SDA12S2_SP_RELA,/* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 12, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_SDA12S2_SP_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Lower 12 bits of address. */ HOWTO2 (R_NDS32_LO12S2_DP_RELA, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 10, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_LO12S2_DP_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000003ff, /* src_mask */ 0x000003ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Lower 12 bits of address. */ HOWTO2 (R_NDS32_LO12S2_SP_RELA,/* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 10, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_LO12S2_SP_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000003ff, /* src_mask */ 0x000003ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Lower 12 bits of address. Special identity for or case. */ HOWTO2 (R_NDS32_LO12S0_ORI_RELA,/* 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_NDS32_LO12S0_ORI_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Small data area 19 bits offset. */ HOWTO2 (R_NDS32_SDA16S3_RELA, /* type */ 3, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_SDA16S3_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0000ffff, /* src_mask */ 0x0000ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Small data area 15 bits offset. */ HOWTO2 (R_NDS32_SDA17S2_RELA, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 17, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_SDA17S2_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0001ffff, /* src_mask */ 0x0001ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_SDA18S1_RELA, /* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 18, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_SDA18S1_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0003ffff, /* src_mask */ 0x0003ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_SDA19S0_RELA, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 19, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_SDA19S0_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0007ffff, /* src_mask */ 0x0007ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_DWARF2_OP1_RELA,/* type */ 0, /* rightshift */ 0, /* size (0 = byte, 1 = short, 2 = long) */ 8, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_DWARF2_OP1_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xff, /* src_mask */ 0xff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_DWARF2_OP2_RELA,/* type */ 0, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_DWARF2_OP2_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffff, /* src_mask */ 0xffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_DWARF2_LEB_RELA,/* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_DWARF2_LEB_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_UPDATE_TA_RELA,/* type */ 0, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_UPDATE_TA_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffff, /* src_mask */ 0xffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Like R_NDS32_PCREL, but referring to the procedure linkage table entry for the symbol. */ HOWTO2 (R_NDS32_9_PLTREL, /* 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_NDS32_9_PLTREL", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xff, /* src_mask */ 0xff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* Low 20 bits of PLT symbol offset relative to GOT (GP). */ HOWTO2 (R_NDS32_PLT_GOTREL_LO20,/* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_PLT_GOTREL_LO20",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* low 15 bits of PLT symbol offset relative to GOT (GP) */ HOWTO2 (R_NDS32_PLT_GOTREL_LO15,/* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_PLT_GOTREL_LO15",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00007fff, /* src_mask */ 0x00007fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Low 19 bits of PLT symbol offset relative to GOT (GP). */ HOWTO2 (R_NDS32_PLT_GOTREL_LO19,/* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 19, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_PLT_GOTREL_LO19",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0007ffff, /* src_mask */ 0x0007ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_GOT_LO15, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_GOT_LO15", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00007fff, /* src_mask */ 0x00007fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_GOT_LO19, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 19, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_GOT_LO19", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0007ffff, /* src_mask */ 0x0007ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_GOTOFF_LO15, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_GOTOFF_LO15", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00007fff, /* src_mask */ 0x00007fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_GOTOFF_LO19, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 19, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_GOTOFF_LO19", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0007ffff, /* src_mask */ 0x0007ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* GOT 15 bits offset. */ HOWTO2 (R_NDS32_GOT15S2_RELA, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_GOT15S2_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00007fff, /* src_mask */ 0x00007fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* GOT 17 bits offset. */ HOWTO2 (R_NDS32_GOT17S2_RELA, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 17, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_GOT17S2_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0001ffff, /* src_mask */ 0x0001ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* A 5 bit address. */ HOWTO2 (R_NDS32_5_RELA, /* type */ 0, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 5, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_5_RELA", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x1f, /* src_mask */ 0x1f, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_10_UPCREL_RELA,/* type */ 1, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 9, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_unsigned,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_10_UPCREL_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x1ff, /* src_mask */ 0x1ff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO2 (R_NDS32_SDA_FP7U2_RELA,/* type */ 2, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 7, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_unsigned,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_SDA_FP7U2_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0000007f, /* src_mask */ 0x0000007f, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_WORD_9_PCREL_RELA,/* type */ 1, /* rightshift */ 2, /* 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_NDS32_WORD_9_PCREL_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xff, /* src_mask */ 0xff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ HOWTO2 (R_NDS32_25_ABS_RELA, /* type */ 1, /* 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_NDS32_25_ABS_RELA", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffff, /* src_mask */ 0xffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* A relative 17 bit relocation for ifc, right shifted by 1. */ HOWTO2 (R_NDS32_17IFC_PCREL_RELA,/* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_17IFC_PCREL_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffff, /* src_mask */ 0xffff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* A relative unsigned 10 bit relocation for ifc, right shifted by 1. */ HOWTO2 (R_NDS32_10IFCU_PCREL_RELA,/* type */ 1, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 9, /* bitsize */ - TRUE, /* pc_relative */ + true, /* pc_relative */ 0, /* bitpos */ complain_overflow_unsigned,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_10IFCU_PCREL_RELA",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x1ff, /* src_mask */ 0x1ff, /* dst_mask */ - TRUE), /* pcrel_offset */ + true), /* pcrel_offset */ /* Like R_NDS32_HI20, but referring to the TLS LE entry for the symbol. */ HOWTO2 (R_NDS32_TLS_LE_HI20, /* type */ 12, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_TLS_LE_HI20", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_TLS_LE_LO12, /* 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_NDS32_TLS_LE_LO12", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Like R_NDS32_HI20, but referring to the TLS IE entry for the symbol. */ HOWTO2 (R_NDS32_TLS_IE_HI20, /* type */ 12, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_TLS_IE_HI20", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_TLS_IE_LO12S2,/* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 10, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_TLS_IE_LO12S2",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000003ff, /* src_mask */ 0x000003ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* TLS LE TP offset relocation */ HOWTO2 (R_NDS32_TLS_TPOFF, /* 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_NDS32_TLS_TPOFF", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* A 20 bit address. */ HOWTO2 (R_NDS32_TLS_LE_20, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_TLS_LE_20", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xfffff, /* src_mask */ 0xfffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_TLS_LE_15S0, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_TLS_LE_15S0", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x7fff, /* src_mask */ 0x7fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_TLS_LE_15S1, /* type */ 1, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_TLS_LE_15S1", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x7fff, /* src_mask */ 0x7fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_TLS_LE_15S2, /* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 15, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_TLS_LE_15S2", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x7fff, /* src_mask */ 0x7fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for unconditional call sequence */ HOWTO2 (R_NDS32_LONGCALL4, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LONGCALL4", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for conditional call sequence. */ HOWTO2 (R_NDS32_LONGCALL5, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LONGCALL5", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for conditional call sequence. */ HOWTO2 (R_NDS32_LONGCALL6, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LONGCALL6", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for unconditional branch sequence. */ HOWTO2 (R_NDS32_LONGJUMP4, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LONGJUMP4", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for conditional branch sequence. */ HOWTO2 (R_NDS32_LONGJUMP5, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LONGJUMP5", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for conditional branch sequence. */ HOWTO2 (R_NDS32_LONGJUMP6, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LONGJUMP6", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Relax hint for conditional branch sequence. */ HOWTO2 (R_NDS32_LONGJUMP7, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LONGJUMP7", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_TLS_IE_LO12, /* 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_NDS32_TLS_IE_LO12", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* Like R_NDS32_HI20, but referring to the TLS IE (PIE) entry for the symbol. */ @@ -1974,118 +1974,118 @@ static reloc_howto_type nds32_elf_howto_table[] = 12, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_TLS_IEGP_HI20",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_TLS_IEGP_LO12,/* 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_NDS32_TLS_IEGP_LO12",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO2 (R_NDS32_TLS_IEGP_LO12S2,/* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 10, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_TLS_IEGP_LO12S2",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000003ff, /* src_mask */ 0x000003ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* TLS description relocation */ HOWTO2 (R_NDS32_TLS_DESC, /* type */ 12, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ nds32_elf_hi20_reloc, /* special_function */ "R_NDS32_TLS_DESC_HI20",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* TLS GD/LD description offset high part. */ HOWTO2 (R_NDS32_TLS_DESC_HI20,/* type */ 12, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ nds32_elf_hi20_reloc, /* special_function */ "R_NDS32_TLS_DESC_HI20",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* TLS GD/LD description offset low part. */ HOWTO2 (R_NDS32_TLS_DESC_LO12,/* 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 */ nds32_elf_lo12_reloc, /* special_function */ "R_NDS32_TLS_DESC_LO12",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x00000fff, /* src_mask */ 0x00000fff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* TLS GD/LD description offset set (movi). */ HOWTO2 (R_NDS32_TLS_DESC_20, /* type */ 0, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 20, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_TLS_DESC_20", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000fffff, /* src_mask */ 0x000fffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* TLS GD/LD description offset set (lwi.gp). */ HOWTO2 (R_NDS32_TLS_DESC_SDA17S2,/* type */ 2, /* rightshift */ 2, /* size (0 = byte, 1 = short, 2 = long) */ 17, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_signed,/* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_NDS32_TLS_DESC_SDA17S2",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0001ffff, /* src_mask */ 0x0001ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ }; /* Relocations used for relaxation. */ @@ -2097,399 +2097,399 @@ static reloc_howto_type nds32_elf_relax_howto_table[] = { 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_RELAX_ENTRY", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_GOT_SUFF, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_GOT_SUFF", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_GOTOFF_SUFF, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_GOTOFF_SUFF", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_PLT_GOT_SUFF, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_PLT_GOT_SUFF",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_MULCALL_SUFF, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_MULCALL_SUFF",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_PTR, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_PTR", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_PTR_COUNT, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_PTR_COUNT", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_PTR_RESOLVED, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_PTR_RESOLVED",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_PLTBLOCK, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_PLTBLOCK", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_RELAX_REGION_BEGIN,/* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_RELAX_REGION_BEGIN",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_RELAX_REGION_END,/* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_RELAX_REGION_END",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_MINUEND, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_MINUEND", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_SUBTRAHEND, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_SUBTRAHEND", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_DIFF8, /* type */ 0, /* rightshift */ 0, /* size (0 = byte, 1 = short, 2 = long) */ 8, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_DIFF8", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x000000ff, /* src_mask */ 0x000000ff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_DIFF16, /* type */ 0, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ - FALSE, /* pc_relative */ + false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_DIFF16", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0x0000ffff, /* src_mask */ 0x0000ffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_DIFF32, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_DIFF32", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_DIFF_ULEB128, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_DIFF_ULEB128",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_DATA, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_DATA", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_TRAN, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_TRAN", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_TLS_LE_ADD, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_TLS_LE_ADD", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_TLS_LE_LS, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_TLS_LE_LS", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_EMPTY, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_EMPTY", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* TLS GD/LD description address base addition. */ HOWTO3 (R_NDS32_TLS_DESC_ADD, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_TLS_DESC_ADD",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* TLS GD/LD description function load. */ HOWTO3 (R_NDS32_TLS_DESC_FUNC,/* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_TLS_DESC_FUNC",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* TLS DESC resolve function call. */ HOWTO3 (R_NDS32_TLS_DESC_CALL,/* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_TLS_DESC_CALL",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* TLS DESC variable access. */ HOWTO3 (R_NDS32_TLS_DESC_MEM, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_TLS_DESC_MEM",/* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* TLS GD/LD description mark (@tlsdec). */ HOWTO3 (R_NDS32_RELAX_REMOVE, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_REMOVE", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* TLS GD/LD description mark (@tlsdec). */ HOWTO3 (R_NDS32_RELAX_GROUP, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_GROUP", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ HOWTO3 (R_NDS32_TLS_IEGP_LW, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_TLS_IEGP_LW", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), /* pcrel_offset */ + false), /* pcrel_offset */ /* LA and FLSI relaxation. */ HOWTO3 (R_NDS32_LSI, /* 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 */ nds32_elf_ignore_reloc,/* special_function */ "R_NDS32_LSI", /* name */ - FALSE, /* partial_inplace */ + false, /* partial_inplace */ 0xffffffff, /* src_mask */ 0xffffffff, /* dst_mask */ - FALSE), + false), }; static unsigned long dl_tlsdesc_lazy_trampoline[] = @@ -3224,7 +3224,7 @@ bfd_elf32_bfd_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED, /* Set the howto pointer for an NDS32 ELF reloc. */ -static bfd_boolean +static bool nds32_info_to_howto_rel (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst) { @@ -3237,15 +3237,15 @@ nds32_info_to_howto_rel (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; } BFD_ASSERT (ELF32_R_TYPE (dst->r_info) <= R_NDS32_GNU_VTENTRY); cache_ptr->howto = bfd_elf32_bfd_reloc_type_table_lookup (r_type); - return TRUE; + return true; } -static bfd_boolean +static bool nds32_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr, Elf_Internal_Rela *dst) { @@ -3256,19 +3256,19 @@ nds32_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr, && (r_type < R_NDS32_max))) { cache_ptr->howto = bfd_elf32_bfd_reloc_type_table_lookup (r_type); - return TRUE; + return true; } /* xgettext:c-format */ _bfd_error_handler (_("%pB: unsupported relocation type %#x"), abfd, r_type); bfd_set_error (bfd_error_bad_value); - return FALSE; + return false; } /* Support for core dump NOTE sections. Reference to include/linux/elfcore.h in Linux. */ -static bfd_boolean +static bool nds32_elf_grok_prstatus (bfd *abfd, Elf_Internal_Note *note) { int offset; @@ -3305,7 +3305,7 @@ nds32_elf_grok_prstatus (bfd *abfd, Elf_Internal_Note *note) break; default: - return FALSE; + return false; } /* Make a ".reg" section. */ @@ -3313,7 +3313,7 @@ nds32_elf_grok_prstatus (bfd *abfd, Elf_Internal_Note *note) size, note->descpos + offset); } -static bfd_boolean +static bool nds32_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note) { switch (note->descsz) @@ -3329,7 +3329,7 @@ nds32_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note) break; default: - return FALSE; + return false; } /* Note that for some reason, a spurious space is tacked @@ -3343,7 +3343,7 @@ nds32_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note) command[n - 1] = '\0'; } - return TRUE; + return true; } /* Hook called by the linker routine which adds symbols from an object @@ -3351,7 +3351,7 @@ nds32_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note) We also keep watching for whether we need to create the sdata special linker sections. */ -static bfd_boolean +static bool nds32_elf_add_symbol_hook (bfd *abfd, struct bfd_link_info *info ATTRIBUTE_UNUSED, Elf_Internal_Sym *sym, @@ -3385,7 +3385,7 @@ nds32_elf_add_symbol_hook (bfd *abfd, *secp = bfd_make_section_old_way (abfd, ".scommon_d"); break; default: - return TRUE; + return true; } (*secp)->flags |= SEC_IS_COMMON | SEC_SMALL_DATA; @@ -3393,7 +3393,7 @@ nds32_elf_add_symbol_hook (bfd *abfd, break; } - return TRUE; + return true; } /* This function can figure out the best location for a base register to access @@ -3444,10 +3444,10 @@ static asection *sda_rela_sec = NULL; #define SDA_SECTION_NUM 10 static bfd_reloc_status_type -nds32_elf_final_sda_base (bfd * output_bfd, - struct bfd_link_info * info, - bfd_vma * psb, - bfd_boolean add_symbol) +nds32_elf_final_sda_base (bfd *output_bfd, + struct bfd_link_info *info, + bfd_vma *psb, + bool add_symbol) { int relax_fp_as_gp; struct elf_nds32_link_hash_table *table; @@ -3456,7 +3456,7 @@ nds32_elf_final_sda_base (bfd * output_bfd, asection *first = NULL, *final = NULL, *temp; bfd_vma sda_base = 0; - h = bfd_link_hash_lookup (info->hash, "_SDA_BASE_", FALSE, FALSE, TRUE); + h = bfd_link_hash_lookup (info->hash, "_SDA_BASE_", false, false, true); if (!h || (h->type != bfd_link_hash_defined && h->type != bfd_link_hash_defweak)) { @@ -3579,9 +3579,9 @@ nds32_elf_final_sda_base (bfd * output_bfd, if (!_bfd_generic_link_add_one_symbol (info, output_bfd, "_SDA_BASE_", BSF_GLOBAL | BSF_WEAK, first, - (bfd_vma) sda_base, (const char *) NULL, FALSE, + (bfd_vma) sda_base, (const char *) NULL, false, get_elf_backend_data (output_bfd)->collect, &h)) - return FALSE; + return false; sda_rela_sec = first; } @@ -3589,7 +3589,7 @@ nds32_elf_final_sda_base (bfd * output_bfd, /* Set _FP_BASE_ to _SDA_BASE_. */ table = nds32_elf_hash_table (info); relax_fp_as_gp = table->relax_fp_as_gp; - h2 = bfd_link_hash_lookup (info->hash, FP_BASE_NAME, FALSE, FALSE, FALSE); + h2 = bfd_link_hash_lookup (info->hash, FP_BASE_NAME, false, false, false); /* _SDA_BASE_ is difined in linker script. */ if (!first) { @@ -3607,8 +3607,8 @@ nds32_elf_final_sda_base (bfd * output_bfd, if (!_bfd_generic_link_add_one_symbol (info, output_bfd, FP_BASE_NAME, BSF_GLOBAL | BSF_WEAK, first, sda_base, (const char *) NULL, - FALSE, get_elf_backend_data (output_bfd)->collect, &h2)) - return FALSE; + false, get_elf_backend_data (output_bfd)->collect, &h2)) + return false; } if (add_symbol) @@ -3704,13 +3704,13 @@ nds32_elf_link_hash_table_create (bfd *abfd) /* 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 elf_link_hash_table *ehtab; if (!_bfd_elf_create_got_section (dynobj, info)) - return FALSE; + return false; ehtab = elf_hash_table (info); ehtab->sgot = bfd_get_section_by_name (dynobj, ".got"); @@ -3726,14 +3726,14 @@ create_got_section (bfd *dynobj, struct bfd_link_info *info) | SEC_IN_MEMORY | SEC_LINKER_CREATED | SEC_READONLY)) || !bfd_set_section_alignment (ehtab->srelgot, 2)) - return FALSE; + return false; - return TRUE; + return true; } /* Create dynamic sections when linking against a dynamic object. */ -static bfd_boolean +static bool nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info) { struct elf_link_hash_table *ehtab; @@ -3769,7 +3769,7 @@ nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info) if (s == NULL || !bfd_set_section_flags (s, pltflags) || !bfd_set_section_alignment (s, bed->plt_alignment)) - return FALSE; + return false; if (bed->want_plt_sym) { @@ -3780,16 +3780,16 @@ nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info) if (!(_bfd_generic_link_add_one_symbol (info, abfd, "_PROCEDURE_LINKAGE_TABLE_", BSF_GLOBAL, s, - (bfd_vma) 0, (const char *) NULL, FALSE, + (bfd_vma) 0, (const char *) NULL, false, get_elf_backend_data (abfd)->collect, &bh))) - return FALSE; + return false; h = (struct elf_link_hash_entry *) bh; h->def_regular = 1; h->type = STT_OBJECT; if (bfd_link_pic (info) && !bfd_elf_link_record_dynamic_symbol (info, h)) - return FALSE; + return false; } s = bfd_make_section (abfd, @@ -3798,10 +3798,10 @@ nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info) if (s == NULL || !bfd_set_section_flags (s, flags | SEC_READONLY) || !bfd_set_section_alignment (s, ptralign)) - return FALSE; + return false; if (ehtab->sgot == NULL && !create_got_section (abfd, info)) - return FALSE; + return false; for (sec = abfd->sections; sec; sec = sec->next) { @@ -3819,7 +3819,7 @@ nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info) if (s == NULL || !bfd_set_section_flags (s, flags | SEC_READONLY) || !bfd_set_section_alignment (s, ptralign)) - return FALSE; + return false; } if (bed->want_dynbss) @@ -3834,7 +3834,7 @@ nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info) htab->root.sdynbss = s; if (s == NULL || !bfd_set_section_flags (s, SEC_ALLOC | SEC_LINKER_CREATED)) - return FALSE; + return false; /* The .rel[a].bss section holds copy relocs. This section is not normally needed. We need to create it here, though, so that the linker will map it to an output section. We can't just create it @@ -3854,11 +3854,11 @@ nds32_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info) if (s == NULL || !bfd_set_section_flags (s, flags | SEC_READONLY) || !bfd_set_section_alignment (s, ptralign)) - return FALSE; + return false; } } - return TRUE; + return true; } /* Copy the extra info we tack onto an elf_link_hash_entry. */ @@ -3890,7 +3890,7 @@ nds32_elf_copy_indirect_symbol (struct bfd_link_info *info, change the definition to something the rest of the link can understand. */ -static bfd_boolean +static bool nds32_elf_adjust_dynamic_symbol (struct bfd_link_info *info, struct elf_link_hash_entry *h) { @@ -3928,7 +3928,7 @@ nds32_elf_adjust_dynamic_symbol (struct bfd_link_info *info, h->needs_plt = 0; } - return TRUE; + return true; } else h->plt.offset = (bfd_vma) - 1; @@ -3942,7 +3942,7 @@ nds32_elf_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; } /* This is a reference to a symbol defined by a dynamic object which @@ -3953,18 +3953,18 @@ nds32_elf_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 there are no references to this symbol that do not use the GOT, we don't need to generate a copy reloc. */ if (!h->non_got_ref) - return TRUE; + return true; /* If -z nocopyreloc was given, we won't generate them either. */ if (0 && info->nocopyreloc) { h->non_got_ref = 0; - return TRUE; + return true; } /* If we don't find any dynamic relocs in read-only sections, then @@ -3972,7 +3972,7 @@ nds32_elf_adjust_dynamic_symbol (struct bfd_link_info *info, if (!_bfd_elf_readonly_dynrelocs (h)) { h->non_got_ref = 0; - return TRUE; + return true; } /* We must allocate the symbol in our .dynbss section, which will @@ -4014,7 +4014,7 @@ nds32_elf_adjust_dynamic_symbol (struct bfd_link_info *info, if (power_of_two > bfd_section_alignment (s)) { if (!bfd_set_section_alignment (s, power_of_two)) - return FALSE; + return false; } /* Define the symbol as being at this point in the section. */ @@ -4024,13 +4024,13 @@ nds32_elf_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; } /* 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, void *inf) { struct bfd_link_info *info; @@ -4039,7 +4039,7 @@ allocate_dynrelocs (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; /* When warning symbols are created, they **replace** the "real" entry in the hash table, thus we never get to see the real @@ -4051,7 +4051,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf) ehtab = elf_hash_table (info); htab = nds32_elf_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 @@ -4062,7 +4062,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf) if (h->dynindx == -1 && !h->forced_local) { if (!bfd_elf_link_record_dynamic_symbol (info, h)) - return FALSE; + return false; } if (WILL_CALL_FINISH_DYNAMIC_SYMBOL (1, bfd_link_pic (info), h)) @@ -4114,7 +4114,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf) if (h->got.refcount > 0) { asection *sgot; - bfd_boolean dyn; + bool dyn; int tls_type = elf32_nds32_hash_entry (h)->tls_type; /* Make sure this symbol is output as a dynamic symbol. @@ -4122,7 +4122,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf) if (h->dynindx == -1 && !h->forced_local) { if (!bfd_elf_link_record_dynamic_symbol (info, h)) - return FALSE; + return false; } sgot = elf_hash_table (info)->sgot; @@ -4165,7 +4165,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *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 @@ -4207,7 +4207,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf) if (h->dynindx == -1 && !h->forced_local) { if (!bfd_elf_link_record_dynamic_symbol (info, h)) - return FALSE; + return false; } /* If that succeeded, we know we'll be keeping all the @@ -4228,7 +4228,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf) sreloc->size += p->count * sizeof (Elf32_External_Rela); } - return TRUE; + return true; } /* Add relocation REL to the end of relocation section SRELOC. */ @@ -4252,19 +4252,19 @@ elf32_nds32_add_dynreloc (bfd *output_bfd, /* Set the sizes of the dynamic sections. */ -static bfd_boolean +static bool nds32_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED, struct bfd_link_info *info) { struct elf_nds32_link_hash_table *htab; bfd *dynobj; asection *s; - bfd_boolean relocs; + bool relocs; bfd *ibfd; htab = nds32_elf_hash_table (info); if (htab == NULL) - return FALSE; + return false; dynobj = elf_hash_table (info)->dynobj; BFD_ASSERT (dynobj != NULL); @@ -4419,7 +4419,7 @@ nds32_elf_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) { if ((s->flags & SEC_LINKER_CREATED) == 0) @@ -4442,7 +4442,7 @@ nds32_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED, else if (strncmp (bfd_section_name (s), ".rela", 5) == 0) { if (s->size != 0 && s != elf_hash_table (info)->srelplt) - relocs = TRUE; + relocs = true; /* We use the reloc_count field as a counter if we need to copy relocs into the output file. */ @@ -4476,7 +4476,7 @@ nds32_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED, of garbage. */ s->contents = (bfd_byte *) bfd_zalloc (dynobj, s->size); if (s->contents == NULL) - return FALSE; + return false; } return _bfd_elf_add_dynamic_tags (output_bfd, info, relocs); @@ -4691,13 +4691,13 @@ nds32_elf_output_symbol_hook (struct bfd_link_info *info, table = nds32_elf_hash_table (info); sym_ld_script = table->sym_ld_script; if (!sym_ld_script) - return TRUE; + return true; if (!h || !name || *name == '\0') - return TRUE; + return true; if (input_sec->flags & SEC_EXCLUDE) - return TRUE; + return true; if (!check_start_export_sym) { @@ -4709,7 +4709,7 @@ nds32_elf_output_symbol_hook (struct bfd_link_info *info, || h->root.type == bfd_link_hash_defweak) { if (!h->root.u.def.section->output_section) - return TRUE; + return true; if (bfd_is_const_section (input_sec)) source = input_sec->name; @@ -4723,7 +4723,7 @@ nds32_elf_output_symbol_hook (struct bfd_link_info *info, + h->root.u.def.section->output_offset), source); } - return TRUE; + return true; } /* Relocate an NDS32/D ELF section. @@ -4785,7 +4785,7 @@ gottpoff (struct bfd_link_info *info, bfd_vma address) return tp_offset; } -static bfd_boolean +static bool patch_tls_desc_to_ie (bfd_byte *contents, Elf_Internal_Rela *rel, bfd *ibfd) { /* TLS_GD/TLS_LD model #1 @@ -4820,7 +4820,7 @@ patch_tls_desc_to_ie (bfd_byte *contents, Elf_Internal_Rela *rel, bfd *ibfd) 04 00 00 01 lwi $r0,[$r0+#0x4] 40 00 64 00 add $r0,$r0,$r25 */ - bfd_boolean rz = FALSE; + bool rz = false; typedef struct { @@ -4872,7 +4872,7 @@ patch_tls_desc_to_ie (bfd_byte *contents, Elf_Internal_Rela *rel, bfd *ibfd) /* already patched? */ if ((patch[0] == (0xfff07fffu & bfd_getb32 (p + 0))) && (patch[1] == bfd_getb32 (p + 4))) - rz = TRUE; + rz = true; } else if (mode0[0].opcode == (mode0[0].mask & bfd_getb32 (p + 0))) { @@ -4882,7 +4882,7 @@ patch_tls_desc_to_ie (bfd_byte *contents, Elf_Internal_Rela *rel, bfd *ibfd) bfd_putb32 (patch[0] | (regidx << 15), p + 0); bfd_putb32 (patch[1], p + 4); bfd_putb32 (patch[2], p + 8); - rz = TRUE; + rz = true; } } else if (mode1[0].opcode == (mode1[0].mask & bfd_getb32 (p + 0))) @@ -4893,7 +4893,7 @@ patch_tls_desc_to_ie (bfd_byte *contents, Elf_Internal_Rela *rel, bfd *ibfd) bfd_putb32 (patch[0] | (regidx << 15), p + 0); bfd_putb32 (patch[1], p + 4); bfd_putb32 (patch[2], p + 8); - rz = TRUE; + rz = true; } } @@ -4948,7 +4948,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, Elf_Internal_Shdr *symtab_hdr; struct elf_link_hash_entry **sym_hashes; Elf_Internal_Rela *rel, *relend; - bfd_boolean ret = TRUE; /* Assume success. */ + bool ret = true; /* Assume success. */ int align = 0; bfd_reloc_status_type r; const char *errmsg = NULL; @@ -4987,9 +4987,9 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, if ((!bfd_link_relocatable (info))) { is_SDA_BASE_set = 1; - r = nds32_elf_final_sda_base (output_bfd, info, &gp, TRUE); + r = nds32_elf_final_sda_base (output_bfd, info, &gp, true); if (r != bfd_reloc_ok) - return FALSE; + return false; } /* Do TLS model conversion once at first. */ @@ -5029,7 +5029,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, _bfd_error_handler (_("%pB: unsupported relocation type %#x"), input_bfd, r_type); bfd_set_error (bfd_error_bad_value); - ret = FALSE; + ret = false; continue; } @@ -5106,7 +5106,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, /* External symbol. */ if (bfd_link_relocatable (info)) continue; - bfd_boolean warned, ignored, unresolved_reloc; + bool warned, ignored, unresolved_reloc; int symndx = r_symndx - symtab_hdr->sh_info; RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, @@ -5292,7 +5292,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, if (h != NULL) { /* External symbol */ - bfd_boolean dyn; + bool dyn; off = h->got.offset; BFD_ASSERT (off != (bfd_vma) - 1); @@ -5409,7 +5409,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, && (!info->symbolic || !h->def_regular)))) { Elf_Internal_Rela outrel; - bfd_boolean skip, relocate; + bool skip, relocate; bfd_byte *loc; /* When generating a shared object, these relocations @@ -5424,7 +5424,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, (input_bfd, elf_elfheader (input_bfd)->e_shstrndx, elf_section_data (input_section)->rela.hdr->sh_name); if (name == NULL) - return FALSE; + return false; BFD_ASSERT (strncmp (name, ".rela", 5) == 0 && strcmp (bfd_section_name (input_section), @@ -5434,17 +5434,17 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, BFD_ASSERT (sreloc != NULL); } - 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); @@ -5467,7 +5467,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, && h->def_regular) || (bfd_link_pie (info) && h->def_regular)) { - relocate = TRUE; + relocate = true; outrel.r_info = ELF32_R_INFO (0, R_NDS32_RELATIVE); outrel.r_addend = relocation + rel->r_addend; @@ -5495,7 +5495,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, "making a shared object; recompile with -fPIC"), input_bfd, nds32_elf_howto_table[r_type].name, h->root.root.string); bfd_set_error (bfd_error_bad_value); - return FALSE; + return false; } outrel.r_info = ELF32_R_INFO (h->dynindx, r_type); @@ -5523,7 +5523,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, _bfd_error_handler (_("%pB: warning: %s unsupported in shared mode"), input_bfd, "R_NDS32_25_ABS_RELA"); - return FALSE; + return false; } break; @@ -5563,7 +5563,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, if (h != NULL) { - bfd_boolean dyn; + bool dyn; off = h->got.offset; BFD_ASSERT (off != (bfd_vma) - 1); @@ -5648,7 +5648,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, /* Incorrect alignment. */ _bfd_error_handler (_("%pB: warning: unaligned access to GOT entry"), input_bfd); - ret = FALSE; + ret = false; r = bfd_reloc_dangerous; goto check_reloc; } @@ -5684,12 +5684,12 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, /* If the symbol is in the abs section, the out_bfd will be null. This happens when the relocation has a symbol@GOTOFF. */ - r = nds32_elf_final_sda_base (output_bfd, info, &gp, FALSE); + r = nds32_elf_final_sda_base (output_bfd, info, &gp, false); if (r != bfd_reloc_ok) { _bfd_error_handler (_("%pB: warning: relocate SDA_BASE failed"), input_bfd); - ret = FALSE; + ret = false; goto check_reloc; } @@ -5713,7 +5713,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, (_("%pB(%pA): warning: unaligned small data access" " of type %d"), input_bfd, input_section, r_type); - ret = FALSE; + ret = false; goto check_reloc; } break; @@ -5758,7 +5758,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, BFD_ASSERT (sgot != NULL); if (h != NULL) { - bfd_boolean dyn; + bool dyn; off = h->got.offset; BFD_ASSERT (off != (bfd_vma) -1); @@ -5795,13 +5795,13 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, /* The offset must always be a multiple of 4. We use the least significant bit to record whether we have already processed this entry. */ - bfd_boolean need_relocs = FALSE; + bool need_relocs = false; srelgot = ehtab->srelgot; if ((bfd_link_pic (info) || indx != 0) && (h == NULL || ELF_ST_VISIBILITY (h->other) == STV_DEFAULT || h->root.type != bfd_link_hash_undefweak)) { - need_relocs = TRUE; + need_relocs = true; BFD_ASSERT (srelgot != NULL); } @@ -6037,7 +6037,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, case bfd_reloc_undefined: (*info->callbacks->undefined_symbol) - (info, name, input_bfd, input_section, offset, TRUE); + (info, name, input_bfd, input_section, offset, true); break; case bfd_reloc_outofrange: @@ -6074,7 +6074,7 @@ nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, /* Finish up dynamic symbol handling. We set the contents of various dynamic sections here. */ -static bfd_boolean +static bool nds32_elf_finish_dynamic_symbol (bfd *output_bfd, struct bfd_link_info *info, struct elf_link_hash_entry *h, Elf_Internal_Sym *sym) { @@ -6283,13 +6283,13 @@ nds32_elf_finish_dynamic_symbol (bfd *output_bfd, struct bfd_link_info *info, || strcmp (h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0) sym->st_shndx = SHN_ABS; - return TRUE; + return true; } /* Finish up the dynamic sections. */ -static bfd_boolean +static bool nds32_elf_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info) { bfd *dynobj; @@ -6301,7 +6301,7 @@ nds32_elf_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info) ehtab = elf_hash_table (info); htab = nds32_elf_hash_table (info); if (htab == NULL) - return FALSE; + return false; dynobj = elf_hash_table (info)->dynobj; @@ -6309,7 +6309,7 @@ nds32_elf_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 (sgotplt != NULL && bfd_is_abs_section (sgotplt->output_section)) - return FALSE; + return false; sdyn = bfd_get_section_by_name (dynobj, ".dynamic"); if (elf_hash_table (info)->dynamic_sections_created) @@ -6485,13 +6485,13 @@ nds32_elf_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info) elf_section_data (sgotplt->output_section)->this_hdr.sh_entsize = 4; } - return TRUE; + return true; } /* Set the right machine number. */ -static bfd_boolean +static bool nds32_elf_object_p (bfd *abfd) { static unsigned int cur_arch = 0; @@ -6522,12 +6522,12 @@ nds32_elf_object_p (bfd *abfd) break; } - return TRUE; + return true; } /* Store the machine number in the flags field. */ -static bfd_boolean +static bool nds32_elf_final_write_processing (bfd *abfd) { unsigned long val; @@ -6570,15 +6570,15 @@ nds32_elf_final_write_processing (bfd *abfd) /* Function to keep NDS32 specific file flags. */ -static bfd_boolean +static bool nds32_elf_set_private_flags (bfd *abfd, flagword flags) { BFD_ASSERT (!elf_flags_init (abfd) || elf_elfheader (abfd)->e_flags == flags); elf_elfheader (abfd)->e_flags = flags; - elf_flags_init (abfd) = TRUE; - return TRUE; + elf_flags_init (abfd) = true; + return true; } static unsigned int @@ -6609,7 +6609,7 @@ convert_e_flags (unsigned int e_flags, unsigned int arch) return e_flags; } -static bfd_boolean +static bool nds32_check_vec_size (bfd *ibfd) { static unsigned int nds32_vec_size = 0; @@ -6624,7 +6624,7 @@ nds32_check_vec_size (bfd *ibfd) /* Get vec_size in file. */ unsigned int flag_t; - nds32_get_section_contents (ibfd, sec_t, &contents, TRUE); + nds32_get_section_contents (ibfd, sec_t, &contents, true); flag_t = bfd_get_32 (ibfd, contents); /* The value could only be 4 or 16. */ @@ -6641,20 +6641,20 @@ nds32_check_vec_size (bfd *ibfd) ibfd, nds32_vec_size == 1 ? 4 : nds32_vec_size == 2 ? 16 : 0xffffffff, (flag_t & 0x3) == 1 ? 4 : (flag_t & 0x3) == 2 ? 16 : 0xffffffff); - return FALSE; + return false; } else /* Only keep the first vec_size section. */ sec_t->flags |= SEC_EXCLUDE; } - return TRUE; + return true; } /* Merge backend specific data from an object file to the output object file when linking. */ -static bfd_boolean +static bool nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) { bfd *obfd = info->output_bfd; @@ -6671,15 +6671,15 @@ nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) /* FIXME: What should be checked when linking shared libraries? */ if ((ibfd->flags & DYNAMIC) != 0) - return TRUE; + return true; /* TODO: Revise to use object-attributes instead. */ if (!nds32_check_vec_size (ibfd)) - return FALSE; + return false; if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour || bfd_get_flavour (obfd) != bfd_target_elf_flavour) - return TRUE; + return true; if (bfd_little_endian (ibfd) != bfd_little_endian (obfd)) { @@ -6687,7 +6687,7 @@ nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) (_("%pB: warning: endian mismatch with previous modules"), ibfd); bfd_set_error (bfd_error_bad_value); - return FALSE; + return false; } /* -B option in objcopy cannot work as expected. e_flags = 0 shall be @@ -6767,9 +6767,9 @@ nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) unitialised values, which surprise surprise, correspond to the default values. */ if (bfd_get_arch_info (ibfd)->the_default) - return TRUE; + return true; - elf_flags_init (obfd) = TRUE; + elf_flags_init (obfd) = true; elf_elfheader (obfd)->e_flags = elf_elfheader (ibfd)->e_flags; if (bfd_get_arch (obfd) == bfd_get_arch (ibfd) @@ -6779,7 +6779,7 @@ nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) bfd_get_mach (ibfd)); } - return TRUE; + return true; } /* Check flag compatibility. */ @@ -6788,7 +6788,7 @@ nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) _bfd_error_handler (_("%pB: error: ABI mismatch with previous modules"), ibfd); bfd_set_error (bfd_error_bad_value); - return FALSE; + return false; } if ((in_flags & EF_NDS_ARCH) != (out_flags & EF_NDS_ARCH)) @@ -6800,7 +6800,7 @@ nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) ibfd); bfd_set_error (bfd_error_bad_value); - return FALSE; + return false; } } @@ -6834,12 +6834,12 @@ nds32_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) } } - return TRUE; + return true; } /* Display the flags field. */ -static bfd_boolean +static bool nds32_elf_print_private_bfd_data (bfd *abfd, void *ptr) { FILE *file = (FILE *) ptr; @@ -6863,7 +6863,7 @@ nds32_elf_print_private_bfd_data (bfd *abfd, void *ptr) fputc ('\n', file); - return TRUE; + return true; } static unsigned int @@ -6935,7 +6935,7 @@ get_tls_type (enum elf_nds32_reloc_type r_type, /* Ensure that we have allocated bookkeeping structures for ABFD's local symbols. */ -static bfd_boolean +static bool elf32_nds32_allocate_local_sym_info (bfd *abfd) { if (elf_local_got_refcounts (abfd) == NULL) @@ -6949,10 +6949,10 @@ elf32_nds32_allocate_local_sym_info (bfd *abfd) gp_offset. The details can refer to struct elf_nds32_obj_tdata. */ size = num_syms * (sizeof (bfd_signed_vma) + sizeof (char) + sizeof (bfd_vma) + sizeof (int) - + sizeof (bfd_boolean) + sizeof (bfd_vma)); + + sizeof (bool) + sizeof (bfd_vma)); data = bfd_zalloc (abfd, size); if (data == NULL) - return FALSE; + return false; elf_local_got_refcounts (abfd) = (bfd_signed_vma *) data; data += num_syms * sizeof (bfd_signed_vma); @@ -6967,14 +6967,14 @@ elf32_nds32_allocate_local_sym_info (bfd *abfd) data += num_syms * sizeof (int); } - return TRUE; + return true; } /* Look through the relocs for a section during the first phase. Since we don't do .gots or .plts, we just need to consider the virtual table relocs for gc. */ -static bfd_boolean +static bool nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) { @@ -6991,7 +6991,7 @@ nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, if (bfd_link_relocatable (info)) { elf32_nds32_check_relax_group (abfd, sec); - return TRUE; + return true; } symtab_hdr = &elf_tdata (abfd)->symtab_hdr; @@ -7059,7 +7059,7 @@ nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, if (dynobj == NULL) htab->root.dynobj = dynobj = abfd; if (!create_got_section (dynobj, info)) - return FALSE; + return false; break; default: @@ -7096,7 +7096,7 @@ nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, { /* This is a global offset table entry for a local symbol. */ if (!elf32_nds32_allocate_local_sym_info (abfd)) - return FALSE; + return false; BFD_ASSERT (r_symndx < symtab_hdr->sh_info); if (tls_type != GOT_TLS_LE) @@ -7237,7 +7237,7 @@ nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, (abfd, elf_elfheader (abfd)->e_shstrndx, elf_section_data (sec)->rela.hdr->sh_name); if (name == NULL) - return FALSE; + return false; BFD_ASSERT (strncmp (name, ".rela", 5) == 0 && strcmp (bfd_section_name (sec), @@ -7256,7 +7256,7 @@ nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, if (sreloc == NULL || !bfd_set_section_flags (sreloc, flags) || !bfd_set_section_alignment (sreloc, 2)) - return FALSE; + return false; elf_section_type (sreloc) = SHT_RELA; } @@ -7276,12 +7276,12 @@ nds32_elf_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; /* Track dynamic relocs needed for local syms too. */ s = bfd_section_from_elf_index (abfd, isym->st_shndx); if (s == NULL) - return FALSE; + return false; vpp = &elf_section_data (s)->local_dynrel; head = (struct elf_dyn_relocs **) vpp; @@ -7293,7 +7293,7 @@ nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, size_t amt = sizeof (*p); p = (struct elf_dyn_relocs *) bfd_alloc (dynobj, amt); if (p == NULL) - return FALSE; + return false; p->next = *head; *head = p; p->sec = sec; @@ -7353,23 +7353,23 @@ nds32_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, case R_NDS32_RELA_GNU_VTINHERIT: case R_NDS32_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_NDS32_GNU_VTENTRY: if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_offset)) - return FALSE; + return false; break; case R_NDS32_RELA_GNU_VTENTRY: if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend)) - return FALSE; + return false; break; } } - return TRUE; + return true; } /* Write VAL in uleb128 format to P, returning a pointer to the @@ -8461,7 +8461,7 @@ nds32_convert_16_to_32 (bfd *abfd, uint16_t insn16, uint32_t *pinsn) } -static bfd_boolean +static bool is_sda_access_insn (unsigned long insn) { switch (N32_OP6 (insn)) @@ -8478,11 +8478,11 @@ is_sda_access_insn (unsigned long insn) case N32_OP6_LDC: case N32_OP6_SWC: case N32_OP6_SDC: - return TRUE; + return true; default: ; } - return FALSE; + return false; } static unsigned long @@ -8684,12 +8684,12 @@ is_16bit_NOP (bfd *abfd ATTRIBUTE_UNUSED, unsigned short insn16; if (!(rel->r_addend & R_NDS32_INSN16_CONVERT_FLAG)) - return FALSE; + return false; contents = elf_section_data (sec)->this_hdr.contents; insn16 = bfd_getb16 (contents + rel->r_offset); if (insn16 == NDS32_NOP16) - return TRUE; - return FALSE; + return true; + return false; } /* It checks whether the instruction could be converted to @@ -8717,12 +8717,12 @@ is_convert_32_to_16 (bfd *abfd, asection *sec, bfd_vma offset; if (reloc->r_offset + 4 > sec->size) - return FALSE; + return false; offset = reloc->r_offset; - if (!nds32_get_section_contents (abfd, sec, &contents, TRUE)) - return FALSE; + if (!nds32_get_section_contents (abfd, sec, &contents, true)) + return false; insn = bfd_getb32 (contents + offset); if (nds32_convert_32_to_16 (abfd, insn, insn16, NULL)) @@ -8730,11 +8730,11 @@ is_convert_32_to_16 (bfd *abfd, asection *sec, else if (special_convert_32_to_16 (insn, insn16, reloc)) convert_type = SPECIAL_32_TO_16; else - return FALSE; + return false; symtab_hdr = &elf_tdata (abfd)->symtab_hdr; if (!nds32_get_local_syms (abfd, sec, &isymbuf)) - return FALSE; + return false; /* Find the first relocation of the same relocation-type, so we iteratie them forward. */ @@ -8752,7 +8752,7 @@ is_convert_32_to_16 (bfd *abfd, asection *sec, off = calculate_offset (abfd, sec, pc_rel, isymbuf, symtab_hdr); if (off >= ACCURATE_8BIT_S1 || off < -ACCURATE_8BIT_S1 || off == 0) - return FALSE; + return false; break; } else if (ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_20_RELA) @@ -8763,7 +8763,7 @@ is_convert_32_to_16 (bfd *abfd, asection *sec, /* mem_addr is unsigned, but the value should be between [-16, 15]. */ if ((mem_addr + 0x10) >> 5) - return FALSE; + return false; break; } else if ((ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_TLS_LE_20) @@ -8771,7 +8771,7 @@ is_convert_32_to_16 (bfd *abfd, asection *sec, { /* It never happen movi to movi55 for R_NDS32_TLS_LE_20, because it can be relaxed to addi for TLS_LE_ADD. */ - return FALSE; + return false; } else if ((ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_SDA15S2_RELA || ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_SDA17S2_RELA) @@ -8792,18 +8792,18 @@ is_convert_32_to_16 (bfd *abfd, asection *sec, { /* Prevent unresolved addi instruction translate to addi45 or addi333. */ - return FALSE; + return false; } else if ((ELF32_R_TYPE (pc_rel->r_info) == R_NDS32_17IFC_PCREL_RELA)) { off = calculate_offset (abfd, sec, pc_rel, isymbuf, symtab_hdr); if (off >= ACCURATE_U9BIT_S1 || off <= 0) - return FALSE; + return false; break; } } - return TRUE; + return true; } static void @@ -9030,7 +9030,7 @@ get_nds32_elf_blank_total (nds32_elf_blank_t **blank_p, bfd_vma addr, return blank_t->total_size + blank_t->size; } -static bfd_boolean +static bool insert_nds32_elf_blank (nds32_elf_blank_t **blank_p, bfd_vma addr, bfd_vma len) { nds32_elf_blank_t *blank_t, *blank_t2; @@ -9047,13 +9047,13 @@ insert_nds32_elf_blank (nds32_elf_blank_t **blank_p, bfd_vma addr, bfd_vma len) { blank_t = create_nds32_elf_blank (addr, len); if (!blank_t) - return FALSE; + return false; while ((*blank_p)->prev != NULL) *blank_p = (*blank_p)->prev; blank_t->next = *blank_p; (*blank_p)->prev = blank_t; (*blank_p) = blank_t; - return TRUE; + return true; } if (addr < blank_t->offset + blank_t->size) @@ -9066,7 +9066,7 @@ insert_nds32_elf_blank (nds32_elf_blank_t **blank_p, bfd_vma addr, bfd_vma len) { blank_t2 = create_nds32_elf_blank (addr, len); if (!blank_t2) - return FALSE; + return false; if (blank_t->next) { blank_t->next->prev = blank_t2; @@ -9077,17 +9077,17 @@ insert_nds32_elf_blank (nds32_elf_blank_t **blank_p, bfd_vma addr, bfd_vma len) *blank_p = blank_t2; } - return TRUE; + return true; } -static bfd_boolean +static bool insert_nds32_elf_blank_recalc_total (nds32_elf_blank_t **blank_p, bfd_vma addr, bfd_vma len) { nds32_elf_blank_t *blank_t; if (!insert_nds32_elf_blank (blank_p, addr, len)) - return FALSE; + return false; blank_t = *blank_p; @@ -9103,7 +9103,7 @@ insert_nds32_elf_blank_recalc_total (nds32_elf_blank_t **blank_p, bfd_vma addr, blank_t = blank_t->next; } - return TRUE; + return true; } static void @@ -9126,7 +9126,7 @@ calc_nds32_blank_total (nds32_elf_blank_t *blank_p) } } -static bfd_boolean +static bool nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec, nds32_elf_blank_t *blank_p) { @@ -9171,7 +9171,7 @@ nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec, symtab_hdr = &elf_tdata (abfd)->symtab_hdr; if (!nds32_get_local_syms (abfd, sec, &isym)) - return FALSE; + return false; if (isym == NULL) { @@ -9181,7 +9181,7 @@ nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec, } if (isym == NULL || symtab_hdr->sh_info == 0) - return FALSE; + return false; blank_t = blank_head; calc_nds32_blank_total (blank_head); @@ -9192,7 +9192,7 @@ nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec, /* Relocations MUST be kept in memory, because relaxation adjust them. */ internal_relocs = _bfd_elf_link_read_relocs (abfd, sect, NULL, NULL, - TRUE /* keep_memory */); + true /* keep_memory */); irelend = internal_relocs + sect->reloc_count; blank_t = blank_head; @@ -9202,7 +9202,7 @@ nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec, continue; contents = NULL; - nds32_get_section_contents (abfd, sect, &contents, TRUE); + nds32_get_section_contents (abfd, sect, &contents, true); for (irel = internal_relocs; irel < irelend; irel++) { @@ -9444,14 +9444,14 @@ nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec, remove_nds32_elf_blank (blank_t); } - return TRUE; + return true; } /* Get the contents of a section. */ static int nds32_get_section_contents (bfd *abfd, asection *sec, - bfd_byte **contents_p, bfd_boolean cache) + bfd_byte **contents_p, bool cache) { /* Get the section contents. */ if (elf_section_data (sec)->this_hdr.contents != NULL) @@ -9459,12 +9459,12 @@ nds32_get_section_contents (bfd *abfd, asection *sec, else { if (!bfd_get_full_section_contents (abfd, sec, contents_p)) - return FALSE; + return false; if (cache) elf_section_data (sec)->this_hdr.contents = *contents_p; } - return TRUE; + return true; } /* Get the contents of the internal symbol of abfd. */ @@ -9486,12 +9486,12 @@ nds32_get_local_syms (bfd *abfd, asection *sec ATTRIBUTE_UNUSED, symtab_hdr->sh_info, 0, NULL, NULL, NULL); if (*isymbuf_p == NULL) - return FALSE; + return false; } } symtab_hdr->contents = (bfd_byte *) (*isymbuf_p); - return TRUE; + return true; } /* Range of small data. */ @@ -9579,7 +9579,7 @@ static const char * unrecognized_reloc_msg = /* Relax LONGCALL1 relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_longcall1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, bfd_byte *contents, Elf_Internal_Sym *isymbuf, @@ -9628,7 +9628,7 @@ nds32_elf_relax_longcall1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL1", (uint64_t) irel->r_offset); - return FALSE; + return false; } /* Get the value of the symbol referred to by the reloc. */ @@ -9638,7 +9638,7 @@ nds32_elf_relax_longcall1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (foff == 0 || foff < -CONSERVATIVE_24BIT_S1 || foff >= CONSERVATIVE_24BIT_S1) - return FALSE; + return false; /* Relax to: jal symbol; 25_PCREL. */ /* For simplicity of coding, we are going to modify the section @@ -9673,13 +9673,13 @@ nds32_elf_relax_longcall1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, lo_irelfn->r_addend = R_NDS32_INSN16_CONVERT_FLAG; *insn_len += 2; } - return TRUE; + return true; } #define CONVERT_CONDITION_CALL(insn) (((insn) & 0xffff0000) ^ 0x90000) /* Relax LONGCALL2 relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_longcall2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, bfd_byte *contents, Elf_Internal_Sym *isymbuf, @@ -9708,7 +9708,7 @@ nds32_elf_relax_longcall2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL2", (uint64_t) irel->r_offset); - return FALSE; + return false; } insn = bfd_getb32 (contents + laddr); @@ -9719,7 +9719,7 @@ nds32_elf_relax_longcall2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (foff == 0 || foff < -CONSERVATIVE_16BIT_S1 || foff >= CONSERVATIVE_16BIT_S1) - return FALSE; + return false; /* Relax to bgezal rt, label ; 17_PCREL or bltzal rt, label ; 17_PCREL */ @@ -9753,12 +9753,12 @@ nds32_elf_relax_longcall2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, bfd_putb32 (insn, contents + irel->r_offset); *insn_len = 4; - return TRUE; + return true; } /* Relax LONGCALL3 relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_longcall3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, bfd_byte *contents, Elf_Internal_Sym *isymbuf, @@ -9813,7 +9813,7 @@ nds32_elf_relax_longcall3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL3", (uint64_t) irel->r_offset); - return FALSE; + return false; } /* Get the value of the symbol referred to by the reloc. */ @@ -9822,7 +9822,7 @@ nds32_elf_relax_longcall3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (foff == 0 || foff < -CONSERVATIVE_24BIT_S1 || foff >= CONSERVATIVE_24BIT_S1) - return FALSE; + return false; insn = bfd_getb32 (contents + laddr); if (foff >= -CONSERVATIVE_16BIT_S1 && foff < CONSERVATIVE_16BIT_S1) @@ -9890,12 +9890,12 @@ nds32_elf_relax_longcall3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, insn_len += 2; } } - return TRUE; + return true; } /* Relax LONGJUMP1 relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_longjump1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, bfd_byte *contents, Elf_Internal_Sym *isymbuf, @@ -9946,7 +9946,7 @@ nds32_elf_relax_longjump1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP1", (uint64_t) irel->r_offset); - return FALSE; + return false; } /* Get the value of the symbol referred to by the reloc. */ @@ -9955,7 +9955,7 @@ nds32_elf_relax_longjump1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (foff == 0 || foff >= CONSERVATIVE_24BIT_S1 || foff < -CONSERVATIVE_24BIT_S1) - return FALSE; + return false; if (insn16_on && foff >= -ACCURATE_8BIT_S1 @@ -9998,7 +9998,7 @@ nds32_elf_relax_longjump1 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, lo_irelfn->r_addend = R_NDS32_INSN16_CONVERT_FLAG; *insn_len += 2; } - return TRUE; + return true; } /* Revert condition branch. This function does not check if the input @@ -10090,7 +10090,7 @@ nds32_elf_convert_branch (uint16_t insn16, uint32_t insn, /* Relax LONGJUMP2 relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_longjump2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, bfd_byte *contents, Elf_Internal_Sym *isymbuf, @@ -10154,7 +10154,7 @@ nds32_elf_relax_longjump2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP2", (uint64_t) irel->r_offset); - return FALSE; + return false; } /* Get the value of the symbol referred to by the reloc. */ @@ -10162,7 +10162,7 @@ nds32_elf_relax_longjump2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (foff == 0 || foff < -CONSERVATIVE_16BIT_S1 || foff >= CONSERVATIVE_16BIT_S1) - return FALSE; + return false; /* Get the all corresponding instructions. */ if (first_size == 4) @@ -10220,7 +10220,7 @@ nds32_elf_relax_longjump2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, cond_reloc = R_NDS32_NONE; } else - return FALSE; + return false; /* Set all relocations. */ irel->r_info = ELF32_R_INFO (ELF32_R_SYM (i2_irelfn->r_info), reloc); @@ -10243,12 +10243,12 @@ nds32_elf_relax_longjump2 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, else i2_irelfn->r_info = ELF32_R_INFO (ELF32_R_SYM (i2_irelfn->r_info), R_NDS32_NONE); - return TRUE; + return true; } /* Relax LONGJUMP3 relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_longjump3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, bfd_byte *contents, Elf_Internal_Sym *isymbuf, @@ -10347,7 +10347,7 @@ nds32_elf_relax_longjump3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP3", (uint64_t) irel->r_offset); - return FALSE; + return false; } /* Get the value of the symbol referred to by the reloc. */ @@ -10356,7 +10356,7 @@ nds32_elf_relax_longjump3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (foff == 0 || foff < -CONSERVATIVE_24BIT_S1 || foff >= CONSERVATIVE_24BIT_S1) - return FALSE; + return false; /* Get the all corresponding instructions. */ if (first_size == 4) @@ -10457,7 +10457,7 @@ nds32_elf_relax_longjump3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, cond_reloc = R_NDS32_25_PLTREL; } else - return FALSE; + return false; if (cond_removed == 1) { @@ -10492,12 +10492,12 @@ nds32_elf_relax_longjump3 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, else lo_irelfn->r_info = ELF32_R_INFO (ELF32_R_SYM (lo_irelfn->r_info), R_NDS32_NONE); - return TRUE; + return true; } /* Relax LONGCALL4 relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_longcall4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, bfd_byte *contents, Elf_Internal_Sym *isymbuf, @@ -10527,7 +10527,7 @@ nds32_elf_relax_longcall4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL4", (uint64_t) irel->r_offset); - return FALSE; + return false; } /* Get the value of the symbol referred to by the reloc. */ @@ -10537,7 +10537,7 @@ nds32_elf_relax_longcall4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (foff == 0 || foff < -CONSERVATIVE_24BIT_S1 || foff >= CONSERVATIVE_24BIT_S1) - return FALSE; + return false; /* Relax to: jal symbol; 25_PCREL. */ /* For simplicity of coding, we are going to modify the section @@ -10557,12 +10557,12 @@ nds32_elf_relax_longcall4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL4", (uint64_t) irel->r_offset); - return FALSE; + return false; } /* Check these is enough space to insert jal in R_NDS32_EMPTY. */ insn = bfd_getb32 (contents + irel->r_addend); if (insn & 0x80000000) - return FALSE; + return false; /* Replace the long call with a jal. */ em_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (em_irel->r_info), @@ -10592,12 +10592,12 @@ nds32_elf_relax_longcall4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, insn_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), R_NDS32_NONE); - return TRUE; + return true; } /* Relax LONGCALL5 relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_longcall5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, bfd_byte *contents, Elf_Internal_Sym *isymbuf, @@ -10627,7 +10627,7 @@ nds32_elf_relax_longcall5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL5", (uint64_t) irel->r_offset); - return FALSE; + return false; } /* Get the value of the symbol referred to by the reloc. */ @@ -10636,7 +10636,7 @@ nds32_elf_relax_longcall5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (foff == 0 || foff < -CONSERVATIVE_16BIT_S1 || foff >= CONSERVATIVE_16BIT_S1) - return FALSE; + return false; /* Relax to bgezal rt, label ; 17_PCREL or bltzal rt, label ; 17_PCREL. */ @@ -10668,12 +10668,12 @@ nds32_elf_relax_longcall5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, cond_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (cond_irel->r_info), R_NDS32_NONE); - return TRUE; + return true; } /* Relax LONGCALL6 relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, bfd_byte *contents, Elf_Internal_Sym *isymbuf, @@ -10704,7 +10704,7 @@ nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL6", (uint64_t) irel->r_offset); - return FALSE; + return false; } /* Get the value of the symbol referred to by the reloc. */ @@ -10713,12 +10713,12 @@ nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (foff == 0 || foff < -CONSERVATIVE_24BIT_S1 || foff >= CONSERVATIVE_24BIT_S1) - return FALSE; + return false; /* Check these is enough space to insert jal in R_NDS32_EMPTY. */ insn = bfd_getb32 (contents + irel->r_addend); if (insn & 0x80000000) - return FALSE; + return false; insn = bfd_getb32 (contents + laddr); if (foff >= -CONSERVATIVE_16BIT_S1 && foff < CONSERVATIVE_16BIT_S1) @@ -10742,7 +10742,7 @@ nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL6", (uint64_t) irel->r_offset); - return FALSE; + return false; } cond_irel->r_addend = 1; @@ -10791,7 +10791,7 @@ nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGCALL6", (uint64_t) irel->r_offset); - return FALSE; + return false; } cond_irel->r_addend = 1; @@ -10802,12 +10802,12 @@ nds32_elf_relax_longcall6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, cond_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (cond_irel->r_info), R_NDS32_NONE); } - return TRUE; + return true; } /* Relax LONGJUMP4 relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_longjump4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, bfd_byte *contents, Elf_Internal_Sym *isymbuf, @@ -10840,7 +10840,7 @@ nds32_elf_relax_longjump4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP4", (uint64_t) irel->r_offset); - return FALSE; + return false; } /* Get the value of the symbol referred to by the reloc. */ @@ -10849,7 +10849,7 @@ nds32_elf_relax_longjump4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (foff == 0 || foff >= CONSERVATIVE_24BIT_S1 || foff < -CONSERVATIVE_24BIT_S1) - return FALSE; + return false; /* Convert it to "j label", it may be converted to j8 in the final pass of relaxation. Therefore, we do not consider this currently. */ @@ -10862,7 +10862,7 @@ nds32_elf_relax_longjump4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP4", (uint64_t) irel->r_offset); - return FALSE; + return false; } em_irel->r_info = @@ -10886,12 +10886,12 @@ nds32_elf_relax_longjump4 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, ELF32_R_INFO (ELF32_R_SYM (hi_irel->r_info), R_NDS32_NONE); } - return TRUE; + return true; } /* Relax LONGJUMP5 relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_longjump5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, int *seq_len, bfd_byte *contents, @@ -10935,7 +10935,7 @@ nds32_elf_relax_longjump5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP5", (uint64_t) irel->r_offset); - return FALSE; + return false; } /* Get the value of the symbol referred to by the reloc. */ @@ -10944,7 +10944,7 @@ nds32_elf_relax_longjump5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (foff == 0 || foff < -CONSERVATIVE_16BIT_S1 || foff >= CONSERVATIVE_16BIT_S1) - return FALSE; + return false; /* Get the all corresponding instructions. */ insn = bfd_getb32 (contents + laddr); @@ -10980,7 +10980,7 @@ nds32_elf_relax_longjump5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, reloc = R_NDS32_WORD_9_PCREL_RELA; } else - return FALSE; + return false; /* Set all relocations. */ cond_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (cond_irel->r_info), reloc); @@ -11010,12 +11010,12 @@ nds32_elf_relax_longjump5 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, } *insn_len = 0; - return TRUE; + return true; } /* Relax LONGJUMP6 relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_longjump6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, int *seq_len, bfd_byte *contents, @@ -11063,7 +11063,7 @@ nds32_elf_relax_longjump6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP6", (uint64_t) irel->r_offset); - return FALSE; + return false; } /* Get the value of the symbol referred to by the reloc. */ @@ -11072,7 +11072,7 @@ nds32_elf_relax_longjump6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (foff == 0 || foff < -CONSERVATIVE_24BIT_S1 || foff >= CONSERVATIVE_24BIT_S1) - return FALSE; + return false; insn = bfd_getb32 (contents + laddr); /* Check instruction size. */ @@ -11130,7 +11130,7 @@ nds32_elf_relax_longjump6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, bfd_putb32 (insn, contents + em_irel->r_offset); } else - return FALSE; + return false; /* Set all relocations. */ em_irel->r_info = ELF32_R_INFO (ELF32_R_SYM (em_irel->r_info), reloc); @@ -11190,12 +11190,12 @@ nds32_elf_relax_longjump6 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, R_NDS32_LONGJUMP5); } - return TRUE; + return true; } /* Relax LONGJUMP7 relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_longjump7 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, int *seq_len, bfd_byte *contents, @@ -11232,7 +11232,7 @@ nds32_elf_relax_longjump7 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LONGJUMP7", (uint64_t) irel->r_offset); - return FALSE; + return false; } /* Get the value of the symbol referred to by the reloc. */ @@ -11241,7 +11241,7 @@ nds32_elf_relax_longjump7 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (foff == 0 || foff < -CONSERVATIVE_8BIT_S1 || foff >= CONSERVATIVE_8BIT_S1) - return FALSE; + return false; /* Get the first instruction for its size. */ insn = bfd_getb32 (contents + laddr); @@ -11290,7 +11290,7 @@ nds32_elf_relax_longjump7 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, } *insn_len = 0; - return TRUE; + return true; } /* We figure out and reassign the best gp value in nds32_elf_final_sda_base @@ -11298,16 +11298,16 @@ nds32_elf_relax_longjump7 (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, the truncated to fit errors for the the converted gp instructions. Therefore, we must reserve the minimum but safe enough size to prevent it. */ -static bfd_boolean +static bool nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec, - Elf_Internal_Rela *irel, bfd_boolean *again, - bfd_boolean init, + Elf_Internal_Rela *irel, bool *again, + bool init, struct elf_nds32_link_hash_table *table, Elf_Internal_Sym *isymbuf, Elf_Internal_Shdr *symtab_hdr) { int offset_to_gp; - static bfd_boolean sec_pass = FALSE; + static bool sec_pass = false; static asection *first_sec = NULL, *sym_sec; /* Record the number of instructions which may be removed. */ static int count = 0, record_count; @@ -11321,7 +11321,7 @@ nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec, /* Force doing relaxation when hyper-relax is high. */ if (table->hyper_relax == 2) - return TRUE; + return true; /* Do not relax the load/store patterns for the first relax round. */ @@ -11333,13 +11333,13 @@ nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec, { record_count = count; count = 0; - sec_pass = TRUE; + sec_pass = true; } if (!sec_pass) - *again = TRUE; + *again = true; - return TRUE; + return true; } /* Generally, _SDA_BASE_ is fixed or smaller. But the large @@ -11369,7 +11369,7 @@ nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec, { /* Forbid doing relaxation when hyper-relax is low. */ if (table->hyper_relax == 0) - return FALSE; + return false; offset_to_gp = *access_addr - local_sda; if (elf32_nds32_hash_entry (h)->offset_to_gp == 0) @@ -11391,7 +11391,7 @@ nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec, { /* Local symbols. */ if (!elf32_nds32_allocate_local_sym_info (abfd)) - return FALSE; + return false; isym = isymbuf + r_symndx; sym_sec = bfd_section_from_elf_index (abfd, isym->st_shndx); @@ -11399,7 +11399,7 @@ nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec, { /* Forbid doing relaxation when hyper-relax is low. */ if (table->hyper_relax == 0) - return FALSE; + return false; offset_to_gp = *access_addr - local_sda; if (elf32_nds32_local_gp_offset (abfd)[r_symndx] == 0) @@ -11418,14 +11418,14 @@ nds32_elf_relax_guard (bfd_vma *access_addr, bfd_vma local_sda, asection *sec, } } - return TRUE; + return true; } #define GET_LOADSTORE_RANGE(addend) (((addend) >> 8) & 0x3f) /* Relax LOADSTORE relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_loadstore (struct bfd_link_info *link_info, bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, @@ -11470,12 +11470,12 @@ nds32_elf_relax_loadstore (struct bfd_link_info *link_info, bfd *abfd, if (i != 0) _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_LOADSTORE", (uint64_t) irel->r_offset); - return FALSE; + return false; } range_type = GET_LOADSTORE_RANGE (irel->r_addend); nds32_elf_final_sda_base (sec->output_section->owner, - link_info, &local_sda, FALSE); + link_info, &local_sda, false); switch (ELF32_R_TYPE (hi_irelfn->r_info)) { @@ -11505,15 +11505,15 @@ nds32_elf_relax_loadstore (struct bfd_link_info *link_info, bfd *abfd, break; } else if (!nds32_elf_relax_guard (&access_addr, local_sda, sec, hi_irelfn, - NULL, FALSE, table, isymbuf, symtab_hdr)) - return FALSE; + NULL, false, table, isymbuf, symtab_hdr)) + return false; if (!load_store_relax) - return FALSE; + return false; /* Case for set gp register. */ if (N32_RT5 (insn) == REG_GP) - return FALSE; + return false; if (range_type == NDS32_LOADSTORE_FLOAT_S || range_type == NDS32_LOADSTORE_FLOAT_D) @@ -11529,7 +11529,7 @@ nds32_elf_relax_loadstore (struct bfd_link_info *link_info, bfd *abfd, break; default: - return FALSE; + return false; } /* Delete sethi instruction. */ @@ -11542,10 +11542,10 @@ nds32_elf_relax_loadstore (struct bfd_link_info *link_info, bfd *abfd, irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), R_NDS32_NONE); *insn_len = 0; - return TRUE; + return true; } - return FALSE; + return false; } /* Relax LO12 relocation for nds32_elf_relax_section. */ @@ -11568,7 +11568,7 @@ nds32_elf_relax_lo12 (struct bfd_link_info *link_info, bfd *abfd, /* For SDA base relative relaxation. */ nds32_elf_final_sda_base (sec->output_section->owner, link_info, - &local_sda, FALSE); + &local_sda, false); irelend = internal_relocs + sec->reloc_count; laddr = irel->r_offset; @@ -11601,7 +11601,7 @@ nds32_elf_relax_lo12 (struct bfd_link_info *link_info, bfd *abfd, /* Fall through. */ } else if (!nds32_elf_relax_guard (&access_addr, local_sda, sec, irel, NULL, - FALSE, table, isymbuf, symtab_hdr)) + false, table, isymbuf, symtab_hdr)) return; range_l = sdata_range[1][0]; @@ -11665,7 +11665,7 @@ nds32_elf_relax_lo12 (struct bfd_link_info *link_info, bfd *abfd, /* Relax PTR relocation for nds32_elf_relax_section. */ -static bfd_boolean +static bool nds32_elf_relax_ptr (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, int *insn_len, int *seq_len, bfd_byte *contents) @@ -11682,11 +11682,11 @@ nds32_elf_relax_ptr (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, { _bfd_error_handler (unrecognized_reloc_msg, abfd, "R_NDS32_PTR", (uint64_t) irel->r_offset); - return FALSE; + return false; } if (re_irel->r_addend != 1) - return FALSE; + return false; /* Pointed target is relaxed and no longer needs this void *, change the type to NONE. */ @@ -11702,16 +11702,16 @@ nds32_elf_relax_ptr (bfd *abfd, asection *sec, Elf_Internal_Rela *irel, if (count_irel != irelend) { if (--count_irel->r_addend > 0) - return FALSE; + return false; } if (ptr_irel != irelend) - return FALSE; + return false; /* If the PTR_COUNT is already 0, remove current instruction. */ *seq_len = nds32_elf_insn_size (abfd, contents, irel->r_offset); *insn_len = 0; - return TRUE; + return true; } /* Relax LWC relocation for nds32_elf_relax_section. */ @@ -11721,7 +11721,7 @@ nds32_elf_relax_flsi (struct bfd_link_info *link_info, bfd *abfd, asection *sec, Elf_Internal_Rela *irel, Elf_Internal_Rela *internal_relocs, bfd_byte *contents, Elf_Internal_Sym *isymbuf, - Elf_Internal_Shdr *symtab_hdr, bfd_boolean *again) + Elf_Internal_Shdr *symtab_hdr, bool *again) { /* Pattern: sethi ra, hi20(symbol) ; HI20/LOADSTORE @@ -11769,7 +11769,7 @@ nds32_elf_relax_flsi (struct bfd_link_info *link_info, bfd *abfd, /* For SDA base relative relaxation. */ nds32_elf_final_sda_base (sec->output_section->owner, link_info, - &local_sda, FALSE); + &local_sda, false); access_addr = calculate_memory_address (abfd, irel, isymbuf, symtab_hdr); flsi_offset = (insn & 0xfff) << 2; access_addr += flsi_offset; @@ -11788,11 +11788,11 @@ nds32_elf_relax_flsi (struct bfd_link_info *link_info, bfd *abfd, bfd_putb32 (insn, contents + re_irel->r_offset); re_irel->r_addend |= 1; - *again = TRUE; + *again = true; } } -static bfd_boolean +static bool nds32_relax_adjust_label (bfd *abfd, asection *sec, Elf_Internal_Rela *internal_relocs, bfd_byte *contents, @@ -11933,13 +11933,13 @@ nds32_relax_adjust_label (bfd *abfd, asection *sec, if (!insert_nds32_elf_blank_recalc_total (relax_blank_list, insn_rel->r_offset + 2, 2)) - return FALSE; + return false; } else if (is_16bit_NOP (abfd, sec, insn_rel)) { if (!insert_nds32_elf_blank_recalc_total (relax_blank_list, insn_rel->r_offset, 2)) - return FALSE; + return false; } insn_rel->r_info = ELF32_R_INFO (ELF32_R_SYM (insn_rel->r_info), R_NDS32_NONE); @@ -11974,7 +11974,7 @@ nds32_relax_adjust_label (bfd *abfd, asection *sec, { /* Check if there is case which can not be aligned. */ if (irel->r_addend == 2 && address & 0x2) - return FALSE; + return false; continue; } @@ -12017,13 +12017,13 @@ nds32_relax_adjust_label (bfd *abfd, asection *sec, if (!insert_nds32_elf_blank_recalc_total (relax_blank_list, insn_rel->r_offset + 2, 2)) - return FALSE; + return false; } else if (is_16bit_NOP (abfd, sec, insn_rel)) { if (!insert_nds32_elf_blank_recalc_total (relax_blank_list, insn_rel->r_offset, 2)) - return FALSE; + return false; } } @@ -12043,7 +12043,7 @@ nds32_relax_adjust_label (bfd *abfd, asection *sec, irelend, insn16); if (!insert_nds32_elf_blank_recalc_total (relax_blank_list, insn_rel->r_offset + 2, 2)) - return FALSE; + return false; insn_rel->r_info = ELF32_R_INFO (ELF32_R_SYM (insn_rel->r_info), R_NDS32_NONE); } @@ -12051,18 +12051,18 @@ nds32_relax_adjust_label (bfd *abfd, asection *sec, { if (!insert_nds32_elf_blank_recalc_total (relax_blank_list, insn_rel->r_offset, 2)) - return FALSE; + return false; insn_rel->r_info = ELF32_R_INFO (ELF32_R_SYM (insn_rel->r_info), R_NDS32_NONE); } } insn_rel = NULL; - return TRUE; + return true; } -static bfd_boolean +static bool nds32_elf_relax_section (bfd *abfd, asection *sec, - struct bfd_link_info *link_info, bfd_boolean *again) + struct bfd_link_info *link_info, bool *again) { nds32_elf_blank_t *relax_blank_list = NULL; Elf_Internal_Shdr *symtab_hdr; @@ -12071,7 +12071,7 @@ nds32_elf_relax_section (bfd *abfd, asection *sec, Elf_Internal_Rela *irelend; Elf_Internal_Sym *isymbuf = NULL; bfd_byte *contents = NULL; - bfd_boolean result = TRUE; + bool result = true; int optimize = 0; int opt_size = 0; uint32_t insn; @@ -12083,7 +12083,7 @@ nds32_elf_relax_section (bfd *abfd, asection *sec, relax_blank_list = NULL; - *again = FALSE; + *again = false; /* Nothing to do for * relocatable link or @@ -12097,13 +12097,13 @@ nds32_elf_relax_section (bfd *abfd, asection *sec, || (sec->flags & SEC_CODE) == 0 || sec->size == 0 || sec->reloc_count == 0) - return TRUE; + return true; /* 09.12.11 Workaround. */ /* We have to adjust align for R_NDS32_LABEL if needed. The adjust approach only can fix 2-byte align once. */ if (sec->alignment_power > 2) - return TRUE; + return true; /* Do TLS model conversion once at first. */ nds32_elf_unify_tls_model (abfd, sec, contents, link_info); @@ -12115,7 +12115,7 @@ nds32_elf_relax_section (bfd *abfd, asection *sec, /* Save the first section for abs symbol relaxation. This is used for checking gp relaxation in the nds32_elf_relax_loadstore and nds32_elf_relax_lo12. */ - nds32_elf_relax_guard (NULL, 0, sec, NULL, again, TRUE, + nds32_elf_relax_guard (NULL, 0, sec, NULL, again, true, table, NULL, NULL); /* The begining of general relaxation. */ @@ -12125,14 +12125,14 @@ nds32_elf_relax_section (bfd *abfd, asection *sec, bfd_vma gp; is_SDA_BASE_set = 1; nds32_elf_final_sda_base (sec->output_section->owner, link_info, - &gp, FALSE); + &gp, false); relax_range_measurement (abfd, link_info); } symtab_hdr = &elf_tdata (abfd)->symtab_hdr; /* Relocations MUST be kept in memory, because relaxation adjust them. */ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL, - TRUE /* keep_memory */); + true /* keep_memory */); if (internal_relocs == NULL) goto error_return; @@ -12141,12 +12141,12 @@ nds32_elf_relax_section (bfd *abfd, asection *sec, irelend, R_NDS32_RELAX_ENTRY); if (irel == irelend) - return TRUE; + return true; if (ELF32_R_TYPE (irel->r_info) == R_NDS32_RELAX_ENTRY) { if (irel->r_addend & R_NDS32_RELAX_ENTRY_DISABLE_RELAX_FLAG) - return TRUE; + return true; if (irel->r_addend & R_NDS32_RELAX_ENTRY_OPTIMIZE_FLAG) optimize = 1; @@ -12159,7 +12159,7 @@ nds32_elf_relax_section (bfd *abfd, asection *sec, /* Get symbol table and section content. */ contents = NULL; - if (!nds32_get_section_contents (abfd, sec, &contents, TRUE) + if (!nds32_get_section_contents (abfd, sec, &contents, true) || !nds32_get_local_syms (abfd, sec, &isymbuf)) goto error_return; @@ -12169,7 +12169,7 @@ nds32_elf_relax_section (bfd *abfd, asection *sec, { int seq_len; /* Original length of instruction sequence. */ int insn_len = 0; /* Final length of instruction sequence. */ - bfd_boolean removed; + bool removed; insn = 0; if (ELF32_R_TYPE (irel->r_info) == R_NDS32_LABEL @@ -12237,7 +12237,7 @@ nds32_elf_relax_section (bfd *abfd, asection *sec, continue; insn_len = seq_len; - removed = FALSE; + removed = false; switch (ELF32_R_TYPE (irel->r_info)) { @@ -12353,7 +12353,7 @@ nds32_elf_relax_section (bfd *abfd, asection *sec, (&relax_blank_list, irel->r_offset + insn_len, seq_len - insn_len)) goto error_return; - *again = TRUE; + *again = true; } } @@ -12434,7 +12434,7 @@ nds32_elf_relax_section (bfd *abfd, asection *sec, return result; error_return: - result = FALSE; + result = false; goto finish; } @@ -12445,7 +12445,7 @@ static struct bfd_elf_special_section const nds32_elf_special_sections[] = {NULL, 0, 0, 0, 0} }; -static bfd_boolean +static bool nds32_elf_section_flags (const Elf_Internal_Shdr *hdr) { const char *name = hdr->bfd_section->name; @@ -12454,10 +12454,10 @@ nds32_elf_section_flags (const Elf_Internal_Shdr *hdr) || strncmp (name, ".sdata", 6) == 0) hdr->bfd_section->flags |= SEC_SMALL_DATA; - return TRUE; + return true; } -static bfd_boolean +static bool nds32_elf_output_arch_syms (bfd *output_bfd ATTRIBUTE_UNUSED, struct bfd_link_info *info, void *finfo ATTRIBUTE_UNUSED, @@ -12476,7 +12476,7 @@ nds32_elf_output_arch_syms (bfd *output_bfd ATTRIBUTE_UNUSED, if (check_start_export_sym) fprintf (sym_ld_script, "}\n"); - return TRUE; + return true; } static enum elf_reloc_type_class @@ -12705,7 +12705,7 @@ nds32_fag_find_base (struct nds32_fag *head, struct nds32_fag **bestpp) `best_fag' is the best fp-base. Only those inside the window of best_fag is applied the flag. */ -static bfd_boolean +static bool nds32_fag_mark_relax (struct bfd_link_info *link_info, asection *sec, struct nds32_fag *best_fag, Elf_Internal_Rela *internal_relocs, @@ -12716,12 +12716,12 @@ nds32_fag_mark_relax (struct bfd_link_info *link_info, bfd *output_bfd; output_bfd = sec->output_section->owner; - nds32_elf_final_sda_base (output_bfd, link_info, &gp, FALSE); + nds32_elf_final_sda_base (output_bfd, link_info, &gp, false); best_fpbase = best_fag->addr; if (best_fpbase > gp + sdata_range[1][1] || best_fpbase < gp - sdata_range[1][0]) - return FALSE; + return false; /* Mark these inside the window R_NDS32_INSN16_FP7U2_FLAG flag, so we know they can be converted to lwi37.fp. */ @@ -12747,7 +12747,7 @@ nds32_fag_mark_relax (struct bfd_link_info *link_info, insn16_rel->r_addend = R_NDS32_INSN16_FP7U2_FLAG; } } - return TRUE; + return true; } /* Reset INSN16 to clean fp as gp. */ @@ -12781,7 +12781,7 @@ nds32_fag_unmark_relax (struct nds32_fag *fag, /* This is the main function of fp-as-gp optimization. It should be called by relax_section. */ -static bfd_boolean +static bool nds32_relax_fp_as_gp (struct bfd_link_info *link_info, bfd *abfd, asection *sec, Elf_Internal_Rela *internal_relocs, @@ -12793,7 +12793,7 @@ nds32_relax_fp_as_gp (struct bfd_link_info *link_info, struct nds32_fag fag_head; Elf_Internal_Shdr *symtab_hdr; bfd_byte *contents; - bfd_boolean ifc_inside = FALSE; + bool ifc_inside = false; /* FIXME: Can we bfd_elf_link_read_relocs for the relocs? */ @@ -12817,9 +12817,9 @@ nds32_relax_fp_as_gp (struct bfd_link_info *link_info, symtab_hdr = &elf_tdata (abfd)->symtab_hdr; contents = NULL; - if (!nds32_get_section_contents (abfd, sec, &contents, TRUE) + if (!nds32_get_section_contents (abfd, sec, &contents, true) || !nds32_get_local_syms (abfd, sec, &isymbuf)) - return FALSE; + return false; /* Check whether it is worth for fp-as-gp optimization, i.e., at least 3 gp-load. @@ -12844,7 +12844,7 @@ nds32_relax_fp_as_gp (struct bfd_link_info *link_info, begin_rel = irel; nds32_fag_init (&fag_head); - ifc_inside = FALSE; + ifc_inside = false; } else if (ELF32_R_TYPE (irel->r_info) == R_NDS32_RELAX_REGION_END && (irel->r_addend & R_NDS32_RELAX_REGION_OMIT_FP_FLAG)) @@ -12927,16 +12927,16 @@ nds32_relax_fp_as_gp (struct bfd_link_info *link_info, || ELF32_R_TYPE (irel->r_info) == R_NDS32_10IFCU_PCREL_RELA) { /* Suppress fp as gp when encounter ifc. */ - ifc_inside = TRUE; + ifc_inside = true; } } - return TRUE; + return true; } /* Remove unused `la $fp, _FD_BASE_' instruction. */ -static bfd_boolean +static bool nds32_fag_remove_unused_fpbase (bfd *abfd, asection *sec, Elf_Internal_Rela *internal_relocs, Elf_Internal_Rela *irelend) @@ -12945,8 +12945,8 @@ nds32_fag_remove_unused_fpbase (bfd *abfd, asection *sec, Elf_Internal_Shdr *symtab_hdr; bfd_byte *contents = NULL; nds32_elf_blank_t *relax_blank_list = NULL; - bfd_boolean result = TRUE; - bfd_boolean unused_region = FALSE; + bool result = true; + bool unused_region = false; /* NOTE: Disable fp-as-gp if we encounter ifcall relocations: @@ -12954,7 +12954,7 @@ nds32_fag_remove_unused_fpbase (bfd *abfd, asection *sec, R_NDS32_10IFCU_PCREL_RELA. */ symtab_hdr = &elf_tdata (abfd)->symtab_hdr; - nds32_get_section_contents (abfd, sec, &contents, TRUE); + nds32_get_section_contents (abfd, sec, &contents, true); for (irel = internal_relocs; irel < irelend; irel++) { @@ -12968,10 +12968,10 @@ nds32_fag_remove_unused_fpbase (bfd *abfd, asection *sec, if (ELF32_R_TYPE (irel->r_info) == R_NDS32_RELAX_REGION_BEGIN && (irel->r_addend & R_NDS32_RELAX_REGION_NOT_OMIT_FP_FLAG)) - unused_region = TRUE; + unused_region = true; else if (ELF32_R_TYPE (irel->r_info) == R_NDS32_RELAX_REGION_END && (irel->r_addend & R_NDS32_RELAX_REGION_NOT_OMIT_FP_FLAG)) - unused_region = FALSE; + unused_region = false; /* We're not in the region. */ if (!unused_region) @@ -13026,7 +13026,7 @@ nds32_fag_remove_unused_fpbase (bfd *abfd, asection *sec, return result; error_return: - result = FALSE; + result = false; goto finish; } @@ -13042,7 +13042,7 @@ nds32_elf_get_relocated_section_contents (bfd *abfd, struct bfd_link_info *link_info, struct bfd_link_order *link_order, bfd_byte *data, - bfd_boolean relocatable, + bool relocatable, asymbol **symbols) { bfd *input_bfd = link_order->u.indirect.section->owner; @@ -13056,7 +13056,7 @@ nds32_elf_get_relocated_section_contents (bfd *abfd, return NULL; /* Read in the section. */ - if (!nds32_get_section_contents (input_bfd, input_section, &data, FALSE)) + if (!nds32_get_section_contents (input_bfd, input_section, &data, false)) return NULL; if (reloc_size == 0) @@ -13085,8 +13085,8 @@ nds32_elf_get_relocated_section_contents (bfd *abfd, { bfd_vma off; static reloc_howto_type none_howto - = HOWTO (0, 0, 0, 0, FALSE, 0, complain_overflow_dont, NULL, - "unused", FALSE, 0, 0, FALSE); + = HOWTO (0, 0, 0, 0, false, 0, complain_overflow_dont, NULL, + "unused", false, 0, 0, false); off = (*parent)->address * OCTETS_PER_BYTE (input_bfd, input_section); @@ -13119,7 +13119,7 @@ nds32_elf_get_relocated_section_contents (bfd *abfd, case bfd_reloc_undefined: (*link_info->callbacks->undefined_symbol) (link_info, bfd_asymbol_name (*(*parent)->sym_ptr_ptr), - input_bfd, input_section, (*parent)->address, TRUE); + input_bfd, input_section, (*parent)->address, true); break; case bfd_reloc_dangerous: BFD_ASSERT (error_message != NULL); @@ -13163,12 +13163,12 @@ nds32_elf_get_relocated_section_contents (bfd *abfd, /* Check target symbol. */ -static bfd_boolean +static bool nds32_elf_is_target_special_symbol (bfd *abfd ATTRIBUTE_UNUSED, asymbol *sym) { if (!sym || !sym->name || sym->name[0] != '$') - return FALSE; - return TRUE; + return false; + return true; } /* nds32 find maybe function sym. Ignore target special symbol @@ -13221,7 +13221,7 @@ list_insert (relax_group_list_t *pHead, Elf_Internal_Rela *pElem) /* Insert node. */ relax_group_list_t *pNew = bfd_malloc (sizeof (relax_group_list_t)); if (!pNew) - return FALSE; + return false; relax_group_list_t *tmp = pNext->next; pNext->next = pNew; @@ -13231,7 +13231,7 @@ list_insert (relax_group_list_t *pHead, Elf_Internal_Rela *pElem) pNew->next = tmp; pNew->next_sibling = NULL; - return TRUE; + return true; } int @@ -13248,7 +13248,7 @@ list_insert_sibling (relax_group_list_t *pNode, Elf_Internal_Rela *pElem) /* Insert node. */ relax_group_list_t *pNew = bfd_malloc (sizeof (relax_group_list_t)); if (!pNew) - return FALSE; + return false; relax_group_list_t *tmp = pNext->next_sibling; pNext->next_sibling = pNew; @@ -13258,7 +13258,7 @@ list_insert_sibling (relax_group_list_t *pNode, Elf_Internal_Rela *pElem) pNew->next = NULL; pNew->next_sibling = tmp; - return TRUE; + return true; } void @@ -13300,7 +13300,7 @@ elf32_nds32_check_relax_group (bfd *abfd, asection *asec) { /* Relocations MUST be kept in memory, because relaxation adjust them. */ relocs = _bfd_elf_link_read_relocs (abfd, asec, NULL, NULL, - TRUE /* keep_memory */); + true /* keep_memory */); if (relocs == NULL) break; @@ -13320,7 +13320,7 @@ elf32_nds32_check_relax_group (bfd *abfd, asection *asec) max_id = id; } } - while (FALSE); + while (false); if (elf_section_data (asec)->relocs != relocs) free (relocs); @@ -13410,7 +13410,7 @@ elf32_nds32_unify_relax_group (bfd *abfd, asection *asec) elf32_nds32_relax_group_t *relax_group_ptr = elf32_nds32_relax_group_ptr (abfd); - bfd_boolean result = TRUE; + bool result = true; Elf_Internal_Rela *rel; Elf_Internal_Rela *relend; Elf_Internal_Rela *relocs = NULL; @@ -13430,7 +13430,7 @@ elf32_nds32_unify_relax_group (bfd *abfd, asection *asec) /* Relocations MUST be kept in memory, because relaxation adjust them. */ relocs = _bfd_elf_link_read_relocs (abfd, asec, NULL, NULL, - TRUE /* keep_memory */); + true /* keep_memory */); if (relocs == NULL) { BFD_ASSERT (0); /* feed me */ @@ -13459,7 +13459,7 @@ elf32_nds32_unify_relax_group (bfd *abfd, asection *asec) count++; } } - while (FALSE); + while (false); if (elf_section_data (asec)->relocs != relocs) free (relocs); @@ -13471,7 +13471,7 @@ int nds32_elf_unify_tls_model (bfd *inbfd, asection *insec, bfd_byte *incontents, struct bfd_link_info *lnkinfo) { - bfd_boolean result = TRUE; + bool result = true; Elf_Internal_Rela *irel; Elf_Internal_Rela *irelend; Elf_Internal_Rela *internal_relocs; @@ -13500,7 +13500,7 @@ nds32_elf_unify_tls_model (bfd *inbfd, asection *insec, bfd_byte *incontents, /* Relocations MUST be kept in memory, because relaxation adjust them. */ internal_relocs = _bfd_elf_link_read_relocs (inbfd, insec, NULL, NULL, - TRUE /* keep_memory */); + true /* keep_memory */); if (internal_relocs == NULL) goto error_return; @@ -13572,7 +13572,7 @@ nds32_elf_unify_tls_model (bfd *inbfd, asection *insec, bfd_byte *incontents, /* Get symbol table and section content. */ if (incontents) contents = incontents; - else if (!nds32_get_section_contents (inbfd, insec, &contents, TRUE) + else if (!nds32_get_section_contents (inbfd, insec, &contents, true) || !nds32_get_local_syms (inbfd, insec, &local_syms)) goto error_return; @@ -13911,7 +13911,7 @@ nds32_elf_unify_tls_model (bfd *inbfd, asection *insec, bfd_byte *incontents, return result; error_return: - result = FALSE; + result = false; goto finish; } |