When an application wants to create a relocation, but doesn't know what the target machine might call it, it can find out by using this bit of code.
bfd_reloc_code_type
Description
The insides of a reloc code. The idea is that, eventually, there
will be one enumerator for every type of relocation we ever do.
Pass one of these values to bfd_reloc_type_lookup
, and it'll
return a howto pointer.
This does mean that the application must determine the correct enumerator value; you can't get a howto pointer from a random set of attributes.
Here are the possible values for enum bfd_reloc_code_real
:
Basic absolute relocations of N bits.
PC-relative relocations. Sometimes these are relative to the address of the relocation itself; sometimes they are relative to the start of the section containing the relocation. It depends on the specific target.
The 24-bit relocation is used in some Intel 960 configurations.
Section relative relocations. Some targets need this for DWARF2.
For ELF.
Relocations used by 68K ELF.
Linkage-table relative.
Absolute 8-bit relocation, but used to form an address like 0xFFnn.
These PC-relative relocations are stored as word displacements – i.e., byte displacements shifted right two bits. The 30-bit word displacement (<<32_PCREL_S2>> – 32 bits, shifted 2) is used on the SPARC. (SPARC tools generally refer to this as <<WDISP30>>.) The signed 16-bit displacement is used on the MIPS, and the 23-bit displacement is used on the Alpha.
High 22 bits and low 10 bits of 32-bit value, placed into lower bits of the target word. These are used on the SPARC.
For systems that allocate a Global Pointer register, these are displacements off that register. These relocation types are handled specially, because the value the register will have is decided relatively late.
Reloc types used for i960/b.out.
SPARC ELF relocations. There is probably some overlap with other relocation types already defined.
I think these are specific to SPARC a.out (e.g., Sun 4).
SPARC64 relocations
SPARC little endian relocation
SPARC TLS relocations
SPU Relocations.
Alpha ECOFF and ELF relocations. Some of these treat the symbol or "addend" in some special way. For GPDISP_HI16 ("gpdisp") relocations, the symbol is ignored when writing; when reading, it will be the absolute section symbol. The addend is the displacement in bytes of the "lda" instruction from the "ldah" instruction (which is at the address of this reloc).
For GPDISP_LO16 ("ignore") relocations, the symbol is handled as with GPDISP_HI16 relocs. The addend is ignored when writing the relocations out, and is filled in with the file's GP value on reading, for convenience.
The ELF GPDISP relocation is exactly the same as the GPDISP_HI16 relocation except that there is no accompanying GPDISP_LO16 relocation.
The Alpha LITERAL/LITUSE relocs are produced by a symbol reference; the assembler turns it into a LDQ instruction to load the address of the symbol, and then fills in a register in the real instruction.
The LITERAL reloc, at the LDQ instruction, refers to the .lita section symbol. The addend is ignored when writing, but is filled in with the file's GP value on reading, for convenience, as with the GPDISP_LO16 reloc.
The ELF_LITERAL reloc is somewhere between 16_GOTOFF and GPDISP_LO16. It should refer to the symbol to be referenced, as with 16_GOTOFF, but it generates output not based on the position within the .got section, but relative to the GP value chosen for the file during the final link stage.
The LITUSE reloc, on the instruction using the loaded address, gives information to the linker that it might be able to use to optimize away some literal section references. The symbol is ignored (read as the absolute section symbol), and the "addend" indicates the type of instruction using the register: 1 - "memory" fmt insn 2 - byte-manipulation (byte offset reg) 3 - jsr (target of branch)
The HINT relocation indicates a value that should be filled into the "hint" field of a jmp/jsr/ret instruction, for possible branch- prediction logic which may be provided on some processors.
The LINKAGE relocation outputs a linkage pair in the object file, which is filled by the linker.
The CODEADDR relocation outputs a STO_CA in the object file, which is filled by the linker.
The GPREL_HI/LO relocations together form a 32-bit offset from the GP register.
Like BFD_RELOC_23_PCREL_S2, except that the source and target must share a common GP, and the target address is adjusted for STO_ALPHA_STD_GPLOAD.
Alpha thread-local storage relocations.
Bits 27..2 of the relocation address shifted right 2 bits; simple reloc otherwise.
The MIPS16 jump instruction.
MIPS16 GP relative reloc.
High 16 bits of 32-bit value; simple reloc.
High 16 bits of 32-bit value but the low 16 bits will be sign extended and added to form the final result. If the low 16 bits form a negative number, we need to add one to the high value to compensate for the borrow when the low bits are added.
Low 16 bits.
High 16 bits of 32-bit pc-relative value
High 16 bits of 32-bit pc-relative value, adjusted
Low 16 bits of pc-relative value
Equivalent of BFD_RELOC_MIPS_*, but with the MIPS16 layout of 16-bit immediate fields
MIPS16 high 16 bits of 32-bit value.
MIPS16 high 16 bits of 32-bit value but the low 16 bits will be sign extended and added to form the final result. If the low 16 bits form a negative number, we need to add one to the high value to compensate for the borrow when the low bits are added.
MIPS16 low 16 bits.
Relocation against a MIPS literal section.
MIPS ELF relocations.
MIPS ELF relocations (VxWorks and PLT extensions).
Fujitsu Frv Relocations.
This is a 24bit GOT-relative reloc for the mn10300.
This is a 32bit GOT-relative reloc for the mn10300, offset by two bytes in the instruction.
This is a 24bit GOT-relative reloc for the mn10300, offset by two bytes in the instruction.
This is a 16bit GOT-relative reloc for the mn10300, offset by two bytes in the instruction.
Copy symbol at runtime.
Create GOT entry.
Create PLT entry.
Adjust by program base.
Together with another reloc targeted at the same location, allows for a value that is the difference of two symbols in the same section.
The addend of this reloc is an alignment power that must be honoured at the offset's location, regardless of linker relaxation.
i386/elf relocations
x86-64/elf relocations
ns32k relocations
PDP11 relocations
Picojava relocs. Not all of these appear in object files.
Power(rs6000) and PowerPC relocations.
PowerPC and PowerPC64 thread-local storage relocations.
IBM 370/390 relocations
The type of reloc used to build a constructor table - at the moment probably a 32 bit wide absolute relocation, but the target can choose. It generally does map to one of the other relocation types.
ARM 26 bit pc-relative branch. The lowest two bits must be zero and are not stored in the instruction.
ARM 26 bit pc-relative branch. The lowest bit must be zero and is not stored in the instruction. The 2nd lowest bit comes from a 1 bit field in the instruction.
Thumb 22 bit pc-relative branch. The lowest bit must be zero and is not stored in the instruction. The 2nd lowest bit comes from a 1 bit field in the instruction.
ARM 26-bit pc-relative branch for an unconditional BL or BLX instruction.
ARM 26-bit pc-relative branch for B or conditional BL instruction.
Thumb 7-, 9-, 12-, 20-, 23-, and 25-bit pc-relative branches. The lowest bit must be zero and is not stored in the instruction. Note that the corresponding ELF R_ARM_THM_JUMPnn constant has an "nn" one smaller in all cases. Note further that BRANCH23 corresponds to R_ARM_THM_CALL.
12-bit immediate offset, used in ARM-format ldr and str instructions.
5-bit immediate offset, used in Thumb-format ldr and str instructions.
Pc-relative or absolute relocation depending on target. Used for entries in .init_array sections.
Read-only segment base relative address.
Data segment base relative address.
This reloc is used for references to RTTI data from exception handling tables. The actual definition depends on the target. It may be a pc-relative or some form of GOT-indirect relocation.
31-bit PC relative address.
Low and High halfword relocations for MOVW and MOVT instructions.
Relocations for setting up GOTs and PLTs for shared libraries.
ARM thread-local storage relocations.
ARM group relocations.
Annotation of BX instructions.
These relocs are only used within the ARM assembler. They are not (at present) written to any object files.
Renesas / SuperH SH relocs. Not all of these appear in object files.
ARC Cores relocs. ARC 22 bit pc-relative branch. The lowest two bits must be zero and are not stored in the instruction. The high 20 bits are installed in bits 26 through 7 of the instruction.
ARC 26 bit absolute branch. The lowest two bits must be zero and are not stored in the instruction. The high 24 bits are installed in bits 23 through 0.
ADI Blackfin 16 bit immediate absolute reloc.
ADI Blackfin 16 bit immediate absolute reloc higher 16 bits.
ADI Blackfin 'a' part of LSETUP.
ADI Blackfin.
ADI Blackfin 16 bit immediate absolute reloc lower 16 bits.
ADI Blackfin.
ADI Blackfin 'b' part of LSETUP.
ADI Blackfin.
ADI Blackfin Short jump, pcrel.
ADI Blackfin Call.x not implemented.
ADI Blackfin Long Jump pcrel.
ADI Blackfin FD-PIC relocations.
ADI Blackfin GOT relocation.
ADI Blackfin PLTPC relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
ADI Blackfin arithmetic relocation.
Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2 bits assumed to be 0.
Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2 bits assumed to be 0. This is the same as the previous reloc except it is in the left container, i.e., shifted left 15 bits.
This is an 18-bit reloc with the right 2 bits assumed to be 0.
This is an 18-bit reloc with the right 2 bits assumed to be 0.
Mitsubishi D30V relocs. This is a 6-bit absolute reloc.
This is a 6-bit pc-relative reloc with the right 3 bits assumed to be 0.
This is a 6-bit pc-relative reloc with the right 3 bits assumed to be 0. Same as the previous reloc but on the right side of the container.
This is a 12-bit absolute reloc with the right 3 bitsassumed to be 0.
This is a 12-bit pc-relative reloc with the right 3 bits assumed to be 0.
This is a 12-bit pc-relative reloc with the right 3 bits assumed to be 0. Same as the previous reloc but on the right side of the container.
This is an 18-bit absolute reloc with the right 3 bits assumed to be 0.
This is an 18-bit pc-relative reloc with the right 3 bits assumed to be 0.
This is an 18-bit pc-relative reloc with the right 3 bits assumed to be 0. Same as the previous reloc but on the right side of the container.
This is a 32-bit absolute reloc.
This is a 32-bit pc-relative reloc.
DLX relocs
DLX relocs
DLX relocs
Renesas M16C/M32C Relocations.
Renesas M32R (formerly Mitsubishi M32R) relocs. This is a 24 bit absolute address.
This is a 10-bit pc-relative reloc with the right 2 bits assumed to be 0.
This is an 18-bit reloc with the right 2 bits assumed to be 0.
This is a 26-bit reloc with the right 2 bits assumed to be 0.
This is a 16-bit reloc containing the high 16 bits of an address used when the lower 16 bits are treated as unsigned.
This is a 16-bit reloc containing the high 16 bits of an address used when the lower 16 bits are treated as signed.
This is a 16-bit reloc containing the lower 16 bits of an address.
This is a 16-bit reloc containing the small data area offset for use in add3, load, and store instructions.
For PIC.
This is a 9-bit reloc
This is a 22-bit reloc
This is a 16 bit offset from the short data area pointer.
This is a 16 bit offset (of which only 15 bits are used) from the short data area pointer.
This is a 16 bit offset from the zero data area pointer.
This is a 16 bit offset (of which only 15 bits are used) from the zero data area pointer.
This is an 8 bit offset (of which only 6 bits are used) from the tiny data area pointer.
This is an 8bit offset (of which only 7 bits are used) from the tiny data area pointer.
This is a 7 bit offset from the tiny data area pointer.
This is a 16 bit offset from the tiny data area pointer.
This is a 5 bit offset (of which only 4 bits are used) from the tiny data area pointer.
This is a 4 bit offset from the tiny data area pointer.
This is a 16 bit offset from the short data area pointer, with the bits placed non-contiguously in the instruction.
This is a 16 bit offset from the zero data area pointer, with the bits placed non-contiguously in the instruction.
This is a 6 bit offset from the call table base pointer.
This is a 16 bit offset from the call table base pointer.
Used for relaxing indirect function calls.
Used for relaxing indirect jumps.
Used to maintain alignment whilst relaxing.
This is a variation of BFD_RELOC_LO16 that can be used in v850e ld.bu instructions.
This is a 32bit pcrel reloc for the mn10300, offset by two bytes in the instruction.
This is a 16bit pcrel reloc for the mn10300, offset by two bytes in the instruction.
This is a 8bit DP reloc for the tms320c30, where the most significant 8 bits of a 24 bit word are placed into the least significant 8 bits of the opcode.
This is a 7bit reloc for the tms320c54x, where the least significant 7 bits of a 16 bit word are placed into the least significant 7 bits of the opcode.
This is a 9bit DP reloc for the tms320c54x, where the most significant 9 bits of a 16 bit word are placed into the least significant 9 bits of the opcode.
This is an extended address 23-bit reloc for the tms320c54x.
This is a 16-bit reloc for the tms320c54x, where the least significant 16 bits of a 23-bit extended address are placed into the opcode.
This is a reloc for the tms320c54x, where the most significant 7 bits of a 23-bit extended address are placed into the opcode.
This is a 48 bit reloc for the FR30 that stores 32 bits.
This is a 32 bit reloc for the FR30 that stores 20 bits split up into two sections.
This is a 16 bit reloc for the FR30 that stores a 6 bit word offset in 4 bits.
This is a 16 bit reloc for the FR30 that stores an 8 bit byte offset into 8 bits.
This is a 16 bit reloc for the FR30 that stores a 9 bit short offset into 8 bits.
This is a 16 bit reloc for the FR30 that stores a 10 bit word offset into 8 bits.
This is a 16 bit reloc for the FR30 that stores a 9 bit pc relative short offset into 8 bits.
This is a 16 bit reloc for the FR30 that stores a 12 bit pc relative short offset into 11 bits.
Motorola Mcore relocations.
Toshiba Media Processor Relocations.
These are relocations for the GETA instruction.
These are relocations for a conditional branch instruction.
These are relocations for the PUSHJ instruction.
These are relocations for the JMP instruction.
This is a relocation for a relative address as in a GETA instruction or a branch.
This is a relocation for a relative address as in a JMP instruction.
This is a relocation for an instruction field that may be a general register or a value 0..255.
This is a relocation for an instruction field that may be a general register.
This is a relocation for two instruction fields holding a register and an offset, the equivalent of the relocation.
This relocation is an assertion that the expression is not allocated as a global register. It does not modify contents.
This is a 16 bit reloc for the AVR that stores 8 bit pc relative short offset into 7 bits.
This is a 16 bit reloc for the AVR that stores 13 bit pc relative short offset into 12 bits.
This is a 16 bit reloc for the AVR that stores 17 bit value (usually program memory address) into 16 bits.
This is a 16 bit reloc for the AVR that stores 8 bit value (usually data memory address) into 8 bit immediate value of LDI insn.
This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 bit of data memory address) into 8 bit immediate value of LDI insn.
This is a 16 bit reloc for the AVR that stores 8 bit value (most high 8 bit of program memory address) into 8 bit immediate value of LDI insn.
This is a 16 bit reloc for the AVR that stores 8 bit value (most high 8 bit of 32 bit value) into 8 bit immediate value of LDI insn.
This is a 16 bit reloc for the AVR that stores negated 8 bit value (usually data memory address) into 8 bit immediate value of SUBI insn.
This is a 16 bit reloc for the AVR that stores negated 8 bit value (high 8 bit of data memory address) into 8 bit immediate value of SUBI insn.
This is a 16 bit reloc for the AVR that stores negated 8 bit value (most high 8 bit of program memory address) into 8 bit immediate value of LDI or SUBI insn.
This is a 16 bit reloc for the AVR that stores negated 8 bit value (msb of 32 bit value) into 8 bit immediate value of LDI insn.
This is a 16 bit reloc for the AVR that stores 8 bit value (usually command address) into 8 bit immediate value of LDI insn.
This is a 16 bit reloc for the AVR that stores 8 bit value (command address) into 8 bit immediate value of LDI insn. If the address is beyond the 128k boundary, the linker inserts a jump stub for this reloc in the lower 128k.
This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 bit of command address) into 8 bit immediate value of LDI insn.
This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 bit of command address) into 8 bit immediate value of LDI insn. If the address is beyond the 128k boundary, the linker inserts a jump stub for this reloc below 128k.
This is a 16 bit reloc for the AVR that stores 8 bit value (most high 8 bit of command address) into 8 bit immediate value of LDI insn.
This is a 16 bit reloc for the AVR that stores negated 8 bit value (usually command address) into 8 bit immediate value of SUBI insn.
This is a 16 bit reloc for the AVR that stores negated 8 bit value (high 8 bit of 16 bit command address) into 8 bit immediate value of SUBI insn.
This is a 16 bit reloc for the AVR that stores negated 8 bit value (high 6 bit of 22 bit command address) into 8 bit immediate value of SUBI insn.
This is a 32 bit reloc for the AVR that stores 23 bit value into 22 bits.
This is a 16 bit reloc for the AVR that stores all needed bits for absolute addressing with ldi with overflow check to linktime
This is a 6 bit reloc for the AVR that stores offset for ldd/std instructions
This is a 6 bit reloc for the AVR that stores offset for adiw/sbiw instructions
Direct 12 bit.
12 bit GOT offset.
32 bit PC relative PLT address.
Copy symbol at runtime.
Create GOT entry.
Create PLT entry.
Adjust by program base.
32 bit PC relative offset to GOT.
16 bit GOT offset.
PC relative 16 bit shifted by 1.
16 bit PC rel. PLT shifted by 1.
PC relative 32 bit shifted by 1.
32 bit PC rel. PLT shifted by 1.
32 bit PC rel. GOT shifted by 1.
64 bit GOT offset.
64 bit PC relative PLT address.
32 bit rel. offset to GOT entry.
64 bit offset to GOT.
12-bit offset to symbol-entry within GOT, with PLT handling.
16-bit offset to symbol-entry within GOT, with PLT handling.
32-bit offset to symbol-entry within GOT, with PLT handling.
64-bit offset to symbol-entry within GOT, with PLT handling.
32-bit rel. offset to symbol-entry within GOT, with PLT handling.
16-bit rel. offset from the GOT to a PLT entry.
32-bit rel. offset from the GOT to a PLT entry.
64-bit rel. offset from the GOT to a PLT entry.
s390 tls relocations.
Long displacement extension.
Score relocations
Low 16 bit for load/store
This is a 24-bit reloc with the right 1 bit assumed to be 0
This is a 19-bit reloc with the right 1 bit assumed to be 0
This is a 11-bit reloc with the right 1 bit assumed to be 0
This is a 8-bit reloc with the right 1 bit assumed to be 0
Undocumented Score relocs
Scenix IP2K - 9-bit register number / data address
Scenix IP2K - 4-bit register/data bank number
Scenix IP2K - low 13 bits of instruction word address
Scenix IP2K - high 3 bits of instruction word address
Scenix IP2K - ext/low/high 8 bits of data address
Scenix IP2K - low/high 8 bits of instruction word address
Scenix IP2K - even/odd PC modifier to modify snb pcl.0
Scenix IP2K - 16 bit word address in text section.
Scenix IP2K - 7-bit sp or dp offset
Scenix VPE4K coprocessor - data/insn-space addressing
These two relocations are used by the linker to determine which of the entries in a C++ virtual function table are actually used. When the –gc-sections option is given, the linker will zero out the entries that are not used, so that the code for those functions need not be included in the output.
VTABLE_INHERIT is a zero-space relocation used to describe to the linker the inheritance tree of a C++ virtual function table. The relocation's symbol should be the parent class' vtable, and the relocation should be located at the child vtable.
VTABLE_ENTRY is a zero-space relocation that describes the use of a virtual function table entry. The reloc's symbol should refer to the table of the class mentioned in the code. Off of that base, an offset describes the entry that is being used. For Rela hosts, this offset is stored in the reloc's addend. For Rel hosts, we are forced to put this offset in the reloc's section offset.
Intel IA64 Relocations.
Motorola 68HC11 reloc. This is the 8 bit high part of an absolute address.
Motorola 68HC11 reloc. This is the 8 bit low part of an absolute address.
Motorola 68HC11 reloc. This is the 3 bit of a value.
Motorola 68HC11 reloc. This reloc marks the beginning of a jump/call instruction. It is used for linker relaxation to correctly identify beginning of instruction and change some branches to use PC-relative addressing mode.
Motorola 68HC11 reloc. This reloc marks a group of several instructions that gcc generates and for which the linker relaxation pass can modify and/or remove some of them.
Motorola 68HC11 reloc. This is the 16-bit lower part of an address. It is used for 'call' instruction to specify the symbol address without any special transformation (due to memory bank window).
Motorola 68HC11 reloc. This is a 8-bit reloc that specifies the page number of an address. It is used by 'call' instruction to specify the page number of the symbol.
Motorola 68HC11 reloc. This is a 24-bit reloc that represents the address with a 16-bit value and a 8-bit page number. The symbol address is transformed to follow the 16K memory bank of 68HC12 (seen as mapped in the window).
Motorola 68HC12 reloc. This is the 5 bits of a value.
NS CR16C Relocations.
NS CR16 Relocations.
NS CRX Relocations.
These relocs are only used within the CRIS assembler. They are not (at present) written to any object files.
Relocs used in ELF shared libraries for CRIS.
32-bit offset to symbol-entry within GOT.
16-bit offset to symbol-entry within GOT.
32-bit offset to symbol-entry within GOT, with PLT handling.
16-bit offset to symbol-entry within GOT, with PLT handling.
32-bit offset to symbol, relative to GOT.
32-bit offset to symbol with PLT entry, relative to GOT.
32-bit offset to symbol with PLT entry, relative to this relocation.
Intel i860 Relocations.
OpenRISC Relocations.
H8 elf Relocations.
Sony Xstormy16 Relocations.
Self-describing complex relocations.
Infineon Relocations.
Relocations used by VAX ELF.
Morpho MT - 16 bit immediate relocation.
Morpho MT - Hi 16 bits of an address.
Morpho MT - Low 16 bits of an address.
Morpho MT - Used to tell the linker which vtable entries are used.
Morpho MT - Used to tell the linker which vtable entries are used.
Morpho MT - 8 bit immediate relocation.
msp430 specific relocation codes
IQ2000 Relocations.
Special Xtensa relocation used only by PLT entries in ELF shared objects to indicate that the runtime linker should set the value to one of its own internal functions or data structures.
Xtensa relocations for ELF shared objects.
Xtensa relocation used in ELF object files for symbols that may require PLT entries. Otherwise, this is just a generic 32-bit relocation.
Xtensa relocations to mark the difference of two local symbols. These are only needed to support linker relaxation and can be ignored when not relaxing. The field is set to the value of the difference assuming no relaxation. The relocation encodes the position of the first symbol so the linker can determine whether to adjust the field value.
Generic Xtensa relocations for instruction operands. Only the slot number is encoded in the relocation. The relocation applies to the last PC-relative immediate operand, or if there are no PC-relative immediates, to the last immediate operand.
Alternate Xtensa relocations. Only the slot is encoded in the relocation. The meaning of these relocations is opcode-specific.
Xtensa relocations for backward compatibility. These have all been replaced by BFD_RELOC_XTENSA_SLOT0_OP.
Xtensa relocation to mark that the assembler expanded the instructions from an original target. The expansion size is encoded in the reloc size.
Xtensa relocation to mark that the linker should simplify assembler-expanded instructions. This is commonly used internally by the linker after analysis of a BFD_RELOC_XTENSA_ASM_EXPAND.
Xtensa TLS relocations.
8 bit signed offset in (ix+d) or (iy+d).
DJNZ offset.
CALR offset.
4 bit value.
typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;
bfd_reloc_type_lookup
Synopsis
reloc_howto_type *bfd_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code); reloc_howto_type *bfd_reloc_name_lookup (bfd *abfd, const char *reloc_name);
Description
Return a pointer to a howto structure which, when
invoked, will perform the relocation code on data from the
architecture noted.
bfd_default_reloc_type_lookup
Synopsis
reloc_howto_type *bfd_default_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code);
Description
Provides a default relocation lookup routine for any architecture.
bfd_get_reloc_code_name
Synopsis
const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code);
Description
Provides a printable name for the supplied relocation code.
Useful mainly for printing error messages.
bfd_generic_relax_section
Synopsis
bfd_boolean bfd_generic_relax_section (bfd *abfd, asection *section, struct bfd_link_info *, bfd_boolean *);
Description
Provides default handling for relaxing for back ends which
don't do relaxing.
bfd_generic_gc_sections
Synopsis
bfd_boolean bfd_generic_gc_sections (bfd *, struct bfd_link_info *);
Description
Provides default handling for relaxing for back ends which
don't do section gc – i.e., does nothing.
bfd_generic_merge_sections
Synopsis
bfd_boolean bfd_generic_merge_sections (bfd *, struct bfd_link_info *);
Description
Provides default handling for SEC_MERGE section merging for back ends
which don't have SEC_MERGE support – i.e., does nothing.
bfd_generic_get_relocated_section_contents
Synopsis
bfd_byte *bfd_generic_get_relocated_section_contents (bfd *abfd, struct bfd_link_info *link_info, struct bfd_link_order *link_order, bfd_byte *data, bfd_boolean relocatable, asymbol **symbols);
Description
Provides default handling of relocation effort for back ends
which can't be bothered to do it efficiently.
The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.