1 This is bfd.info, produced by makeinfo version 4.0 from bfd.texinfo.
4 * Bfd: (bfd). The Binary File Descriptor library.
7 This file documents the BFD library.
9 Copyright (C) 1991, 2000 Free Software Foundation, Inc.
11 Permission is granted to copy, distribute and/or modify this document
12 under the terms of the GNU Free Documentation License, Version 1.1
13 or any later version published by the Free Software Foundation;
14 with no Invariant Sections, with no Front-Cover Texts, and with no
15 Back-Cover Texts. A copy of the license is included in the
16 section entitled "GNU Free Documentation License".
19 File: bfd.info, Node: typedef arelent, Next: howto manager, Prev: Relocations, Up: Relocations
24 This is the structure of a relocation entry:
27 typedef enum bfd_reloc_status
29 /* No errors detected */
32 /* The relocation was performed, but there was an overflow. */
35 /* The address to relocate was not within the section supplied. */
38 /* Used by special functions */
41 /* Unsupported relocation size requested. */
42 bfd_reloc_notsupported,
47 /* The symbol to relocate against was undefined. */
50 /* The relocation was performed, but may not be ok - presently
51 generated only when linking i960 coff files with i960 b.out
52 symbols. If this type is returned, the error_message argument
53 to bfd_perform_relocation will be set. */
56 bfd_reloc_status_type;
59 typedef struct reloc_cache_entry
61 /* A pointer into the canonical table of pointers */
62 struct symbol_cache_entry **sym_ptr_ptr;
64 /* offset in section */
65 bfd_size_type address;
67 /* addend for relocation value */
70 /* Pointer to how to perform the required relocation */
71 reloc_howto_type *howto;
75 Here is a description of each of the fields within an `arelent':
78 The symbol table pointer points to a pointer to the symbol
79 associated with the relocation request. It is the pointer into the
80 table returned by the back end's `get_symtab' action. *Note Symbols::.
81 The symbol is referenced through a pointer to a pointer so that tools
82 like the linker can fix up all the symbols of the same name by
83 modifying only one pointer. The relocation routine looks in the symbol
84 and uses the base of the section the symbol is attached to and the
85 value of the symbol as the initial relocation offset. If the symbol
86 pointer is zero, then the section provided is looked up.
89 The `address' field gives the offset in bytes from the base of the
90 section data which owns the relocation record to the first byte of
91 relocatable information. The actual data relocated will be relative to
92 this point; for example, a relocation type which modifies the bottom
93 two bytes of a four byte word would not touch the first byte pointed to
94 in a big endian world.
97 The `addend' is a value provided by the back end to be added (!) to
98 the relocation offset. Its interpretation is dependent upon the howto.
99 For example, on the 68k the code:
104 return foo[0x12345678];
107 Could be compiled into:
115 This could create a reloc pointing to `foo', but leave the offset in
116 the data, something like:
118 RELOCATION RECORDS FOR [.text]:
122 00000000 4e56 fffc ; linkw fp,#-4
123 00000004 1039 1234 5678 ; moveb @#12345678,d0
124 0000000a 49c0 ; extbl d0
125 0000000c 4e5e ; unlk fp
128 Using coff and an 88k, some instructions don't have enough space in
129 them to represent the full address range, and pointers have to be
130 loaded in two parts. So you'd get something like:
132 or.u r13,r0,hi16(_foo+0x12345678)
133 ld.b r2,r13,lo16(_foo+0x12345678)
136 This should create two relocs, both pointing to `_foo', and with
137 0x12340000 in their addend field. The data would consist of:
139 RELOCATION RECORDS FOR [.text]:
141 00000002 HVRT16 _foo+0x12340000
142 00000006 LVRT16 _foo+0x12340000
144 00000000 5da05678 ; or.u r13,r0,0x5678
145 00000004 1c4d5678 ; ld.b r2,r13,0x5678
146 00000008 f400c001 ; jmp r1
148 The relocation routine digs out the value from the data, adds it to
149 the addend to get the original offset, and then adds the value of
150 `_foo'. Note that all 32 bits have to be kept around somewhere, to cope
151 with carry from bit 15 to bit 16.
153 One further example is the sparc and the a.out format. The sparc has
154 a similar problem to the 88k, in that some instructions don't have room
155 for an entire offset, but on the sparc the parts are created in odd
156 sized lumps. The designers of the a.out format chose to not use the
157 data within the section for storing part of the offset; all the offset
158 is kept within the reloc. Anything in the data should be ignored.
161 sethi %hi(_foo+0x12345678),%g2
162 ldsb [%g2+%lo(_foo+0x12345678)],%i0
166 Both relocs contain a pointer to `foo', and the offsets contain junk.
168 RELOCATION RECORDS FOR [.text]:
170 00000004 HI22 _foo+0x12345678
171 00000008 LO10 _foo+0x12345678
173 00000000 9de3bf90 ; save %sp,-112,%sp
174 00000004 05000000 ; sethi %hi(_foo+0),%g2
175 00000008 f048a000 ; ldsb [%g2+%lo(_foo+0)],%i0
176 0000000c 81c7e008 ; ret
177 00000010 81e80000 ; restore
180 The `howto' field can be imagined as a relocation instruction. It is
181 a pointer to a structure which contains information on what to do with
182 all of the other information in the reloc record and data section. A
183 back end would normally have a relocation instruction set and turn
184 relocations into pointers to the correct structure on input - but it
185 would be possible to create each howto field on demand.
187 `enum complain_overflow'
188 ........................
190 Indicates what sort of overflow checking should be done when
191 performing a relocation.
194 enum complain_overflow
196 /* Do not complain on overflow. */
197 complain_overflow_dont,
199 /* Complain if the bitfield overflows, whether it is considered
200 as signed or unsigned. */
201 complain_overflow_bitfield,
203 /* Complain if the value overflows when considered as signed
205 complain_overflow_signed,
207 /* Complain if the value overflows when considered as an
209 complain_overflow_unsigned
215 The `reloc_howto_type' is a structure which contains all the
216 information that libbfd needs to know to tie up a back end's data.
218 struct symbol_cache_entry; /* Forward declaration */
220 struct reloc_howto_struct
222 /* The type field has mainly a documentary use - the back end can
223 do what it wants with it, though normally the back end's
224 external idea of what a reloc number is stored
225 in this field. For example, a PC relative word relocation
226 in a coff environment has the type 023 - because that's
227 what the outside world calls a R_PCRWORD reloc. */
230 /* The value the final relocation is shifted right by. This drops
231 unwanted data from the relocation. */
232 unsigned int rightshift;
234 /* The size of the item to be relocated. This is *not* a
235 power-of-two measure. To get the number of bytes operated
236 on by a type of relocation, use bfd_get_reloc_size. */
239 /* The number of bits in the item to be relocated. This is used
240 when doing overflow checking. */
241 unsigned int bitsize;
243 /* Notes that the relocation is relative to the location in the
244 data section of the addend. The relocation function will
245 subtract from the relocation value the address of the location
249 /* The bit position of the reloc value in the destination.
250 The relocated value is left shifted by this amount. */
253 /* What type of overflow error should be checked for when
255 enum complain_overflow complain_on_overflow;
257 /* If this field is non null, then the supplied function is
258 called rather than the normal function. This allows really
259 strange relocation methods to be accomodated (e.g., i960 callj
261 bfd_reloc_status_type (*special_function)
263 arelent *reloc_entry,
264 struct symbol_cache_entry *symbol,
266 asection *input_section,
268 char **error_message));
270 /* The textual name of the relocation type. */
273 /* Some formats record a relocation addend in the section contents
274 rather than with the relocation. For ELF formats this is the
275 distinction between USE_REL and USE_RELA (though the code checks
276 for USE_REL == 1/0). The value of this field is TRUE if the
277 addend is recorded with the section contents; when performing a
278 partial link (ld -r) the section contents (the data) will be
279 modified. The value of this field is FALSE if addends are
280 recorded with the relocation (in arelent.addend); when performing
281 a partial link the relocation will be modified.
282 All relocations for all ELF USE_RELA targets should set this field
283 to FALSE (values of TRUE should be looked on with suspicion).
284 However, the converse is not true: not all relocations of all ELF
285 USE_REL targets set this field to TRUE. Why this is so is peculiar
286 to each particular target. For relocs that aren't used in partial
287 links (e.g. GOT stuff) it doesn't matter what this is set to. */
288 boolean partial_inplace;
290 /* The src_mask selects which parts of the read in data
291 are to be used in the relocation sum. E.g., if this was an 8 bit
292 byte of data which we read and relocated, this would be
293 0x000000ff. When we have relocs which have an addend, such as
294 sun4 extended relocs, the value in the offset part of a
295 relocating field is garbage so we never use it. In this case
296 the mask would be 0x00000000. */
299 /* The dst_mask selects which parts of the instruction are replaced
300 into the instruction. In most cases src_mask == dst_mask,
301 except in the above special case, where dst_mask would be
302 0x000000ff, and src_mask would be 0x00000000. */
305 /* When some formats create PC relative instructions, they leave
306 the value of the pc of the place being relocated in the offset
307 slot of the instruction, so that a PC relative relocation can
308 be made just by adding in an ordinary offset (e.g., sun3 a.out).
309 Some formats leave the displacement part of an instruction
310 empty (e.g., m88k bcs); this flag signals the fact.*/
311 boolean pcrel_offset;
319 The HOWTO define is horrible and will go away.
320 #define HOWTO(C, R,S,B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC) \
321 {(unsigned)C,R,S,B, P, BI, O,SF,NAME,INPLACE,MASKSRC,MASKDST,PC}
324 And will be replaced with the totally magic way. But for the moment, we
325 are compatible, so do it this way.
326 #define NEWHOWTO( FUNCTION, NAME,SIZE,REL,IN) HOWTO(0,0,SIZE,0,REL,0,complain_overflow_dont,FUNCTION, NAME,false,0,0,IN)
329 This is used to fill in an empty howto entry in an array.
330 #define EMPTY_HOWTO(C) \
331 HOWTO((C),0,0,0,false,0,complain_overflow_dont,NULL,NULL,false,0,0,false)
334 Helper routine to turn a symbol into a relocation value.
335 #define HOWTO_PREPARE(relocation, symbol) \
337 if (symbol != (asymbol *)NULL) { \
338 if (bfd_is_com_section (symbol->section)) { \
342 relocation = symbol->value; \
351 unsigned int bfd_get_reloc_size (reloc_howto_type *);
353 For a reloc_howto_type that operates on a fixed number of bytes, this
354 returns the number of bytes operated on.
360 How relocs are tied together in an `asection':
361 typedef struct relent_chain {
363 struct relent_chain *next;
370 bfd_reloc_status_type
372 (enum complain_overflow how,
373 unsigned int bitsize,
374 unsigned int rightshift,
375 unsigned int addrsize,
378 Perform overflow checking on RELOCATION which has BITSIZE significant
379 bits and will be shifted right by RIGHTSHIFT bits, on a machine with
380 addresses containing ADDRSIZE significant bits. The result is either of
381 `bfd_reloc_ok' or `bfd_reloc_overflow'.
383 `bfd_perform_relocation'
384 ........................
387 bfd_reloc_status_type
388 bfd_perform_relocation
390 arelent *reloc_entry,
392 asection *input_section,
394 char **error_message);
396 If OUTPUT_BFD is supplied to this function, the generated image will be
397 relocatable; the relocations are copied to the output file after they
398 have been changed to reflect the new state of the world. There are two
399 ways of reflecting the results of partial linkage in an output file: by
400 modifying the output data in place, and by modifying the relocation
401 record. Some native formats (e.g., basic a.out and basic coff) have no
402 way of specifying an addend in the relocation type, so the addend has
403 to go in the output data. This is no big deal since in these formats
404 the output data slot will always be big enough for the addend. Complex
405 reloc types with addends were invented to solve just this problem. The
406 ERROR_MESSAGE argument is set to an error message if this return
407 `bfd_reloc_dangerous'.
409 `bfd_install_relocation'
410 ........................
413 bfd_reloc_status_type
414 bfd_install_relocation
416 arelent *reloc_entry,
417 PTR data, bfd_vma data_start,
418 asection *input_section,
419 char **error_message);
421 This looks remarkably like `bfd_perform_relocation', except it does not
422 expect that the section contents have been filled in. I.e., it's
423 suitable for use when creating, rather than applying a relocation.
425 For now, this function should be considered reserved for the
429 File: bfd.info, Node: howto manager, Prev: typedef arelent, Up: Relocations
434 When an application wants to create a relocation, but doesn't know
435 what the target machine might call it, it can find out by using this
438 `bfd_reloc_code_type'
439 .....................
442 The insides of a reloc code. The idea is that, eventually, there will
443 be one enumerator for every type of relocation we ever do. Pass one of
444 these values to `bfd_reloc_type_lookup', and it'll return a howto
447 This does mean that the application must determine the correct
448 enumerator value; you can't get a howto pointer from a random set of
451 Here are the possible values for `enum bfd_reloc_code_real':
460 Basic absolute relocations of N bits.
462 - : BFD_RELOC_64_PCREL
463 - : BFD_RELOC_32_PCREL
464 - : BFD_RELOC_24_PCREL
465 - : BFD_RELOC_16_PCREL
466 - : BFD_RELOC_12_PCREL
467 - : BFD_RELOC_8_PCREL
468 PC-relative relocations. Sometimes these are relative to the
469 address of the relocation itself; sometimes they are relative to
470 the start of the section containing the relocation. It depends on
473 The 24-bit relocation is used in some Intel 960 configurations.
475 - : BFD_RELOC_32_GOT_PCREL
476 - : BFD_RELOC_16_GOT_PCREL
477 - : BFD_RELOC_8_GOT_PCREL
478 - : BFD_RELOC_32_GOTOFF
479 - : BFD_RELOC_16_GOTOFF
480 - : BFD_RELOC_LO16_GOTOFF
481 - : BFD_RELOC_HI16_GOTOFF
482 - : BFD_RELOC_HI16_S_GOTOFF
483 - : BFD_RELOC_8_GOTOFF
484 - : BFD_RELOC_32_PLT_PCREL
485 - : BFD_RELOC_24_PLT_PCREL
486 - : BFD_RELOC_16_PLT_PCREL
487 - : BFD_RELOC_8_PLT_PCREL
488 - : BFD_RELOC_32_PLTOFF
489 - : BFD_RELOC_16_PLTOFF
490 - : BFD_RELOC_LO16_PLTOFF
491 - : BFD_RELOC_HI16_PLTOFF
492 - : BFD_RELOC_HI16_S_PLTOFF
493 - : BFD_RELOC_8_PLTOFF
496 - : BFD_RELOC_68K_GLOB_DAT
497 - : BFD_RELOC_68K_JMP_SLOT
498 - : BFD_RELOC_68K_RELATIVE
499 Relocations used by 68K ELF.
501 - : BFD_RELOC_32_BASEREL
502 - : BFD_RELOC_16_BASEREL
503 - : BFD_RELOC_LO16_BASEREL
504 - : BFD_RELOC_HI16_BASEREL
505 - : BFD_RELOC_HI16_S_BASEREL
506 - : BFD_RELOC_8_BASEREL
508 Linkage-table relative.
511 Absolute 8-bit relocation, but used to form an address like 0xFFnn.
513 - : BFD_RELOC_32_PCREL_S2
514 - : BFD_RELOC_16_PCREL_S2
515 - : BFD_RELOC_23_PCREL_S2
516 These PC-relative relocations are stored as word displacements -
517 i.e., byte displacements shifted right two bits. The 30-bit word
518 displacement (<<32_PCREL_S2>> - 32 bits, shifted 2) is used on the
519 SPARC. (SPARC tools generally refer to this as <<WDISP30>>.) The
520 signed 16-bit displacement is used on the MIPS, and the 23-bit
521 displacement is used on the Alpha.
525 High 22 bits and low 10 bits of 32-bit value, placed into lower
526 bits of the target word. These are used on the SPARC.
528 - : BFD_RELOC_GPREL16
529 - : BFD_RELOC_GPREL32
530 For systems that allocate a Global Pointer register, these are
531 displacements off that register. These relocation types are
532 handled specially, because the value the register will have is
533 decided relatively late.
535 - : BFD_RELOC_I960_CALLJ
536 Reloc types used for i960/b.out.
539 - : BFD_RELOC_SPARC_WDISP22
540 - : BFD_RELOC_SPARC22
541 - : BFD_RELOC_SPARC13
542 - : BFD_RELOC_SPARC_GOT10
543 - : BFD_RELOC_SPARC_GOT13
544 - : BFD_RELOC_SPARC_GOT22
545 - : BFD_RELOC_SPARC_PC10
546 - : BFD_RELOC_SPARC_PC22
547 - : BFD_RELOC_SPARC_WPLT30
548 - : BFD_RELOC_SPARC_COPY
549 - : BFD_RELOC_SPARC_GLOB_DAT
550 - : BFD_RELOC_SPARC_JMP_SLOT
551 - : BFD_RELOC_SPARC_RELATIVE
552 - : BFD_RELOC_SPARC_UA16
553 - : BFD_RELOC_SPARC_UA32
554 - : BFD_RELOC_SPARC_UA64
555 SPARC ELF relocations. There is probably some overlap with other
556 relocation types already defined.
558 - : BFD_RELOC_SPARC_BASE13
559 - : BFD_RELOC_SPARC_BASE22
560 I think these are specific to SPARC a.out (e.g., Sun 4).
562 - : BFD_RELOC_SPARC_64
563 - : BFD_RELOC_SPARC_10
564 - : BFD_RELOC_SPARC_11
565 - : BFD_RELOC_SPARC_OLO10
566 - : BFD_RELOC_SPARC_HH22
567 - : BFD_RELOC_SPARC_HM10
568 - : BFD_RELOC_SPARC_LM22
569 - : BFD_RELOC_SPARC_PC_HH22
570 - : BFD_RELOC_SPARC_PC_HM10
571 - : BFD_RELOC_SPARC_PC_LM22
572 - : BFD_RELOC_SPARC_WDISP16
573 - : BFD_RELOC_SPARC_WDISP19
574 - : BFD_RELOC_SPARC_7
575 - : BFD_RELOC_SPARC_6
576 - : BFD_RELOC_SPARC_5
577 - : BFD_RELOC_SPARC_DISP64
578 - : BFD_RELOC_SPARC_PLT64
579 - : BFD_RELOC_SPARC_HIX22
580 - : BFD_RELOC_SPARC_LOX10
581 - : BFD_RELOC_SPARC_H44
582 - : BFD_RELOC_SPARC_M44
583 - : BFD_RELOC_SPARC_L44
584 - : BFD_RELOC_SPARC_REGISTER
587 - : BFD_RELOC_SPARC_REV32
588 SPARC little endian relocation
590 - : BFD_RELOC_ALPHA_GPDISP_HI16
591 Alpha ECOFF and ELF relocations. Some of these treat the symbol or
592 "addend" in some special way. For GPDISP_HI16 ("gpdisp")
593 relocations, the symbol is ignored when writing; when reading, it
594 will be the absolute section symbol. The addend is the
595 displacement in bytes of the "lda" instruction from the "ldah"
596 instruction (which is at the address of this reloc).
598 - : BFD_RELOC_ALPHA_GPDISP_LO16
599 For GPDISP_LO16 ("ignore") relocations, the symbol is handled as
600 with GPDISP_HI16 relocs. The addend is ignored when writing the
601 relocations out, and is filled in with the file's GP value on
602 reading, for convenience.
604 - : BFD_RELOC_ALPHA_GPDISP
605 The ELF GPDISP relocation is exactly the same as the GPDISP_HI16
606 relocation except that there is no accompanying GPDISP_LO16
609 - : BFD_RELOC_ALPHA_LITERAL
610 - : BFD_RELOC_ALPHA_ELF_LITERAL
611 - : BFD_RELOC_ALPHA_LITUSE
612 The Alpha LITERAL/LITUSE relocs are produced by a symbol reference;
613 the assembler turns it into a LDQ instruction to load the address
614 of the symbol, and then fills in a register in the real
617 The LITERAL reloc, at the LDQ instruction, refers to the .lita
618 section symbol. The addend is ignored when writing, but is filled
619 in with the file's GP value on reading, for convenience, as with
620 the GPDISP_LO16 reloc.
622 The ELF_LITERAL reloc is somewhere between 16_GOTOFF and
623 GPDISP_LO16. It should refer to the symbol to be referenced, as
624 with 16_GOTOFF, but it generates output not based on the position
625 within the .got section, but relative to the GP value chosen for
626 the file during the final link stage.
628 The LITUSE reloc, on the instruction using the loaded address,
629 gives information to the linker that it might be able to use to
630 optimize away some literal section references. The symbol is
631 ignored (read as the absolute section symbol), and the "addend"
632 indicates the type of instruction using the register: 1 - "memory"
633 fmt insn 2 - byte-manipulation (byte offset reg) 3 - jsr (target
636 The GNU linker currently doesn't do any of this optimizing.
638 - : BFD_RELOC_ALPHA_USER_LITERAL
639 - : BFD_RELOC_ALPHA_USER_LITUSE_BASE
640 - : BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF
641 - : BFD_RELOC_ALPHA_USER_LITUSE_JSR
642 - : BFD_RELOC_ALPHA_USER_GPDISP
643 - : BFD_RELOC_ALPHA_USER_GPRELHIGH
644 - : BFD_RELOC_ALPHA_USER_GPRELLOW
645 The BFD_RELOC_ALPHA_USER_* relocations are used by the assembler to
646 process the explicit !<reloc>!sequence relocations, and are mapped
647 into the normal relocations at the end of processing.
649 - : BFD_RELOC_ALPHA_HINT
650 The HINT relocation indicates a value that should be filled into
651 the "hint" field of a jmp/jsr/ret instruction, for possible branch-
652 prediction logic which may be provided on some processors.
654 - : BFD_RELOC_ALPHA_LINKAGE
655 The LINKAGE relocation outputs a linkage pair in the object file,
656 which is filled by the linker.
658 - : BFD_RELOC_ALPHA_CODEADDR
659 The CODEADDR relocation outputs a STO_CA in the object file, which
660 is filled by the linker.
662 - : BFD_RELOC_MIPS_JMP
663 Bits 27..2 of the relocation address shifted right 2 bits; simple
666 - : BFD_RELOC_MIPS16_JMP
667 The MIPS16 jump instruction.
669 - : BFD_RELOC_MIPS16_GPREL
670 MIPS16 GP relative reloc.
673 High 16 bits of 32-bit value; simple reloc.
676 High 16 bits of 32-bit value but the low 16 bits will be sign
677 extended and added to form the final result. If the low 16 bits
678 form a negative number, we need to add one to the high value to
679 compensate for the borrow when the low bits are added.
684 - : BFD_RELOC_PCREL_HI16_S
685 Like BFD_RELOC_HI16_S, but PC relative.
687 - : BFD_RELOC_PCREL_LO16
688 Like BFD_RELOC_LO16, but PC relative.
690 - : BFD_RELOC_MIPS_GPREL
691 Relocation relative to the global pointer.
693 - : BFD_RELOC_MIPS_LITERAL
694 Relocation against a MIPS literal section.
696 - : BFD_RELOC_MIPS_GOT16
697 - : BFD_RELOC_MIPS_CALL16
698 - : BFD_RELOC_MIPS_GPREL32
699 - : BFD_RELOC_MIPS_GOT_HI16
700 - : BFD_RELOC_MIPS_GOT_LO16
701 - : BFD_RELOC_MIPS_CALL_HI16
702 - : BFD_RELOC_MIPS_CALL_LO16
703 - : BFD_RELOC_MIPS_SUB
704 - : BFD_RELOC_MIPS_GOT_PAGE
705 - : BFD_RELOC_MIPS_GOT_OFST
706 - : BFD_RELOC_MIPS_GOT_DISP
707 MIPS ELF relocations.
709 - : BFD_RELOC_386_GOT32
710 - : BFD_RELOC_386_PLT32
711 - : BFD_RELOC_386_COPY
712 - : BFD_RELOC_386_GLOB_DAT
713 - : BFD_RELOC_386_JUMP_SLOT
714 - : BFD_RELOC_386_RELATIVE
715 - : BFD_RELOC_386_GOTOFF
716 - : BFD_RELOC_386_GOTPC
719 - : BFD_RELOC_X86_64_GOT32
720 - : BFD_RELOC_X86_64_PLT32
721 - : BFD_RELOC_X86_64_COPY
722 - : BFD_RELOC_X86_64_GLOB_DAT
723 - : BFD_RELOC_X86_64_JUMP_SLOT
724 - : BFD_RELOC_X86_64_RELATIVE
725 - : BFD_RELOC_X86_64_GOTPCREL
726 - : BFD_RELOC_X86_64_32S
727 x86-64/elf relocations
729 - : BFD_RELOC_NS32K_IMM_8
730 - : BFD_RELOC_NS32K_IMM_16
731 - : BFD_RELOC_NS32K_IMM_32
732 - : BFD_RELOC_NS32K_IMM_8_PCREL
733 - : BFD_RELOC_NS32K_IMM_16_PCREL
734 - : BFD_RELOC_NS32K_IMM_32_PCREL
735 - : BFD_RELOC_NS32K_DISP_8
736 - : BFD_RELOC_NS32K_DISP_16
737 - : BFD_RELOC_NS32K_DISP_32
738 - : BFD_RELOC_NS32K_DISP_8_PCREL
739 - : BFD_RELOC_NS32K_DISP_16_PCREL
740 - : BFD_RELOC_NS32K_DISP_32_PCREL
743 - : BFD_RELOC_PJ_CODE_HI16
744 - : BFD_RELOC_PJ_CODE_LO16
745 - : BFD_RELOC_PJ_CODE_DIR16
746 - : BFD_RELOC_PJ_CODE_DIR32
747 - : BFD_RELOC_PJ_CODE_REL16
748 - : BFD_RELOC_PJ_CODE_REL32
749 Picojava relocs. Not all of these appear in object files.
751 - : BFD_RELOC_PPC_B26
752 - : BFD_RELOC_PPC_BA26
753 - : BFD_RELOC_PPC_TOC16
754 - : BFD_RELOC_PPC_B16
755 - : BFD_RELOC_PPC_B16_BRTAKEN
756 - : BFD_RELOC_PPC_B16_BRNTAKEN
757 - : BFD_RELOC_PPC_BA16
758 - : BFD_RELOC_PPC_BA16_BRTAKEN
759 - : BFD_RELOC_PPC_BA16_BRNTAKEN
760 - : BFD_RELOC_PPC_COPY
761 - : BFD_RELOC_PPC_GLOB_DAT
762 - : BFD_RELOC_PPC_JMP_SLOT
763 - : BFD_RELOC_PPC_RELATIVE
764 - : BFD_RELOC_PPC_LOCAL24PC
765 - : BFD_RELOC_PPC_EMB_NADDR32
766 - : BFD_RELOC_PPC_EMB_NADDR16
767 - : BFD_RELOC_PPC_EMB_NADDR16_LO
768 - : BFD_RELOC_PPC_EMB_NADDR16_HI
769 - : BFD_RELOC_PPC_EMB_NADDR16_HA
770 - : BFD_RELOC_PPC_EMB_SDAI16
771 - : BFD_RELOC_PPC_EMB_SDA2I16
772 - : BFD_RELOC_PPC_EMB_SDA2REL
773 - : BFD_RELOC_PPC_EMB_SDA21
774 - : BFD_RELOC_PPC_EMB_MRKREF
775 - : BFD_RELOC_PPC_EMB_RELSEC16
776 - : BFD_RELOC_PPC_EMB_RELST_LO
777 - : BFD_RELOC_PPC_EMB_RELST_HI
778 - : BFD_RELOC_PPC_EMB_RELST_HA
779 - : BFD_RELOC_PPC_EMB_BIT_FLD
780 - : BFD_RELOC_PPC_EMB_RELSDA
781 Power(rs6000) and PowerPC relocations.
783 - : BFD_RELOC_I370_D12
784 IBM 370/390 relocations
787 The type of reloc used to build a contructor table - at the moment
788 probably a 32 bit wide absolute relocation, but the target can
789 choose. It generally does map to one of the other relocation
792 - : BFD_RELOC_ARM_PCREL_BRANCH
793 ARM 26 bit pc-relative branch. The lowest two bits must be zero
794 and are not stored in the instruction.
796 - : BFD_RELOC_ARM_PCREL_BLX
797 ARM 26 bit pc-relative branch. The lowest bit must be zero and is
798 not stored in the instruction. The 2nd lowest bit comes from a 1
799 bit field in the instruction.
801 - : BFD_RELOC_THUMB_PCREL_BLX
802 Thumb 22 bit pc-relative branch. The lowest bit must be zero and
803 is not stored in the instruction. The 2nd lowest bit comes from a
804 1 bit field in the instruction.
806 - : BFD_RELOC_ARM_IMMEDIATE
807 - : BFD_RELOC_ARM_ADRL_IMMEDIATE
808 - : BFD_RELOC_ARM_OFFSET_IMM
809 - : BFD_RELOC_ARM_SHIFT_IMM
810 - : BFD_RELOC_ARM_SWI
811 - : BFD_RELOC_ARM_MULTI
812 - : BFD_RELOC_ARM_CP_OFF_IMM
813 - : BFD_RELOC_ARM_ADR_IMM
814 - : BFD_RELOC_ARM_LDR_IMM
815 - : BFD_RELOC_ARM_LITERAL
816 - : BFD_RELOC_ARM_IN_POOL
817 - : BFD_RELOC_ARM_OFFSET_IMM8
818 - : BFD_RELOC_ARM_HWLITERAL
819 - : BFD_RELOC_ARM_THUMB_ADD
820 - : BFD_RELOC_ARM_THUMB_IMM
821 - : BFD_RELOC_ARM_THUMB_SHIFT
822 - : BFD_RELOC_ARM_THUMB_OFFSET
823 - : BFD_RELOC_ARM_GOT12
824 - : BFD_RELOC_ARM_GOT32
825 - : BFD_RELOC_ARM_JUMP_SLOT
826 - : BFD_RELOC_ARM_COPY
827 - : BFD_RELOC_ARM_GLOB_DAT
828 - : BFD_RELOC_ARM_PLT32
829 - : BFD_RELOC_ARM_RELATIVE
830 - : BFD_RELOC_ARM_GOTOFF
831 - : BFD_RELOC_ARM_GOTPC
832 These relocs are only used within the ARM assembler. They are not
833 (at present) written to any object files.
835 - : BFD_RELOC_SH_PCDISP8BY2
836 - : BFD_RELOC_SH_PCDISP12BY2
837 - : BFD_RELOC_SH_IMM4
838 - : BFD_RELOC_SH_IMM4BY2
839 - : BFD_RELOC_SH_IMM4BY4
840 - : BFD_RELOC_SH_IMM8
841 - : BFD_RELOC_SH_IMM8BY2
842 - : BFD_RELOC_SH_IMM8BY4
843 - : BFD_RELOC_SH_PCRELIMM8BY2
844 - : BFD_RELOC_SH_PCRELIMM8BY4
845 - : BFD_RELOC_SH_SWITCH16
846 - : BFD_RELOC_SH_SWITCH32
847 - : BFD_RELOC_SH_USES
848 - : BFD_RELOC_SH_COUNT
849 - : BFD_RELOC_SH_ALIGN
850 - : BFD_RELOC_SH_CODE
851 - : BFD_RELOC_SH_DATA
852 - : BFD_RELOC_SH_LABEL
853 - : BFD_RELOC_SH_LOOP_START
854 - : BFD_RELOC_SH_LOOP_END
855 - : BFD_RELOC_SH_COPY
856 - : BFD_RELOC_SH_GLOB_DAT
857 - : BFD_RELOC_SH_JMP_SLOT
858 - : BFD_RELOC_SH_RELATIVE
859 - : BFD_RELOC_SH_GOTPC
860 Hitachi SH relocs. Not all of these appear in object files.
862 - : BFD_RELOC_THUMB_PCREL_BRANCH9
863 - : BFD_RELOC_THUMB_PCREL_BRANCH12
864 - : BFD_RELOC_THUMB_PCREL_BRANCH23
865 Thumb 23-, 12- and 9-bit pc-relative branches. The lowest bit must
866 be zero and is not stored in the instruction.
868 - : BFD_RELOC_ARC_B22_PCREL
869 ARC Cores relocs. ARC 22 bit pc-relative branch. The lowest two
870 bits must be zero and are not stored in the instruction. The high
871 20 bits are installed in bits 26 through 7 of the instruction.
873 - : BFD_RELOC_ARC_B26
874 ARC 26 bit absolute branch. The lowest two bits must be zero and
875 are not stored in the instruction. The high 24 bits are installed
876 in bits 23 through 0.
878 - : BFD_RELOC_D10V_10_PCREL_R
879 Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2
880 bits assumed to be 0.
882 - : BFD_RELOC_D10V_10_PCREL_L
883 Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2
884 bits assumed to be 0. This is the same as the previous reloc
885 except it is in the left container, i.e., shifted left 15 bits.
887 - : BFD_RELOC_D10V_18
888 This is an 18-bit reloc with the right 2 bits assumed to be 0.
890 - : BFD_RELOC_D10V_18_PCREL
891 This is an 18-bit reloc with the right 2 bits assumed to be 0.
894 Mitsubishi D30V relocs. This is a 6-bit absolute reloc.
896 - : BFD_RELOC_D30V_9_PCREL
897 This is a 6-bit pc-relative reloc with the right 3 bits assumed to
900 - : BFD_RELOC_D30V_9_PCREL_R
901 This is a 6-bit pc-relative reloc with the right 3 bits assumed to
902 be 0. Same as the previous reloc but on the right side of the
905 - : BFD_RELOC_D30V_15
906 This is a 12-bit absolute reloc with the right 3 bitsassumed to be
909 - : BFD_RELOC_D30V_15_PCREL
910 This is a 12-bit pc-relative reloc with the right 3 bits assumed
913 - : BFD_RELOC_D30V_15_PCREL_R
914 This is a 12-bit pc-relative reloc with the right 3 bits assumed
915 to be 0. Same as the previous reloc but on the right side of the
918 - : BFD_RELOC_D30V_21
919 This is an 18-bit absolute reloc with the right 3 bits assumed to
922 - : BFD_RELOC_D30V_21_PCREL
923 This is an 18-bit pc-relative reloc with the right 3 bits assumed
926 - : BFD_RELOC_D30V_21_PCREL_R
927 This is an 18-bit pc-relative reloc with the right 3 bits assumed
928 to be 0. Same as the previous reloc but on the right side of the
931 - : BFD_RELOC_D30V_32
932 This is a 32-bit absolute reloc.
934 - : BFD_RELOC_D30V_32_PCREL
935 This is a 32-bit pc-relative reloc.
937 - : BFD_RELOC_M32R_24
938 Mitsubishi M32R relocs. This is a 24 bit absolute address.
940 - : BFD_RELOC_M32R_10_PCREL
941 This is a 10-bit pc-relative reloc with the right 2 bits assumed
944 - : BFD_RELOC_M32R_18_PCREL
945 This is an 18-bit reloc with the right 2 bits assumed to be 0.
947 - : BFD_RELOC_M32R_26_PCREL
948 This is a 26-bit reloc with the right 2 bits assumed to be 0.
950 - : BFD_RELOC_M32R_HI16_ULO
951 This is a 16-bit reloc containing the high 16 bits of an address
952 used when the lower 16 bits are treated as unsigned.
954 - : BFD_RELOC_M32R_HI16_SLO
955 This is a 16-bit reloc containing the high 16 bits of an address
956 used when the lower 16 bits are treated as signed.
958 - : BFD_RELOC_M32R_LO16
959 This is a 16-bit reloc containing the lower 16 bits of an address.
961 - : BFD_RELOC_M32R_SDA16
962 This is a 16-bit reloc containing the small data area offset for
963 use in add3, load, and store instructions.
965 - : BFD_RELOC_V850_9_PCREL
966 This is a 9-bit reloc
968 - : BFD_RELOC_V850_22_PCREL
969 This is a 22-bit reloc
971 - : BFD_RELOC_V850_SDA_16_16_OFFSET
972 This is a 16 bit offset from the short data area pointer.
974 - : BFD_RELOC_V850_SDA_15_16_OFFSET
975 This is a 16 bit offset (of which only 15 bits are used) from the
976 short data area pointer.
978 - : BFD_RELOC_V850_ZDA_16_16_OFFSET
979 This is a 16 bit offset from the zero data area pointer.
981 - : BFD_RELOC_V850_ZDA_15_16_OFFSET
982 This is a 16 bit offset (of which only 15 bits are used) from the
983 zero data area pointer.
985 - : BFD_RELOC_V850_TDA_6_8_OFFSET
986 This is an 8 bit offset (of which only 6 bits are used) from the
987 tiny data area pointer.
989 - : BFD_RELOC_V850_TDA_7_8_OFFSET
990 This is an 8bit offset (of which only 7 bits are used) from the
991 tiny data area pointer.
993 - : BFD_RELOC_V850_TDA_7_7_OFFSET
994 This is a 7 bit offset from the tiny data area pointer.
996 - : BFD_RELOC_V850_TDA_16_16_OFFSET
997 This is a 16 bit offset from the tiny data area pointer.
999 - : BFD_RELOC_V850_TDA_4_5_OFFSET
1000 This is a 5 bit offset (of which only 4 bits are used) from the
1001 tiny data area pointer.
1003 - : BFD_RELOC_V850_TDA_4_4_OFFSET
1004 This is a 4 bit offset from the tiny data area pointer.
1006 - : BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET
1007 This is a 16 bit offset from the short data area pointer, with the
1008 bits placed non-contigously in the instruction.
1010 - : BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET
1011 This is a 16 bit offset from the zero data area pointer, with the
1012 bits placed non-contigously in the instruction.
1014 - : BFD_RELOC_V850_CALLT_6_7_OFFSET
1015 This is a 6 bit offset from the call table base pointer.
1017 - : BFD_RELOC_V850_CALLT_16_16_OFFSET
1018 This is a 16 bit offset from the call table base pointer.
1020 - : BFD_RELOC_MN10300_32_PCREL
1021 This is a 32bit pcrel reloc for the mn10300, offset by two bytes
1024 - : BFD_RELOC_MN10300_16_PCREL
1025 This is a 16bit pcrel reloc for the mn10300, offset by two bytes
1028 - : BFD_RELOC_TIC30_LDP
1029 This is a 8bit DP reloc for the tms320c30, where the most
1030 significant 8 bits of a 24 bit word are placed into the least
1031 significant 8 bits of the opcode.
1033 - : BFD_RELOC_TIC54X_PARTLS7
1034 This is a 7bit reloc for the tms320c54x, where the least
1035 significant 7 bits of a 16 bit word are placed into the least
1036 significant 7 bits of the opcode.
1038 - : BFD_RELOC_TIC54X_PARTMS9
1039 This is a 9bit DP reloc for the tms320c54x, where the most
1040 significant 9 bits of a 16 bit word are placed into the least
1041 significant 9 bits of the opcode.
1043 - : BFD_RELOC_TIC54X_23
1044 This is an extended address 23-bit reloc for the tms320c54x.
1046 - : BFD_RELOC_TIC54X_16_OF_23
1047 This is a 16-bit reloc for the tms320c54x, where the least
1048 significant 16 bits of a 23-bit extended address are placed into
1051 - : BFD_RELOC_TIC54X_MS7_OF_23
1052 This is a reloc for the tms320c54x, where the most significant 7
1053 bits of a 23-bit extended address are placed into the opcode.
1055 - : BFD_RELOC_FR30_48
1056 This is a 48 bit reloc for the FR30 that stores 32 bits.
1058 - : BFD_RELOC_FR30_20
1059 This is a 32 bit reloc for the FR30 that stores 20 bits split up
1062 - : BFD_RELOC_FR30_6_IN_4
1063 This is a 16 bit reloc for the FR30 that stores a 6 bit word
1066 - : BFD_RELOC_FR30_8_IN_8
1067 This is a 16 bit reloc for the FR30 that stores an 8 bit byte
1070 - : BFD_RELOC_FR30_9_IN_8
1071 This is a 16 bit reloc for the FR30 that stores a 9 bit short
1074 - : BFD_RELOC_FR30_10_IN_8
1075 This is a 16 bit reloc for the FR30 that stores a 10 bit word
1078 - : BFD_RELOC_FR30_9_PCREL
1079 This is a 16 bit reloc for the FR30 that stores a 9 bit pc relative
1080 short offset into 8 bits.
1082 - : BFD_RELOC_FR30_12_PCREL
1083 This is a 16 bit reloc for the FR30 that stores a 12 bit pc
1084 relative short offset into 11 bits.
1086 - : BFD_RELOC_MCORE_PCREL_IMM8BY4
1087 - : BFD_RELOC_MCORE_PCREL_IMM11BY2
1088 - : BFD_RELOC_MCORE_PCREL_IMM4BY2
1089 - : BFD_RELOC_MCORE_PCREL_32
1090 - : BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2
1091 - : BFD_RELOC_MCORE_RVA
1092 Motorola Mcore relocations.
1094 - : BFD_RELOC_AVR_7_PCREL
1095 This is a 16 bit reloc for the AVR that stores 8 bit pc relative
1096 short offset into 7 bits.
1098 - : BFD_RELOC_AVR_13_PCREL
1099 This is a 16 bit reloc for the AVR that stores 13 bit pc relative
1100 short offset into 12 bits.
1102 - : BFD_RELOC_AVR_16_PM
1103 This is a 16 bit reloc for the AVR that stores 17 bit value
1104 (usually program memory address) into 16 bits.
1106 - : BFD_RELOC_AVR_LO8_LDI
1107 This is a 16 bit reloc for the AVR that stores 8 bit value (usually
1108 data memory address) into 8 bit immediate value of LDI insn.
1110 - : BFD_RELOC_AVR_HI8_LDI
1111 This is a 16 bit reloc for the AVR that stores 8 bit value (high 8
1112 bit of data memory address) into 8 bit immediate value of LDI insn.
1114 - : BFD_RELOC_AVR_HH8_LDI
1115 This is a 16 bit reloc for the AVR that stores 8 bit value (most
1116 high 8 bit of program memory address) into 8 bit immediate value
1119 - : BFD_RELOC_AVR_LO8_LDI_NEG
1120 This is a 16 bit reloc for the AVR that stores negated 8 bit value
1121 (usually data memory address) into 8 bit immediate value of SUBI
1124 - : BFD_RELOC_AVR_HI8_LDI_NEG
1125 This is a 16 bit reloc for the AVR that stores negated 8 bit value
1126 (high 8 bit of data memory address) into 8 bit immediate value of
1129 - : BFD_RELOC_AVR_HH8_LDI_NEG
1130 This is a 16 bit reloc for the AVR that stores negated 8 bit value
1131 (most high 8 bit of program memory address) into 8 bit immediate
1132 value of LDI or SUBI insn.
1134 - : BFD_RELOC_AVR_LO8_LDI_PM
1135 This is a 16 bit reloc for the AVR that stores 8 bit value (usually
1136 command address) into 8 bit immediate value of LDI insn.
1138 - : BFD_RELOC_AVR_HI8_LDI_PM
1139 This is a 16 bit reloc for the AVR that stores 8 bit value (high 8
1140 bit of command address) into 8 bit immediate value of LDI insn.
1142 - : BFD_RELOC_AVR_HH8_LDI_PM
1143 This is a 16 bit reloc for the AVR that stores 8 bit value (most
1144 high 8 bit of command address) into 8 bit immediate value of LDI
1147 - : BFD_RELOC_AVR_LO8_LDI_PM_NEG
1148 This is a 16 bit reloc for the AVR that stores negated 8 bit value
1149 (usually command address) into 8 bit immediate value of SUBI insn.
1151 - : BFD_RELOC_AVR_HI8_LDI_PM_NEG
1152 This is a 16 bit reloc for the AVR that stores negated 8 bit value
1153 (high 8 bit of 16 bit command address) into 8 bit immediate value
1156 - : BFD_RELOC_AVR_HH8_LDI_PM_NEG
1157 This is a 16 bit reloc for the AVR that stores negated 8 bit value
1158 (high 6 bit of 22 bit command address) into 8 bit immediate value
1161 - : BFD_RELOC_AVR_CALL
1162 This is a 32 bit reloc for the AVR that stores 23 bit value into
1165 - : BFD_RELOC_VTABLE_INHERIT
1166 - : BFD_RELOC_VTABLE_ENTRY
1167 These two relocations are used by the linker to determine which of
1168 the entries in a C++ virtual function table are actually used.
1169 When the -gc-sections option is given, the linker will zero out
1170 the entries that are not used, so that the code for those
1171 functions need not be included in the output.
1173 VTABLE_INHERIT is a zero-space relocation used to describe to the
1174 linker the inheritence tree of a C++ virtual function table. The
1175 relocation's symbol should be the parent class' vtable, and the
1176 relocation should be located at the child vtable.
1178 VTABLE_ENTRY is a zero-space relocation that describes the use of a
1179 virtual function table entry. The reloc's symbol should refer to
1180 the table of the class mentioned in the code. Off of that base,
1181 an offset describes the entry that is being used. For Rela hosts,
1182 this offset is stored in the reloc's addend. For Rel hosts, we
1183 are forced to put this offset in the reloc's section offset.
1185 - : BFD_RELOC_IA64_IMM14
1186 - : BFD_RELOC_IA64_IMM22
1187 - : BFD_RELOC_IA64_IMM64
1188 - : BFD_RELOC_IA64_DIR32MSB
1189 - : BFD_RELOC_IA64_DIR32LSB
1190 - : BFD_RELOC_IA64_DIR64MSB
1191 - : BFD_RELOC_IA64_DIR64LSB
1192 - : BFD_RELOC_IA64_GPREL22
1193 - : BFD_RELOC_IA64_GPREL64I
1194 - : BFD_RELOC_IA64_GPREL32MSB
1195 - : BFD_RELOC_IA64_GPREL32LSB
1196 - : BFD_RELOC_IA64_GPREL64MSB
1197 - : BFD_RELOC_IA64_GPREL64LSB
1198 - : BFD_RELOC_IA64_LTOFF22
1199 - : BFD_RELOC_IA64_LTOFF64I
1200 - : BFD_RELOC_IA64_PLTOFF22
1201 - : BFD_RELOC_IA64_PLTOFF64I
1202 - : BFD_RELOC_IA64_PLTOFF64MSB
1203 - : BFD_RELOC_IA64_PLTOFF64LSB
1204 - : BFD_RELOC_IA64_FPTR64I
1205 - : BFD_RELOC_IA64_FPTR32MSB
1206 - : BFD_RELOC_IA64_FPTR32LSB
1207 - : BFD_RELOC_IA64_FPTR64MSB
1208 - : BFD_RELOC_IA64_FPTR64LSB
1209 - : BFD_RELOC_IA64_PCREL21B
1210 - : BFD_RELOC_IA64_PCREL21BI
1211 - : BFD_RELOC_IA64_PCREL21M
1212 - : BFD_RELOC_IA64_PCREL21F
1213 - : BFD_RELOC_IA64_PCREL22
1214 - : BFD_RELOC_IA64_PCREL60B
1215 - : BFD_RELOC_IA64_PCREL64I
1216 - : BFD_RELOC_IA64_PCREL32MSB
1217 - : BFD_RELOC_IA64_PCREL32LSB
1218 - : BFD_RELOC_IA64_PCREL64MSB
1219 - : BFD_RELOC_IA64_PCREL64LSB
1220 - : BFD_RELOC_IA64_LTOFF_FPTR22
1221 - : BFD_RELOC_IA64_LTOFF_FPTR64I
1222 - : BFD_RELOC_IA64_LTOFF_FPTR64MSB
1223 - : BFD_RELOC_IA64_LTOFF_FPTR64LSB
1224 - : BFD_RELOC_IA64_SEGREL32MSB
1225 - : BFD_RELOC_IA64_SEGREL32LSB
1226 - : BFD_RELOC_IA64_SEGREL64MSB
1227 - : BFD_RELOC_IA64_SEGREL64LSB
1228 - : BFD_RELOC_IA64_SECREL32MSB
1229 - : BFD_RELOC_IA64_SECREL32LSB
1230 - : BFD_RELOC_IA64_SECREL64MSB
1231 - : BFD_RELOC_IA64_SECREL64LSB
1232 - : BFD_RELOC_IA64_REL32MSB
1233 - : BFD_RELOC_IA64_REL32LSB
1234 - : BFD_RELOC_IA64_REL64MSB
1235 - : BFD_RELOC_IA64_REL64LSB
1236 - : BFD_RELOC_IA64_LTV32MSB
1237 - : BFD_RELOC_IA64_LTV32LSB
1238 - : BFD_RELOC_IA64_LTV64MSB
1239 - : BFD_RELOC_IA64_LTV64LSB
1240 - : BFD_RELOC_IA64_IPLTMSB
1241 - : BFD_RELOC_IA64_IPLTLSB
1242 - : BFD_RELOC_IA64_COPY
1243 - : BFD_RELOC_IA64_TPREL22
1244 - : BFD_RELOC_IA64_TPREL64MSB
1245 - : BFD_RELOC_IA64_TPREL64LSB
1246 - : BFD_RELOC_IA64_LTOFF_TP22
1247 - : BFD_RELOC_IA64_LTOFF22X
1248 - : BFD_RELOC_IA64_LDXMOV
1249 Intel IA64 Relocations.
1251 - : BFD_RELOC_M68HC11_HI8
1252 Motorola 68HC11 reloc. This is the 8 bits high part of an
1255 - : BFD_RELOC_M68HC11_LO8
1256 Motorola 68HC11 reloc. This is the 8 bits low part of an absolute
1259 - : BFD_RELOC_M68HC11_3B
1260 Motorola 68HC11 reloc. This is the 3 bits of a value.
1262 - : BFD_RELOC_CRIS_BDISP8
1263 - : BFD_RELOC_CRIS_UNSIGNED_5
1264 - : BFD_RELOC_CRIS_SIGNED_6
1265 - : BFD_RELOC_CRIS_UNSIGNED_6
1266 - : BFD_RELOC_CRIS_UNSIGNED_4
1267 These relocs are only used within the CRIS assembler. They are not
1268 (at present) written to any object files.
1270 - : BFD_RELOC_860_COPY
1271 - : BFD_RELOC_860_GLOB_DAT
1272 - : BFD_RELOC_860_JUMP_SLOT
1273 - : BFD_RELOC_860_RELATIVE
1274 - : BFD_RELOC_860_PC26
1275 - : BFD_RELOC_860_PLT26
1276 - : BFD_RELOC_860_PC16
1277 - : BFD_RELOC_860_LOW0
1278 - : BFD_RELOC_860_SPLIT0
1279 - : BFD_RELOC_860_LOW1
1280 - : BFD_RELOC_860_SPLIT1
1281 - : BFD_RELOC_860_LOW2
1282 - : BFD_RELOC_860_SPLIT2
1283 - : BFD_RELOC_860_LOW3
1284 - : BFD_RELOC_860_LOGOT0
1285 - : BFD_RELOC_860_SPGOT0
1286 - : BFD_RELOC_860_LOGOT1
1287 - : BFD_RELOC_860_SPGOT1
1288 - : BFD_RELOC_860_LOGOTOFF0
1289 - : BFD_RELOC_860_SPGOTOFF0
1290 - : BFD_RELOC_860_LOGOTOFF1
1291 - : BFD_RELOC_860_SPGOTOFF1
1292 - : BFD_RELOC_860_LOGOTOFF2
1293 - : BFD_RELOC_860_LOGOTOFF3
1294 - : BFD_RELOC_860_LOPC
1295 - : BFD_RELOC_860_HIGHADJ
1296 - : BFD_RELOC_860_HAGOT
1297 - : BFD_RELOC_860_HAGOTOFF
1298 - : BFD_RELOC_860_HAPC
1299 - : BFD_RELOC_860_HIGH
1300 - : BFD_RELOC_860_HIGOT
1301 - : BFD_RELOC_860_HIGOTOFF
1302 Intel i860 Relocations.
1305 typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;
1307 `bfd_reloc_type_lookup'
1308 .......................
1312 bfd_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code);
1314 Return a pointer to a howto structure which, when invoked, will perform
1315 the relocation CODE on data from the architecture noted.
1317 `bfd_default_reloc_type_lookup'
1318 ...............................
1321 reloc_howto_type *bfd_default_reloc_type_lookup
1322 (bfd *abfd, bfd_reloc_code_real_type code);
1324 Provides a default relocation lookup routine for any architecture.
1326 `bfd_get_reloc_code_name'
1327 .........................
1330 const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code);
1332 Provides a printable name for the supplied relocation code. Useful
1333 mainly for printing error messages.
1335 `bfd_generic_relax_section'
1336 ...........................
1339 boolean bfd_generic_relax_section
1342 struct bfd_link_info *,
1345 Provides default handling for relaxing for back ends which don't do
1346 relaxing - i.e., does nothing.
1348 `bfd_generic_gc_sections'
1349 .........................
1352 boolean bfd_generic_gc_sections
1353 (bfd *, struct bfd_link_info *);
1355 Provides default handling for relaxing for back ends which don't do
1356 section gc - i.e., does nothing.
1358 `bfd_generic_get_relocated_section_contents'
1359 ............................................
1363 bfd_generic_get_relocated_section_contents (bfd *abfd,
1364 struct bfd_link_info *link_info,
1365 struct bfd_link_order *link_order,
1367 boolean relocateable,
1370 Provides default handling of relocation effort for back ends which
1371 can't be bothered to do it efficiently.
1374 File: bfd.info, Node: Core Files, Next: Targets, Prev: Relocations, Up: BFD front end
1380 These are functions pertaining to core files.
1382 `bfd_core_file_failing_command'
1383 ...............................
1386 CONST char *bfd_core_file_failing_command(bfd *abfd);
1388 Return a read-only string explaining which program was running when it
1389 failed and produced the core file ABFD.
1391 `bfd_core_file_failing_signal'
1392 ..............................
1395 int bfd_core_file_failing_signal(bfd *abfd);
1397 Returns the signal number which caused the core dump which generated
1398 the file the BFD ABFD is attached to.
1400 `core_file_matches_executable_p'
1401 ................................
1404 boolean core_file_matches_executable_p
1405 (bfd *core_bfd, bfd *exec_bfd);
1407 Return `true' if the core file attached to CORE_BFD was generated by a
1408 run of the executable file attached to EXEC_BFD, `false' otherwise.
1411 File: bfd.info, Node: Targets, Next: Architectures, Prev: Core Files, Up: BFD front end
1417 Each port of BFD to a different machine requries the creation of a
1418 target back end. All the back end provides to the root part of BFD is a
1419 structure containing pointers to functions which perform certain low
1420 level operations on files. BFD translates the applications's requests
1421 through a pointer into calls to the back end routines.
1423 When a file is opened with `bfd_openr', its format and target are
1424 unknown. BFD uses various mechanisms to determine how to interpret the
1425 file. The operations performed are:
1427 * Create a BFD by calling the internal routine `_bfd_new_bfd', then
1428 call `bfd_find_target' with the target string supplied to
1429 `bfd_openr' and the new BFD pointer.
1431 * If a null target string was provided to `bfd_find_target', look up
1432 the environment variable `GNUTARGET' and use that as the target
1435 * If the target string is still `NULL', or the target string is
1436 `default', then use the first item in the target vector as the
1437 target type, and set `target_defaulted' in the BFD to cause
1438 `bfd_check_format' to loop through all the targets. *Note
1439 bfd_target::. *Note Formats::.
1441 * Otherwise, inspect the elements in the target vector one by one,
1442 until a match on target name is found. When found, use it.
1444 * Otherwise return the error `bfd_error_invalid_target' to
1447 * `bfd_openr' attempts to open the file using `bfd_open_file', and
1449 Once the BFD has been opened and the target selected, the file
1450 format may be determined. This is done by calling `bfd_check_format' on
1451 the BFD with a suggested format. If `target_defaulted' has been set,
1452 each possible target type is tried to see if it recognizes the
1453 specified format. `bfd_check_format' returns `true' when the caller