mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-13 12:23:33 +08:00
0a1b45a20e
* 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.
1098 lines
33 KiB
C
1098 lines
33 KiB
C
/* Copyright (C) 2006-2021 Free Software Foundation, Inc.
|
|
|
|
This file is part of BFD, the Binary File Descriptor library.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
|
MA 02110-1301, USA. */
|
|
|
|
/* No relocation. */
|
|
HOWTO (R_SH_NONE, /* type */
|
|
0, /* rightshift */
|
|
3, /* size (0 = byte, 1 = short, 2 = long) */
|
|
0, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_dont, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_NONE", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
/* 32 bit absolute relocation. Setting partial_inplace to TRUE and
|
|
src_mask to a non-zero value is similar to the COFF toolchain. */
|
|
HOWTO (R_SH_DIR32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
SH_ELF_RELOC, /* special_function */
|
|
"R_SH_DIR32", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
/* 32 bit PC relative relocation. */
|
|
HOWTO (R_SH_REL32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
true, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_REL32", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* 8 bit PC relative branch divided by 2. */
|
|
HOWTO (R_SH_DIR8WPN, /* type */
|
|
1, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
true, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_DIR8WPN", /* name */
|
|
true, /* partial_inplace */
|
|
0xff, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* 12 bit PC relative branch divided by 2. */
|
|
/* This cannot be partial_inplace because relaxation can't know the
|
|
eventual value of a symbol. */
|
|
HOWTO (R_SH_IND12W, /* type */
|
|
1, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
12, /* bitsize */
|
|
true, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
NULL, /* special_function */
|
|
"R_SH_IND12W", /* name */
|
|
false, /* partial_inplace */
|
|
0x0, /* src_mask */
|
|
0xfff, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* 8 bit unsigned PC relative divided by 4. */
|
|
HOWTO (R_SH_DIR8WPL, /* type */
|
|
2, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
true, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_DIR8WPL", /* name */
|
|
true, /* partial_inplace */
|
|
0xff, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* 8 bit unsigned PC relative divided by 2. */
|
|
HOWTO (R_SH_DIR8WPZ, /* type */
|
|
1, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
true, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_DIR8WPZ", /* name */
|
|
true, /* partial_inplace */
|
|
0xff, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* 8 bit GBR relative. FIXME: This only makes sense if we have some
|
|
special symbol for the GBR relative area, and that is not
|
|
implemented. */
|
|
HOWTO (R_SH_DIR8BP, /* type */
|
|
0, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_DIR8BP", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* 8 bit GBR relative divided by 2. FIXME: This only makes sense if
|
|
we have some special symbol for the GBR relative area, and that
|
|
is not implemented. */
|
|
HOWTO (R_SH_DIR8W, /* type */
|
|
1, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_DIR8W", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* 8 bit GBR relative divided by 4. FIXME: This only makes sense if
|
|
we have some special symbol for the GBR relative area, and that
|
|
is not implemented. */
|
|
HOWTO (R_SH_DIR8L, /* type */
|
|
2, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_DIR8L", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* 8 bit PC relative divided by 2 - but specified in a very odd way. */
|
|
HOWTO (R_SH_LOOP_START, /* type */
|
|
1, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_LOOP_START", /* name */
|
|
true, /* partial_inplace */
|
|
0xff, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* 8 bit PC relative divided by 2 - but specified in a very odd way. */
|
|
HOWTO (R_SH_LOOP_END, /* type */
|
|
1, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_LOOP_END", /* name */
|
|
true, /* partial_inplace */
|
|
0xff, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
EMPTY_HOWTO (12),
|
|
EMPTY_HOWTO (13),
|
|
EMPTY_HOWTO (14),
|
|
EMPTY_HOWTO (15),
|
|
EMPTY_HOWTO (16),
|
|
EMPTY_HOWTO (17),
|
|
EMPTY_HOWTO (18),
|
|
EMPTY_HOWTO (19),
|
|
EMPTY_HOWTO (20),
|
|
EMPTY_HOWTO (21),
|
|
|
|
/* The remaining relocs are a GNU extension used for relaxing. The
|
|
final pass of the linker never needs to do anything with any of
|
|
these relocs. Any required operations are handled by the
|
|
relaxation code. */
|
|
|
|
/* GNU extension to record C++ vtable hierarchy */
|
|
HOWTO (R_SH_GNU_VTINHERIT, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
0, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_dont, /* complain_on_overflow */
|
|
NULL, /* special_function */
|
|
"R_SH_GNU_VTINHERIT", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
/* GNU extension to record C++ vtable member usage */
|
|
HOWTO (R_SH_GNU_VTENTRY, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
0, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_dont, /* complain_on_overflow */
|
|
_bfd_elf_rel_vtable_reloc_fn, /* special_function */
|
|
"R_SH_GNU_VTENTRY", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
/* An 8 bit switch table entry. This is generated for an expression
|
|
such as ``.word L1 - L2''. The offset holds the difference
|
|
between the reloc address and L2. */
|
|
HOWTO (R_SH_SWITCH8, /* type */
|
|
0, /* rightshift */
|
|
0, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_SWITCH8", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* A 16 bit switch table entry. This is generated for an expression
|
|
such as ``.word L1 - L2''. The offset holds the difference
|
|
between the reloc address and L2. */
|
|
HOWTO (R_SH_SWITCH16, /* type */
|
|
0, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
16, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_SWITCH16", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* A 32 bit switch table entry. This is generated for an expression
|
|
such as ``.long L1 - L2''. The offset holds the difference
|
|
between the reloc address and L2. */
|
|
HOWTO (R_SH_SWITCH32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_SWITCH32", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* Indicates a .uses pseudo-op. The compiler will generate .uses
|
|
pseudo-ops when it finds a function call which can be relaxed.
|
|
The offset field holds the PC relative offset to the instruction
|
|
which loads the register used in the function call. */
|
|
HOWTO (R_SH_USES, /* type */
|
|
0, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
0, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_USES", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* The assembler will generate this reloc for addresses referred to
|
|
by the register loads associated with USES relocs. The offset
|
|
field holds the number of times the address is referenced in the
|
|
object file. */
|
|
HOWTO (R_SH_COUNT, /* type */
|
|
0, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
0, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_COUNT", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* Indicates an alignment statement. The offset field is the power
|
|
of 2 to which subsequent portions of the object file must be
|
|
aligned. */
|
|
HOWTO (R_SH_ALIGN, /* type */
|
|
0, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
0, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_ALIGN", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* The assembler will generate this reloc before a block of
|
|
instructions. A section should be processed as assuming it
|
|
contains data, unless this reloc is seen. */
|
|
HOWTO (R_SH_CODE, /* type */
|
|
0, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
0, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_CODE", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* The assembler will generate this reloc after a block of
|
|
instructions when it sees data that is not instructions. */
|
|
HOWTO (R_SH_DATA, /* type */
|
|
0, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
0, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_DATA", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* The assembler generates this reloc for each label within a block
|
|
of instructions. This permits the linker to avoid swapping
|
|
instructions which are the targets of branches. */
|
|
HOWTO (R_SH_LABEL, /* type */
|
|
0, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
0, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
sh_elf_ignore_reloc, /* special_function */
|
|
"R_SH_LABEL", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
/* The next 12 are only supported via linking in SHC-generated objects. */
|
|
HOWTO (R_SH_DIR16, /* type */
|
|
0, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
16, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_dont, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_DIR16", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_DIR8, /* type */
|
|
0, /* rightshift */
|
|
0, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_dont, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_DIR8", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_DIR8UL, /* type */
|
|
2, /* rightshift */
|
|
0, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_DIR8UL", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_DIR8UW, /* type */
|
|
1, /* rightshift */
|
|
0, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_DIR8UW", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_DIR8U, /* type */
|
|
0, /* rightshift */
|
|
0, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_DIR8U", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_DIR8SW, /* type */
|
|
1, /* rightshift */
|
|
0, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_DIR8SW", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_DIR8S, /* type */
|
|
0, /* rightshift */
|
|
0, /* size (0 = byte, 1 = short, 2 = long) */
|
|
8, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_DIR8S", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_DIR4UL, /* type */
|
|
2, /* rightshift */
|
|
0, /* size (0 = byte, 1 = short, 2 = long) */
|
|
4, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_DIR4UL", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0x0f, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_DIR4UW, /* type */
|
|
1, /* rightshift */
|
|
0, /* size (0 = byte, 1 = short, 2 = long) */
|
|
4, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_DIR4UW", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0x0f, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_DIR4U, /* type */
|
|
0, /* rightshift */
|
|
0, /* size (0 = byte, 1 = short, 2 = long) */
|
|
4, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_unsigned, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_DIR4U", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0x0f, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_PSHA, /* type */
|
|
0, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
7, /* bitsize */
|
|
false, /* pc_relative */
|
|
4, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_PSHA", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0x0f, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_PSHL, /* type */
|
|
0, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
7, /* bitsize */
|
|
false, /* pc_relative */
|
|
4, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_PSHL", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0x0f, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
EMPTY_HOWTO (45),
|
|
EMPTY_HOWTO (46),
|
|
EMPTY_HOWTO (47),
|
|
EMPTY_HOWTO (48),
|
|
EMPTY_HOWTO (49),
|
|
EMPTY_HOWTO (50),
|
|
EMPTY_HOWTO (51),
|
|
|
|
EMPTY_HOWTO (52),
|
|
|
|
HOWTO (R_SH_DIR16S, /* type */
|
|
0, /* rightshift */
|
|
1, /* size (0 = byte, 1 = short, 2 = long) */
|
|
16, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_DIR16S", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
EMPTY_HOWTO (54),
|
|
EMPTY_HOWTO (55),
|
|
EMPTY_HOWTO (56),
|
|
EMPTY_HOWTO (57),
|
|
EMPTY_HOWTO (58),
|
|
EMPTY_HOWTO (59),
|
|
EMPTY_HOWTO (60),
|
|
EMPTY_HOWTO (61),
|
|
EMPTY_HOWTO (62),
|
|
EMPTY_HOWTO (63),
|
|
EMPTY_HOWTO (64),
|
|
EMPTY_HOWTO (65),
|
|
EMPTY_HOWTO (66),
|
|
EMPTY_HOWTO (67),
|
|
EMPTY_HOWTO (68),
|
|
EMPTY_HOWTO (69),
|
|
EMPTY_HOWTO (70),
|
|
EMPTY_HOWTO (71),
|
|
EMPTY_HOWTO (72),
|
|
EMPTY_HOWTO (73),
|
|
EMPTY_HOWTO (74),
|
|
EMPTY_HOWTO (75),
|
|
EMPTY_HOWTO (76),
|
|
EMPTY_HOWTO (77),
|
|
EMPTY_HOWTO (78),
|
|
EMPTY_HOWTO (79),
|
|
EMPTY_HOWTO (80),
|
|
EMPTY_HOWTO (81),
|
|
EMPTY_HOWTO (82),
|
|
EMPTY_HOWTO (83),
|
|
EMPTY_HOWTO (84),
|
|
EMPTY_HOWTO (85),
|
|
EMPTY_HOWTO (86),
|
|
EMPTY_HOWTO (87),
|
|
EMPTY_HOWTO (88),
|
|
EMPTY_HOWTO (89),
|
|
EMPTY_HOWTO (90),
|
|
EMPTY_HOWTO (91),
|
|
EMPTY_HOWTO (92),
|
|
EMPTY_HOWTO (93),
|
|
EMPTY_HOWTO (94),
|
|
EMPTY_HOWTO (95),
|
|
EMPTY_HOWTO (96),
|
|
EMPTY_HOWTO (97),
|
|
EMPTY_HOWTO (98),
|
|
EMPTY_HOWTO (99),
|
|
EMPTY_HOWTO (100),
|
|
EMPTY_HOWTO (101),
|
|
EMPTY_HOWTO (102),
|
|
EMPTY_HOWTO (103),
|
|
EMPTY_HOWTO (104),
|
|
EMPTY_HOWTO (105),
|
|
EMPTY_HOWTO (106),
|
|
EMPTY_HOWTO (107),
|
|
EMPTY_HOWTO (108),
|
|
EMPTY_HOWTO (109),
|
|
EMPTY_HOWTO (110),
|
|
EMPTY_HOWTO (111),
|
|
EMPTY_HOWTO (112),
|
|
EMPTY_HOWTO (113),
|
|
EMPTY_HOWTO (114),
|
|
EMPTY_HOWTO (115),
|
|
EMPTY_HOWTO (116),
|
|
EMPTY_HOWTO (117),
|
|
EMPTY_HOWTO (118),
|
|
EMPTY_HOWTO (119),
|
|
EMPTY_HOWTO (120),
|
|
EMPTY_HOWTO (121),
|
|
EMPTY_HOWTO (122),
|
|
EMPTY_HOWTO (123),
|
|
EMPTY_HOWTO (124),
|
|
EMPTY_HOWTO (125),
|
|
EMPTY_HOWTO (126),
|
|
EMPTY_HOWTO (127),
|
|
EMPTY_HOWTO (128),
|
|
EMPTY_HOWTO (129),
|
|
EMPTY_HOWTO (130),
|
|
EMPTY_HOWTO (131),
|
|
EMPTY_HOWTO (132),
|
|
EMPTY_HOWTO (133),
|
|
EMPTY_HOWTO (134),
|
|
EMPTY_HOWTO (135),
|
|
EMPTY_HOWTO (136),
|
|
EMPTY_HOWTO (137),
|
|
EMPTY_HOWTO (138),
|
|
EMPTY_HOWTO (139),
|
|
EMPTY_HOWTO (140),
|
|
EMPTY_HOWTO (141),
|
|
EMPTY_HOWTO (142),
|
|
EMPTY_HOWTO (143),
|
|
|
|
HOWTO (R_SH_TLS_GD_32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_TLS_GD_32", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_TLS_LD_32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_TLS_LD_32", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_TLS_LDO_32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_TLS_LDO_32", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_TLS_IE_32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_TLS_IE_32", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_TLS_LE_32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_TLS_LE_32", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_TLS_DTPMOD32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_TLS_DTPMOD32", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_TLS_DTPOFF32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_TLS_DTPOFF32", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_TLS_TPOFF32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_TLS_TPOFF32", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
EMPTY_HOWTO (152),
|
|
EMPTY_HOWTO (153),
|
|
EMPTY_HOWTO (154),
|
|
EMPTY_HOWTO (155),
|
|
EMPTY_HOWTO (156),
|
|
EMPTY_HOWTO (157),
|
|
EMPTY_HOWTO (158),
|
|
EMPTY_HOWTO (159),
|
|
|
|
HOWTO (R_SH_GOT32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_GOT32", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_PLT32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
true, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_PLT32", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_COPY, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_COPY", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_GLOB_DAT, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_GLOB_DAT", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_JMP_SLOT, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_JMP_SLOT", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_RELATIVE, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_RELATIVE", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_GOTOFF, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_GOTOFF", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_GOTPC, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
true, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_GOTPC", /* name */
|
|
SH_PARTIAL32, /* partial_inplace */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
true), /* pcrel_offset */
|
|
|
|
HOWTO (R_SH_GOTPLT32, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_bitfield, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* */
|
|
"R_SH_GOTPLT32", /* name */
|
|
false, /* partial_inplace */
|
|
/* ??? Why not 0? */
|
|
SH_SRC_MASK32, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
EMPTY_HOWTO (169),
|
|
EMPTY_HOWTO (170),
|
|
EMPTY_HOWTO (171),
|
|
EMPTY_HOWTO (172),
|
|
EMPTY_HOWTO (173),
|
|
EMPTY_HOWTO (174),
|
|
EMPTY_HOWTO (175),
|
|
EMPTY_HOWTO (176),
|
|
EMPTY_HOWTO (177),
|
|
EMPTY_HOWTO (178),
|
|
EMPTY_HOWTO (179),
|
|
EMPTY_HOWTO (180),
|
|
EMPTY_HOWTO (181),
|
|
EMPTY_HOWTO (182),
|
|
EMPTY_HOWTO (183),
|
|
EMPTY_HOWTO (184),
|
|
EMPTY_HOWTO (185),
|
|
EMPTY_HOWTO (186),
|
|
EMPTY_HOWTO (187),
|
|
EMPTY_HOWTO (188),
|
|
EMPTY_HOWTO (189),
|
|
EMPTY_HOWTO (190),
|
|
EMPTY_HOWTO (191),
|
|
EMPTY_HOWTO (192),
|
|
EMPTY_HOWTO (193),
|
|
EMPTY_HOWTO (194),
|
|
EMPTY_HOWTO (195),
|
|
EMPTY_HOWTO (196),
|
|
EMPTY_HOWTO (197),
|
|
EMPTY_HOWTO (198),
|
|
EMPTY_HOWTO (199),
|
|
EMPTY_HOWTO (200),
|
|
|
|
/* FDPIC-relative offset to a GOT entry, for movi20. */
|
|
HOWTO (R_SH_GOT20, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
20, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_GOT20", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0x00f0ffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
/* FDPIC-relative offset to a data object, for movi20. */
|
|
HOWTO (R_SH_GOTOFF20, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
20, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_GOTOFF20", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0x00f0ffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
/* FDPIC-relative offset to a GOT entry for a function descriptor. */
|
|
HOWTO (R_SH_GOTFUNCDESC, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_GOTFUNCDESC", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
/* FDPIC-relative offset to a GOT entry for a function descriptor,
|
|
for movi20. */
|
|
HOWTO (R_SH_GOTFUNCDESC20, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
20, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_GOTFUNCDESC20", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0x00f0ffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
/* FDPIC-relative offset to a function descriptor. */
|
|
HOWTO (R_SH_GOTOFFFUNCDESC, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_GOTOFFFUNCDESC", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
/* FDPIC-relative offset to a function descriptor, for movi20. */
|
|
HOWTO (R_SH_GOTOFFFUNCDESC20, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
20, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_GOTOFFFUNCDESC20", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0x00f0ffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
/* Address of an official function descriptor. */
|
|
HOWTO (R_SH_FUNCDESC, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
32, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_FUNCDESC", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
/* Function descriptor to be filled in by the dynamic linker. */
|
|
HOWTO (R_SH_FUNCDESC_VALUE, /* type */
|
|
0, /* rightshift */
|
|
2, /* size (0 = byte, 1 = short, 2 = long) */
|
|
64, /* bitsize */
|
|
false, /* pc_relative */
|
|
0, /* bitpos */
|
|
complain_overflow_signed, /* complain_on_overflow */
|
|
bfd_elf_generic_reloc, /* special_function */
|
|
"R_SH_FUNCDESC_VALUE", /* name */
|
|
false, /* partial_inplace */
|
|
0, /* src_mask */
|
|
0xffffffff, /* dst_mask */
|
|
false), /* pcrel_offset */
|
|
|
|
#undef SH_PARTIAL32
|
|
#undef SH_SRC_MASK32
|
|
#undef SH_ELF_RELOC
|