source: trunk/binutils/bfd/doc/bfd.info-4@ 3232

Last change on this file since 3232 was 610, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r609,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 49.4 KB
Line 
1This is bfd.info, produced by makeinfo version 4.3 from bfd.texinfo.
2
3START-INFO-DIR-ENTRY
4* Bfd: (bfd). The Binary File Descriptor library.
5END-INFO-DIR-ENTRY
6
7 This file documents the BFD library.
8
9 Copyright (C) 1991, 2000, 2001, 2003 Free Software Foundation, Inc.
10
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
16section entitled "GNU Free Documentation License".
17
18
19File: bfd.info, Node: howto manager, Prev: typedef arelent, Up: Relocations
20
21The howto manager
22=================
23
24 When an application wants to create a relocation, but doesn't know
25what the target machine might call it, it can find out by using this
26bit of code.
27
28`bfd_reloc_code_type'
29.....................
30
31 *Description*
32The insides of a reloc code. The idea is that, eventually, there will
33be one enumerator for every type of relocation we ever do. Pass one of
34these values to `bfd_reloc_type_lookup', and it'll return a howto
35pointer.
36
37 This does mean that the application must determine the correct
38enumerator value; you can't get a howto pointer from a random set of
39attributes.
40
41 Here are the possible values for `enum bfd_reloc_code_real':
42
43 - : BFD_RELOC_64
44 - : BFD_RELOC_32
45 - : BFD_RELOC_26
46 - : BFD_RELOC_24
47 - : BFD_RELOC_16
48 - : BFD_RELOC_14
49 - : BFD_RELOC_8
50 Basic absolute relocations of N bits.
51
52 - : BFD_RELOC_64_PCREL
53 - : BFD_RELOC_32_PCREL
54 - : BFD_RELOC_24_PCREL
55 - : BFD_RELOC_16_PCREL
56 - : BFD_RELOC_12_PCREL
57 - : BFD_RELOC_8_PCREL
58 PC-relative relocations. Sometimes these are relative to the
59 address of the relocation itself; sometimes they are relative to
60 the start of the section containing the relocation. It depends on
61 the specific target.
62
63 The 24-bit relocation is used in some Intel 960 configurations.
64
65 - : BFD_RELOC_32_GOT_PCREL
66 - : BFD_RELOC_16_GOT_PCREL
67 - : BFD_RELOC_8_GOT_PCREL
68 - : BFD_RELOC_32_GOTOFF
69 - : BFD_RELOC_16_GOTOFF
70 - : BFD_RELOC_LO16_GOTOFF
71 - : BFD_RELOC_HI16_GOTOFF
72 - : BFD_RELOC_HI16_S_GOTOFF
73 - : BFD_RELOC_8_GOTOFF
74 - : BFD_RELOC_64_PLT_PCREL
75 - : BFD_RELOC_32_PLT_PCREL
76 - : BFD_RELOC_24_PLT_PCREL
77 - : BFD_RELOC_16_PLT_PCREL
78 - : BFD_RELOC_8_PLT_PCREL
79 - : BFD_RELOC_64_PLTOFF
80 - : BFD_RELOC_32_PLTOFF
81 - : BFD_RELOC_16_PLTOFF
82 - : BFD_RELOC_LO16_PLTOFF
83 - : BFD_RELOC_HI16_PLTOFF
84 - : BFD_RELOC_HI16_S_PLTOFF
85 - : BFD_RELOC_8_PLTOFF
86 For ELF.
87
88 - : BFD_RELOC_68K_GLOB_DAT
89 - : BFD_RELOC_68K_JMP_SLOT
90 - : BFD_RELOC_68K_RELATIVE
91 Relocations used by 68K ELF.
92
93 - : BFD_RELOC_32_BASEREL
94 - : BFD_RELOC_16_BASEREL
95 - : BFD_RELOC_LO16_BASEREL
96 - : BFD_RELOC_HI16_BASEREL
97 - : BFD_RELOC_HI16_S_BASEREL
98 - : BFD_RELOC_8_BASEREL
99 - : BFD_RELOC_RVA
100 Linkage-table relative.
101
102 - : BFD_RELOC_8_FFnn
103 Absolute 8-bit relocation, but used to form an address like 0xFFnn.
104
105 - : BFD_RELOC_32_PCREL_S2
106 - : BFD_RELOC_16_PCREL_S2
107 - : BFD_RELOC_23_PCREL_S2
108 These PC-relative relocations are stored as word displacements -
109 i.e., byte displacements shifted right two bits. The 30-bit word
110 displacement (<<32_PCREL_S2>> - 32 bits, shifted 2) is used on the
111 SPARC. (SPARC tools generally refer to this as <<WDISP30>>.) The
112 signed 16-bit displacement is used on the MIPS, and the 23-bit
113 displacement is used on the Alpha.
114
115 - : BFD_RELOC_HI22
116 - : BFD_RELOC_LO10
117 High 22 bits and low 10 bits of 32-bit value, placed into lower
118 bits of the target word. These are used on the SPARC.
119
120 - : BFD_RELOC_GPREL16
121 - : BFD_RELOC_GPREL32
122 For systems that allocate a Global Pointer register, these are
123 displacements off that register. These relocation types are
124 handled specially, because the value the register will have is
125 decided relatively late.
126
127 - : BFD_RELOC_I960_CALLJ
128 Reloc types used for i960/b.out.
129
130 - : BFD_RELOC_NONE
131 - : BFD_RELOC_SPARC_WDISP22
132 - : BFD_RELOC_SPARC22
133 - : BFD_RELOC_SPARC13
134 - : BFD_RELOC_SPARC_GOT10
135 - : BFD_RELOC_SPARC_GOT13
136 - : BFD_RELOC_SPARC_GOT22
137 - : BFD_RELOC_SPARC_PC10
138 - : BFD_RELOC_SPARC_PC22
139 - : BFD_RELOC_SPARC_WPLT30
140 - : BFD_RELOC_SPARC_COPY
141 - : BFD_RELOC_SPARC_GLOB_DAT
142 - : BFD_RELOC_SPARC_JMP_SLOT
143 - : BFD_RELOC_SPARC_RELATIVE
144 - : BFD_RELOC_SPARC_UA16
145 - : BFD_RELOC_SPARC_UA32
146 - : BFD_RELOC_SPARC_UA64
147 SPARC ELF relocations. There is probably some overlap with other
148 relocation types already defined.
149
150 - : BFD_RELOC_SPARC_BASE13
151 - : BFD_RELOC_SPARC_BASE22
152 I think these are specific to SPARC a.out (e.g., Sun 4).
153
154 - : BFD_RELOC_SPARC_64
155 - : BFD_RELOC_SPARC_10
156 - : BFD_RELOC_SPARC_11
157 - : BFD_RELOC_SPARC_OLO10
158 - : BFD_RELOC_SPARC_HH22
159 - : BFD_RELOC_SPARC_HM10
160 - : BFD_RELOC_SPARC_LM22
161 - : BFD_RELOC_SPARC_PC_HH22
162 - : BFD_RELOC_SPARC_PC_HM10
163 - : BFD_RELOC_SPARC_PC_LM22
164 - : BFD_RELOC_SPARC_WDISP16
165 - : BFD_RELOC_SPARC_WDISP19
166 - : BFD_RELOC_SPARC_7
167 - : BFD_RELOC_SPARC_6
168 - : BFD_RELOC_SPARC_5
169 - : BFD_RELOC_SPARC_DISP64
170 - : BFD_RELOC_SPARC_PLT32
171 - : BFD_RELOC_SPARC_PLT64
172 - : BFD_RELOC_SPARC_HIX22
173 - : BFD_RELOC_SPARC_LOX10
174 - : BFD_RELOC_SPARC_H44
175 - : BFD_RELOC_SPARC_M44
176 - : BFD_RELOC_SPARC_L44
177 - : BFD_RELOC_SPARC_REGISTER
178 SPARC64 relocations
179
180 - : BFD_RELOC_SPARC_REV32
181 SPARC little endian relocation
182
183 - : BFD_RELOC_SPARC_TLS_GD_HI22
184 - : BFD_RELOC_SPARC_TLS_GD_LO10
185 - : BFD_RELOC_SPARC_TLS_GD_ADD
186 - : BFD_RELOC_SPARC_TLS_GD_CALL
187 - : BFD_RELOC_SPARC_TLS_LDM_HI22
188 - : BFD_RELOC_SPARC_TLS_LDM_LO10
189 - : BFD_RELOC_SPARC_TLS_LDM_ADD
190 - : BFD_RELOC_SPARC_TLS_LDM_CALL
191 - : BFD_RELOC_SPARC_TLS_LDO_HIX22
192 - : BFD_RELOC_SPARC_TLS_LDO_LOX10
193 - : BFD_RELOC_SPARC_TLS_LDO_ADD
194 - : BFD_RELOC_SPARC_TLS_IE_HI22
195 - : BFD_RELOC_SPARC_TLS_IE_LO10
196 - : BFD_RELOC_SPARC_TLS_IE_LD
197 - : BFD_RELOC_SPARC_TLS_IE_LDX
198 - : BFD_RELOC_SPARC_TLS_IE_ADD
199 - : BFD_RELOC_SPARC_TLS_LE_HIX22
200 - : BFD_RELOC_SPARC_TLS_LE_LOX10
201 - : BFD_RELOC_SPARC_TLS_DTPMOD32
202 - : BFD_RELOC_SPARC_TLS_DTPMOD64
203 - : BFD_RELOC_SPARC_TLS_DTPOFF32
204 - : BFD_RELOC_SPARC_TLS_DTPOFF64
205 - : BFD_RELOC_SPARC_TLS_TPOFF32
206 - : BFD_RELOC_SPARC_TLS_TPOFF64
207 SPARC TLS relocations
208
209 - : BFD_RELOC_ALPHA_GPDISP_HI16
210 Alpha ECOFF and ELF relocations. Some of these treat the symbol or
211 "addend" in some special way. For GPDISP_HI16 ("gpdisp")
212 relocations, the symbol is ignored when writing; when reading, it
213 will be the absolute section symbol. The addend is the
214 displacement in bytes of the "lda" instruction from the "ldah"
215 instruction (which is at the address of this reloc).
216
217 - : BFD_RELOC_ALPHA_GPDISP_LO16
218 For GPDISP_LO16 ("ignore") relocations, the symbol is handled as
219 with GPDISP_HI16 relocs. The addend is ignored when writing the
220 relocations out, and is filled in with the file's GP value on
221 reading, for convenience.
222
223 - : BFD_RELOC_ALPHA_GPDISP
224 The ELF GPDISP relocation is exactly the same as the GPDISP_HI16
225 relocation except that there is no accompanying GPDISP_LO16
226 relocation.
227
228 - : BFD_RELOC_ALPHA_LITERAL
229 - : BFD_RELOC_ALPHA_ELF_LITERAL
230 - : BFD_RELOC_ALPHA_LITUSE
231 The Alpha LITERAL/LITUSE relocs are produced by a symbol reference;
232 the assembler turns it into a LDQ instruction to load the address
233 of the symbol, and then fills in a register in the real
234 instruction.
235
236 The LITERAL reloc, at the LDQ instruction, refers to the .lita
237 section symbol. The addend is ignored when writing, but is filled
238 in with the file's GP value on reading, for convenience, as with
239 the GPDISP_LO16 reloc.
240
241 The ELF_LITERAL reloc is somewhere between 16_GOTOFF and
242 GPDISP_LO16. It should refer to the symbol to be referenced, as
243 with 16_GOTOFF, but it generates output not based on the position
244 within the .got section, but relative to the GP value chosen for
245 the file during the final link stage.
246
247 The LITUSE reloc, on the instruction using the loaded address,
248 gives information to the linker that it might be able to use to
249 optimize away some literal section references. The symbol is
250 ignored (read as the absolute section symbol), and the "addend"
251 indicates the type of instruction using the register: 1 - "memory"
252 fmt insn 2 - byte-manipulation (byte offset reg) 3 - jsr (target
253 of branch)
254
255 - : BFD_RELOC_ALPHA_HINT
256 The HINT relocation indicates a value that should be filled into
257 the "hint" field of a jmp/jsr/ret instruction, for possible branch-
258 prediction logic which may be provided on some processors.
259
260 - : BFD_RELOC_ALPHA_LINKAGE
261 The LINKAGE relocation outputs a linkage pair in the object file,
262 which is filled by the linker.
263
264 - : BFD_RELOC_ALPHA_CODEADDR
265 The CODEADDR relocation outputs a STO_CA in the object file, which
266 is filled by the linker.
267
268 - : BFD_RELOC_ALPHA_GPREL_HI16
269 - : BFD_RELOC_ALPHA_GPREL_LO16
270 The GPREL_HI/LO relocations together form a 32-bit offset from the
271 GP register.
272
273 - : BFD_RELOC_ALPHA_BRSGP
274 Like BFD_RELOC_23_PCREL_S2, except that the source and target must
275 share a common GP, and the target address is adjusted for
276 STO_ALPHA_STD_GPLOAD.
277
278 - : BFD_RELOC_ALPHA_TLSGD
279 - : BFD_RELOC_ALPHA_TLSLDM
280 - : BFD_RELOC_ALPHA_DTPMOD64
281 - : BFD_RELOC_ALPHA_GOTDTPREL16
282 - : BFD_RELOC_ALPHA_DTPREL64
283 - : BFD_RELOC_ALPHA_DTPREL_HI16
284 - : BFD_RELOC_ALPHA_DTPREL_LO16
285 - : BFD_RELOC_ALPHA_DTPREL16
286 - : BFD_RELOC_ALPHA_GOTTPREL16
287 - : BFD_RELOC_ALPHA_TPREL64
288 - : BFD_RELOC_ALPHA_TPREL_HI16
289 - : BFD_RELOC_ALPHA_TPREL_LO16
290 - : BFD_RELOC_ALPHA_TPREL16
291 Alpha thread-local storage relocations.
292
293 - : BFD_RELOC_MIPS_JMP
294 Bits 27..2 of the relocation address shifted right 2 bits; simple
295 reloc otherwise.
296
297 - : BFD_RELOC_MIPS16_JMP
298 The MIPS16 jump instruction.
299
300 - : BFD_RELOC_MIPS16_GPREL
301 MIPS16 GP relative reloc.
302
303 - : BFD_RELOC_HI16
304 High 16 bits of 32-bit value; simple reloc.
305
306 - : BFD_RELOC_HI16_S
307 High 16 bits of 32-bit value but the low 16 bits will be sign
308 extended and added to form the final result. If the low 16 bits
309 form a negative number, we need to add one to the high value to
310 compensate for the borrow when the low bits are added.
311
312 - : BFD_RELOC_LO16
313 Low 16 bits.
314
315 - : BFD_RELOC_PCREL_HI16_S
316 Like BFD_RELOC_HI16_S, but PC relative.
317
318 - : BFD_RELOC_PCREL_LO16
319 Like BFD_RELOC_LO16, but PC relative.
320
321 - : BFD_RELOC_MIPS_LITERAL
322 Relocation against a MIPS literal section.
323
324 - : BFD_RELOC_MIPS_GOT16
325 - : BFD_RELOC_MIPS_CALL16
326 - : BFD_RELOC_MIPS_GOT_HI16
327 - : BFD_RELOC_MIPS_GOT_LO16
328 - : BFD_RELOC_MIPS_CALL_HI16
329 - : BFD_RELOC_MIPS_CALL_LO16
330 - : BFD_RELOC_MIPS_SUB
331 - : BFD_RELOC_MIPS_GOT_PAGE
332 - : BFD_RELOC_MIPS_GOT_OFST
333 - : BFD_RELOC_MIPS_GOT_DISP
334 - : BFD_RELOC_MIPS_SHIFT5
335 - : BFD_RELOC_MIPS_SHIFT6
336 - : BFD_RELOC_MIPS_INSERT_A
337 - : BFD_RELOC_MIPS_INSERT_B
338 - : BFD_RELOC_MIPS_DELETE
339 - : BFD_RELOC_MIPS_HIGHEST
340 - : BFD_RELOC_MIPS_HIGHER
341 - : BFD_RELOC_MIPS_SCN_DISP
342 - : BFD_RELOC_MIPS_REL16
343 - : BFD_RELOC_MIPS_RELGOT
344 - : BFD_RELOC_MIPS_JALR
345 - : BFD_RELOC_FRV_LABEL16
346 - : BFD_RELOC_FRV_LABEL24
347 - : BFD_RELOC_FRV_LO16
348 - : BFD_RELOC_FRV_HI16
349 - : BFD_RELOC_FRV_GPREL12
350 - : BFD_RELOC_FRV_GPRELU12
351 - : BFD_RELOC_FRV_GPREL32
352 - : BFD_RELOC_FRV_GPRELHI
353 - : BFD_RELOC_FRV_GPRELLO
354 Fujitsu Frv Relocations.
355 MIPS ELF relocations.
356
357 - : BFD_RELOC_386_GOT32
358 - : BFD_RELOC_386_PLT32
359 - : BFD_RELOC_386_COPY
360 - : BFD_RELOC_386_GLOB_DAT
361 - : BFD_RELOC_386_JUMP_SLOT
362 - : BFD_RELOC_386_RELATIVE
363 - : BFD_RELOC_386_GOTOFF
364 - : BFD_RELOC_386_GOTPC
365 - : BFD_RELOC_386_TLS_TPOFF
366 - : BFD_RELOC_386_TLS_IE
367 - : BFD_RELOC_386_TLS_GOTIE
368 - : BFD_RELOC_386_TLS_LE
369 - : BFD_RELOC_386_TLS_GD
370 - : BFD_RELOC_386_TLS_LDM
371 - : BFD_RELOC_386_TLS_LDO_32
372 - : BFD_RELOC_386_TLS_IE_32
373 - : BFD_RELOC_386_TLS_LE_32
374 - : BFD_RELOC_386_TLS_DTPMOD32
375 - : BFD_RELOC_386_TLS_DTPOFF32
376 - : BFD_RELOC_386_TLS_TPOFF32
377 i386/elf relocations
378
379 - : BFD_RELOC_X86_64_GOT32
380 - : BFD_RELOC_X86_64_PLT32
381 - : BFD_RELOC_X86_64_COPY
382 - : BFD_RELOC_X86_64_GLOB_DAT
383 - : BFD_RELOC_X86_64_JUMP_SLOT
384 - : BFD_RELOC_X86_64_RELATIVE
385 - : BFD_RELOC_X86_64_GOTPCREL
386 - : BFD_RELOC_X86_64_32S
387 - : BFD_RELOC_X86_64_DTPMOD64
388 - : BFD_RELOC_X86_64_DTPOFF64
389 - : BFD_RELOC_X86_64_TPOFF64
390 - : BFD_RELOC_X86_64_TLSGD
391 - : BFD_RELOC_X86_64_TLSLD
392 - : BFD_RELOC_X86_64_DTPOFF32
393 - : BFD_RELOC_X86_64_GOTTPOFF
394 - : BFD_RELOC_X86_64_TPOFF32
395 x86-64/elf relocations
396
397 - : BFD_RELOC_NS32K_IMM_8
398 - : BFD_RELOC_NS32K_IMM_16
399 - : BFD_RELOC_NS32K_IMM_32
400 - : BFD_RELOC_NS32K_IMM_8_PCREL
401 - : BFD_RELOC_NS32K_IMM_16_PCREL
402 - : BFD_RELOC_NS32K_IMM_32_PCREL
403 - : BFD_RELOC_NS32K_DISP_8
404 - : BFD_RELOC_NS32K_DISP_16
405 - : BFD_RELOC_NS32K_DISP_32
406 - : BFD_RELOC_NS32K_DISP_8_PCREL
407 - : BFD_RELOC_NS32K_DISP_16_PCREL
408 - : BFD_RELOC_NS32K_DISP_32_PCREL
409 ns32k relocations
410
411 - : BFD_RELOC_PDP11_DISP_8_PCREL
412 - : BFD_RELOC_PDP11_DISP_6_PCREL
413 PDP11 relocations
414
415 - : BFD_RELOC_PJ_CODE_HI16
416 - : BFD_RELOC_PJ_CODE_LO16
417 - : BFD_RELOC_PJ_CODE_DIR16
418 - : BFD_RELOC_PJ_CODE_DIR32
419 - : BFD_RELOC_PJ_CODE_REL16
420 - : BFD_RELOC_PJ_CODE_REL32
421 Picojava relocs. Not all of these appear in object files.
422
423 - : BFD_RELOC_PPC_B26
424 - : BFD_RELOC_PPC_BA26
425 - : BFD_RELOC_PPC_TOC16
426 - : BFD_RELOC_PPC_B16
427 - : BFD_RELOC_PPC_B16_BRTAKEN
428 - : BFD_RELOC_PPC_B16_BRNTAKEN
429 - : BFD_RELOC_PPC_BA16
430 - : BFD_RELOC_PPC_BA16_BRTAKEN
431 - : BFD_RELOC_PPC_BA16_BRNTAKEN
432 - : BFD_RELOC_PPC_COPY
433 - : BFD_RELOC_PPC_GLOB_DAT
434 - : BFD_RELOC_PPC_JMP_SLOT
435 - : BFD_RELOC_PPC_RELATIVE
436 - : BFD_RELOC_PPC_LOCAL24PC
437 - : BFD_RELOC_PPC_EMB_NADDR32
438 - : BFD_RELOC_PPC_EMB_NADDR16
439 - : BFD_RELOC_PPC_EMB_NADDR16_LO
440 - : BFD_RELOC_PPC_EMB_NADDR16_HI
441 - : BFD_RELOC_PPC_EMB_NADDR16_HA
442 - : BFD_RELOC_PPC_EMB_SDAI16
443 - : BFD_RELOC_PPC_EMB_SDA2I16
444 - : BFD_RELOC_PPC_EMB_SDA2REL
445 - : BFD_RELOC_PPC_EMB_SDA21
446 - : BFD_RELOC_PPC_EMB_MRKREF
447 - : BFD_RELOC_PPC_EMB_RELSEC16
448 - : BFD_RELOC_PPC_EMB_RELST_LO
449 - : BFD_RELOC_PPC_EMB_RELST_HI
450 - : BFD_RELOC_PPC_EMB_RELST_HA
451 - : BFD_RELOC_PPC_EMB_BIT_FLD
452 - : BFD_RELOC_PPC_EMB_RELSDA
453 - : BFD_RELOC_PPC64_HIGHER
454 - : BFD_RELOC_PPC64_HIGHER_S
455 - : BFD_RELOC_PPC64_HIGHEST
456 - : BFD_RELOC_PPC64_HIGHEST_S
457 - : BFD_RELOC_PPC64_TOC16_LO
458 - : BFD_RELOC_PPC64_TOC16_HI
459 - : BFD_RELOC_PPC64_TOC16_HA
460 - : BFD_RELOC_PPC64_TOC
461 - : BFD_RELOC_PPC64_PLTGOT16
462 - : BFD_RELOC_PPC64_PLTGOT16_LO
463 - : BFD_RELOC_PPC64_PLTGOT16_HI
464 - : BFD_RELOC_PPC64_PLTGOT16_HA
465 - : BFD_RELOC_PPC64_ADDR16_DS
466 - : BFD_RELOC_PPC64_ADDR16_LO_DS
467 - : BFD_RELOC_PPC64_GOT16_DS
468 - : BFD_RELOC_PPC64_GOT16_LO_DS
469 - : BFD_RELOC_PPC64_PLT16_LO_DS
470 - : BFD_RELOC_PPC64_SECTOFF_DS
471 - : BFD_RELOC_PPC64_SECTOFF_LO_DS
472 - : BFD_RELOC_PPC64_TOC16_DS
473 - : BFD_RELOC_PPC64_TOC16_LO_DS
474 - : BFD_RELOC_PPC64_PLTGOT16_DS
475 - : BFD_RELOC_PPC64_PLTGOT16_LO_DS
476 Power(rs6000) and PowerPC relocations.
477
478 - : BFD_RELOC_PPC_TLS
479 - : BFD_RELOC_PPC_DTPMOD
480 - : BFD_RELOC_PPC_TPREL16
481 - : BFD_RELOC_PPC_TPREL16_LO
482 - : BFD_RELOC_PPC_TPREL16_HI
483 - : BFD_RELOC_PPC_TPREL16_HA
484 - : BFD_RELOC_PPC_TPREL
485 - : BFD_RELOC_PPC_DTPREL16
486 - : BFD_RELOC_PPC_DTPREL16_LO
487 - : BFD_RELOC_PPC_DTPREL16_HI
488 - : BFD_RELOC_PPC_DTPREL16_HA
489 - : BFD_RELOC_PPC_DTPREL
490 - : BFD_RELOC_PPC_GOT_TLSGD16
491 - : BFD_RELOC_PPC_GOT_TLSGD16_LO
492 - : BFD_RELOC_PPC_GOT_TLSGD16_HI
493 - : BFD_RELOC_PPC_GOT_TLSGD16_HA
494 - : BFD_RELOC_PPC_GOT_TLSLD16
495 - : BFD_RELOC_PPC_GOT_TLSLD16_LO
496 - : BFD_RELOC_PPC_GOT_TLSLD16_HI
497 - : BFD_RELOC_PPC_GOT_TLSLD16_HA
498 - : BFD_RELOC_PPC_GOT_TPREL16
499 - : BFD_RELOC_PPC_GOT_TPREL16_LO
500 - : BFD_RELOC_PPC_GOT_TPREL16_HI
501 - : BFD_RELOC_PPC_GOT_TPREL16_HA
502 - : BFD_RELOC_PPC_GOT_DTPREL16
503 - : BFD_RELOC_PPC_GOT_DTPREL16_LO
504 - : BFD_RELOC_PPC_GOT_DTPREL16_HI
505 - : BFD_RELOC_PPC_GOT_DTPREL16_HA
506 - : BFD_RELOC_PPC64_TPREL16_DS
507 - : BFD_RELOC_PPC64_TPREL16_LO_DS
508 - : BFD_RELOC_PPC64_TPREL16_HIGHER
509 - : BFD_RELOC_PPC64_TPREL16_HIGHERA
510 - : BFD_RELOC_PPC64_TPREL16_HIGHEST
511 - : BFD_RELOC_PPC64_TPREL16_HIGHESTA
512 - : BFD_RELOC_PPC64_DTPREL16_DS
513 - : BFD_RELOC_PPC64_DTPREL16_LO_DS
514 - : BFD_RELOC_PPC64_DTPREL16_HIGHER
515 - : BFD_RELOC_PPC64_DTPREL16_HIGHERA
516 - : BFD_RELOC_PPC64_DTPREL16_HIGHEST
517 - : BFD_RELOC_PPC64_DTPREL16_HIGHESTA
518 PowerPC and PowerPC64 thread-local storage relocations.
519
520 - : BFD_RELOC_I370_D12
521 IBM 370/390 relocations
522
523 - : BFD_RELOC_CTOR
524 The type of reloc used to build a contructor table - at the moment
525 probably a 32 bit wide absolute relocation, but the target can
526 choose. It generally does map to one of the other relocation
527 types.
528
529 - : BFD_RELOC_ARM_PCREL_BRANCH
530 ARM 26 bit pc-relative branch. The lowest two bits must be zero
531 and are not stored in the instruction.
532
533 - : BFD_RELOC_ARM_PCREL_BLX
534 ARM 26 bit pc-relative branch. The lowest bit must be zero and is
535 not stored in the instruction. The 2nd lowest bit comes from a 1
536 bit field in the instruction.
537
538 - : BFD_RELOC_THUMB_PCREL_BLX
539 Thumb 22 bit pc-relative branch. The lowest bit must be zero and
540 is not stored in the instruction. The 2nd lowest bit comes from a
541 1 bit field in the instruction.
542
543 - : BFD_RELOC_ARM_IMMEDIATE
544 - : BFD_RELOC_ARM_ADRL_IMMEDIATE
545 - : BFD_RELOC_ARM_OFFSET_IMM
546 - : BFD_RELOC_ARM_SHIFT_IMM
547 - : BFD_RELOC_ARM_SWI
548 - : BFD_RELOC_ARM_MULTI
549 - : BFD_RELOC_ARM_CP_OFF_IMM
550 - : BFD_RELOC_ARM_CP_OFF_IMM_S2
551 - : BFD_RELOC_ARM_ADR_IMM
552 - : BFD_RELOC_ARM_LDR_IMM
553 - : BFD_RELOC_ARM_LITERAL
554 - : BFD_RELOC_ARM_IN_POOL
555 - : BFD_RELOC_ARM_OFFSET_IMM8
556 - : BFD_RELOC_ARM_HWLITERAL
557 - : BFD_RELOC_ARM_THUMB_ADD
558 - : BFD_RELOC_ARM_THUMB_IMM
559 - : BFD_RELOC_ARM_THUMB_SHIFT
560 - : BFD_RELOC_ARM_THUMB_OFFSET
561 - : BFD_RELOC_ARM_GOT12
562 - : BFD_RELOC_ARM_GOT32
563 - : BFD_RELOC_ARM_JUMP_SLOT
564 - : BFD_RELOC_ARM_COPY
565 - : BFD_RELOC_ARM_GLOB_DAT
566 - : BFD_RELOC_ARM_PLT32
567 - : BFD_RELOC_ARM_RELATIVE
568 - : BFD_RELOC_ARM_GOTOFF
569 - : BFD_RELOC_ARM_GOTPC
570 These relocs are only used within the ARM assembler. They are not
571 (at present) written to any object files.
572
573 - : BFD_RELOC_SH_PCDISP8BY2
574 - : BFD_RELOC_SH_PCDISP12BY2
575 - : BFD_RELOC_SH_IMM4
576 - : BFD_RELOC_SH_IMM4BY2
577 - : BFD_RELOC_SH_IMM4BY4
578 - : BFD_RELOC_SH_IMM8
579 - : BFD_RELOC_SH_IMM8BY2
580 - : BFD_RELOC_SH_IMM8BY4
581 - : BFD_RELOC_SH_PCRELIMM8BY2
582 - : BFD_RELOC_SH_PCRELIMM8BY4
583 - : BFD_RELOC_SH_SWITCH16
584 - : BFD_RELOC_SH_SWITCH32
585 - : BFD_RELOC_SH_USES
586 - : BFD_RELOC_SH_COUNT
587 - : BFD_RELOC_SH_ALIGN
588 - : BFD_RELOC_SH_CODE
589 - : BFD_RELOC_SH_DATA
590 - : BFD_RELOC_SH_LABEL
591 - : BFD_RELOC_SH_LOOP_START
592 - : BFD_RELOC_SH_LOOP_END
593 - : BFD_RELOC_SH_COPY
594 - : BFD_RELOC_SH_GLOB_DAT
595 - : BFD_RELOC_SH_JMP_SLOT
596 - : BFD_RELOC_SH_RELATIVE
597 - : BFD_RELOC_SH_GOTPC
598 - : BFD_RELOC_SH_GOT_LOW16
599 - : BFD_RELOC_SH_GOT_MEDLOW16
600 - : BFD_RELOC_SH_GOT_MEDHI16
601 - : BFD_RELOC_SH_GOT_HI16
602 - : BFD_RELOC_SH_GOTPLT_LOW16
603 - : BFD_RELOC_SH_GOTPLT_MEDLOW16
604 - : BFD_RELOC_SH_GOTPLT_MEDHI16
605 - : BFD_RELOC_SH_GOTPLT_HI16
606 - : BFD_RELOC_SH_PLT_LOW16
607 - : BFD_RELOC_SH_PLT_MEDLOW16
608 - : BFD_RELOC_SH_PLT_MEDHI16
609 - : BFD_RELOC_SH_PLT_HI16
610 - : BFD_RELOC_SH_GOTOFF_LOW16
611 - : BFD_RELOC_SH_GOTOFF_MEDLOW16
612 - : BFD_RELOC_SH_GOTOFF_MEDHI16
613 - : BFD_RELOC_SH_GOTOFF_HI16
614 - : BFD_RELOC_SH_GOTPC_LOW16
615 - : BFD_RELOC_SH_GOTPC_MEDLOW16
616 - : BFD_RELOC_SH_GOTPC_MEDHI16
617 - : BFD_RELOC_SH_GOTPC_HI16
618 - : BFD_RELOC_SH_COPY64
619 - : BFD_RELOC_SH_GLOB_DAT64
620 - : BFD_RELOC_SH_JMP_SLOT64
621 - : BFD_RELOC_SH_RELATIVE64
622 - : BFD_RELOC_SH_GOT10BY4
623 - : BFD_RELOC_SH_GOT10BY8
624 - : BFD_RELOC_SH_GOTPLT10BY4
625 - : BFD_RELOC_SH_GOTPLT10BY8
626 - : BFD_RELOC_SH_GOTPLT32
627 - : BFD_RELOC_SH_SHMEDIA_CODE
628 - : BFD_RELOC_SH_IMMU5
629 - : BFD_RELOC_SH_IMMS6
630 - : BFD_RELOC_SH_IMMS6BY32
631 - : BFD_RELOC_SH_IMMU6
632 - : BFD_RELOC_SH_IMMS10
633 - : BFD_RELOC_SH_IMMS10BY2
634 - : BFD_RELOC_SH_IMMS10BY4
635 - : BFD_RELOC_SH_IMMS10BY8
636 - : BFD_RELOC_SH_IMMS16
637 - : BFD_RELOC_SH_IMMU16
638 - : BFD_RELOC_SH_IMM_LOW16
639 - : BFD_RELOC_SH_IMM_LOW16_PCREL
640 - : BFD_RELOC_SH_IMM_MEDLOW16
641 - : BFD_RELOC_SH_IMM_MEDLOW16_PCREL
642 - : BFD_RELOC_SH_IMM_MEDHI16
643 - : BFD_RELOC_SH_IMM_MEDHI16_PCREL
644 - : BFD_RELOC_SH_IMM_HI16
645 - : BFD_RELOC_SH_IMM_HI16_PCREL
646 - : BFD_RELOC_SH_PT_16
647 - : BFD_RELOC_SH_TLS_GD_32
648 - : BFD_RELOC_SH_TLS_LD_32
649 - : BFD_RELOC_SH_TLS_LDO_32
650 - : BFD_RELOC_SH_TLS_IE_32
651 - : BFD_RELOC_SH_TLS_LE_32
652 - : BFD_RELOC_SH_TLS_DTPMOD32
653 - : BFD_RELOC_SH_TLS_DTPOFF32
654 - : BFD_RELOC_SH_TLS_TPOFF32
655 Renesas / SuperH SH relocs. Not all of these appear in object
656 files.
657
658 - : BFD_RELOC_THUMB_PCREL_BRANCH9
659 - : BFD_RELOC_THUMB_PCREL_BRANCH12
660 - : BFD_RELOC_THUMB_PCREL_BRANCH23
661 Thumb 23-, 12- and 9-bit pc-relative branches. The lowest bit must
662 be zero and is not stored in the instruction.
663
664 - : BFD_RELOC_ARC_B22_PCREL
665 ARC Cores relocs. ARC 22 bit pc-relative branch. The lowest two
666 bits must be zero and are not stored in the instruction. The high
667 20 bits are installed in bits 26 through 7 of the instruction.
668
669 - : BFD_RELOC_ARC_B26
670 ARC 26 bit absolute branch. The lowest two bits must be zero and
671 are not stored in the instruction. The high 24 bits are installed
672 in bits 23 through 0.
673
674 - : BFD_RELOC_D10V_10_PCREL_R
675 Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2
676 bits assumed to be 0.
677
678 - : BFD_RELOC_D10V_10_PCREL_L
679 Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2
680 bits assumed to be 0. This is the same as the previous reloc
681 except it is in the left container, i.e., shifted left 15 bits.
682
683 - : BFD_RELOC_D10V_18
684 This is an 18-bit reloc with the right 2 bits assumed to be 0.
685
686 - : BFD_RELOC_D10V_18_PCREL
687 This is an 18-bit reloc with the right 2 bits assumed to be 0.
688
689 - : BFD_RELOC_D30V_6
690 Mitsubishi D30V relocs. This is a 6-bit absolute reloc.
691
692 - : BFD_RELOC_D30V_9_PCREL
693 This is a 6-bit pc-relative reloc with the right 3 bits assumed to
694 be 0.
695
696 - : BFD_RELOC_D30V_9_PCREL_R
697 This is a 6-bit pc-relative reloc with the right 3 bits assumed to
698 be 0. Same as the previous reloc but on the right side of the
699 container.
700
701 - : BFD_RELOC_D30V_15
702 This is a 12-bit absolute reloc with the right 3 bitsassumed to be
703 0.
704
705 - : BFD_RELOC_D30V_15_PCREL
706 This is a 12-bit pc-relative reloc with the right 3 bits assumed
707 to be 0.
708
709 - : BFD_RELOC_D30V_15_PCREL_R
710 This is a 12-bit pc-relative reloc with the right 3 bits assumed
711 to be 0. Same as the previous reloc but on the right side of the
712 container.
713
714 - : BFD_RELOC_D30V_21
715 This is an 18-bit absolute reloc with the right 3 bits assumed to
716 be 0.
717
718 - : BFD_RELOC_D30V_21_PCREL
719 This is an 18-bit pc-relative reloc with the right 3 bits assumed
720 to be 0.
721
722 - : BFD_RELOC_D30V_21_PCREL_R
723 This is an 18-bit pc-relative reloc with the right 3 bits assumed
724 to be 0. Same as the previous reloc but on the right side of the
725 container.
726
727 - : BFD_RELOC_D30V_32
728 This is a 32-bit absolute reloc.
729
730 - : BFD_RELOC_D30V_32_PCREL
731 This is a 32-bit pc-relative reloc.
732
733 - : BFD_RELOC_DLX_HI16_S
734 DLX relocs
735
736 - : BFD_RELOC_DLX_LO16
737 DLX relocs
738
739 - : BFD_RELOC_DLX_JMP26
740 DLX relocs
741
742 - : BFD_RELOC_M32R_24
743 Renesas M32R (formerly Mitsubishi M32R) relocs. This is a 24 bit
744 absolute address.
745
746 - : BFD_RELOC_M32R_10_PCREL
747 This is a 10-bit pc-relative reloc with the right 2 bits assumed
748 to be 0.
749
750 - : BFD_RELOC_M32R_18_PCREL
751 This is an 18-bit reloc with the right 2 bits assumed to be 0.
752
753 - : BFD_RELOC_M32R_26_PCREL
754 This is a 26-bit reloc with the right 2 bits assumed to be 0.
755
756 - : BFD_RELOC_M32R_HI16_ULO
757 This is a 16-bit reloc containing the high 16 bits of an address
758 used when the lower 16 bits are treated as unsigned.
759
760 - : BFD_RELOC_M32R_HI16_SLO
761 This is a 16-bit reloc containing the high 16 bits of an address
762 used when the lower 16 bits are treated as signed.
763
764 - : BFD_RELOC_M32R_LO16
765 This is a 16-bit reloc containing the lower 16 bits of an address.
766
767 - : BFD_RELOC_M32R_SDA16
768 This is a 16-bit reloc containing the small data area offset for
769 use in add3, load, and store instructions.
770
771 - : BFD_RELOC_V850_9_PCREL
772 This is a 9-bit reloc
773
774 - : BFD_RELOC_V850_22_PCREL
775 This is a 22-bit reloc
776
777 - : BFD_RELOC_V850_SDA_16_16_OFFSET
778 This is a 16 bit offset from the short data area pointer.
779
780 - : BFD_RELOC_V850_SDA_15_16_OFFSET
781 This is a 16 bit offset (of which only 15 bits are used) from the
782 short data area pointer.
783
784 - : BFD_RELOC_V850_ZDA_16_16_OFFSET
785 This is a 16 bit offset from the zero data area pointer.
786
787 - : BFD_RELOC_V850_ZDA_15_16_OFFSET
788 This is a 16 bit offset (of which only 15 bits are used) from the
789 zero data area pointer.
790
791 - : BFD_RELOC_V850_TDA_6_8_OFFSET
792 This is an 8 bit offset (of which only 6 bits are used) from the
793 tiny data area pointer.
794
795 - : BFD_RELOC_V850_TDA_7_8_OFFSET
796 This is an 8bit offset (of which only 7 bits are used) from the
797 tiny data area pointer.
798
799 - : BFD_RELOC_V850_TDA_7_7_OFFSET
800 This is a 7 bit offset from the tiny data area pointer.
801
802 - : BFD_RELOC_V850_TDA_16_16_OFFSET
803 This is a 16 bit offset from the tiny data area pointer.
804
805 - : BFD_RELOC_V850_TDA_4_5_OFFSET
806 This is a 5 bit offset (of which only 4 bits are used) from the
807 tiny data area pointer.
808
809 - : BFD_RELOC_V850_TDA_4_4_OFFSET
810 This is a 4 bit offset from the tiny data area pointer.
811
812 - : BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET
813 This is a 16 bit offset from the short data area pointer, with the
814 bits placed non-contigously in the instruction.
815
816 - : BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET
817 This is a 16 bit offset from the zero data area pointer, with the
818 bits placed non-contigously in the instruction.
819
820 - : BFD_RELOC_V850_CALLT_6_7_OFFSET
821 This is a 6 bit offset from the call table base pointer.
822
823 - : BFD_RELOC_V850_CALLT_16_16_OFFSET
824 This is a 16 bit offset from the call table base pointer.
825
826 - : BFD_RELOC_V850_LONGCALL
827 Used for relaxing indirect function calls.
828
829 - : BFD_RELOC_V850_LONGJUMP
830 Used for relaxing indirect jumps.
831
832 - : BFD_RELOC_V850_ALIGN
833 Used to maintain alignment whilst relaxing.
834
835 - : BFD_RELOC_MN10300_32_PCREL
836 This is a 32bit pcrel reloc for the mn10300, offset by two bytes
837 in the instruction.
838
839 - : BFD_RELOC_MN10300_16_PCREL
840 This is a 16bit pcrel reloc for the mn10300, offset by two bytes
841 in the instruction.
842
843 - : BFD_RELOC_TIC30_LDP
844 This is a 8bit DP reloc for the tms320c30, where the most
845 significant 8 bits of a 24 bit word are placed into the least
846 significant 8 bits of the opcode.
847
848 - : BFD_RELOC_TIC54X_PARTLS7
849 This is a 7bit reloc for the tms320c54x, where the least
850 significant 7 bits of a 16 bit word are placed into the least
851 significant 7 bits of the opcode.
852
853 - : BFD_RELOC_TIC54X_PARTMS9
854 This is a 9bit DP reloc for the tms320c54x, where the most
855 significant 9 bits of a 16 bit word are placed into the least
856 significant 9 bits of the opcode.
857
858 - : BFD_RELOC_TIC54X_23
859 This is an extended address 23-bit reloc for the tms320c54x.
860
861 - : BFD_RELOC_TIC54X_16_OF_23
862 This is a 16-bit reloc for the tms320c54x, where the least
863 significant 16 bits of a 23-bit extended address are placed into
864 the opcode.
865
866 - : BFD_RELOC_TIC54X_MS7_OF_23
867 This is a reloc for the tms320c54x, where the most significant 7
868 bits of a 23-bit extended address are placed into the opcode.
869
870 - : BFD_RELOC_FR30_48
871 This is a 48 bit reloc for the FR30 that stores 32 bits.
872
873 - : BFD_RELOC_FR30_20
874 This is a 32 bit reloc for the FR30 that stores 20 bits split up
875 into two sections.
876
877 - : BFD_RELOC_FR30_6_IN_4
878 This is a 16 bit reloc for the FR30 that stores a 6 bit word
879 offset in 4 bits.
880
881 - : BFD_RELOC_FR30_8_IN_8
882 This is a 16 bit reloc for the FR30 that stores an 8 bit byte
883 offset into 8 bits.
884
885 - : BFD_RELOC_FR30_9_IN_8
886 This is a 16 bit reloc for the FR30 that stores a 9 bit short
887 offset into 8 bits.
888
889 - : BFD_RELOC_FR30_10_IN_8
890 This is a 16 bit reloc for the FR30 that stores a 10 bit word
891 offset into 8 bits.
892
893 - : BFD_RELOC_FR30_9_PCREL
894 This is a 16 bit reloc for the FR30 that stores a 9 bit pc relative
895 short offset into 8 bits.
896
897 - : BFD_RELOC_FR30_12_PCREL
898 This is a 16 bit reloc for the FR30 that stores a 12 bit pc
899 relative short offset into 11 bits.
900
901 - : BFD_RELOC_MCORE_PCREL_IMM8BY4
902 - : BFD_RELOC_MCORE_PCREL_IMM11BY2
903 - : BFD_RELOC_MCORE_PCREL_IMM4BY2
904 - : BFD_RELOC_MCORE_PCREL_32
905 - : BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2
906 - : BFD_RELOC_MCORE_RVA
907 Motorola Mcore relocations.
908
909 - : BFD_RELOC_MMIX_GETA
910 - : BFD_RELOC_MMIX_GETA_1
911 - : BFD_RELOC_MMIX_GETA_2
912 - : BFD_RELOC_MMIX_GETA_3
913 These are relocations for the GETA instruction.
914
915 - : BFD_RELOC_MMIX_CBRANCH
916 - : BFD_RELOC_MMIX_CBRANCH_J
917 - : BFD_RELOC_MMIX_CBRANCH_1
918 - : BFD_RELOC_MMIX_CBRANCH_2
919 - : BFD_RELOC_MMIX_CBRANCH_3
920 These are relocations for a conditional branch instruction.
921
922 - : BFD_RELOC_MMIX_PUSHJ
923 - : BFD_RELOC_MMIX_PUSHJ_1
924 - : BFD_RELOC_MMIX_PUSHJ_2
925 - : BFD_RELOC_MMIX_PUSHJ_3
926 These are relocations for the PUSHJ instruction.
927
928 - : BFD_RELOC_MMIX_JMP
929 - : BFD_RELOC_MMIX_JMP_1
930 - : BFD_RELOC_MMIX_JMP_2
931 - : BFD_RELOC_MMIX_JMP_3
932 These are relocations for the JMP instruction.
933
934 - : BFD_RELOC_MMIX_ADDR19
935 This is a relocation for a relative address as in a GETA
936 instruction or a branch.
937
938 - : BFD_RELOC_MMIX_ADDR27
939 This is a relocation for a relative address as in a JMP
940 instruction.
941
942 - : BFD_RELOC_MMIX_REG_OR_BYTE
943 This is a relocation for an instruction field that may be a general
944 register or a value 0..255.
945
946 - : BFD_RELOC_MMIX_REG
947 This is a relocation for an instruction field that may be a general
948 register.
949
950 - : BFD_RELOC_MMIX_BASE_PLUS_OFFSET
951 This is a relocation for two instruction fields holding a register
952 and an offset, the equivalent of the relocation.
953
954 - : BFD_RELOC_MMIX_LOCAL
955 This relocation is an assertion that the expression is not
956 allocated as a global register. It does not modify contents.
957
958 - : BFD_RELOC_AVR_7_PCREL
959 This is a 16 bit reloc for the AVR that stores 8 bit pc relative
960 short offset into 7 bits.
961
962 - : BFD_RELOC_AVR_13_PCREL
963 This is a 16 bit reloc for the AVR that stores 13 bit pc relative
964 short offset into 12 bits.
965
966 - : BFD_RELOC_AVR_16_PM
967 This is a 16 bit reloc for the AVR that stores 17 bit value
968 (usually program memory address) into 16 bits.
969
970 - : BFD_RELOC_AVR_LO8_LDI
971 This is a 16 bit reloc for the AVR that stores 8 bit value (usually
972 data memory address) into 8 bit immediate value of LDI insn.
973
974 - : BFD_RELOC_AVR_HI8_LDI
975 This is a 16 bit reloc for the AVR that stores 8 bit value (high 8
976 bit of data memory address) into 8 bit immediate value of LDI insn.
977
978 - : BFD_RELOC_AVR_HH8_LDI
979 This is a 16 bit reloc for the AVR that stores 8 bit value (most
980 high 8 bit of program memory address) into 8 bit immediate value
981 of LDI insn.
982
983 - : BFD_RELOC_AVR_LO8_LDI_NEG
984 This is a 16 bit reloc for the AVR that stores negated 8 bit value
985 (usually data memory address) into 8 bit immediate value of SUBI
986 insn.
987
988 - : BFD_RELOC_AVR_HI8_LDI_NEG
989 This is a 16 bit reloc for the AVR that stores negated 8 bit value
990 (high 8 bit of data memory address) into 8 bit immediate value of
991 SUBI insn.
992
993 - : BFD_RELOC_AVR_HH8_LDI_NEG
994 This is a 16 bit reloc for the AVR that stores negated 8 bit value
995 (most high 8 bit of program memory address) into 8 bit immediate
996 value of LDI or SUBI insn.
997
998 - : BFD_RELOC_AVR_LO8_LDI_PM
999 This is a 16 bit reloc for the AVR that stores 8 bit value (usually
1000 command address) into 8 bit immediate value of LDI insn.
1001
1002 - : BFD_RELOC_AVR_HI8_LDI_PM
1003 This is a 16 bit reloc for the AVR that stores 8 bit value (high 8
1004 bit of command address) into 8 bit immediate value of LDI insn.
1005
1006 - : BFD_RELOC_AVR_HH8_LDI_PM
1007 This is a 16 bit reloc for the AVR that stores 8 bit value (most
1008 high 8 bit of command address) into 8 bit immediate value of LDI
1009 insn.
1010
1011 - : BFD_RELOC_AVR_LO8_LDI_PM_NEG
1012 This is a 16 bit reloc for the AVR that stores negated 8 bit value
1013 (usually command address) into 8 bit immediate value of SUBI insn.
1014
1015 - : BFD_RELOC_AVR_HI8_LDI_PM_NEG
1016 This is a 16 bit reloc for the AVR that stores negated 8 bit value
1017 (high 8 bit of 16 bit command address) into 8 bit immediate value
1018 of SUBI insn.
1019
1020 - : BFD_RELOC_AVR_HH8_LDI_PM_NEG
1021 This is a 16 bit reloc for the AVR that stores negated 8 bit value
1022 (high 6 bit of 22 bit command address) into 8 bit immediate value
1023 of SUBI insn.
1024
1025 - : BFD_RELOC_AVR_CALL
1026 This is a 32 bit reloc for the AVR that stores 23 bit value into
1027 22 bits.
1028
1029 - : BFD_RELOC_390_12
1030 Direct 12 bit.
1031
1032 - : BFD_RELOC_390_GOT12
1033 12 bit GOT offset.
1034
1035 - : BFD_RELOC_390_PLT32
1036 32 bit PC relative PLT address.
1037
1038 - : BFD_RELOC_390_COPY
1039 Copy symbol at runtime.
1040
1041 - : BFD_RELOC_390_GLOB_DAT
1042 Create GOT entry.
1043
1044 - : BFD_RELOC_390_JMP_SLOT
1045 Create PLT entry.
1046
1047 - : BFD_RELOC_390_RELATIVE
1048 Adjust by program base.
1049
1050 - : BFD_RELOC_390_GOTPC
1051 32 bit PC relative offset to GOT.
1052
1053 - : BFD_RELOC_390_GOT16
1054 16 bit GOT offset.
1055
1056 - : BFD_RELOC_390_PC16DBL
1057 PC relative 16 bit shifted by 1.
1058
1059 - : BFD_RELOC_390_PLT16DBL
1060 16 bit PC rel. PLT shifted by 1.
1061
1062 - : BFD_RELOC_390_PC32DBL
1063 PC relative 32 bit shifted by 1.
1064
1065 - : BFD_RELOC_390_PLT32DBL
1066 32 bit PC rel. PLT shifted by 1.
1067
1068 - : BFD_RELOC_390_GOTPCDBL
1069 32 bit PC rel. GOT shifted by 1.
1070
1071 - : BFD_RELOC_390_GOT64
1072 64 bit GOT offset.
1073
1074 - : BFD_RELOC_390_PLT64
1075 64 bit PC relative PLT address.
1076
1077 - : BFD_RELOC_390_GOTENT
1078 32 bit rel. offset to GOT entry.
1079
1080 - : BFD_RELOC_390_GOTOFF64
1081 64 bit offset to GOT.
1082
1083 - : BFD_RELOC_390_GOTPLT12
1084 12-bit offset to symbol-entry within GOT, with PLT handling.
1085
1086 - : BFD_RELOC_390_GOTPLT16
1087 16-bit offset to symbol-entry within GOT, with PLT handling.
1088
1089 - : BFD_RELOC_390_GOTPLT32
1090 32-bit offset to symbol-entry within GOT, with PLT handling.
1091
1092 - : BFD_RELOC_390_GOTPLT64
1093 64-bit offset to symbol-entry within GOT, with PLT handling.
1094
1095 - : BFD_RELOC_390_GOTPLTENT
1096 32-bit rel. offset to symbol-entry within GOT, with PLT handling.
1097
1098 - : BFD_RELOC_390_PLTOFF16
1099 16-bit rel. offset from the GOT to a PLT entry.
1100
1101 - : BFD_RELOC_390_PLTOFF32
1102 32-bit rel. offset from the GOT to a PLT entry.
1103
1104 - : BFD_RELOC_390_PLTOFF64
1105 64-bit rel. offset from the GOT to a PLT entry.
1106
1107 - : BFD_RELOC_390_TLS_LOAD
1108 - : BFD_RELOC_390_TLS_GDCALL
1109 - : BFD_RELOC_390_TLS_LDCALL
1110 - : BFD_RELOC_390_TLS_GD32
1111 - : BFD_RELOC_390_TLS_GD64
1112 - : BFD_RELOC_390_TLS_GOTIE12
1113 - : BFD_RELOC_390_TLS_GOTIE32
1114 - : BFD_RELOC_390_TLS_GOTIE64
1115 - : BFD_RELOC_390_TLS_LDM32
1116 - : BFD_RELOC_390_TLS_LDM64
1117 - : BFD_RELOC_390_TLS_IE32
1118 - : BFD_RELOC_390_TLS_IE64
1119 - : BFD_RELOC_390_TLS_IEENT
1120 - : BFD_RELOC_390_TLS_LE32
1121 - : BFD_RELOC_390_TLS_LE64
1122 - : BFD_RELOC_390_TLS_LDO32
1123 - : BFD_RELOC_390_TLS_LDO64
1124 - : BFD_RELOC_390_TLS_DTPMOD
1125 - : BFD_RELOC_390_TLS_DTPOFF
1126 - : BFD_RELOC_390_TLS_TPOFF
1127 s390 tls relocations.
1128
1129 - : BFD_RELOC_IP2K_FR9
1130 Scenix IP2K - 9-bit register number / data address
1131
1132 - : BFD_RELOC_IP2K_BANK
1133 Scenix IP2K - 4-bit register/data bank number
1134
1135 - : BFD_RELOC_IP2K_ADDR16CJP
1136 Scenix IP2K - low 13 bits of instruction word address
1137
1138 - : BFD_RELOC_IP2K_PAGE3
1139 Scenix IP2K - high 3 bits of instruction word address
1140
1141 - : BFD_RELOC_IP2K_LO8DATA
1142 - : BFD_RELOC_IP2K_HI8DATA
1143 - : BFD_RELOC_IP2K_EX8DATA
1144 Scenix IP2K - ext/low/high 8 bits of data address
1145
1146 - : BFD_RELOC_IP2K_LO8INSN
1147 - : BFD_RELOC_IP2K_HI8INSN
1148 Scenix IP2K - low/high 8 bits of instruction word address
1149
1150 - : BFD_RELOC_IP2K_PC_SKIP
1151 Scenix IP2K - even/odd PC modifier to modify snb pcl.0
1152
1153 - : BFD_RELOC_IP2K_TEXT
1154 Scenix IP2K - 16 bit word address in text section.
1155
1156 - : BFD_RELOC_IP2K_FR_OFFSET
1157 Scenix IP2K - 7-bit sp or dp offset
1158
1159 - : BFD_RELOC_VPE4KMATH_DATA
1160 - : BFD_RELOC_VPE4KMATH_INSN
1161 Scenix VPE4K coprocessor - data/insn-space addressing
1162
1163 - : BFD_RELOC_VTABLE_INHERIT
1164 - : BFD_RELOC_VTABLE_ENTRY
1165 These two relocations are used by the linker to determine which of
1166 the entries in a C++ virtual function table are actually used.
1167 When the -gc-sections option is given, the linker will zero out
1168 the entries that are not used, so that the code for those
1169 functions need not be included in the output.
1170
1171 VTABLE_INHERIT is a zero-space relocation used to describe to the
1172 linker the inheritence tree of a C++ virtual function table. The
1173 relocation's symbol should be the parent class' vtable, and the
1174 relocation should be located at the child vtable.
1175
1176 VTABLE_ENTRY is a zero-space relocation that describes the use of a
1177 virtual function table entry. The reloc's symbol should refer to
1178 the table of the class mentioned in the code. Off of that base,
1179 an offset describes the entry that is being used. For Rela hosts,
1180 this offset is stored in the reloc's addend. For Rel hosts, we
1181 are forced to put this offset in the reloc's section offset.
1182
1183 - : BFD_RELOC_IA64_IMM14
1184 - : BFD_RELOC_IA64_IMM22
1185 - : BFD_RELOC_IA64_IMM64
1186 - : BFD_RELOC_IA64_DIR32MSB
1187 - : BFD_RELOC_IA64_DIR32LSB
1188 - : BFD_RELOC_IA64_DIR64MSB
1189 - : BFD_RELOC_IA64_DIR64LSB
1190 - : BFD_RELOC_IA64_GPREL22
1191 - : BFD_RELOC_IA64_GPREL64I
1192 - : BFD_RELOC_IA64_GPREL32MSB
1193 - : BFD_RELOC_IA64_GPREL32LSB
1194 - : BFD_RELOC_IA64_GPREL64MSB
1195 - : BFD_RELOC_IA64_GPREL64LSB
1196 - : BFD_RELOC_IA64_LTOFF22
1197 - : BFD_RELOC_IA64_LTOFF64I
1198 - : BFD_RELOC_IA64_PLTOFF22
1199 - : BFD_RELOC_IA64_PLTOFF64I
1200 - : BFD_RELOC_IA64_PLTOFF64MSB
1201 - : BFD_RELOC_IA64_PLTOFF64LSB
1202 - : BFD_RELOC_IA64_FPTR64I
1203 - : BFD_RELOC_IA64_FPTR32MSB
1204 - : BFD_RELOC_IA64_FPTR32LSB
1205 - : BFD_RELOC_IA64_FPTR64MSB
1206 - : BFD_RELOC_IA64_FPTR64LSB
1207 - : BFD_RELOC_IA64_PCREL21B
1208 - : BFD_RELOC_IA64_PCREL21BI
1209 - : BFD_RELOC_IA64_PCREL21M
1210 - : BFD_RELOC_IA64_PCREL21F
1211 - : BFD_RELOC_IA64_PCREL22
1212 - : BFD_RELOC_IA64_PCREL60B
1213 - : BFD_RELOC_IA64_PCREL64I
1214 - : BFD_RELOC_IA64_PCREL32MSB
1215 - : BFD_RELOC_IA64_PCREL32LSB
1216 - : BFD_RELOC_IA64_PCREL64MSB
1217 - : BFD_RELOC_IA64_PCREL64LSB
1218 - : BFD_RELOC_IA64_LTOFF_FPTR22
1219 - : BFD_RELOC_IA64_LTOFF_FPTR64I
1220 - : BFD_RELOC_IA64_LTOFF_FPTR32MSB
1221 - : BFD_RELOC_IA64_LTOFF_FPTR32LSB
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_LTOFF22X
1244 - : BFD_RELOC_IA64_LDXMOV
1245 - : BFD_RELOC_IA64_TPREL14
1246 - : BFD_RELOC_IA64_TPREL22
1247 - : BFD_RELOC_IA64_TPREL64I
1248 - : BFD_RELOC_IA64_TPREL64MSB
1249 - : BFD_RELOC_IA64_TPREL64LSB
1250 - : BFD_RELOC_IA64_LTOFF_TPREL22
1251 - : BFD_RELOC_IA64_DTPMOD64MSB
1252 - : BFD_RELOC_IA64_DTPMOD64LSB
1253 - : BFD_RELOC_IA64_LTOFF_DTPMOD22
1254 - : BFD_RELOC_IA64_DTPREL14
1255 - : BFD_RELOC_IA64_DTPREL22
1256 - : BFD_RELOC_IA64_DTPREL64I
1257 - : BFD_RELOC_IA64_DTPREL32MSB
1258 - : BFD_RELOC_IA64_DTPREL32LSB
1259 - : BFD_RELOC_IA64_DTPREL64MSB
1260 - : BFD_RELOC_IA64_DTPREL64LSB
1261 - : BFD_RELOC_IA64_LTOFF_DTPREL22
1262 Intel IA64 Relocations.
1263
1264 - : BFD_RELOC_M68HC11_HI8
1265 Motorola 68HC11 reloc. This is the 8 bit high part of an absolute
1266 address.
1267
1268 - : BFD_RELOC_M68HC11_LO8
1269 Motorola 68HC11 reloc. This is the 8 bit low part of an absolute
1270 address.
1271
1272 - : BFD_RELOC_M68HC11_3B
1273 Motorola 68HC11 reloc. This is the 3 bit of a value.
1274
1275 - : BFD_RELOC_M68HC11_RL_JUMP
1276 Motorola 68HC11 reloc. This reloc marks the beginning of a
1277 jump/call instruction. It is used for linker relaxation to
1278 correctly identify beginning of instruction and change some
1279 branchs to use PC-relative addressing mode.
1280
1281 - : BFD_RELOC_M68HC11_RL_GROUP
1282 Motorola 68HC11 reloc. This reloc marks a group of several
1283 instructions that gcc generates and for which the linker
1284 relaxation pass can modify and/or remove some of them.
1285
1286 - : BFD_RELOC_M68HC11_LO16
1287 Motorola 68HC11 reloc. This is the 16-bit lower part of an
1288 address. It is used for 'call' instruction to specify the symbol
1289 address without any special transformation (due to memory bank
1290 window).
1291
1292 - : BFD_RELOC_M68HC11_PAGE
1293 Motorola 68HC11 reloc. This is a 8-bit reloc that specifies the
1294 page number of an address. It is used by 'call' instruction to
1295 specify the page number of the symbol.
1296
1297 - : BFD_RELOC_M68HC11_24
1298 Motorola 68HC11 reloc. This is a 24-bit reloc that represents the
1299 address with a 16-bit value and a 8-bit page number. The symbol
1300 address is transformed to follow the 16K memory bank of 68HC12
1301 (seen as mapped in the window).
1302
1303 - : BFD_RELOC_CRIS_BDISP8
1304 - : BFD_RELOC_CRIS_UNSIGNED_5
1305 - : BFD_RELOC_CRIS_SIGNED_6
1306 - : BFD_RELOC_CRIS_UNSIGNED_6
1307 - : BFD_RELOC_CRIS_UNSIGNED_4
1308 These relocs are only used within the CRIS assembler. They are not
1309 (at present) written to any object files.
1310
1311 - : BFD_RELOC_CRIS_COPY
1312 - : BFD_RELOC_CRIS_GLOB_DAT
1313 - : BFD_RELOC_CRIS_JUMP_SLOT
1314 - : BFD_RELOC_CRIS_RELATIVE
1315 Relocs used in ELF shared libraries for CRIS.
1316
1317 - : BFD_RELOC_CRIS_32_GOT
1318 32-bit offset to symbol-entry within GOT.
1319
1320 - : BFD_RELOC_CRIS_16_GOT
1321 16-bit offset to symbol-entry within GOT.
1322
1323 - : BFD_RELOC_CRIS_32_GOTPLT
1324 32-bit offset to symbol-entry within GOT, with PLT handling.
1325
1326 - : BFD_RELOC_CRIS_16_GOTPLT
1327 16-bit offset to symbol-entry within GOT, with PLT handling.
1328
1329 - : BFD_RELOC_CRIS_32_GOTREL
1330 32-bit offset to symbol, relative to GOT.
1331
1332 - : BFD_RELOC_CRIS_32_PLT_GOTREL
1333 32-bit offset to symbol with PLT entry, relative to GOT.
1334
1335 - : BFD_RELOC_CRIS_32_PLT_PCREL
1336 32-bit offset to symbol with PLT entry, relative to this
1337 relocation.
1338
1339 - : BFD_RELOC_860_COPY
1340 - : BFD_RELOC_860_GLOB_DAT
1341 - : BFD_RELOC_860_JUMP_SLOT
1342 - : BFD_RELOC_860_RELATIVE
1343 - : BFD_RELOC_860_PC26
1344 - : BFD_RELOC_860_PLT26
1345 - : BFD_RELOC_860_PC16
1346 - : BFD_RELOC_860_LOW0
1347 - : BFD_RELOC_860_SPLIT0
1348 - : BFD_RELOC_860_LOW1
1349 - : BFD_RELOC_860_SPLIT1
1350 - : BFD_RELOC_860_LOW2
1351 - : BFD_RELOC_860_SPLIT2
1352 - : BFD_RELOC_860_LOW3
1353 - : BFD_RELOC_860_LOGOT0
1354 - : BFD_RELOC_860_SPGOT0
1355 - : BFD_RELOC_860_LOGOT1
1356 - : BFD_RELOC_860_SPGOT1
1357 - : BFD_RELOC_860_LOGOTOFF0
1358 - : BFD_RELOC_860_SPGOTOFF0
1359 - : BFD_RELOC_860_LOGOTOFF1
1360 - : BFD_RELOC_860_SPGOTOFF1
1361 - : BFD_RELOC_860_LOGOTOFF2
1362 - : BFD_RELOC_860_LOGOTOFF3
1363 - : BFD_RELOC_860_LOPC
1364 - : BFD_RELOC_860_HIGHADJ
1365 - : BFD_RELOC_860_HAGOT
1366 - : BFD_RELOC_860_HAGOTOFF
1367 - : BFD_RELOC_860_HAPC
1368 - : BFD_RELOC_860_HIGH
1369 - : BFD_RELOC_860_HIGOT
1370 - : BFD_RELOC_860_HIGOTOFF
1371 Intel i860 Relocations.
1372
1373 - : BFD_RELOC_OPENRISC_ABS_26
1374 - : BFD_RELOC_OPENRISC_REL_26
1375 OpenRISC Relocations.
1376
1377 - : BFD_RELOC_H8_DIR16A8
1378 - : BFD_RELOC_H8_DIR16R8
1379 - : BFD_RELOC_H8_DIR24A8
1380 - : BFD_RELOC_H8_DIR24R8
1381 - : BFD_RELOC_H8_DIR32A16
1382 H8 elf Relocations.
1383
1384 - : BFD_RELOC_XSTORMY16_REL_12
1385 - : BFD_RELOC_XSTORMY16_12
1386 - : BFD_RELOC_XSTORMY16_24
1387 - : BFD_RELOC_XSTORMY16_FPTR16
1388 Sony Xstormy16 Relocations.
1389
1390 - : BFD_RELOC_VAX_GLOB_DAT
1391 - : BFD_RELOC_VAX_JMP_SLOT
1392 - : BFD_RELOC_VAX_RELATIVE
1393 Relocations used by VAX ELF.
1394
1395 - : BFD_RELOC_MSP430_10_PCREL
1396 - : BFD_RELOC_MSP430_16_PCREL
1397 - : BFD_RELOC_MSP430_16
1398 - : BFD_RELOC_MSP430_16_PCREL_BYTE
1399 - : BFD_RELOC_MSP430_16_BYTE
1400 msp430 specific relocation codes
1401
1402 - : BFD_RELOC_IQ2000_OFFSET_16
1403 - : BFD_RELOC_IQ2000_OFFSET_21
1404 - : BFD_RELOC_IQ2000_UHI16
1405 IQ2000 Relocations.
1406
1407 - : BFD_RELOC_XTENSA_RTLD
1408 Special Xtensa relocation used only by PLT entries in ELF shared
1409 objects to indicate that the runtime linker should set the value
1410 to one of its own internal functions or data structures.
1411
1412 - : BFD_RELOC_XTENSA_GLOB_DAT
1413 - : BFD_RELOC_XTENSA_JMP_SLOT
1414 - : BFD_RELOC_XTENSA_RELATIVE
1415 Xtensa relocations for ELF shared objects.
1416
1417 - : BFD_RELOC_XTENSA_PLT
1418 Xtensa relocation used in ELF object files for symbols that may
1419 require PLT entries. Otherwise, this is just a generic 32-bit
1420 relocation.
1421
1422 - : BFD_RELOC_XTENSA_OP0
1423 - : BFD_RELOC_XTENSA_OP1
1424 - : BFD_RELOC_XTENSA_OP2
1425 Generic Xtensa relocations. Only the operand number is encoded in
1426 the relocation. The details are determined by extracting the
1427 instruction opcode.
1428
1429 - : BFD_RELOC_XTENSA_ASM_EXPAND
1430 Xtensa relocation to mark that the assembler expanded the
1431 instructions from an original target. The expansion size is
1432 encoded in the reloc size.
1433
1434 - : BFD_RELOC_XTENSA_ASM_SIMPLIFY
1435 Xtensa relocation to mark that the linker should simplify
1436 assembler-expanded instructions. This is commonly used internally
1437 by the linker after analysis of a BFD_RELOC_XTENSA_ASM_EXPAND.
1438
1439
1440 typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;
1441
1442`bfd_reloc_type_lookup'
1443.......................
1444
1445 *Synopsis*
1446 reloc_howto_type *
1447 bfd_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code);
1448 *Description*
1449Return a pointer to a howto structure which, when invoked, will perform
1450the relocation CODE on data from the architecture noted.
1451
1452`bfd_default_reloc_type_lookup'
1453...............................
1454
1455 *Synopsis*
1456 reloc_howto_type *bfd_default_reloc_type_lookup
1457 (bfd *abfd, bfd_reloc_code_real_type code);
1458 *Description*
1459Provides a default relocation lookup routine for any architecture.
1460
1461`bfd_get_reloc_code_name'
1462.........................
1463
1464 *Synopsis*
1465 const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code);
1466 *Description*
1467Provides a printable name for the supplied relocation code. Useful
1468mainly for printing error messages.
1469
1470`bfd_generic_relax_section'
1471...........................
1472
1473 *Synopsis*
1474 bfd_boolean bfd_generic_relax_section
1475 (bfd *abfd,
1476 asection *section,
1477 struct bfd_link_info *,
1478 bfd_boolean *);
1479 *Description*
1480Provides default handling for relaxing for back ends which don't do
1481relaxing - i.e., does nothing.
1482
1483`bfd_generic_gc_sections'
1484.........................
1485
1486 *Synopsis*
1487 bfd_boolean bfd_generic_gc_sections
1488 (bfd *, struct bfd_link_info *);
1489 *Description*
1490Provides default handling for relaxing for back ends which don't do
1491section gc - i.e., does nothing.
1492
1493`bfd_generic_merge_sections'
1494............................
1495
1496 *Synopsis*
1497 bfd_boolean bfd_generic_merge_sections
1498 (bfd *, struct bfd_link_info *);
1499 *Description*
1500Provides default handling for SEC_MERGE section merging for back ends
1501which don't have SEC_MERGE support - i.e., does nothing.
1502
1503`bfd_generic_get_relocated_section_contents'
1504............................................
1505
1506 *Synopsis*
1507 bfd_byte *
1508 bfd_generic_get_relocated_section_contents (bfd *abfd,
1509 struct bfd_link_info *link_info,
1510 struct bfd_link_order *link_order,
1511 bfd_byte *data,
1512 bfd_boolean relocateable,
1513 asymbol **symbols);
1514 *Description*
1515Provides default handling of relocation effort for back ends which
1516can't be bothered to do it efficiently.
1517
1518
1519File: bfd.info, Node: Core Files, Next: Targets, Prev: Relocations, Up: BFD front end
1520
1521Core files
1522==========
1523
1524 *Description*
1525These are functions pertaining to core files.
1526
1527`bfd_core_file_failing_command'
1528...............................
1529
1530 *Synopsis*
1531 const char *bfd_core_file_failing_command(bfd *abfd);
1532 *Description*
1533Return a read-only string explaining which program was running when it
1534failed and produced the core file ABFD.
1535
1536`bfd_core_file_failing_signal'
1537..............................
1538
1539 *Synopsis*
1540 int bfd_core_file_failing_signal(bfd *abfd);
1541 *Description*
1542Returns the signal number which caused the core dump which generated
1543the file the BFD ABFD is attached to.
1544
1545`core_file_matches_executable_p'
1546................................
1547
1548 *Synopsis*
1549 bfd_boolean core_file_matches_executable_p
1550 (bfd *core_bfd, bfd *exec_bfd);
1551 *Description*
1552Return `TRUE' if the core file attached to CORE_BFD was generated by a
1553run of the executable file attached to EXEC_BFD, `FALSE' otherwise.
1554
1555
1556File: bfd.info, Node: Targets, Next: Architectures, Prev: Core Files, Up: BFD front end
1557
1558Targets
1559=======
1560
1561 *Description*
1562Each port of BFD to a different machine requries the creation of a
1563target back end. All the back end provides to the root part of BFD is a
1564structure containing pointers to functions which perform certain low
1565level operations on files. BFD translates the applications's requests
1566through a pointer into calls to the back end routines.
1567
1568 When a file is opened with `bfd_openr', its format and target are
1569unknown. BFD uses various mechanisms to determine how to interpret the
1570file. The operations performed are:
1571
1572 * Create a BFD by calling the internal routine `_bfd_new_bfd', then
1573 call `bfd_find_target' with the target string supplied to
1574 `bfd_openr' and the new BFD pointer.
1575
1576 * If a null target string was provided to `bfd_find_target', look up
1577 the environment variable `GNUTARGET' and use that as the target
1578 string.
1579
1580 * If the target string is still `NULL', or the target string is
1581 `default', then use the first item in the target vector as the
1582 target type, and set `target_defaulted' in the BFD to cause
1583 `bfd_check_format' to loop through all the targets. *Note
1584 bfd_target::. *Note Formats::.
1585
1586 * Otherwise, inspect the elements in the target vector one by one,
1587 until a match on target name is found. When found, use it.
1588
1589 * Otherwise return the error `bfd_error_invalid_target' to
1590 `bfd_openr'.
1591
1592 * `bfd_openr' attempts to open the file using `bfd_open_file', and
1593 returns the BFD.
1594 Once the BFD has been opened and the target selected, the file
1595format may be determined. This is done by calling `bfd_check_format' on
1596the BFD with a suggested format. If `target_defaulted' has been set,
1597each possible target type is tried to see if it recognizes the
1598specified format. `bfd_check_format' returns `TRUE' when the caller
1599guesses right.
1600
1601* Menu:
1602
1603* bfd_target::
1604
Note: See TracBrowser for help on using the repository browser.