OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / prebuilt / linux-x86 / toolchain / arm-eabi-4.2.1 / info / bfd.info
1 This is
2 /disk2/dougkwan/android-4/toolchain/android-toolchain/binutils-2.17/bfd/doc/bfd.info,
3 produced by makeinfo version 4.8 from
4 /disk2/dougkwan/android-4/toolchain/android-toolchain/binutils-2.17/bfd/doc/bfd.texinfo.
5
6 START-INFO-DIR-ENTRY
7 * Bfd: (bfd).                   The Binary File Descriptor library.
8 END-INFO-DIR-ENTRY
9
10    This file documents the BFD library.
11
12    Copyright (C) 1991, 2000, 2001, 2003 Free Software Foundation, Inc.
13
14    Permission is granted to copy, distribute and/or modify this document
15      under the terms of the GNU Free Documentation License, Version 1.1
16      or any later version published by the Free Software Foundation;
17    with no Invariant Sections, with no Front-Cover Texts, and with no
18     Back-Cover Texts.  A copy of the license is included in the
19 section entitled "GNU Free Documentation License".
20
21 \1f
22 File: bfd.info,  Node: Top,  Next: Overview,  Prev: (dir),  Up: (dir)
23
24    This file documents the binary file descriptor library libbfd.
25
26 * Menu:
27
28 * Overview::                    Overview of BFD
29 * BFD front end::               BFD front end
30 * BFD back ends::               BFD back ends
31 * GNU Free Documentation License::  GNU Free Documentation License
32 * Index::                       Index
33
34 \1f
35 File: bfd.info,  Node: Overview,  Next: BFD front end,  Prev: Top,  Up: Top
36
37 1 Introduction
38 **************
39
40 BFD is a package which allows applications to use the same routines to
41 operate on object files whatever the object file format.  A new object
42 file format can be supported simply by creating a new BFD back end and
43 adding it to the library.
44
45    BFD is split into two parts: the front end, and the back ends (one
46 for each object file format).
47    * The front end of BFD provides the interface to the user. It manages
48      memory and various canonical data structures. The front end also
49      decides which back end to use and when to call back end routines.
50
51    * The back ends provide BFD its view of the real world. Each back
52      end provides a set of calls which the BFD front end can use to
53      maintain its canonical form. The back ends also may keep around
54      information for their own use, for greater efficiency.
55
56 * Menu:
57
58 * History::                     History
59 * How It Works::                How It Works
60 * What BFD Version 2 Can Do::   What BFD Version 2 Can Do
61
62 \1f
63 File: bfd.info,  Node: History,  Next: How It Works,  Prev: Overview,  Up: Overview
64
65 1.1 History
66 ===========
67
68 One spur behind BFD was the desire, on the part of the GNU 960 team at
69 Intel Oregon, for interoperability of applications on their COFF and
70 b.out file formats.  Cygnus was providing GNU support for the team, and
71 was contracted to provide the required functionality.
72
73    The name came from a conversation David Wallace was having with
74 Richard Stallman about the library: RMS said that it would be quite
75 hard--David said "BFD".  Stallman was right, but the name stuck.
76
77    At the same time, Ready Systems wanted much the same thing, but for
78 different object file formats: IEEE-695, Oasys, Srecords, a.out and 68k
79 coff.
80
81    BFD was first implemented by members of Cygnus Support; Steve
82 Chamberlain (`sac@cygnus.com'), John Gilmore (`gnu@cygnus.com'), K.
83 Richard Pixley (`rich@cygnus.com') and David Henkel-Wallace
84 (`gumby@cygnus.com').
85
86 \1f
87 File: bfd.info,  Node: How It Works,  Next: What BFD Version 2 Can Do,  Prev: History,  Up: Overview
88
89 1.2 How To Use BFD
90 ==================
91
92 To use the library, include `bfd.h' and link with `libbfd.a'.
93
94    BFD provides a common interface to the parts of an object file for a
95 calling application.
96
97    When an application sucessfully opens a target file (object,
98 archive, or whatever), a pointer to an internal structure is returned.
99 This pointer points to a structure called `bfd', described in `bfd.h'.
100 Our convention is to call this pointer a BFD, and instances of it
101 within code `abfd'.  All operations on the target object file are
102 applied as methods to the BFD.  The mapping is defined within `bfd.h'
103 in a set of macros, all beginning with `bfd_' to reduce namespace
104 pollution.
105
106    For example, this sequence does what you would probably expect:
107 return the number of sections in an object file attached to a BFD
108 `abfd'.
109
110      #include "bfd.h"
111
112      unsigned int number_of_sections (abfd)
113      bfd *abfd;
114      {
115        return bfd_count_sections (abfd);
116      }
117
118    The abstraction used within BFD is that an object file has:
119
120    * a header,
121
122    * a number of sections containing raw data (*note Sections::),
123
124    * a set of relocations (*note Relocations::), and
125
126    * some symbol information (*note Symbols::).
127    Also, BFDs opened for archives have the additional attribute of an
128 index and contain subordinate BFDs. This approach is fine for a.out and
129 coff, but loses efficiency when applied to formats such as S-records and
130 IEEE-695.
131
132 \1f
133 File: bfd.info,  Node: What BFD Version 2 Can Do,  Prev: How It Works,  Up: Overview
134
135 1.3 What BFD Version 2 Can Do
136 =============================
137
138 When an object file is opened, BFD subroutines automatically determine
139 the format of the input object file.  They then build a descriptor in
140 memory with pointers to routines that will be used to access elements of
141 the object file's data structures.
142
143    As different information from the object files is required, BFD
144 reads from different sections of the file and processes them.  For
145 example, a very common operation for the linker is processing symbol
146 tables.  Each BFD back end provides a routine for converting between
147 the object file's representation of symbols and an internal canonical
148 format. When the linker asks for the symbol table of an object file, it
149 calls through a memory pointer to the routine from the relevant BFD
150 back end which reads and converts the table into a canonical form.  The
151 linker then operates upon the canonical form. When the link is finished
152 and the linker writes the output file's symbol table, another BFD back
153 end routine is called to take the newly created symbol table and
154 convert it into the chosen output format.
155
156 * Menu:
157
158 * BFD information loss::        Information Loss
159 * Canonical format::            The BFD canonical object-file format
160
161 \1f
162 File: bfd.info,  Node: BFD information loss,  Next: Canonical format,  Up: What BFD Version 2 Can Do
163
164 1.3.1 Information Loss
165 ----------------------
166
167 _Information can be lost during output._ The output formats supported
168 by BFD do not provide identical facilities, and information which can
169 be described in one form has nowhere to go in another format. One
170 example of this is alignment information in `b.out'. There is nowhere
171 in an `a.out' format file to store alignment information on the
172 contained data, so when a file is linked from `b.out' and an `a.out'
173 image is produced, alignment information will not propagate to the
174 output file. (The linker will still use the alignment information
175 internally, so the link is performed correctly).
176
177    Another example is COFF section names. COFF files may contain an
178 unlimited number of sections, each one with a textual section name. If
179 the target of the link is a format which does not have many sections
180 (e.g., `a.out') or has sections without names (e.g., the Oasys format),
181 the link cannot be done simply. You can circumvent this problem by
182 describing the desired input-to-output section mapping with the linker
183 command language.
184
185    _Information can be lost during canonicalization._ The BFD internal
186 canonical form of the external formats is not exhaustive; there are
187 structures in input formats for which there is no direct representation
188 internally.  This means that the BFD back ends cannot maintain all
189 possible data richness through the transformation between external to
190 internal and back to external formats.
191
192    This limitation is only a problem when an application reads one
193 format and writes another.  Each BFD back end is responsible for
194 maintaining as much data as possible, and the internal BFD canonical
195 form has structures which are opaque to the BFD core, and exported only
196 to the back ends. When a file is read in one format, the canonical form
197 is generated for BFD and the application. At the same time, the back
198 end saves away any information which may otherwise be lost. If the data
199 is then written back in the same format, the back end routine will be
200 able to use the canonical form provided by the BFD core as well as the
201 information it prepared earlier.  Since there is a great deal of
202 commonality between back ends, there is no information lost when
203 linking or copying big endian COFF to little endian COFF, or `a.out' to
204 `b.out'.  When a mixture of formats is linked, the information is only
205 lost from the files whose format differs from the destination.
206
207 \1f
208 File: bfd.info,  Node: Canonical format,  Prev: BFD information loss,  Up: What BFD Version 2 Can Do
209
210 1.3.2 The BFD canonical object-file format
211 ------------------------------------------
212
213 The greatest potential for loss of information occurs when there is the
214 least overlap between the information provided by the source format,
215 that stored by the canonical format, and that needed by the destination
216 format. A brief description of the canonical form may help you
217 understand which kinds of data you can count on preserving across
218 conversions.  
219
220 _files_
221      Information stored on a per-file basis includes target machine
222      architecture, particular implementation format type, a demand
223      pageable bit, and a write protected bit.  Information like Unix
224      magic numbers is not stored here--only the magic numbers' meaning,
225      so a `ZMAGIC' file would have both the demand pageable bit and the
226      write protected text bit set.  The byte order of the target is
227      stored on a per-file basis, so that big- and little-endian object
228      files may be used with one another.
229
230 _sections_
231      Each section in the input file contains the name of the section,
232      the section's original address in the object file, size and
233      alignment information, various flags, and pointers into other BFD
234      data structures.
235
236 _symbols_
237      Each symbol contains a pointer to the information for the object
238      file which originally defined it, its name, its value, and various
239      flag bits.  When a BFD back end reads in a symbol table, it
240      relocates all symbols to make them relative to the base of the
241      section where they were defined.  Doing this ensures that each
242      symbol points to its containing section.  Each symbol also has a
243      varying amount of hidden private data for the BFD back end.  Since
244      the symbol points to the original file, the private data format
245      for that symbol is accessible.  `ld' can operate on a collection
246      of symbols of wildly different formats without problems.
247
248      Normal global and simple local symbols are maintained on output,
249      so an output file (no matter its format) will retain symbols
250      pointing to functions and to global, static, and common variables.
251      Some symbol information is not worth retaining; in `a.out', type
252      information is stored in the symbol table as long symbol names.
253      This information would be useless to most COFF debuggers; the
254      linker has command line switches to allow users to throw it away.
255
256      There is one word of type information within the symbol, so if the
257      format supports symbol type information within symbols (for
258      example, COFF, IEEE, Oasys) and the type is simple enough to fit
259      within one word (nearly everything but aggregates), the
260      information will be preserved.
261
262 _relocation level_
263      Each canonical BFD relocation record contains a pointer to the
264      symbol to relocate to, the offset of the data to relocate, the
265      section the data is in, and a pointer to a relocation type
266      descriptor. Relocation is performed by passing messages through
267      the relocation type descriptor and the symbol pointer. Therefore,
268      relocations can be performed on output data using a relocation
269      method that is only available in one of the input formats. For
270      instance, Oasys provides a byte relocation format.  A relocation
271      record requesting this relocation type would point indirectly to a
272      routine to perform this, so the relocation may be performed on a
273      byte being written to a 68k COFF file, even though 68k COFF has no
274      such relocation type.
275
276 _line numbers_
277      Object formats can contain, for debugging purposes, some form of
278      mapping between symbols, source line numbers, and addresses in the
279      output file.  These addresses have to be relocated along with the
280      symbol information.  Each symbol with an associated list of line
281      number records points to the first record of the list.  The head
282      of a line number list consists of a pointer to the symbol, which
283      allows finding out the address of the function whose line number
284      is being described. The rest of the list is made up of pairs:
285      offsets into the section and line numbers. Any format which can
286      simply derive this information can pass it successfully between
287      formats (COFF, IEEE and Oasys).
288
289 \1f
290 File: bfd.info,  Node: BFD front end,  Next: BFD back ends,  Prev: Overview,  Up: Top
291
292 2 BFD Front End
293 ***************
294
295 2.1 `typedef bfd'
296 =================
297
298 A BFD has type `bfd'; objects of this type are the cornerstone of any
299 application using BFD. Using BFD consists of making references though
300 the BFD and to data in the BFD.
301
302    Here is the structure that defines the type `bfd'.  It contains the
303 major data about the file and pointers to the rest of the data.
304
305
306      struct bfd
307      {
308        /* A unique identifier of the BFD  */
309        unsigned int id;
310
311        /* The filename the application opened the BFD with.  */
312        const char *filename;
313
314        /* A pointer to the target jump table.  */
315        const struct bfd_target *xvec;
316
317        /* The IOSTREAM, and corresponding IO vector that provide access
318           to the file backing the BFD.  */
319        void *iostream;
320        const struct bfd_iovec *iovec;
321
322        /* Is the file descriptor being cached?  That is, can it be closed as
323           needed, and re-opened when accessed later?  */
324        bfd_boolean cacheable;
325
326        /* Marks whether there was a default target specified when the
327           BFD was opened. This is used to select which matching algorithm
328           to use to choose the back end.  */
329        bfd_boolean target_defaulted;
330
331        /* The caching routines use these to maintain a
332           least-recently-used list of BFDs.  */
333        struct bfd *lru_prev, *lru_next;
334
335        /* When a file is closed by the caching routines, BFD retains
336           state information on the file here...  */
337        ufile_ptr where;
338
339        /* ... and here: (``once'' means at least once).  */
340        bfd_boolean opened_once;
341
342        /* Set if we have a locally maintained mtime value, rather than
343           getting it from the file each time.  */
344        bfd_boolean mtime_set;
345
346        /* File modified time, if mtime_set is TRUE.  */
347        long mtime;
348
349        /* Reserved for an unimplemented file locking extension.  */
350        int ifd;
351
352        /* The format which belongs to the BFD. (object, core, etc.)  */
353        bfd_format format;
354
355        /* The direction with which the BFD was opened.  */
356        enum bfd_direction
357          {
358            no_direction = 0,
359            read_direction = 1,
360            write_direction = 2,
361            both_direction = 3
362          }
363        direction;
364
365        /* Format_specific flags.  */
366        flagword flags;
367
368        /* Currently my_archive is tested before adding origin to
369           anything. I believe that this can become always an add of
370           origin, with origin set to 0 for non archive files.  */
371        ufile_ptr origin;
372
373        /* Remember when output has begun, to stop strange things
374           from happening.  */
375        bfd_boolean output_has_begun;
376
377        /* A hash table for section names.  */
378        struct bfd_hash_table section_htab;
379
380        /* Pointer to linked list of sections.  */
381        struct bfd_section *sections;
382
383        /* The last section on the section list.  */
384        struct bfd_section *section_last;
385
386        /* The number of sections.  */
387        unsigned int section_count;
388
389        /* Stuff only useful for object files:
390           The start address.  */
391        bfd_vma start_address;
392
393        /* Used for input and output.  */
394        unsigned int symcount;
395
396        /* Symbol table for output BFD (with symcount entries).  */
397        struct bfd_symbol  **outsymbols;
398
399        /* Used for slurped dynamic symbol tables.  */
400        unsigned int dynsymcount;
401
402        /* Pointer to structure which contains architecture information.  */
403        const struct bfd_arch_info *arch_info;
404
405        /* Flag set if symbols from this BFD should not be exported.  */
406        bfd_boolean no_export;
407
408        /* Stuff only useful for archives.  */
409        void *arelt_data;
410        struct bfd *my_archive;      /* The containing archive BFD.  */
411        struct bfd *next;            /* The next BFD in the archive.  */
412        struct bfd *archive_head;    /* The first BFD in the archive.  */
413        bfd_boolean has_armap;
414
415        /* A chain of BFD structures involved in a link.  */
416        struct bfd *link_next;
417
418        /* A field used by _bfd_generic_link_add_archive_symbols.  This will
419           be used only for archive elements.  */
420        int archive_pass;
421
422        /* Used by the back end to hold private data.  */
423        union
424          {
425            struct aout_data_struct *aout_data;
426            struct artdata *aout_ar_data;
427            struct _oasys_data *oasys_obj_data;
428            struct _oasys_ar_data *oasys_ar_data;
429            struct coff_tdata *coff_obj_data;
430            struct pe_tdata *pe_obj_data;
431            struct xcoff_tdata *xcoff_obj_data;
432            struct ecoff_tdata *ecoff_obj_data;
433            struct ieee_data_struct *ieee_data;
434            struct ieee_ar_data_struct *ieee_ar_data;
435            struct srec_data_struct *srec_data;
436            struct ihex_data_struct *ihex_data;
437            struct tekhex_data_struct *tekhex_data;
438            struct elf_obj_tdata *elf_obj_data;
439            struct nlm_obj_tdata *nlm_obj_data;
440            struct bout_data_struct *bout_data;
441            struct mmo_data_struct *mmo_data;
442            struct sun_core_struct *sun_core_data;
443            struct sco5_core_struct *sco5_core_data;
444            struct trad_core_struct *trad_core_data;
445            struct som_data_struct *som_data;
446            struct hpux_core_struct *hpux_core_data;
447            struct hppabsd_core_struct *hppabsd_core_data;
448            struct sgi_core_struct *sgi_core_data;
449            struct lynx_core_struct *lynx_core_data;
450            struct osf_core_struct *osf_core_data;
451            struct cisco_core_struct *cisco_core_data;
452            struct versados_data_struct *versados_data;
453            struct netbsd_core_struct *netbsd_core_data;
454            struct mach_o_data_struct *mach_o_data;
455            struct mach_o_fat_data_struct *mach_o_fat_data;
456            struct bfd_pef_data_struct *pef_data;
457            struct bfd_pef_xlib_data_struct *pef_xlib_data;
458            struct bfd_sym_data_struct *sym_data;
459            void *any;
460          }
461        tdata;
462
463        /* Used by the application to hold private data.  */
464        void *usrdata;
465
466        /* Where all the allocated stuff under this BFD goes.  This is a
467           struct objalloc *, but we use void * to avoid requiring the inclusion
468           of objalloc.h.  */
469        void *memory;
470      };
471
472 2.2 Error reporting
473 ===================
474
475 Most BFD functions return nonzero on success (check their individual
476 documentation for precise semantics).  On an error, they call
477 `bfd_set_error' to set an error condition that callers can check by
478 calling `bfd_get_error'.  If that returns `bfd_error_system_call', then
479 check `errno'.
480
481    The easiest way to report a BFD error to the user is to use
482 `bfd_perror'.
483
484 2.2.1 Type `bfd_error_type'
485 ---------------------------
486
487 The values returned by `bfd_get_error' are defined by the enumerated
488 type `bfd_error_type'.
489
490
491      typedef enum bfd_error
492      {
493        bfd_error_no_error = 0,
494        bfd_error_system_call,
495        bfd_error_invalid_target,
496        bfd_error_wrong_format,
497        bfd_error_wrong_object_format,
498        bfd_error_invalid_operation,
499        bfd_error_no_memory,
500        bfd_error_no_symbols,
501        bfd_error_no_armap,
502        bfd_error_no_more_archived_files,
503        bfd_error_malformed_archive,
504        bfd_error_file_not_recognized,
505        bfd_error_file_ambiguously_recognized,
506        bfd_error_no_contents,
507        bfd_error_nonrepresentable_section,
508        bfd_error_no_debug_section,
509        bfd_error_bad_value,
510        bfd_error_file_truncated,
511        bfd_error_file_too_big,
512        bfd_error_invalid_error_code
513      }
514      bfd_error_type;
515    
516 2.2.1.1 `bfd_get_error'
517 .......................
518
519 *Synopsis*
520      bfd_error_type bfd_get_error (void);
521    *Description*
522 Return the current BFD error condition.
523
524 2.2.1.2 `bfd_set_error'
525 .......................
526
527 *Synopsis*
528      void bfd_set_error (bfd_error_type error_tag);
529    *Description*
530 Set the BFD error condition to be ERROR_TAG.
531
532 2.2.1.3 `bfd_errmsg'
533 ....................
534
535 *Synopsis*
536      const char *bfd_errmsg (bfd_error_type error_tag);
537    *Description*
538 Return a string describing the error ERROR_TAG, or the system error if
539 ERROR_TAG is `bfd_error_system_call'.
540
541 2.2.1.4 `bfd_perror'
542 ....................
543
544 *Synopsis*
545      void bfd_perror (const char *message);
546    *Description*
547 Print to the standard error stream a string describing the last BFD
548 error that occurred, or the last system error if the last BFD error was
549 a system call failure.  If MESSAGE is non-NULL and non-empty, the error
550 string printed is preceded by MESSAGE, a colon, and a space.  It is
551 followed by a newline.
552
553 2.2.2 BFD error handler
554 -----------------------
555
556 Some BFD functions want to print messages describing the problem.  They
557 call a BFD error handler function.  This function may be overridden by
558 the program.
559
560    The BFD error handler acts like printf.
561
562
563      typedef void (*bfd_error_handler_type) (const char *, ...);
564    
565 2.2.2.1 `bfd_set_error_handler'
566 ...............................
567
568 *Synopsis*
569      bfd_error_handler_type bfd_set_error_handler (bfd_error_handler_type);
570    *Description*
571 Set the BFD error handler function.  Returns the previous function.
572
573 2.2.2.2 `bfd_set_error_program_name'
574 ....................................
575
576 *Synopsis*
577      void bfd_set_error_program_name (const char *);
578    *Description*
579 Set the program name to use when printing a BFD error.  This is printed
580 before the error message followed by a colon and space.  The string
581 must not be changed after it is passed to this function.
582
583 2.2.2.3 `bfd_get_error_handler'
584 ...............................
585
586 *Synopsis*
587      bfd_error_handler_type bfd_get_error_handler (void);
588    *Description*
589 Return the BFD error handler function.
590
591 2.3 Miscellaneous
592 =================
593
594 2.3.1 Miscellaneous functions
595 -----------------------------
596
597 2.3.1.1 `bfd_get_reloc_upper_bound'
598 ...................................
599
600 *Synopsis*
601      long bfd_get_reloc_upper_bound (bfd *abfd, asection *sect);
602    *Description*
603 Return the number of bytes required to store the relocation information
604 associated with section SECT attached to bfd ABFD.  If an error occurs,
605 return -1.
606
607 2.3.1.2 `bfd_canonicalize_reloc'
608 ................................
609
610 *Synopsis*
611      long bfd_canonicalize_reloc
612         (bfd *abfd, asection *sec, arelent **loc, asymbol **syms);
613    *Description*
614 Call the back end associated with the open BFD ABFD and translate the
615 external form of the relocation information attached to SEC into the
616 internal canonical form.  Place the table into memory at LOC, which has
617 been preallocated, usually by a call to `bfd_get_reloc_upper_bound'.
618 Returns the number of relocs, or -1 on error.
619
620    The SYMS table is also needed for horrible internal magic reasons.
621
622 2.3.1.3 `bfd_set_reloc'
623 .......................
624
625 *Synopsis*
626      void bfd_set_reloc
627         (bfd *abfd, asection *sec, arelent **rel, unsigned int count);
628    *Description*
629 Set the relocation pointer and count within section SEC to the values
630 REL and COUNT.  The argument ABFD is ignored.
631
632 2.3.1.4 `bfd_set_file_flags'
633 ............................
634
635 *Synopsis*
636      bfd_boolean bfd_set_file_flags (bfd *abfd, flagword flags);
637    *Description*
638 Set the flag word in the BFD ABFD to the value FLAGS.
639
640    Possible errors are:
641    * `bfd_error_wrong_format' - The target bfd was not of object format.
642
643    * `bfd_error_invalid_operation' - The target bfd was open for
644      reading.
645
646    * `bfd_error_invalid_operation' - The flag word contained a bit
647      which was not applicable to the type of file.  E.g., an attempt
648      was made to set the `D_PAGED' bit on a BFD format which does not
649      support demand paging.
650
651 2.3.1.5 `bfd_get_arch_size'
652 ...........................
653
654 *Synopsis*
655      int bfd_get_arch_size (bfd *abfd);
656    *Description*
657 Returns the architecture address size, in bits, as determined by the
658 object file's format.  For ELF, this information is included in the
659 header.
660
661    *Returns*
662 Returns the arch size in bits if known, `-1' otherwise.
663
664 2.3.1.6 `bfd_get_sign_extend_vma'
665 .................................
666
667 *Synopsis*
668      int bfd_get_sign_extend_vma (bfd *abfd);
669    *Description*
670 Indicates if the target architecture "naturally" sign extends an
671 address.  Some architectures implicitly sign extend address values when
672 they are converted to types larger than the size of an address.  For
673 instance, bfd_get_start_address() will return an address sign extended
674 to fill a bfd_vma when this is the case.
675
676    *Returns*
677 Returns `1' if the target architecture is known to sign extend
678 addresses, `0' if the target architecture is known to not sign extend
679 addresses, and `-1' otherwise.
680
681 2.3.1.7 `bfd_set_start_address'
682 ...............................
683
684 *Synopsis*
685      bfd_boolean bfd_set_start_address (bfd *abfd, bfd_vma vma);
686    *Description*
687 Make VMA the entry point of output BFD ABFD.
688
689    *Returns*
690 Returns `TRUE' on success, `FALSE' otherwise.
691
692 2.3.1.8 `bfd_get_gp_size'
693 .........................
694
695 *Synopsis*
696      unsigned int bfd_get_gp_size (bfd *abfd);
697    *Description*
698 Return the maximum size of objects to be optimized using the GP
699 register under MIPS ECOFF.  This is typically set by the `-G' argument
700 to the compiler, assembler or linker.
701
702 2.3.1.9 `bfd_set_gp_size'
703 .........................
704
705 *Synopsis*
706      void bfd_set_gp_size (bfd *abfd, unsigned int i);
707    *Description*
708 Set the maximum size of objects to be optimized using the GP register
709 under ECOFF or MIPS ELF.  This is typically set by the `-G' argument to
710 the compiler, assembler or linker.
711
712 2.3.1.10 `bfd_scan_vma'
713 .......................
714
715 *Synopsis*
716      bfd_vma bfd_scan_vma (const char *string, const char **end, int base);
717    *Description*
718 Convert, like `strtoul', a numerical expression STRING into a `bfd_vma'
719 integer, and return that integer.  (Though without as many bells and
720 whistles as `strtoul'.)  The expression is assumed to be unsigned
721 (i.e., positive).  If given a BASE, it is used as the base for
722 conversion.  A base of 0 causes the function to interpret the string in
723 hex if a leading "0x" or "0X" is found, otherwise in octal if a leading
724 zero is found, otherwise in decimal.
725
726    If the value would overflow, the maximum `bfd_vma' value is returned.
727
728 2.3.1.11 `bfd_copy_private_header_data'
729 .......................................
730
731 *Synopsis*
732      bfd_boolean bfd_copy_private_header_data (bfd *ibfd, bfd *obfd);
733    *Description*
734 Copy private BFD header information from the BFD IBFD to the the BFD
735 OBFD.  This copies information that may require sections to exist, but
736 does not require symbol tables.  Return `true' on success, `false' on
737 error.  Possible error returns are:
738
739    * `bfd_error_no_memory' - Not enough memory exists to create private
740      data for OBFD.
741
742      #define bfd_copy_private_header_data(ibfd, obfd) \
743           BFD_SEND (obfd, _bfd_copy_private_header_data, \
744                     (ibfd, obfd))
745
746 2.3.1.12 `bfd_copy_private_bfd_data'
747 ....................................
748
749 *Synopsis*
750      bfd_boolean bfd_copy_private_bfd_data (bfd *ibfd, bfd *obfd);
751    *Description*
752 Copy private BFD information from the BFD IBFD to the the BFD OBFD.
753 Return `TRUE' on success, `FALSE' on error.  Possible error returns are:
754
755    * `bfd_error_no_memory' - Not enough memory exists to create private
756      data for OBFD.
757
758      #define bfd_copy_private_bfd_data(ibfd, obfd) \
759           BFD_SEND (obfd, _bfd_copy_private_bfd_data, \
760                     (ibfd, obfd))
761
762 2.3.1.13 `bfd_merge_private_bfd_data'
763 .....................................
764
765 *Synopsis*
766      bfd_boolean bfd_merge_private_bfd_data (bfd *ibfd, bfd *obfd);
767    *Description*
768 Merge private BFD information from the BFD IBFD to the the output file
769 BFD OBFD when linking.  Return `TRUE' on success, `FALSE' on error.
770 Possible error returns are:
771
772    * `bfd_error_no_memory' - Not enough memory exists to create private
773      data for OBFD.
774
775      #define bfd_merge_private_bfd_data(ibfd, obfd) \
776           BFD_SEND (obfd, _bfd_merge_private_bfd_data, \
777                     (ibfd, obfd))
778
779 2.3.1.14 `bfd_set_private_flags'
780 ................................
781
782 *Synopsis*
783      bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags);
784    *Description*
785 Set private BFD flag information in the BFD ABFD.  Return `TRUE' on
786 success, `FALSE' on error.  Possible error returns are:
787
788    * `bfd_error_no_memory' - Not enough memory exists to create private
789      data for OBFD.
790
791      #define bfd_set_private_flags(abfd, flags) \
792           BFD_SEND (abfd, _bfd_set_private_flags, (abfd, flags))
793
794 2.3.1.15 `Other functions'
795 ..........................
796
797 *Description*
798 The following functions exist but have not yet been documented.
799      #define bfd_sizeof_headers(abfd, reloc) \
800             BFD_SEND (abfd, _bfd_sizeof_headers, (abfd, reloc))
801
802      #define bfd_find_nearest_line(abfd, sec, syms, off, file, func, line) \
803             BFD_SEND (abfd, _bfd_find_nearest_line, \
804                       (abfd, sec, syms, off, file, func, line))
805
806      #define bfd_find_line(abfd, syms, sym, file, line) \
807             BFD_SEND (abfd, _bfd_find_line, \
808                       (abfd, syms, sym, file, line))
809
810      #define bfd_find_inliner_info(abfd, file, func, line) \
811             BFD_SEND (abfd, _bfd_find_inliner_info, \
812                       (abfd, file, func, line))
813
814      #define bfd_debug_info_start(abfd) \
815             BFD_SEND (abfd, _bfd_debug_info_start, (abfd))
816
817      #define bfd_debug_info_end(abfd) \
818             BFD_SEND (abfd, _bfd_debug_info_end, (abfd))
819
820      #define bfd_debug_info_accumulate(abfd, section) \
821             BFD_SEND (abfd, _bfd_debug_info_accumulate, (abfd, section))
822
823      #define bfd_stat_arch_elt(abfd, stat) \
824             BFD_SEND (abfd, _bfd_stat_arch_elt,(abfd, stat))
825
826      #define bfd_update_armap_timestamp(abfd) \
827             BFD_SEND (abfd, _bfd_update_armap_timestamp, (abfd))
828
829      #define bfd_set_arch_mach(abfd, arch, mach)\
830             BFD_SEND ( abfd, _bfd_set_arch_mach, (abfd, arch, mach))
831
832      #define bfd_relax_section(abfd, section, link_info, again) \
833             BFD_SEND (abfd, _bfd_relax_section, (abfd, section, link_info, again))
834
835      #define bfd_gc_sections(abfd, link_info) \
836             BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info))
837
838      #define bfd_merge_sections(abfd, link_info) \
839             BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info))
840
841      #define bfd_is_group_section(abfd, sec) \
842             BFD_SEND (abfd, _bfd_is_group_section, (abfd, sec))
843
844      #define bfd_discard_group(abfd, sec) \
845             BFD_SEND (abfd, _bfd_discard_group, (abfd, sec))
846
847      #define bfd_link_hash_table_create(abfd) \
848             BFD_SEND (abfd, _bfd_link_hash_table_create, (abfd))
849
850      #define bfd_link_hash_table_free(abfd, hash) \
851             BFD_SEND (abfd, _bfd_link_hash_table_free, (hash))
852
853      #define bfd_link_add_symbols(abfd, info) \
854             BFD_SEND (abfd, _bfd_link_add_symbols, (abfd, info))
855
856      #define bfd_link_just_syms(abfd, sec, info) \
857             BFD_SEND (abfd, _bfd_link_just_syms, (sec, info))
858
859      #define bfd_final_link(abfd, info) \
860             BFD_SEND (abfd, _bfd_final_link, (abfd, info))
861
862      #define bfd_free_cached_info(abfd) \
863             BFD_SEND (abfd, _bfd_free_cached_info, (abfd))
864
865      #define bfd_get_dynamic_symtab_upper_bound(abfd) \
866             BFD_SEND (abfd, _bfd_get_dynamic_symtab_upper_bound, (abfd))
867
868      #define bfd_print_private_bfd_data(abfd, file)\
869             BFD_SEND (abfd, _bfd_print_private_bfd_data, (abfd, file))
870
871      #define bfd_canonicalize_dynamic_symtab(abfd, asymbols) \
872             BFD_SEND (abfd, _bfd_canonicalize_dynamic_symtab, (abfd, asymbols))
873
874      #define bfd_get_synthetic_symtab(abfd, count, syms, dyncount, dynsyms, ret) \
875             BFD_SEND (abfd, _bfd_get_synthetic_symtab, (abfd, count, syms, \
876                                                         dyncount, dynsyms, ret))
877
878      #define bfd_get_dynamic_reloc_upper_bound(abfd) \
879             BFD_SEND (abfd, _bfd_get_dynamic_reloc_upper_bound, (abfd))
880
881      #define bfd_canonicalize_dynamic_reloc(abfd, arels, asyms) \
882             BFD_SEND (abfd, _bfd_canonicalize_dynamic_reloc, (abfd, arels, asyms))
883
884      extern bfd_byte *bfd_get_relocated_section_contents
885        (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *,
886         bfd_boolean, asymbol **);
887
888 2.3.1.16 `bfd_alt_mach_code'
889 ............................
890
891 *Synopsis*
892      bfd_boolean bfd_alt_mach_code (bfd *abfd, int alternative);
893    *Description*
894 When more than one machine code number is available for the same
895 machine type, this function can be used to switch between the preferred
896 one (alternative == 0) and any others.  Currently, only ELF supports
897 this feature, with up to two alternate machine codes.
898
899      struct bfd_preserve
900      {
901        void *marker;
902        void *tdata;
903        flagword flags;
904        const struct bfd_arch_info *arch_info;
905        struct bfd_section *sections;
906        struct bfd_section *section_last;
907        unsigned int section_count;
908        struct bfd_hash_table section_htab;
909      };
910    
911 2.3.1.17 `bfd_preserve_save'
912 ............................
913
914 *Synopsis*
915      bfd_boolean bfd_preserve_save (bfd *, struct bfd_preserve *);
916    *Description*
917 When testing an object for compatibility with a particular target
918 back-end, the back-end object_p function needs to set up certain fields
919 in the bfd on successfully recognizing the object.  This typically
920 happens in a piecemeal fashion, with failures possible at many points.
921 On failure, the bfd is supposed to be restored to its initial state,
922 which is virtually impossible.  However, restoring a subset of the bfd
923 state works in practice.  This function stores the subset and
924 reinitializes the bfd.
925
926 2.3.1.18 `bfd_preserve_restore'
927 ...............................
928
929 *Synopsis*
930      void bfd_preserve_restore (bfd *, struct bfd_preserve *);
931    *Description*
932 This function restores bfd state saved by bfd_preserve_save.  If MARKER
933 is non-NULL in struct bfd_preserve then that block and all subsequently
934 bfd_alloc'd memory is freed.
935
936 2.3.1.19 `bfd_preserve_finish'
937 ..............................
938
939 *Synopsis*
940      void bfd_preserve_finish (bfd *, struct bfd_preserve *);
941    *Description*
942 This function should be called when the bfd state saved by
943 bfd_preserve_save is no longer needed.  ie. when the back-end object_p
944 function returns with success.
945
946 2.3.1.20 `struct bfd_iovec'
947 ...........................
948
949 *Description*
950 The `struct bfd_iovec' contains the internal file I/O class.  Each
951 `BFD' has an instance of this class and all file I/O is routed through
952 it (it is assumed that the instance implements all methods listed
953 below).
954      struct bfd_iovec
955      {
956        /* To avoid problems with macros, a "b" rather than "f"
957           prefix is prepended to each method name.  */
958        /* Attempt to read/write NBYTES on ABFD's IOSTREAM storing/fetching
959           bytes starting at PTR.  Return the number of bytes actually
960           transfered (a read past end-of-file returns less than NBYTES),
961           or -1 (setting `bfd_error') if an error occurs.  */
962        file_ptr (*bread) (struct bfd *abfd, void *ptr, file_ptr nbytes);
963        file_ptr (*bwrite) (struct bfd *abfd, const void *ptr,
964                            file_ptr nbytes);
965        /* Return the current IOSTREAM file offset, or -1 (setting `bfd_error'
966           if an error occurs.  */
967        file_ptr (*btell) (struct bfd *abfd);
968        /* For the following, on successful completion a value of 0 is returned.
969           Otherwise, a value of -1 is returned (and  `bfd_error' is set).  */
970        int (*bseek) (struct bfd *abfd, file_ptr offset, int whence);
971        int (*bclose) (struct bfd *abfd);
972        int (*bflush) (struct bfd *abfd);
973        int (*bstat) (struct bfd *abfd, struct stat *sb);
974      };
975
976 2.3.1.21 `bfd_get_mtime'
977 ........................
978
979 *Synopsis*
980      long bfd_get_mtime (bfd *abfd);
981    *Description*
982 Return the file modification time (as read from the file system, or
983 from the archive header for archive members).
984
985 2.3.1.22 `bfd_get_size'
986 .......................
987
988 *Synopsis*
989      long bfd_get_size (bfd *abfd);
990    *Description*
991 Return the file size (as read from file system) for the file associated
992 with BFD ABFD.
993
994    The initial motivation for, and use of, this routine is not so we
995 can get the exact size of the object the BFD applies to, since that
996 might not be generally possible (archive members for example).  It
997 would be ideal if someone could eventually modify it so that such
998 results were guaranteed.
999
1000    Instead, we want to ask questions like "is this NNN byte sized
1001 object I'm about to try read from file offset YYY reasonable?"  As as
1002 example of where we might do this, some object formats use string
1003 tables for which the first `sizeof (long)' bytes of the table contain
1004 the size of the table itself, including the size bytes.  If an
1005 application tries to read what it thinks is one of these string tables,
1006 without some way to validate the size, and for some reason the size is
1007 wrong (byte swapping error, wrong location for the string table, etc.),
1008 the only clue is likely to be a read error when it tries to read the
1009 table, or a "virtual memory exhausted" error when it tries to allocate
1010 15 bazillon bytes of space for the 15 bazillon byte table it is about
1011 to read.  This function at least allows us to answer the question, "is
1012 the size reasonable?".
1013
1014 * Menu:
1015
1016 * Memory Usage::
1017 * Initialization::
1018 * Sections::
1019 * Symbols::
1020 * Archives::
1021 * Formats::
1022 * Relocations::
1023 * Core Files::
1024 * Targets::
1025 * Architectures::
1026 * Opening and Closing::
1027 * Internal::
1028 * File Caching::
1029 * Linker Functions::
1030 * Hash Tables::
1031
1032 \1f
1033 File: bfd.info,  Node: Memory Usage,  Next: Initialization,  Prev: BFD front end,  Up: BFD front end
1034
1035 2.4 Memory Usage
1036 ================
1037
1038 BFD keeps all of its internal structures in obstacks. There is one
1039 obstack per open BFD file, into which the current state is stored. When
1040 a BFD is closed, the obstack is deleted, and so everything which has
1041 been allocated by BFD for the closing file is thrown away.
1042
1043    BFD does not free anything created by an application, but pointers
1044 into `bfd' structures become invalid on a `bfd_close'; for example,
1045 after a `bfd_close' the vector passed to `bfd_canonicalize_symtab' is
1046 still around, since it has been allocated by the application, but the
1047 data that it pointed to are lost.
1048
1049    The general rule is to not close a BFD until all operations dependent
1050 upon data from the BFD have been completed, or all the data from within
1051 the file has been copied. To help with the management of memory, there
1052 is a function (`bfd_alloc_size') which returns the number of bytes in
1053 obstacks associated with the supplied BFD. This could be used to select
1054 the greediest open BFD, close it to reclaim the memory, perform some
1055 operation and reopen the BFD again, to get a fresh copy of the data
1056 structures.
1057
1058 \1f
1059 File: bfd.info,  Node: Initialization,  Next: Sections,  Prev: Memory Usage,  Up: BFD front end
1060
1061 2.5 Initialization
1062 ==================
1063
1064 2.5.1 Initialization functions
1065 ------------------------------
1066
1067 These are the functions that handle initializing a BFD.
1068
1069 2.5.1.1 `bfd_init'
1070 ..................
1071
1072 *Synopsis*
1073      void bfd_init (void);
1074    *Description*
1075 This routine must be called before any other BFD function to initialize
1076 magical internal data structures.
1077
1078 \1f
1079 File: bfd.info,  Node: Sections,  Next: Symbols,  Prev: Initialization,  Up: BFD front end
1080
1081 2.6 Sections
1082 ============
1083
1084 The raw data contained within a BFD is maintained through the section
1085 abstraction.  A single BFD may have any number of sections.  It keeps
1086 hold of them by pointing to the first; each one points to the next in
1087 the list.
1088
1089    Sections are supported in BFD in `section.c'.
1090
1091 * Menu:
1092
1093 * Section Input::
1094 * Section Output::
1095 * typedef asection::
1096 * section prototypes::
1097
1098 \1f
1099 File: bfd.info,  Node: Section Input,  Next: Section Output,  Prev: Sections,  Up: Sections
1100
1101 2.6.1 Section input
1102 -------------------
1103
1104 When a BFD is opened for reading, the section structures are created
1105 and attached to the BFD.
1106
1107    Each section has a name which describes the section in the outside
1108 world--for example, `a.out' would contain at least three sections,
1109 called `.text', `.data' and `.bss'.
1110
1111    Names need not be unique; for example a COFF file may have several
1112 sections named `.data'.
1113
1114    Sometimes a BFD will contain more than the "natural" number of
1115 sections. A back end may attach other sections containing constructor
1116 data, or an application may add a section (using `bfd_make_section') to
1117 the sections attached to an already open BFD. For example, the linker
1118 creates an extra section `COMMON' for each input file's BFD to hold
1119 information about common storage.
1120
1121    The raw data is not necessarily read in when the section descriptor
1122 is created. Some targets may leave the data in place until a
1123 `bfd_get_section_contents' call is made. Other back ends may read in
1124 all the data at once.  For example, an S-record file has to be read
1125 once to determine the size of the data. An IEEE-695 file doesn't
1126 contain raw data in sections, but data and relocation expressions
1127 intermixed, so the data area has to be parsed to get out the data and
1128 relocations.
1129
1130 \1f
1131 File: bfd.info,  Node: Section Output,  Next: typedef asection,  Prev: Section Input,  Up: Sections
1132
1133 2.6.2 Section output
1134 --------------------
1135
1136 To write a new object style BFD, the various sections to be written
1137 have to be created. They are attached to the BFD in the same way as
1138 input sections; data is written to the sections using
1139 `bfd_set_section_contents'.
1140
1141    Any program that creates or combines sections (e.g., the assembler
1142 and linker) must use the `asection' fields `output_section' and
1143 `output_offset' to indicate the file sections to which each section
1144 must be written.  (If the section is being created from scratch,
1145 `output_section' should probably point to the section itself and
1146 `output_offset' should probably be zero.)
1147
1148    The data to be written comes from input sections attached (via
1149 `output_section' pointers) to the output sections.  The output section
1150 structure can be considered a filter for the input section: the output
1151 section determines the vma of the output data and the name, but the
1152 input section determines the offset into the output section of the data
1153 to be written.
1154
1155    E.g., to create a section "O", starting at 0x100, 0x123 long,
1156 containing two subsections, "A" at offset 0x0 (i.e., at vma 0x100) and
1157 "B" at offset 0x20 (i.e., at vma 0x120) the `asection' structures would
1158 look like:
1159
1160         section name          "A"
1161           output_offset   0x00
1162           size            0x20
1163           output_section ----------->  section name    "O"
1164                                   |    vma             0x100
1165         section name          "B" |    size            0x123
1166           output_offset   0x20    |
1167           size            0x103   |
1168           output_section  --------|
1169
1170 2.6.3 Link orders
1171 -----------------
1172
1173 The data within a section is stored in a "link_order".  These are much
1174 like the fixups in `gas'.  The link_order abstraction allows a section
1175 to grow and shrink within itself.
1176
1177    A link_order knows how big it is, and which is the next link_order
1178 and where the raw data for it is; it also points to a list of
1179 relocations which apply to it.
1180
1181    The link_order is used by the linker to perform relaxing on final
1182 code.  The compiler creates code which is as big as necessary to make
1183 it work without relaxing, and the user can select whether to relax.
1184 Sometimes relaxing takes a lot of time.  The linker runs around the
1185 relocations to see if any are attached to data which can be shrunk, if
1186 so it does it on a link_order by link_order basis.
1187
1188 \1f
1189 File: bfd.info,  Node: typedef asection,  Next: section prototypes,  Prev: Section Output,  Up: Sections
1190
1191 2.6.4 typedef asection
1192 ----------------------
1193
1194 Here is the section structure:
1195
1196
1197      typedef struct bfd_section
1198      {
1199        /* The name of the section; the name isn't a copy, the pointer is
1200           the same as that passed to bfd_make_section.  */
1201        const char *name;
1202
1203        /* A unique sequence number.  */
1204        int id;
1205
1206        /* Which section in the bfd; 0..n-1 as sections are created in a bfd.  */
1207        int index;
1208
1209        /* The next section in the list belonging to the BFD, or NULL.  */
1210        struct bfd_section *next;
1211
1212        /* The previous section in the list belonging to the BFD, or NULL.  */
1213        struct bfd_section *prev;
1214
1215        /* The field flags contains attributes of the section. Some
1216           flags are read in from the object file, and some are
1217           synthesized from other information.  */
1218        flagword flags;
1219
1220      #define SEC_NO_FLAGS   0x000
1221
1222        /* Tells the OS to allocate space for this section when loading.
1223           This is clear for a section containing debug information only.  */
1224      #define SEC_ALLOC      0x001
1225
1226        /* Tells the OS to load the section from the file when loading.
1227           This is clear for a .bss section.  */
1228      #define SEC_LOAD       0x002
1229
1230        /* The section contains data still to be relocated, so there is
1231           some relocation information too.  */
1232      #define SEC_RELOC      0x004
1233
1234        /* A signal to the OS that the section contains read only data.  */
1235      #define SEC_READONLY   0x008
1236
1237        /* The section contains code only.  */
1238      #define SEC_CODE       0x010
1239
1240        /* The section contains data only.  */
1241      #define SEC_DATA       0x020
1242
1243        /* The section will reside in ROM.  */
1244      #define SEC_ROM        0x040
1245
1246        /* The section contains constructor information. This section
1247           type is used by the linker to create lists of constructors and
1248           destructors used by `g++'. When a back end sees a symbol
1249           which should be used in a constructor list, it creates a new
1250           section for the type of name (e.g., `__CTOR_LIST__'), attaches
1251           the symbol to it, and builds a relocation. To build the lists
1252           of constructors, all the linker has to do is catenate all the
1253           sections called `__CTOR_LIST__' and relocate the data
1254           contained within - exactly the operations it would peform on
1255           standard data.  */
1256      #define SEC_CONSTRUCTOR 0x080
1257
1258        /* The section has contents - a data section could be
1259           `SEC_ALLOC' | `SEC_HAS_CONTENTS'; a debug section could be
1260           `SEC_HAS_CONTENTS'  */
1261      #define SEC_HAS_CONTENTS 0x100
1262
1263        /* An instruction to the linker to not output the section
1264           even if it has information which would normally be written.  */
1265      #define SEC_NEVER_LOAD 0x200
1266
1267        /* The section contains thread local data.  */
1268      #define SEC_THREAD_LOCAL 0x400
1269
1270        /* The section has GOT references.  This flag is only for the
1271           linker, and is currently only used by the elf32-hppa back end.
1272           It will be set if global offset table references were detected
1273           in this section, which indicate to the linker that the section
1274           contains PIC code, and must be handled specially when doing a
1275           static link.  */
1276      #define SEC_HAS_GOT_REF 0x800
1277
1278        /* The section contains common symbols (symbols may be defined
1279           multiple times, the value of a symbol is the amount of
1280           space it requires, and the largest symbol value is the one
1281           used).  Most targets have exactly one of these (which we
1282           translate to bfd_com_section_ptr), but ECOFF has two.  */
1283      #define SEC_IS_COMMON 0x1000
1284
1285        /* The section contains only debugging information.  For
1286           example, this is set for ELF .debug and .stab sections.
1287           strip tests this flag to see if a section can be
1288           discarded.  */
1289      #define SEC_DEBUGGING 0x2000
1290
1291        /* The contents of this section are held in memory pointed to
1292           by the contents field.  This is checked by bfd_get_section_contents,
1293           and the data is retrieved from memory if appropriate.  */
1294      #define SEC_IN_MEMORY 0x4000
1295
1296        /* The contents of this section are to be excluded by the
1297           linker for executable and shared objects unless those
1298           objects are to be further relocated.  */
1299      #define SEC_EXCLUDE 0x8000
1300
1301        /* The contents of this section are to be sorted based on the sum of
1302           the symbol and addend values specified by the associated relocation
1303           entries.  Entries without associated relocation entries will be
1304           appended to the end of the section in an unspecified order.  */
1305      #define SEC_SORT_ENTRIES 0x10000
1306
1307        /* When linking, duplicate sections of the same name should be
1308           discarded, rather than being combined into a single section as
1309           is usually done.  This is similar to how common symbols are
1310           handled.  See SEC_LINK_DUPLICATES below.  */
1311      #define SEC_LINK_ONCE 0x20000
1312
1313        /* If SEC_LINK_ONCE is set, this bitfield describes how the linker
1314           should handle duplicate sections.  */
1315      #define SEC_LINK_DUPLICATES 0x40000
1316
1317        /* This value for SEC_LINK_DUPLICATES means that duplicate
1318           sections with the same name should simply be discarded.  */
1319      #define SEC_LINK_DUPLICATES_DISCARD 0x0
1320
1321        /* This value for SEC_LINK_DUPLICATES means that the linker
1322           should warn if there are any duplicate sections, although
1323           it should still only link one copy.  */
1324      #define SEC_LINK_DUPLICATES_ONE_ONLY 0x80000
1325
1326        /* This value for SEC_LINK_DUPLICATES means that the linker
1327           should warn if any duplicate sections are a different size.  */
1328      #define SEC_LINK_DUPLICATES_SAME_SIZE 0x100000
1329
1330        /* This value for SEC_LINK_DUPLICATES means that the linker
1331           should warn if any duplicate sections contain different
1332           contents.  */
1333      #define SEC_LINK_DUPLICATES_SAME_CONTENTS \
1334        (SEC_LINK_DUPLICATES_ONE_ONLY | SEC_LINK_DUPLICATES_SAME_SIZE)
1335
1336        /* This section was created by the linker as part of dynamic
1337           relocation or other arcane processing.  It is skipped when
1338           going through the first-pass output, trusting that someone
1339           else up the line will take care of it later.  */
1340      #define SEC_LINKER_CREATED 0x200000
1341
1342        /* This section should not be subject to garbage collection.  */
1343      #define SEC_KEEP 0x400000
1344
1345        /* This section contains "short" data, and should be placed
1346           "near" the GP.  */
1347      #define SEC_SMALL_DATA 0x800000
1348
1349        /* Attempt to merge identical entities in the section.
1350           Entity size is given in the entsize field.  */
1351      #define SEC_MERGE 0x1000000
1352
1353        /* If given with SEC_MERGE, entities to merge are zero terminated
1354           strings where entsize specifies character size instead of fixed
1355           size entries.  */
1356      #define SEC_STRINGS 0x2000000
1357
1358        /* This section contains data about section groups.  */
1359      #define SEC_GROUP 0x4000000
1360
1361        /* The section is a COFF shared library section.  This flag is
1362           only for the linker.  If this type of section appears in
1363           the input file, the linker must copy it to the output file
1364           without changing the vma or size.  FIXME: Although this
1365           was originally intended to be general, it really is COFF
1366           specific (and the flag was renamed to indicate this).  It
1367           might be cleaner to have some more general mechanism to
1368           allow the back end to control what the linker does with
1369           sections.  */
1370      #define SEC_COFF_SHARED_LIBRARY 0x10000000
1371
1372        /* This section contains data which may be shared with other
1373           executables or shared objects. This is for COFF only.  */
1374      #define SEC_COFF_SHARED 0x20000000
1375
1376        /* When a section with this flag is being linked, then if the size of
1377           the input section is less than a page, it should not cross a page
1378           boundary.  If the size of the input section is one page or more,
1379           it should be aligned on a page boundary.  This is for TI
1380           TMS320C54X only.  */
1381      #define SEC_TIC54X_BLOCK 0x40000000
1382
1383        /* Conditionally link this section; do not link if there are no
1384           references found to any symbol in the section.  This is for TI
1385           TMS320C54X only.  */
1386      #define SEC_TIC54X_CLINK 0x80000000
1387
1388        /*  End of section flags.  */
1389
1390        /* Some internal packed boolean fields.  */
1391
1392        /* See the vma field.  */
1393        unsigned int user_set_vma : 1;
1394
1395        /* A mark flag used by some of the linker backends.  */
1396        unsigned int linker_mark : 1;
1397
1398        /* Another mark flag used by some of the linker backends.  Set for
1399           output sections that have an input section.  */
1400        unsigned int linker_has_input : 1;
1401
1402        /* Mark flags used by some linker backends for garbage collection.  */
1403        unsigned int gc_mark : 1;
1404        unsigned int gc_mark_from_eh : 1;
1405
1406        /* The following flags are used by the ELF linker. */
1407
1408        /* Mark sections which have been allocated to segments.  */
1409        unsigned int segment_mark : 1;
1410
1411        /* Type of sec_info information.  */
1412        unsigned int sec_info_type:3;
1413      #define ELF_INFO_TYPE_NONE      0
1414      #define ELF_INFO_TYPE_STABS     1
1415      #define ELF_INFO_TYPE_MERGE     2
1416      #define ELF_INFO_TYPE_EH_FRAME  3
1417      #define ELF_INFO_TYPE_JUST_SYMS 4
1418
1419        /* Nonzero if this section uses RELA relocations, rather than REL.  */
1420        unsigned int use_rela_p:1;
1421
1422        /* Bits used by various backends.  The generic code doesn't touch
1423           these fields.  */
1424
1425        /* Nonzero if this section has TLS related relocations.  */
1426        unsigned int has_tls_reloc:1;
1427
1428        /* Nonzero if this section has a gp reloc.  */
1429        unsigned int has_gp_reloc:1;
1430
1431        /* Nonzero if this section needs the relax finalize pass.  */
1432        unsigned int need_finalize_relax:1;
1433
1434        /* Whether relocations have been processed.  */
1435        unsigned int reloc_done : 1;
1436
1437        /* End of internal packed boolean fields.  */
1438
1439        /*  The virtual memory address of the section - where it will be
1440            at run time.  The symbols are relocated against this.  The
1441            user_set_vma flag is maintained by bfd; if it's not set, the
1442            backend can assign addresses (for example, in `a.out', where
1443            the default address for `.data' is dependent on the specific
1444            target and various flags).  */
1445        bfd_vma vma;
1446
1447        /*  The load address of the section - where it would be in a
1448            rom image; really only used for writing section header
1449            information.  */
1450        bfd_vma lma;
1451
1452        /* The size of the section in octets, as it will be output.
1453           Contains a value even if the section has no contents (e.g., the
1454           size of `.bss').  */
1455        bfd_size_type size;
1456
1457        /* For input sections, the original size on disk of the section, in
1458           octets.  This field is used by the linker relaxation code.  It is
1459           currently only set for sections where the linker relaxation scheme
1460           doesn't cache altered section and reloc contents (stabs, eh_frame,
1461           SEC_MERGE, some coff relaxing targets), and thus the original size
1462           needs to be kept to read the section multiple times.
1463           For output sections, rawsize holds the section size calculated on
1464           a previous linker relaxation pass.  */
1465        bfd_size_type rawsize;
1466
1467        /* If this section is going to be output, then this value is the
1468           offset in *bytes* into the output section of the first byte in the
1469           input section (byte ==> smallest addressable unit on the
1470           target).  In most cases, if this was going to start at the
1471           100th octet (8-bit quantity) in the output section, this value
1472           would be 100.  However, if the target byte size is 16 bits
1473           (bfd_octets_per_byte is "2"), this value would be 50.  */
1474        bfd_vma output_offset;
1475
1476        /* The output section through which to map on output.  */
1477        struct bfd_section *output_section;
1478
1479        /* The alignment requirement of the section, as an exponent of 2 -
1480           e.g., 3 aligns to 2^3 (or 8).  */
1481        unsigned int alignment_power;
1482
1483        /* If an input section, a pointer to a vector of relocation
1484           records for the data in this section.  */
1485        struct reloc_cache_entry *relocation;
1486
1487        /* If an output section, a pointer to a vector of pointers to
1488           relocation records for the data in this section.  */
1489        struct reloc_cache_entry **orelocation;
1490
1491        /* The number of relocation records in one of the above.  */
1492        unsigned reloc_count;
1493
1494        /* Information below is back end specific - and not always used
1495           or updated.  */
1496
1497        /* File position of section data.  */
1498        file_ptr filepos;
1499
1500        /* File position of relocation info.  */
1501        file_ptr rel_filepos;
1502
1503        /* File position of line data.  */
1504        file_ptr line_filepos;
1505
1506        /* Pointer to data for applications.  */
1507        void *userdata;
1508
1509        /* If the SEC_IN_MEMORY flag is set, this points to the actual
1510           contents.  */
1511        unsigned char *contents;
1512
1513        /* Attached line number information.  */
1514        alent *lineno;
1515
1516        /* Number of line number records.  */
1517        unsigned int lineno_count;
1518
1519        /* Entity size for merging purposes.  */
1520        unsigned int entsize;
1521
1522        /* Points to the kept section if this section is a link-once section,
1523           and is discarded.  */
1524        struct bfd_section *kept_section;
1525
1526        /* When a section is being output, this value changes as more
1527           linenumbers are written out.  */
1528        file_ptr moving_line_filepos;
1529
1530        /* What the section number is in the target world.  */
1531        int target_index;
1532
1533        void *used_by_bfd;
1534
1535        /* If this is a constructor section then here is a list of the
1536           relocations created to relocate items within it.  */
1537        struct relent_chain *constructor_chain;
1538
1539        /* The BFD which owns the section.  */
1540        bfd *owner;
1541
1542        /* A symbol which points at this section only.  */
1543        struct bfd_symbol *symbol;
1544        struct bfd_symbol **symbol_ptr_ptr;
1545
1546        /* Early in the link process, map_head and map_tail are used to build
1547           a list of input sections attached to an output section.  Later,
1548           output sections use these fields for a list of bfd_link_order
1549           structs.  */
1550        union {
1551          struct bfd_link_order *link_order;
1552          struct bfd_section *s;
1553        } map_head, map_tail;
1554      } asection;
1555
1556      /* These sections are global, and are managed by BFD.  The application
1557         and target back end are not permitted to change the values in
1558         these sections.  New code should use the section_ptr macros rather
1559         than referring directly to the const sections.  The const sections
1560         may eventually vanish.  */
1561      #define BFD_ABS_SECTION_NAME "*ABS*"
1562      #define BFD_UND_SECTION_NAME "*UND*"
1563      #define BFD_COM_SECTION_NAME "*COM*"
1564      #define BFD_IND_SECTION_NAME "*IND*"
1565
1566      /* The absolute section.  */
1567      extern asection bfd_abs_section;
1568      #define bfd_abs_section_ptr ((asection *) &bfd_abs_section)
1569      #define bfd_is_abs_section(sec) ((sec) == bfd_abs_section_ptr)
1570      /* Pointer to the undefined section.  */
1571      extern asection bfd_und_section;
1572      #define bfd_und_section_ptr ((asection *) &bfd_und_section)
1573      #define bfd_is_und_section(sec) ((sec) == bfd_und_section_ptr)
1574      /* Pointer to the common section.  */
1575      extern asection bfd_com_section;
1576      #define bfd_com_section_ptr ((asection *) &bfd_com_section)
1577      /* Pointer to the indirect section.  */
1578      extern asection bfd_ind_section;
1579      #define bfd_ind_section_ptr ((asection *) &bfd_ind_section)
1580      #define bfd_is_ind_section(sec) ((sec) == bfd_ind_section_ptr)
1581
1582      #define bfd_is_const_section(SEC)              \
1583       (   ((SEC) == bfd_abs_section_ptr)            \
1584        || ((SEC) == bfd_und_section_ptr)            \
1585        || ((SEC) == bfd_com_section_ptr)            \
1586        || ((SEC) == bfd_ind_section_ptr))
1587
1588      extern const struct bfd_symbol * const bfd_abs_symbol;
1589      extern const struct bfd_symbol * const bfd_com_symbol;
1590      extern const struct bfd_symbol * const bfd_und_symbol;
1591      extern const struct bfd_symbol * const bfd_ind_symbol;
1592
1593      /* Macros to handle insertion and deletion of a bfd's sections.  These
1594         only handle the list pointers, ie. do not adjust section_count,
1595         target_index etc.  */
1596      #define bfd_section_list_remove(ABFD, S) \
1597        do                                                   \
1598          {                                                  \
1599            asection *_s = S;                                \
1600            asection *_next = _s->next;                      \
1601            asection *_prev = _s->prev;                      \
1602            if (_prev)                                       \
1603              _prev->next = _next;                           \
1604            else                                             \
1605              (ABFD)->sections = _next;                      \
1606            if (_next)                                       \
1607              _next->prev = _prev;                           \
1608            else                                             \
1609              (ABFD)->section_last = _prev;                  \
1610          }                                                  \
1611        while (0)
1612      #define bfd_section_list_append(ABFD, S) \
1613        do                                                   \
1614          {                                                  \
1615            asection *_s = S;                                \
1616            bfd *_abfd = ABFD;                               \
1617            _s->next = NULL;                                 \
1618            if (_abfd->section_last)                         \
1619              {                                              \
1620                _s->prev = _abfd->section_last;              \
1621                _abfd->section_last->next = _s;              \
1622              }                                              \
1623            else                                             \
1624              {                                              \
1625                _s->prev = NULL;                             \
1626                _abfd->sections = _s;                        \
1627              }                                              \
1628            _abfd->section_last = _s;                        \
1629          }                                                  \
1630        while (0)
1631      #define bfd_section_list_prepend(ABFD, S) \
1632        do                                                   \
1633          {                                                  \
1634            asection *_s = S;                                \
1635            bfd *_abfd = ABFD;                               \
1636            _s->prev = NULL;                                 \
1637            if (_abfd->sections)                             \
1638              {                                              \
1639                _s->next = _abfd->sections;                  \
1640                _abfd->sections->prev = _s;                  \
1641              }                                              \
1642            else                                             \
1643              {                                              \
1644                _s->next = NULL;                             \
1645                _abfd->section_last = _s;                    \
1646              }                                              \
1647            _abfd->sections = _s;                            \
1648          }                                                  \
1649        while (0)
1650      #define bfd_section_list_insert_after(ABFD, A, S) \
1651        do                                                   \
1652          {                                                  \
1653            asection *_a = A;                                \
1654            asection *_s = S;                                \
1655            asection *_next = _a->next;                      \
1656            _s->next = _next;                                \
1657            _s->prev = _a;                                   \
1658            _a->next = _s;                                   \
1659            if (_next)                                       \
1660              _next->prev = _s;                              \
1661            else                                             \
1662              (ABFD)->section_last = _s;                     \
1663          }                                                  \
1664        while (0)
1665      #define bfd_section_list_insert_before(ABFD, B, S) \
1666        do                                                   \
1667          {                                                  \
1668            asection *_b = B;                                \
1669            asection *_s = S;                                \
1670            asection *_prev = _b->prev;                      \
1671            _s->prev = _prev;                                \
1672            _s->next = _b;                                   \
1673            _b->prev = _s;                                   \
1674            if (_prev)                                       \
1675              _prev->next = _s;                              \
1676            else                                             \
1677              (ABFD)->sections = _s;                         \
1678          }                                                  \
1679        while (0)
1680      #define bfd_section_removed_from_list(ABFD, S) \
1681        ((S)->next == NULL ? (ABFD)->section_last != (S) : (S)->next->prev != (S))
1682
1683      #define BFD_FAKE_SECTION(SEC, FLAGS, SYM, SYM_PTR, NAME, IDX)          \
1684        /* name, id,  index, next, prev, flags, user_set_vma,            */  \
1685        { NAME,  IDX, 0,     NULL, NULL, FLAGS, 0,                           \
1686                                                                             \
1687        /* linker_mark, linker_has_input, gc_mark, gc_mark_from_eh,      */  \
1688           0,           0,                1,       0,                        \
1689                                                                             \
1690        /* segment_mark, sec_info_type, use_rela_p, has_tls_reloc,       */  \
1691           0,            0,             0,          0,                       \
1692                                                                             \
1693        /* has_gp_reloc, need_finalize_relax, reloc_done,                */  \
1694           0,            0,                   0,                             \
1695                                                                             \
1696        /* vma, lma, size, rawsize                                       */  \
1697           0,   0,   0,    0,                                                \
1698                                                                             \
1699        /* output_offset, output_section,              alignment_power,  */  \
1700           0,             (struct bfd_section *) &SEC, 0,                    \
1701                                                                             \
1702        /* relocation, orelocation, reloc_count, filepos, rel_filepos,   */  \
1703           NULL,       NULL,        0,           0,       0,                 \
1704                                                                             \
1705        /* line_filepos, userdata, contents, lineno, lineno_count,       */  \
1706           0,            NULL,     NULL,     NULL,   0,                      \
1707                                                                             \
1708        /* entsize, kept_section, moving_line_filepos,                    */ \
1709           0,       NULL,          0,                                        \
1710                                                                             \
1711        /* target_index, used_by_bfd, constructor_chain, owner,          */  \
1712           0,            NULL,        NULL,              NULL,               \
1713                                                                             \
1714        /* symbol,                                                       */  \
1715           (struct bfd_symbol *) SYM,                                        \
1716                                                                             \
1717        /* symbol_ptr_ptr,                                               */  \
1718           (struct bfd_symbol **) SYM_PTR,                                   \
1719                                                                             \
1720        /* map_head, map_tail                                            */  \
1721           { NULL }, { NULL }                                                \
1722          }
1723
1724 \1f
1725 File: bfd.info,  Node: section prototypes,  Prev: typedef asection,  Up: Sections
1726
1727 2.6.5 Section prototypes
1728 ------------------------
1729
1730 These are the functions exported by the section handling part of BFD.
1731
1732 2.6.5.1 `bfd_section_list_clear'
1733 ................................
1734
1735 *Synopsis*
1736      void bfd_section_list_clear (bfd *);
1737    *Description*
1738 Clears the section list, and also resets the section count and hash
1739 table entries.
1740
1741 2.6.5.2 `bfd_get_section_by_name'
1742 .................................
1743
1744 *Synopsis*
1745      asection *bfd_get_section_by_name (bfd *abfd, const char *name);
1746    *Description*
1747 Run through ABFD and return the one of the `asection's whose name
1748 matches NAME, otherwise `NULL'.  *Note Sections::, for more information.
1749
1750    This should only be used in special cases; the normal way to process
1751 all sections of a given name is to use `bfd_map_over_sections' and
1752 `strcmp' on the name (or better yet, base it on the section flags or
1753 something else) for each section.
1754
1755 2.6.5.3 `bfd_get_section_by_name_if'
1756 ....................................
1757
1758 *Synopsis*
1759      asection *bfd_get_section_by_name_if
1760         (bfd *abfd,
1761          const char *name,
1762          bfd_boolean (*func) (bfd *abfd, asection *sect, void *obj),
1763          void *obj);
1764    *Description*
1765 Call the provided function FUNC for each section attached to the BFD
1766 ABFD whose name matches NAME, passing OBJ as an argument. The function
1767 will be called as if by
1768
1769             func (abfd, the_section, obj);
1770
1771    It returns the first section for which FUNC returns true, otherwise
1772 `NULL'.
1773
1774 2.6.5.4 `bfd_get_unique_section_name'
1775 .....................................
1776
1777 *Synopsis*
1778      char *bfd_get_unique_section_name
1779         (bfd *abfd, const char *templat, int *count);
1780    *Description*
1781 Invent a section name that is unique in ABFD by tacking a dot and a
1782 digit suffix onto the original TEMPLAT.  If COUNT is non-NULL, then it
1783 specifies the first number tried as a suffix to generate a unique name.
1784 The value pointed to by COUNT will be incremented in this case.
1785
1786 2.6.5.5 `bfd_make_section_old_way'
1787 ..................................
1788
1789 *Synopsis*
1790      asection *bfd_make_section_old_way (bfd *abfd, const char *name);
1791    *Description*
1792 Create a new empty section called NAME and attach it to the end of the
1793 chain of sections for the BFD ABFD. An attempt to create a section with
1794 a name which is already in use returns its pointer without changing the
1795 section chain.
1796
1797    It has the funny name since this is the way it used to be before it
1798 was rewritten....
1799
1800    Possible errors are:
1801    * `bfd_error_invalid_operation' - If output has already started for
1802      this BFD.
1803
1804    * `bfd_error_no_memory' - If memory allocation fails.
1805
1806 2.6.5.6 `bfd_make_section_anyway_with_flags'
1807 ............................................
1808
1809 *Synopsis*
1810      asection *bfd_make_section_anyway_with_flags
1811         (bfd *abfd, const char *name, flagword flags);
1812    *Description*
1813 Create a new empty section called NAME and attach it to the end of the
1814 chain of sections for ABFD.  Create a new section even if there is
1815 already a section with that name.  Also set the attributes of the new
1816 section to the value FLAGS.
1817
1818    Return `NULL' and set `bfd_error' on error; possible errors are:
1819    * `bfd_error_invalid_operation' - If output has already started for
1820      ABFD.
1821
1822    * `bfd_error_no_memory' - If memory allocation fails.
1823
1824 2.6.5.7 `bfd_make_section_anyway'
1825 .................................
1826
1827 *Synopsis*
1828      asection *bfd_make_section_anyway (bfd *abfd, const char *name);
1829    *Description*
1830 Create a new empty section called NAME and attach it to the end of the
1831 chain of sections for ABFD.  Create a new section even if there is
1832 already a section with that name.
1833
1834    Return `NULL' and set `bfd_error' on error; possible errors are:
1835    * `bfd_error_invalid_operation' - If output has already started for
1836      ABFD.
1837
1838    * `bfd_error_no_memory' - If memory allocation fails.
1839
1840 2.6.5.8 `bfd_make_section_with_flags'
1841 .....................................
1842
1843 *Synopsis*
1844      asection *bfd_make_section_with_flags
1845         (bfd *, const char *name, flagword flags);
1846    *Description*
1847 Like `bfd_make_section_anyway', but return `NULL' (without calling
1848 bfd_set_error ()) without changing the section chain if there is
1849 already a section named NAME.  Also set the attributes of the new
1850 section to the value FLAGS.  If there is an error, return `NULL' and set
1851 `bfd_error'.
1852
1853 2.6.5.9 `bfd_make_section'
1854 ..........................
1855
1856 *Synopsis*
1857      asection *bfd_make_section (bfd *, const char *name);
1858    *Description*
1859 Like `bfd_make_section_anyway', but return `NULL' (without calling
1860 bfd_set_error ()) without changing the section chain if there is
1861 already a section named NAME.  If there is an error, return `NULL' and
1862 set `bfd_error'.
1863
1864 2.6.5.10 `bfd_set_section_flags'
1865 ................................
1866
1867 *Synopsis*
1868      bfd_boolean bfd_set_section_flags
1869         (bfd *abfd, asection *sec, flagword flags);
1870    *Description*
1871 Set the attributes of the section SEC in the BFD ABFD to the value
1872 FLAGS. Return `TRUE' on success, `FALSE' on error. Possible error
1873 returns are:
1874
1875    * `bfd_error_invalid_operation' - The section cannot have one or
1876      more of the attributes requested. For example, a .bss section in
1877      `a.out' may not have the `SEC_HAS_CONTENTS' field set.
1878
1879 2.6.5.11 `bfd_map_over_sections'
1880 ................................
1881
1882 *Synopsis*
1883      void bfd_map_over_sections
1884         (bfd *abfd,
1885          void (*func) (bfd *abfd, asection *sect, void *obj),
1886          void *obj);
1887    *Description*
1888 Call the provided function FUNC for each section attached to the BFD
1889 ABFD, passing OBJ as an argument. The function will be called as if by
1890
1891             func (abfd, the_section, obj);
1892
1893    This is the preferred method for iterating over sections; an
1894 alternative would be to use a loop:
1895
1896                section *p;
1897                for (p = abfd->sections; p != NULL; p = p->next)
1898                   func (abfd, p, ...)
1899
1900 2.6.5.12 `bfd_sections_find_if'
1901 ...............................
1902
1903 *Synopsis*
1904      asection *bfd_sections_find_if
1905         (bfd *abfd,
1906          bfd_boolean (*operation) (bfd *abfd, asection *sect, void *obj),
1907          void *obj);
1908    *Description*
1909 Call the provided function OPERATION for each section attached to the
1910 BFD ABFD, passing OBJ as an argument. The function will be called as if
1911 by
1912
1913             operation (abfd, the_section, obj);
1914
1915    It returns the first section for which OPERATION returns true.
1916
1917 2.6.5.13 `bfd_set_section_size'
1918 ...............................
1919
1920 *Synopsis*
1921      bfd_boolean bfd_set_section_size
1922         (bfd *abfd, asection *sec, bfd_size_type val);
1923    *Description*
1924 Set SEC to the size VAL. If the operation is ok, then `TRUE' is
1925 returned, else `FALSE'.
1926
1927    Possible error returns:
1928    * `bfd_error_invalid_operation' - Writing has started to the BFD, so
1929      setting the size is invalid.
1930
1931 2.6.5.14 `bfd_set_section_contents'
1932 ...................................
1933
1934 *Synopsis*
1935      bfd_boolean bfd_set_section_contents
1936         (bfd *abfd, asection *section, const void *data,
1937          file_ptr offset, bfd_size_type count);
1938    *Description*
1939 Sets the contents of the section SECTION in BFD ABFD to the data
1940 starting in memory at DATA. The data is written to the output section
1941 starting at offset OFFSET for COUNT octets.
1942
1943    Normally `TRUE' is returned, else `FALSE'. Possible error returns
1944 are:
1945    * `bfd_error_no_contents' - The output section does not have the
1946      `SEC_HAS_CONTENTS' attribute, so nothing can be written to it.
1947
1948    * and some more too
1949    This routine is front end to the back end function
1950 `_bfd_set_section_contents'.
1951
1952 2.6.5.15 `bfd_get_section_contents'
1953 ...................................
1954
1955 *Synopsis*
1956      bfd_boolean bfd_get_section_contents
1957         (bfd *abfd, asection *section, void *location, file_ptr offset,
1958          bfd_size_type count);
1959    *Description*
1960 Read data from SECTION in BFD ABFD into memory starting at LOCATION.
1961 The data is read at an offset of OFFSET from the start of the input
1962 section, and is read for COUNT bytes.
1963
1964    If the contents of a constructor with the `SEC_CONSTRUCTOR' flag set
1965 are requested or if the section does not have the `SEC_HAS_CONTENTS'
1966 flag set, then the LOCATION is filled with zeroes. If no errors occur,
1967 `TRUE' is returned, else `FALSE'.
1968
1969 2.6.5.16 `bfd_malloc_and_get_section'
1970 .....................................
1971
1972 *Synopsis*
1973      bfd_boolean bfd_malloc_and_get_section
1974         (bfd *abfd, asection *section, bfd_byte **buf);
1975    *Description*
1976 Read all data from SECTION in BFD ABFD into a buffer, *BUF, malloc'd by
1977 this function.
1978
1979 2.6.5.17 `bfd_copy_private_section_data'
1980 ........................................
1981
1982 *Synopsis*
1983      bfd_boolean bfd_copy_private_section_data
1984         (bfd *ibfd, asection *isec, bfd *obfd, asection *osec);
1985    *Description*
1986 Copy private section information from ISEC in the BFD IBFD to the
1987 section OSEC in the BFD OBFD.  Return `TRUE' on success, `FALSE' on
1988 error.  Possible error returns are:
1989
1990    * `bfd_error_no_memory' - Not enough memory exists to create private
1991      data for OSEC.
1992
1993      #define bfd_copy_private_section_data(ibfd, isection, obfd, osection) \
1994           BFD_SEND (obfd, _bfd_copy_private_section_data, \
1995                     (ibfd, isection, obfd, osection))
1996
1997 2.6.5.18 `bfd_generic_is_group_section'
1998 .......................................
1999
2000 *Synopsis*
2001      bfd_boolean bfd_generic_is_group_section (bfd *, const asection *sec);
2002    *Description*
2003 Returns TRUE if SEC is a member of a group.
2004
2005 2.6.5.19 `bfd_generic_discard_group'
2006 ....................................
2007
2008 *Synopsis*
2009      bfd_boolean bfd_generic_discard_group (bfd *abfd, asection *group);
2010    *Description*
2011 Remove all members of GROUP from the output.
2012
2013 \1f
2014 File: bfd.info,  Node: Symbols,  Next: Archives,  Prev: Sections,  Up: BFD front end
2015
2016 2.7 Symbols
2017 ===========
2018
2019 BFD tries to maintain as much symbol information as it can when it
2020 moves information from file to file. BFD passes information to
2021 applications though the `asymbol' structure. When the application
2022 requests the symbol table, BFD reads the table in the native form and
2023 translates parts of it into the internal format. To maintain more than
2024 the information passed to applications, some targets keep some
2025 information "behind the scenes" in a structure only the particular back
2026 end knows about. For example, the coff back end keeps the original
2027 symbol table structure as well as the canonical structure when a BFD is
2028 read in. On output, the coff back end can reconstruct the output symbol
2029 table so that no information is lost, even information unique to coff
2030 which BFD doesn't know or understand. If a coff symbol table were read,
2031 but were written through an a.out back end, all the coff specific
2032 information would be lost. The symbol table of a BFD is not necessarily
2033 read in until a canonicalize request is made. Then the BFD back end
2034 fills in a table provided by the application with pointers to the
2035 canonical information.  To output symbols, the application provides BFD
2036 with a table of pointers to pointers to `asymbol's. This allows
2037 applications like the linker to output a symbol as it was read, since
2038 the "behind the scenes" information will be still available.
2039
2040 * Menu:
2041
2042 * Reading Symbols::
2043 * Writing Symbols::
2044 * Mini Symbols::
2045 * typedef asymbol::
2046 * symbol handling functions::
2047
2048 \1f
2049 File: bfd.info,  Node: Reading Symbols,  Next: Writing Symbols,  Prev: Symbols,  Up: Symbols
2050
2051 2.7.1 Reading symbols
2052 ---------------------
2053
2054 There are two stages to reading a symbol table from a BFD: allocating
2055 storage, and the actual reading process. This is an excerpt from an
2056 application which reads the symbol table:
2057
2058               long storage_needed;
2059               asymbol **symbol_table;
2060               long number_of_symbols;
2061               long i;
2062
2063               storage_needed = bfd_get_symtab_upper_bound (abfd);
2064
2065               if (storage_needed < 0)
2066                 FAIL
2067
2068               if (storage_needed == 0)
2069                 return;
2070
2071               symbol_table = xmalloc (storage_needed);
2072                 ...
2073               number_of_symbols =
2074                  bfd_canonicalize_symtab (abfd, symbol_table);
2075
2076               if (number_of_symbols < 0)
2077                 FAIL
2078
2079               for (i = 0; i < number_of_symbols; i++)
2080                 process_symbol (symbol_table[i]);
2081
2082    All storage for the symbols themselves is in an objalloc connected
2083 to the BFD; it is freed when the BFD is closed.
2084
2085 \1f
2086 File: bfd.info,  Node: Writing Symbols,  Next: Mini Symbols,  Prev: Reading Symbols,  Up: Symbols
2087
2088 2.7.2 Writing symbols
2089 ---------------------
2090
2091 Writing of a symbol table is automatic when a BFD open for writing is
2092 closed. The application attaches a vector of pointers to pointers to
2093 symbols to the BFD being written, and fills in the symbol count. The
2094 close and cleanup code reads through the table provided and performs
2095 all the necessary operations. The BFD output code must always be
2096 provided with an "owned" symbol: one which has come from another BFD,
2097 or one which has been created using `bfd_make_empty_symbol'.  Here is an
2098 example showing the creation of a symbol table with only one element:
2099
2100             #include "bfd.h"
2101             int main (void)
2102             {
2103               bfd *abfd;
2104               asymbol *ptrs[2];
2105               asymbol *new;
2106
2107               abfd = bfd_openw ("foo","a.out-sunos-big");
2108               bfd_set_format (abfd, bfd_object);
2109               new = bfd_make_empty_symbol (abfd);
2110               new->name = "dummy_symbol";
2111               new->section = bfd_make_section_old_way (abfd, ".text");
2112               new->flags = BSF_GLOBAL;
2113               new->value = 0x12345;
2114
2115               ptrs[0] = new;
2116               ptrs[1] = 0;
2117
2118               bfd_set_symtab (abfd, ptrs, 1);
2119               bfd_close (abfd);
2120               return 0;
2121             }
2122
2123             ./makesym
2124             nm foo
2125             00012345 A dummy_symbol
2126
2127    Many formats cannot represent arbitrary symbol information; for
2128 instance, the `a.out' object format does not allow an arbitrary number
2129 of sections. A symbol pointing to a section which is not one  of
2130 `.text', `.data' or `.bss' cannot be described.
2131
2132 \1f
2133 File: bfd.info,  Node: Mini Symbols,  Next: typedef asymbol,  Prev: Writing Symbols,  Up: Symbols
2134
2135 2.7.3 Mini Symbols
2136 ------------------
2137
2138 Mini symbols provide read-only access to the symbol table.  They use
2139 less memory space, but require more time to access.  They can be useful
2140 for tools like nm or objdump, which may have to handle symbol tables of
2141 extremely large executables.
2142
2143    The `bfd_read_minisymbols' function will read the symbols into
2144 memory in an internal form.  It will return a `void *' pointer to a
2145 block of memory, a symbol count, and the size of each symbol.  The
2146 pointer is allocated using `malloc', and should be freed by the caller
2147 when it is no longer needed.
2148
2149    The function `bfd_minisymbol_to_symbol' will take a pointer to a
2150 minisymbol, and a pointer to a structure returned by
2151 `bfd_make_empty_symbol', and return a `asymbol' structure.  The return
2152 value may or may not be the same as the value from
2153 `bfd_make_empty_symbol' which was passed in.
2154
2155 \1f
2156 File: bfd.info,  Node: typedef asymbol,  Next: symbol handling functions,  Prev: Mini Symbols,  Up: Symbols
2157
2158 2.7.4 typedef asymbol
2159 ---------------------
2160
2161 An `asymbol' has the form:
2162
2163
2164      typedef struct bfd_symbol
2165      {
2166        /* A pointer to the BFD which owns the symbol. This information
2167           is necessary so that a back end can work out what additional
2168           information (invisible to the application writer) is carried
2169           with the symbol.
2170
2171           This field is *almost* redundant, since you can use section->owner
2172           instead, except that some symbols point to the global sections
2173           bfd_{abs,com,und}_section.  This could be fixed by making
2174           these globals be per-bfd (or per-target-flavor).  FIXME.  */
2175        struct bfd *the_bfd; /* Use bfd_asymbol_bfd(sym) to access this field.  */
2176
2177        /* The text of the symbol. The name is left alone, and not copied; the
2178           application may not alter it.  */
2179        const char *name;
2180
2181        /* The value of the symbol.  This really should be a union of a
2182           numeric value with a pointer, since some flags indicate that
2183           a pointer to another symbol is stored here.  */
2184        symvalue value;
2185
2186        /* Attributes of a symbol.  */
2187      #define BSF_NO_FLAGS    0x00
2188
2189        /* The symbol has local scope; `static' in `C'. The value
2190           is the offset into the section of the data.  */
2191      #define BSF_LOCAL      0x01
2192
2193        /* The symbol has global scope; initialized data in `C'. The
2194           value is the offset into the section of the data.  */
2195      #define BSF_GLOBAL     0x02
2196
2197        /* The symbol has global scope and is exported. The value is
2198           the offset into the section of the data.  */
2199      #define BSF_EXPORT     BSF_GLOBAL /* No real difference.  */
2200
2201        /* A normal C symbol would be one of:
2202           `BSF_LOCAL', `BSF_FORT_COMM',  `BSF_UNDEFINED' or
2203           `BSF_GLOBAL'.  */
2204
2205        /* The symbol is a debugging record. The value has an arbitrary
2206           meaning, unless BSF_DEBUGGING_RELOC is also set.  */
2207      #define BSF_DEBUGGING  0x08
2208
2209        /* The symbol denotes a function entry point.  Used in ELF,
2210           perhaps others someday.  */
2211      #define BSF_FUNCTION    0x10
2212
2213        /* Used by the linker.  */
2214      #define BSF_KEEP        0x20
2215      #define BSF_KEEP_G      0x40
2216
2217        /* A weak global symbol, overridable without warnings by
2218           a regular global symbol of the same name.  */
2219      #define BSF_WEAK        0x80
2220
2221        /* This symbol was created to point to a section, e.g. ELF's
2222           STT_SECTION symbols.  */
2223      #define BSF_SECTION_SYM 0x100
2224
2225        /* The symbol used to be a common symbol, but now it is
2226           allocated.  */
2227      #define BSF_OLD_COMMON  0x200
2228
2229        /* The default value for common data.  */
2230      #define BFD_FORT_COMM_DEFAULT_VALUE 0
2231
2232        /* In some files the type of a symbol sometimes alters its
2233           location in an output file - ie in coff a `ISFCN' symbol
2234           which is also `C_EXT' symbol appears where it was
2235           declared and not at the end of a section.  This bit is set
2236           by the target BFD part to convey this information.  */
2237      #define BSF_NOT_AT_END    0x400
2238
2239        /* Signal that the symbol is the label of constructor section.  */
2240      #define BSF_CONSTRUCTOR   0x800
2241
2242        /* Signal that the symbol is a warning symbol.  The name is a
2243           warning.  The name of the next symbol is the one to warn about;
2244           if a reference is made to a symbol with the same name as the next
2245           symbol, a warning is issued by the linker.  */
2246      #define BSF_WARNING       0x1000
2247
2248        /* Signal that the symbol is indirect.  This symbol is an indirect
2249           pointer to the symbol with the same name as the next symbol.  */
2250      #define BSF_INDIRECT      0x2000
2251
2252        /* BSF_FILE marks symbols that contain a file name.  This is used
2253           for ELF STT_FILE symbols.  */
2254      #define BSF_FILE          0x4000
2255
2256        /* Symbol is from dynamic linking information.  */
2257      #define BSF_DYNAMIC       0x8000
2258
2259        /* The symbol denotes a data object.  Used in ELF, and perhaps
2260           others someday.  */
2261      #define BSF_OBJECT        0x10000
2262
2263        /* This symbol is a debugging symbol.  The value is the offset
2264           into the section of the data.  BSF_DEBUGGING should be set
2265           as well.  */
2266      #define BSF_DEBUGGING_RELOC 0x20000
2267
2268        /* This symbol is thread local.  Used in ELF.  */
2269      #define BSF_THREAD_LOCAL  0x40000
2270
2271        flagword flags;
2272
2273        /* A pointer to the section to which this symbol is
2274           relative.  This will always be non NULL, there are special
2275           sections for undefined and absolute symbols.  */
2276        struct bfd_section *section;
2277
2278        /* Back end special data.  */
2279        union
2280          {
2281            void *p;
2282            bfd_vma i;
2283          }
2284        udata;
2285      }
2286      asymbol;
2287
2288 \1f
2289 File: bfd.info,  Node: symbol handling functions,  Prev: typedef asymbol,  Up: Symbols
2290
2291 2.7.5 Symbol handling functions
2292 -------------------------------
2293
2294 2.7.5.1 `bfd_get_symtab_upper_bound'
2295 ....................................
2296
2297 *Description*
2298 Return the number of bytes required to store a vector of pointers to
2299 `asymbols' for all the symbols in the BFD ABFD, including a terminal
2300 NULL pointer. If there are no symbols in the BFD, then return 0.  If an
2301 error occurs, return -1.
2302      #define bfd_get_symtab_upper_bound(abfd) \
2303           BFD_SEND (abfd, _bfd_get_symtab_upper_bound, (abfd))
2304
2305 2.7.5.2 `bfd_is_local_label'
2306 ............................
2307
2308 *Synopsis*
2309      bfd_boolean bfd_is_local_label (bfd *abfd, asymbol *sym);
2310    *Description*
2311 Return TRUE if the given symbol SYM in the BFD ABFD is a compiler
2312 generated local label, else return FALSE.
2313
2314 2.7.5.3 `bfd_is_local_label_name'
2315 .................................
2316
2317 *Synopsis*
2318      bfd_boolean bfd_is_local_label_name (bfd *abfd, const char *name);
2319    *Description*
2320 Return TRUE if a symbol with the name NAME in the BFD ABFD is a
2321 compiler generated local label, else return FALSE.  This just checks
2322 whether the name has the form of a local label.
2323      #define bfd_is_local_label_name(abfd, name) \
2324        BFD_SEND (abfd, _bfd_is_local_label_name, (abfd, name))
2325
2326 2.7.5.4 `bfd_is_target_special_symbol'
2327 ......................................
2328
2329 *Synopsis*
2330      bfd_boolean bfd_is_target_special_symbol (bfd *abfd, asymbol *sym);
2331    *Description*
2332 Return TRUE iff a symbol SYM in the BFD ABFD is something special to
2333 the particular target represented by the BFD.  Such symbols should
2334 normally not be mentioned to the user.
2335      #define bfd_is_target_special_symbol(abfd, sym) \
2336        BFD_SEND (abfd, _bfd_is_target_special_symbol, (abfd, sym))
2337
2338 2.7.5.5 `bfd_canonicalize_symtab'
2339 .................................
2340
2341 *Description*
2342 Read the symbols from the BFD ABFD, and fills in the vector LOCATION
2343 with pointers to the symbols and a trailing NULL.  Return the actual
2344 number of symbol pointers, not including the NULL.
2345      #define bfd_canonicalize_symtab(abfd, location) \
2346        BFD_SEND (abfd, _bfd_canonicalize_symtab, (abfd, location))
2347
2348 2.7.5.6 `bfd_set_symtab'
2349 ........................
2350
2351 *Synopsis*
2352      bfd_boolean bfd_set_symtab
2353         (bfd *abfd, asymbol **location, unsigned int count);
2354    *Description*
2355 Arrange that when the output BFD ABFD is closed, the table LOCATION of
2356 COUNT pointers to symbols will be written.
2357
2358 2.7.5.7 `bfd_print_symbol_vandf'
2359 ................................
2360
2361 *Synopsis*
2362      void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol);
2363    *Description*
2364 Print the value and flags of the SYMBOL supplied to the stream FILE.
2365
2366 2.7.5.8 `bfd_make_empty_symbol'
2367 ...............................
2368
2369 *Description*
2370 Create a new `asymbol' structure for the BFD ABFD and return a pointer
2371 to it.
2372
2373    This routine is necessary because each back end has private
2374 information surrounding the `asymbol'. Building your own `asymbol' and
2375 pointing to it will not create the private information, and will cause
2376 problems later on.
2377      #define bfd_make_empty_symbol(abfd) \
2378        BFD_SEND (abfd, _bfd_make_empty_symbol, (abfd))
2379
2380 2.7.5.9 `_bfd_generic_make_empty_symbol'
2381 ........................................
2382
2383 *Synopsis*
2384      asymbol *_bfd_generic_make_empty_symbol (bfd *);
2385    *Description*
2386 Create a new `asymbol' structure for the BFD ABFD and return a pointer
2387 to it.  Used by core file routines, binary back-end and anywhere else
2388 where no private info is needed.
2389
2390 2.7.5.10 `bfd_make_debug_symbol'
2391 ................................
2392
2393 *Description*
2394 Create a new `asymbol' structure for the BFD ABFD, to be used as a
2395 debugging symbol.  Further details of its use have yet to be worked out.
2396      #define bfd_make_debug_symbol(abfd,ptr,size) \
2397        BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size))
2398
2399 2.7.5.11 `bfd_decode_symclass'
2400 ..............................
2401
2402 *Description*
2403 Return a character corresponding to the symbol class of SYMBOL, or '?'
2404 for an unknown class.
2405
2406    *Synopsis*
2407      int bfd_decode_symclass (asymbol *symbol);
2408    
2409 2.7.5.12 `bfd_is_undefined_symclass'
2410 ....................................
2411
2412 *Description*
2413 Returns non-zero if the class symbol returned by bfd_decode_symclass
2414 represents an undefined symbol.  Returns zero otherwise.
2415
2416    *Synopsis*
2417      bfd_boolean bfd_is_undefined_symclass (int symclass);
2418    
2419 2.7.5.13 `bfd_symbol_info'
2420 ..........................
2421
2422 *Description*
2423 Fill in the basic info about symbol that nm needs.  Additional info may
2424 be added by the back-ends after calling this function.
2425
2426    *Synopsis*
2427      void bfd_symbol_info (asymbol *symbol, symbol_info *ret);
2428    
2429 2.7.5.14 `bfd_copy_private_symbol_data'
2430 .......................................
2431
2432 *Synopsis*
2433      bfd_boolean bfd_copy_private_symbol_data
2434         (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym);
2435    *Description*
2436 Copy private symbol information from ISYM in the BFD IBFD to the symbol
2437 OSYM in the BFD OBFD.  Return `TRUE' on success, `FALSE' on error.
2438 Possible error returns are:
2439
2440    * `bfd_error_no_memory' - Not enough memory exists to create private
2441      data for OSEC.
2442
2443      #define bfd_copy_private_symbol_data(ibfd, isymbol, obfd, osymbol) \
2444        BFD_SEND (obfd, _bfd_copy_private_symbol_data, \
2445                  (ibfd, isymbol, obfd, osymbol))
2446
2447 \1f
2448 File: bfd.info,  Node: Archives,  Next: Formats,  Prev: Symbols,  Up: BFD front end
2449
2450 2.8 Archives
2451 ============
2452
2453 *Description*
2454 An archive (or library) is just another BFD.  It has a symbol table,
2455 although there's not much a user program will do with it.
2456
2457    The big difference between an archive BFD and an ordinary BFD is
2458 that the archive doesn't have sections.  Instead it has a chain of BFDs
2459 that are considered its contents.  These BFDs can be manipulated like
2460 any other.  The BFDs contained in an archive opened for reading will
2461 all be opened for reading.  You may put either input or output BFDs
2462 into an archive opened for output; they will be handled correctly when
2463 the archive is closed.
2464
2465    Use `bfd_openr_next_archived_file' to step through the contents of
2466 an archive opened for input.  You don't have to read the entire archive
2467 if you don't want to!  Read it until you find what you want.
2468
2469    Archive contents of output BFDs are chained through the `next'
2470 pointer in a BFD.  The first one is findable through the `archive_head'
2471 slot of the archive.  Set it with `bfd_set_archive_head' (q.v.).  A
2472 given BFD may be in only one open output archive at a time.
2473
2474    As expected, the BFD archive code is more general than the archive
2475 code of any given environment.  BFD archives may contain files of
2476 different formats (e.g., a.out and coff) and even different
2477 architectures.  You may even place archives recursively into archives!
2478
2479    This can cause unexpected confusion, since some archive formats are
2480 more expressive than others.  For instance, Intel COFF archives can
2481 preserve long filenames; SunOS a.out archives cannot.  If you move a
2482 file from the first to the second format and back again, the filename
2483 may be truncated.  Likewise, different a.out environments have different
2484 conventions as to how they truncate filenames, whether they preserve
2485 directory names in filenames, etc.  When interoperating with native
2486 tools, be sure your files are homogeneous.
2487
2488    Beware: most of these formats do not react well to the presence of
2489 spaces in filenames.  We do the best we can, but can't always handle
2490 this case due to restrictions in the format of archives.  Many Unix
2491 utilities are braindead in regards to spaces and such in filenames
2492 anyway, so this shouldn't be much of a restriction.
2493
2494    Archives are supported in BFD in `archive.c'.
2495
2496 2.8.1 Archive functions
2497 -----------------------
2498
2499 2.8.1.1 `bfd_get_next_mapent'
2500 .............................
2501
2502 *Synopsis*
2503      symindex bfd_get_next_mapent
2504         (bfd *abfd, symindex previous, carsym **sym);
2505    *Description*
2506 Step through archive ABFD's symbol table (if it has one).  Successively
2507 update SYM with the next symbol's information, returning that symbol's
2508 (internal) index into the symbol table.
2509
2510    Supply `BFD_NO_MORE_SYMBOLS' as the PREVIOUS entry to get the first
2511 one; returns `BFD_NO_MORE_SYMBOLS' when you've already got the last one.
2512
2513    A `carsym' is a canonical archive symbol.  The only user-visible
2514 element is its name, a null-terminated string.
2515
2516 2.8.1.2 `bfd_set_archive_head'
2517 ..............................
2518
2519 *Synopsis*
2520      bfd_boolean bfd_set_archive_head (bfd *output, bfd *new_head);
2521    *Description*
2522 Set the head of the chain of BFDs contained in the archive OUTPUT to
2523 NEW_HEAD.
2524
2525 2.8.1.3 `bfd_openr_next_archived_file'
2526 ......................................
2527
2528 *Synopsis*
2529      bfd *bfd_openr_next_archived_file (bfd *archive, bfd *previous);
2530    *Description*
2531 Provided a BFD, ARCHIVE, containing an archive and NULL, open an input
2532 BFD on the first contained element and returns that.  Subsequent calls
2533 should pass the archive and the previous return value to return a
2534 created BFD to the next contained element. NULL is returned when there
2535 are no more.
2536
2537 \1f
2538 File: bfd.info,  Node: Formats,  Next: Relocations,  Prev: Archives,  Up: BFD front end
2539
2540 2.9 File formats
2541 ================
2542
2543 A format is a BFD concept of high level file contents type. The formats
2544 supported by BFD are:
2545
2546    * `bfd_object'
2547    The BFD may contain data, symbols, relocations and debug info.
2548
2549    * `bfd_archive'
2550    The BFD contains other BFDs and an optional index.
2551
2552    * `bfd_core'
2553    The BFD contains the result of an executable core dump.
2554
2555 2.9.1 File format functions
2556 ---------------------------
2557
2558 2.9.1.1 `bfd_check_format'
2559 ..........................
2560
2561 *Synopsis*
2562      bfd_boolean bfd_check_format (bfd *abfd, bfd_format format);
2563    *Description*
2564 Verify if the file attached to the BFD ABFD is compatible with the
2565 format FORMAT (i.e., one of `bfd_object', `bfd_archive' or `bfd_core').
2566
2567    If the BFD has been set to a specific target before the call, only
2568 the named target and format combination is checked. If the target has
2569 not been set, or has been set to `default', then all the known target
2570 backends is interrogated to determine a match.  If the default target
2571 matches, it is used.  If not, exactly one target must recognize the
2572 file, or an error results.
2573
2574    The function returns `TRUE' on success, otherwise `FALSE' with one
2575 of the following error codes:
2576
2577    * `bfd_error_invalid_operation' - if `format' is not one of
2578      `bfd_object', `bfd_archive' or `bfd_core'.
2579
2580    * `bfd_error_system_call' - if an error occured during a read - even
2581      some file mismatches can cause bfd_error_system_calls.
2582
2583    * `file_not_recognised' - none of the backends recognised the file
2584      format.
2585
2586    * `bfd_error_file_ambiguously_recognized' - more than one backend
2587      recognised the file format.
2588
2589 2.9.1.2 `bfd_check_format_matches'
2590 ..................................
2591
2592 *Synopsis*
2593      bfd_boolean bfd_check_format_matches
2594         (bfd *abfd, bfd_format format, char ***matching);
2595    *Description*
2596 Like `bfd_check_format', except when it returns FALSE with `bfd_errno'
2597 set to `bfd_error_file_ambiguously_recognized'.  In that case, if
2598 MATCHING is not NULL, it will be filled in with a NULL-terminated list
2599 of the names of the formats that matched, allocated with `malloc'.
2600 Then the user may choose a format and try again.
2601
2602    When done with the list that MATCHING points to, the caller should
2603 free it.
2604
2605 2.9.1.3 `bfd_set_format'
2606 ........................
2607
2608 *Synopsis*
2609      bfd_boolean bfd_set_format (bfd *abfd, bfd_format format);
2610    *Description*
2611 This function sets the file format of the BFD ABFD to the format
2612 FORMAT. If the target set in the BFD does not support the format
2613 requested, the format is invalid, or the BFD is not open for writing,
2614 then an error occurs.
2615
2616 2.9.1.4 `bfd_format_string'
2617 ...........................
2618
2619 *Synopsis*
2620      const char *bfd_format_string (bfd_format format);
2621    *Description*
2622 Return a pointer to a const string `invalid', `object', `archive',
2623 `core', or `unknown', depending upon the value of FORMAT.
2624
2625 \1f
2626 File: bfd.info,  Node: Relocations,  Next: Core Files,  Prev: Formats,  Up: BFD front end
2627
2628 2.10 Relocations
2629 ================
2630
2631 BFD maintains relocations in much the same way it maintains symbols:
2632 they are left alone until required, then read in en-masse and
2633 translated into an internal form.  A common routine
2634 `bfd_perform_relocation' acts upon the canonical form to do the fixup.
2635
2636    Relocations are maintained on a per section basis, while symbols are
2637 maintained on a per BFD basis.
2638
2639    All that a back end has to do to fit the BFD interface is to create
2640 a `struct reloc_cache_entry' for each relocation in a particular
2641 section, and fill in the right bits of the structures.
2642
2643 * Menu:
2644
2645 * typedef arelent::
2646 * howto manager::
2647
2648 \1f
2649 File: bfd.info,  Node: typedef arelent,  Next: howto manager,  Prev: Relocations,  Up: Relocations
2650
2651 2.10.1 typedef arelent
2652 ----------------------
2653
2654 This is the structure of a relocation entry:
2655
2656
2657      typedef enum bfd_reloc_status
2658      {
2659        /* No errors detected.  */
2660        bfd_reloc_ok,
2661
2662        /* The relocation was performed, but there was an overflow.  */
2663        bfd_reloc_overflow,
2664
2665        /* The address to relocate was not within the section supplied.  */
2666        bfd_reloc_outofrange,
2667
2668        /* Used by special functions.  */
2669        bfd_reloc_continue,
2670
2671        /* Unsupported relocation size requested.  */
2672        bfd_reloc_notsupported,
2673
2674        /* Unused.  */
2675        bfd_reloc_other,
2676
2677        /* The symbol to relocate against was undefined.  */
2678        bfd_reloc_undefined,
2679
2680        /* The relocation was performed, but may not be ok - presently
2681           generated only when linking i960 coff files with i960 b.out
2682           symbols.  If this type is returned, the error_message argument
2683           to bfd_perform_relocation will be set.  */
2684        bfd_reloc_dangerous
2685       }
2686       bfd_reloc_status_type;
2687
2688
2689      typedef struct reloc_cache_entry
2690      {
2691        /* A pointer into the canonical table of pointers.  */
2692        struct bfd_symbol **sym_ptr_ptr;
2693
2694        /* offset in section.  */
2695        bfd_size_type address;
2696
2697        /* addend for relocation value.  */
2698        bfd_vma addend;
2699
2700        /* Pointer to how to perform the required relocation.  */
2701        reloc_howto_type *howto;
2702
2703      }
2704      arelent;
2705    *Description*
2706 Here is a description of each of the fields within an `arelent':
2707
2708    * `sym_ptr_ptr'
2709    The symbol table pointer points to a pointer to the symbol
2710 associated with the relocation request.  It is the pointer into the
2711 table returned by the back end's `canonicalize_symtab' action. *Note
2712 Symbols::. The symbol is referenced through a pointer to a pointer so
2713 that tools like the linker can fix up all the symbols of the same name
2714 by modifying only one pointer. The relocation routine looks in the
2715 symbol and uses the base of the section the symbol is attached to and
2716 the value of the symbol as the initial relocation offset. If the symbol
2717 pointer is zero, then the section provided is looked up.
2718
2719    * `address'
2720    The `address' field gives the offset in bytes from the base of the
2721 section data which owns the relocation record to the first byte of
2722 relocatable information. The actual data relocated will be relative to
2723 this point; for example, a relocation type which modifies the bottom
2724 two bytes of a four byte word would not touch the first byte pointed to
2725 in a big endian world.
2726
2727    * `addend'
2728    The `addend' is a value provided by the back end to be added (!)  to
2729 the relocation offset. Its interpretation is dependent upon the howto.
2730 For example, on the 68k the code:
2731
2732              char foo[];
2733              main()
2734                      {
2735                      return foo[0x12345678];
2736                      }
2737
2738    Could be compiled into:
2739
2740              linkw fp,#-4
2741              moveb @#12345678,d0
2742              extbl d0
2743              unlk fp
2744              rts
2745
2746    This could create a reloc pointing to `foo', but leave the offset in
2747 the data, something like:
2748
2749      RELOCATION RECORDS FOR [.text]:
2750      offset   type      value
2751      00000006 32        _foo
2752
2753      00000000 4e56 fffc          ; linkw fp,#-4
2754      00000004 1039 1234 5678     ; moveb @#12345678,d0
2755      0000000a 49c0               ; extbl d0
2756      0000000c 4e5e               ; unlk fp
2757      0000000e 4e75               ; rts
2758
2759    Using coff and an 88k, some instructions don't have enough space in
2760 them to represent the full address range, and pointers have to be
2761 loaded in two parts. So you'd get something like:
2762
2763              or.u     r13,r0,hi16(_foo+0x12345678)
2764              ld.b     r2,r13,lo16(_foo+0x12345678)
2765              jmp      r1
2766
2767    This should create two relocs, both pointing to `_foo', and with
2768 0x12340000 in their addend field. The data would consist of:
2769
2770      RELOCATION RECORDS FOR [.text]:
2771      offset   type      value
2772      00000002 HVRT16    _foo+0x12340000
2773      00000006 LVRT16    _foo+0x12340000
2774
2775      00000000 5da05678           ; or.u r13,r0,0x5678
2776      00000004 1c4d5678           ; ld.b r2,r13,0x5678
2777      00000008 f400c001           ; jmp r1
2778
2779    The relocation routine digs out the value from the data, adds it to
2780 the addend to get the original offset, and then adds the value of
2781 `_foo'. Note that all 32 bits have to be kept around somewhere, to cope
2782 with carry from bit 15 to bit 16.
2783
2784    One further example is the sparc and the a.out format. The sparc has
2785 a similar problem to the 88k, in that some instructions don't have room
2786 for an entire offset, but on the sparc the parts are created in odd
2787 sized lumps. The designers of the a.out format chose to not use the
2788 data within the section for storing part of the offset; all the offset
2789 is kept within the reloc. Anything in the data should be ignored.
2790
2791              save %sp,-112,%sp
2792              sethi %hi(_foo+0x12345678),%g2
2793              ldsb [%g2+%lo(_foo+0x12345678)],%i0
2794              ret
2795              restore
2796
2797    Both relocs contain a pointer to `foo', and the offsets contain junk.
2798
2799      RELOCATION RECORDS FOR [.text]:
2800      offset   type      value
2801      00000004 HI22      _foo+0x12345678
2802      00000008 LO10      _foo+0x12345678
2803
2804      00000000 9de3bf90     ; save %sp,-112,%sp
2805      00000004 05000000     ; sethi %hi(_foo+0),%g2
2806      00000008 f048a000     ; ldsb [%g2+%lo(_foo+0)],%i0
2807      0000000c 81c7e008     ; ret
2808      00000010 81e80000     ; restore
2809
2810    * `howto'
2811    The `howto' field can be imagined as a relocation instruction. It is
2812 a pointer to a structure which contains information on what to do with
2813 all of the other information in the reloc record and data section. A
2814 back end would normally have a relocation instruction set and turn
2815 relocations into pointers to the correct structure on input - but it
2816 would be possible to create each howto field on demand.
2817
2818 2.10.1.1 `enum complain_overflow'
2819 .................................
2820
2821 Indicates what sort of overflow checking should be done when performing
2822 a relocation.
2823
2824
2825      enum complain_overflow
2826      {
2827        /* Do not complain on overflow.  */
2828        complain_overflow_dont,
2829
2830        /* Complain if the value overflows when considered as a signed
2831           number one bit larger than the field.  ie. A bitfield of N bits
2832           is allowed to represent -2**n to 2**n-1.  */
2833        complain_overflow_bitfield,
2834
2835        /* Complain if the value overflows when considered as a signed
2836           number.  */
2837        complain_overflow_signed,
2838
2839        /* Complain if the value overflows when considered as an
2840           unsigned number.  */
2841        complain_overflow_unsigned
2842      };
2843
2844 2.10.1.2 `reloc_howto_type'
2845 ...........................
2846
2847 The `reloc_howto_type' is a structure which contains all the
2848 information that libbfd needs to know to tie up a back end's data.
2849
2850      struct bfd_symbol;             /* Forward declaration.  */
2851
2852      struct reloc_howto_struct
2853      {
2854        /*  The type field has mainly a documentary use - the back end can
2855            do what it wants with it, though normally the back end's
2856            external idea of what a reloc number is stored
2857            in this field.  For example, a PC relative word relocation
2858            in a coff environment has the type 023 - because that's
2859            what the outside world calls a R_PCRWORD reloc.  */
2860        unsigned int type;
2861
2862        /*  The value the final relocation is shifted right by.  This drops
2863            unwanted data from the relocation.  */
2864        unsigned int rightshift;
2865
2866        /*  The size of the item to be relocated.  This is *not* a
2867            power-of-two measure.  To get the number of bytes operated
2868            on by a type of relocation, use bfd_get_reloc_size.  */
2869        int size;
2870
2871        /*  The number of bits in the item to be relocated.  This is used
2872            when doing overflow checking.  */
2873        unsigned int bitsize;
2874
2875        /*  Notes that the relocation is relative to the location in the
2876            data section of the addend.  The relocation function will
2877            subtract from the relocation value the address of the location
2878            being relocated.  */
2879        bfd_boolean pc_relative;
2880
2881        /*  The bit position of the reloc value in the destination.
2882            The relocated value is left shifted by this amount.  */
2883        unsigned int bitpos;
2884
2885        /* What type of overflow error should be checked for when
2886           relocating.  */
2887        enum complain_overflow complain_on_overflow;
2888
2889        /* If this field is non null, then the supplied function is
2890           called rather than the normal function.  This allows really
2891           strange relocation methods to be accommodated (e.g., i960 callj
2892           instructions).  */
2893        bfd_reloc_status_type (*special_function)
2894          (bfd *, arelent *, struct bfd_symbol *, void *, asection *,
2895           bfd *, char **);
2896
2897        /* The textual name of the relocation type.  */
2898        char *name;
2899
2900        /* Some formats record a relocation addend in the section contents
2901           rather than with the relocation.  For ELF formats this is the
2902           distinction between USE_REL and USE_RELA (though the code checks
2903           for USE_REL == 1/0).  The value of this field is TRUE if the
2904           addend is recorded with the section contents; when performing a
2905           partial link (ld -r) the section contents (the data) will be
2906           modified.  The value of this field is FALSE if addends are
2907           recorded with the relocation (in arelent.addend); when performing
2908           a partial link the relocation will be modified.
2909           All relocations for all ELF USE_RELA targets should set this field
2910           to FALSE (values of TRUE should be looked on with suspicion).
2911           However, the converse is not true: not all relocations of all ELF
2912           USE_REL targets set this field to TRUE.  Why this is so is peculiar
2913           to each particular target.  For relocs that aren't used in partial
2914           links (e.g. GOT stuff) it doesn't matter what this is set to.  */
2915        bfd_boolean partial_inplace;
2916
2917        /* src_mask selects the part of the instruction (or data) to be used
2918           in the relocation sum.  If the target relocations don't have an
2919           addend in the reloc, eg. ELF USE_REL, src_mask will normally equal
2920           dst_mask to extract the addend from the section contents.  If
2921           relocations do have an addend in the reloc, eg. ELF USE_RELA, this
2922           field should be zero.  Non-zero values for ELF USE_RELA targets are
2923           bogus as in those cases the value in the dst_mask part of the
2924           section contents should be treated as garbage.  */
2925        bfd_vma src_mask;
2926
2927        /* dst_mask selects which parts of the instruction (or data) are
2928           replaced with a relocated value.  */
2929        bfd_vma dst_mask;
2930
2931        /* When some formats create PC relative instructions, they leave
2932           the value of the pc of the place being relocated in the offset
2933           slot of the instruction, so that a PC relative relocation can
2934           be made just by adding in an ordinary offset (e.g., sun3 a.out).
2935           Some formats leave the displacement part of an instruction
2936           empty (e.g., m88k bcs); this flag signals the fact.  */
2937        bfd_boolean pcrel_offset;
2938      };
2939    
2940 2.10.1.3 `The HOWTO Macro'
2941 ..........................
2942
2943 *Description*
2944 The HOWTO define is horrible and will go away.
2945      #define HOWTO(C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC) \
2946        { (unsigned) C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC }
2947
2948    *Description*
2949 And will be replaced with the totally magic way. But for the moment, we
2950 are compatible, so do it this way.
2951      #define NEWHOWTO(FUNCTION, NAME, SIZE, REL, IN) \
2952        HOWTO (0, 0, SIZE, 0, REL, 0, complain_overflow_dont, FUNCTION, \
2953               NAME, FALSE, 0, 0, IN)
2954
2955    *Description*
2956 This is used to fill in an empty howto entry in an array.
2957      #define EMPTY_HOWTO(C) \
2958        HOWTO ((C), 0, 0, 0, FALSE, 0, complain_overflow_dont, NULL, \
2959               NULL, FALSE, 0, 0, FALSE)
2960
2961    *Description*
2962 Helper routine to turn a symbol into a relocation value.
2963      #define HOWTO_PREPARE(relocation, symbol)               \
2964        {                                                     \
2965          if (symbol != NULL)                                 \
2966            {                                                 \
2967              if (bfd_is_com_section (symbol->section))       \
2968                {                                             \
2969                  relocation = 0;                             \
2970                }                                             \
2971              else                                            \
2972                {                                             \
2973                  relocation = symbol->value;                 \
2974                }                                             \
2975            }                                                 \
2976        }
2977
2978 2.10.1.4 `bfd_get_reloc_size'
2979 .............................
2980
2981 *Synopsis*
2982      unsigned int bfd_get_reloc_size (reloc_howto_type *);
2983    *Description*
2984 For a reloc_howto_type that operates on a fixed number of bytes, this
2985 returns the number of bytes operated on.
2986
2987 2.10.1.5 `arelent_chain'
2988 ........................
2989
2990 *Description*
2991 How relocs are tied together in an `asection':
2992      typedef struct relent_chain
2993      {
2994        arelent relent;
2995        struct relent_chain *next;
2996      }
2997      arelent_chain;
2998
2999 2.10.1.6 `bfd_check_overflow'
3000 .............................
3001
3002 *Synopsis*
3003      bfd_reloc_status_type bfd_check_overflow
3004         (enum complain_overflow how,
3005          unsigned int bitsize,
3006          unsigned int rightshift,
3007          unsigned int addrsize,
3008          bfd_vma relocation);
3009    *Description*
3010 Perform overflow checking on RELOCATION which has BITSIZE significant
3011 bits and will be shifted right by RIGHTSHIFT bits, on a machine with
3012 addresses containing ADDRSIZE significant bits.  The result is either of
3013 `bfd_reloc_ok' or `bfd_reloc_overflow'.
3014
3015 2.10.1.7 `bfd_perform_relocation'
3016 .................................
3017
3018 *Synopsis*
3019      bfd_reloc_status_type bfd_perform_relocation
3020         (bfd *abfd,
3021          arelent *reloc_entry,
3022          void *data,
3023          asection *input_section,
3024          bfd *output_bfd,
3025          char **error_message);
3026    *Description*
3027 If OUTPUT_BFD is supplied to this function, the generated image will be
3028 relocatable; the relocations are copied to the output file after they
3029 have been changed to reflect the new state of the world. There are two
3030 ways of reflecting the results of partial linkage in an output file: by
3031 modifying the output data in place, and by modifying the relocation
3032 record.  Some native formats (e.g., basic a.out and basic coff) have no
3033 way of specifying an addend in the relocation type, so the addend has
3034 to go in the output data.  This is no big deal since in these formats
3035 the output data slot will always be big enough for the addend. Complex
3036 reloc types with addends were invented to solve just this problem.  The
3037 ERROR_MESSAGE argument is set to an error message if this return
3038 `bfd_reloc_dangerous'.
3039
3040 2.10.1.8 `bfd_install_relocation'
3041 .................................
3042
3043 *Synopsis*
3044      bfd_reloc_status_type bfd_install_relocation
3045         (bfd *abfd,
3046          arelent *reloc_entry,
3047          void *data, bfd_vma data_start,
3048          asection *input_section,
3049          char **error_message);
3050    *Description*
3051 This looks remarkably like `bfd_perform_relocation', except it does not
3052 expect that the section contents have been filled in.  I.e., it's
3053 suitable for use when creating, rather than applying a relocation.
3054
3055    For now, this function should be considered reserved for the
3056 assembler.
3057
3058 \1f
3059 File: bfd.info,  Node: howto manager,  Prev: typedef arelent,  Up: Relocations
3060
3061 2.10.2 The howto manager
3062 ------------------------
3063
3064 When an application wants to create a relocation, but doesn't know what
3065 the target machine might call it, it can find out by using this bit of
3066 code.
3067
3068 2.10.2.1 `bfd_reloc_code_type'
3069 ..............................
3070
3071 *Description*
3072 The insides of a reloc code.  The idea is that, eventually, there will
3073 be one enumerator for every type of relocation we ever do.  Pass one of
3074 these values to `bfd_reloc_type_lookup', and it'll return a howto
3075 pointer.
3076
3077    This does mean that the application must determine the correct
3078 enumerator value; you can't get a howto pointer from a random set of
3079 attributes.
3080
3081    Here are the possible values for `enum bfd_reloc_code_real':
3082
3083  -- : BFD_RELOC_64
3084  -- : BFD_RELOC_32
3085  -- : BFD_RELOC_26
3086  -- : BFD_RELOC_24
3087  -- : BFD_RELOC_16
3088  -- : BFD_RELOC_14
3089  -- : BFD_RELOC_8
3090      Basic absolute relocations of N bits.
3091
3092  -- : BFD_RELOC_64_PCREL
3093  -- : BFD_RELOC_32_PCREL
3094  -- : BFD_RELOC_24_PCREL
3095  -- : BFD_RELOC_16_PCREL
3096  -- : BFD_RELOC_12_PCREL
3097  -- : BFD_RELOC_8_PCREL
3098      PC-relative relocations.  Sometimes these are relative to the
3099      address of the relocation itself; sometimes they are relative to
3100      the start of the section containing the relocation.  It depends on
3101      the specific target.
3102
3103      The 24-bit relocation is used in some Intel 960 configurations.
3104
3105  -- : BFD_RELOC_32_SECREL
3106      Section relative relocations.  Some targets need this for DWARF2.
3107
3108  -- : BFD_RELOC_32_GOT_PCREL
3109  -- : BFD_RELOC_16_GOT_PCREL
3110  -- : BFD_RELOC_8_GOT_PCREL
3111  -- : BFD_RELOC_32_GOTOFF
3112  -- : BFD_RELOC_16_GOTOFF
3113  -- : BFD_RELOC_LO16_GOTOFF
3114  -- : BFD_RELOC_HI16_GOTOFF
3115  -- : BFD_RELOC_HI16_S_GOTOFF
3116  -- : BFD_RELOC_8_GOTOFF
3117  -- : BFD_RELOC_64_PLT_PCREL
3118  -- : BFD_RELOC_32_PLT_PCREL
3119  -- : BFD_RELOC_24_PLT_PCREL
3120  -- : BFD_RELOC_16_PLT_PCREL
3121  -- : BFD_RELOC_8_PLT_PCREL
3122  -- : BFD_RELOC_64_PLTOFF
3123  -- : BFD_RELOC_32_PLTOFF
3124  -- : BFD_RELOC_16_PLTOFF
3125  -- : BFD_RELOC_LO16_PLTOFF
3126  -- : BFD_RELOC_HI16_PLTOFF
3127  -- : BFD_RELOC_HI16_S_PLTOFF
3128  -- : BFD_RELOC_8_PLTOFF
3129      For ELF.
3130
3131  -- : BFD_RELOC_68K_GLOB_DAT
3132  -- : BFD_RELOC_68K_JMP_SLOT
3133  -- : BFD_RELOC_68K_RELATIVE
3134      Relocations used by 68K ELF.
3135
3136  -- : BFD_RELOC_32_BASEREL
3137  -- : BFD_RELOC_16_BASEREL
3138  -- : BFD_RELOC_LO16_BASEREL
3139  -- : BFD_RELOC_HI16_BASEREL
3140  -- : BFD_RELOC_HI16_S_BASEREL
3141  -- : BFD_RELOC_8_BASEREL
3142  -- : BFD_RELOC_RVA
3143      Linkage-table relative.
3144
3145  -- : BFD_RELOC_8_FFnn
3146      Absolute 8-bit relocation, but used to form an address like 0xFFnn.
3147
3148  -- : BFD_RELOC_32_PCREL_S2
3149  -- : BFD_RELOC_16_PCREL_S2
3150  -- : BFD_RELOC_23_PCREL_S2
3151      These PC-relative relocations are stored as word displacements -
3152      i.e., byte displacements shifted right two bits.  The 30-bit word
3153      displacement (<<32_PCREL_S2>> - 32 bits, shifted 2) is used on the
3154      SPARC.  (SPARC tools generally refer to this as <<WDISP30>>.)  The
3155      signed 16-bit displacement is used on the MIPS, and the 23-bit
3156      displacement is used on the Alpha.
3157
3158  -- : BFD_RELOC_HI22
3159  -- : BFD_RELOC_LO10
3160      High 22 bits and low 10 bits of 32-bit value, placed into lower
3161      bits of the target word.  These are used on the SPARC.
3162
3163  -- : BFD_RELOC_GPREL16
3164  -- : BFD_RELOC_GPREL32
3165      For systems that allocate a Global Pointer register, these are
3166      displacements off that register.  These relocation types are
3167      handled specially, because the value the register will have is
3168      decided relatively late.
3169
3170  -- : BFD_RELOC_I960_CALLJ
3171      Reloc types used for i960/b.out.
3172
3173  -- : BFD_RELOC_NONE
3174  -- : BFD_RELOC_SPARC_WDISP22
3175  -- : BFD_RELOC_SPARC22
3176  -- : BFD_RELOC_SPARC13
3177  -- : BFD_RELOC_SPARC_GOT10
3178  -- : BFD_RELOC_SPARC_GOT13
3179  -- : BFD_RELOC_SPARC_GOT22
3180  -- : BFD_RELOC_SPARC_PC10
3181  -- : BFD_RELOC_SPARC_PC22
3182  -- : BFD_RELOC_SPARC_WPLT30
3183  -- : BFD_RELOC_SPARC_COPY
3184  -- : BFD_RELOC_SPARC_GLOB_DAT
3185  -- : BFD_RELOC_SPARC_JMP_SLOT
3186  -- : BFD_RELOC_SPARC_RELATIVE
3187  -- : BFD_RELOC_SPARC_UA16
3188  -- : BFD_RELOC_SPARC_UA32
3189  -- : BFD_RELOC_SPARC_UA64
3190      SPARC ELF relocations.  There is probably some overlap with other
3191      relocation types already defined.
3192
3193  -- : BFD_RELOC_SPARC_BASE13
3194  -- : BFD_RELOC_SPARC_BASE22
3195      I think these are specific to SPARC a.out (e.g., Sun 4).
3196
3197  -- : BFD_RELOC_SPARC_64
3198  -- : BFD_RELOC_SPARC_10
3199  -- : BFD_RELOC_SPARC_11
3200  -- : BFD_RELOC_SPARC_OLO10
3201  -- : BFD_RELOC_SPARC_HH22
3202  -- : BFD_RELOC_SPARC_HM10
3203  -- : BFD_RELOC_SPARC_LM22
3204  -- : BFD_RELOC_SPARC_PC_HH22
3205  -- : BFD_RELOC_SPARC_PC_HM10
3206  -- : BFD_RELOC_SPARC_PC_LM22
3207  -- : BFD_RELOC_SPARC_WDISP16
3208  -- : BFD_RELOC_SPARC_WDISP19
3209  -- : BFD_RELOC_SPARC_7
3210  -- : BFD_RELOC_SPARC_6
3211  -- : BFD_RELOC_SPARC_5
3212  -- : BFD_RELOC_SPARC_DISP64
3213  -- : BFD_RELOC_SPARC_PLT32
3214  -- : BFD_RELOC_SPARC_PLT64
3215  -- : BFD_RELOC_SPARC_HIX22
3216  -- : BFD_RELOC_SPARC_LOX10
3217  -- : BFD_RELOC_SPARC_H44
3218  -- : BFD_RELOC_SPARC_M44
3219  -- : BFD_RELOC_SPARC_L44
3220  -- : BFD_RELOC_SPARC_REGISTER
3221      SPARC64 relocations
3222
3223  -- : BFD_RELOC_SPARC_REV32
3224      SPARC little endian relocation
3225
3226  -- : BFD_RELOC_SPARC_TLS_GD_HI22
3227  -- : BFD_RELOC_SPARC_TLS_GD_LO10
3228  -- : BFD_RELOC_SPARC_TLS_GD_ADD
3229  -- : BFD_RELOC_SPARC_TLS_GD_CALL
3230  -- : BFD_RELOC_SPARC_TLS_LDM_HI22
3231  -- : BFD_RELOC_SPARC_TLS_LDM_LO10
3232  -- : BFD_RELOC_SPARC_TLS_LDM_ADD
3233  -- : BFD_RELOC_SPARC_TLS_LDM_CALL
3234  -- : BFD_RELOC_SPARC_TLS_LDO_HIX22
3235  -- : BFD_RELOC_SPARC_TLS_LDO_LOX10
3236  -- : BFD_RELOC_SPARC_TLS_LDO_ADD
3237  -- : BFD_RELOC_SPARC_TLS_IE_HI22
3238  -- : BFD_RELOC_SPARC_TLS_IE_LO10
3239  -- : BFD_RELOC_SPARC_TLS_IE_LD
3240  -- : BFD_RELOC_SPARC_TLS_IE_LDX
3241  -- : BFD_RELOC_SPARC_TLS_IE_ADD
3242  -- : BFD_RELOC_SPARC_TLS_LE_HIX22
3243  -- : BFD_RELOC_SPARC_TLS_LE_LOX10
3244  -- : BFD_RELOC_SPARC_TLS_DTPMOD32
3245  -- : BFD_RELOC_SPARC_TLS_DTPMOD64
3246  -- : BFD_RELOC_SPARC_TLS_DTPOFF32
3247  -- : BFD_RELOC_SPARC_TLS_DTPOFF64
3248  -- : BFD_RELOC_SPARC_TLS_TPOFF32
3249  -- : BFD_RELOC_SPARC_TLS_TPOFF64
3250      SPARC TLS relocations
3251
3252  -- : BFD_RELOC_ALPHA_GPDISP_HI16
3253      Alpha ECOFF and ELF relocations.  Some of these treat the symbol or
3254      "addend" in some special way.  For GPDISP_HI16 ("gpdisp")
3255      relocations, the symbol is ignored when writing; when reading, it
3256      will be the absolute section symbol.  The addend is the
3257      displacement in bytes of the "lda" instruction from the "ldah"
3258      instruction (which is at the address of this reloc).
3259
3260  -- : BFD_RELOC_ALPHA_GPDISP_LO16
3261      For GPDISP_LO16 ("ignore") relocations, the symbol is handled as
3262      with GPDISP_HI16 relocs.  The addend is ignored when writing the
3263      relocations out, and is filled in with the file's GP value on
3264      reading, for convenience.
3265
3266  -- : BFD_RELOC_ALPHA_GPDISP
3267      The ELF GPDISP relocation is exactly the same as the GPDISP_HI16
3268      relocation except that there is no accompanying GPDISP_LO16
3269      relocation.
3270
3271  -- : BFD_RELOC_ALPHA_LITERAL
3272  -- : BFD_RELOC_ALPHA_ELF_LITERAL
3273  -- : BFD_RELOC_ALPHA_LITUSE
3274      The Alpha LITERAL/LITUSE relocs are produced by a symbol reference;
3275      the assembler turns it into a LDQ instruction to load the address
3276      of the symbol, and then fills in a register in the real
3277      instruction.
3278
3279      The LITERAL reloc, at the LDQ instruction, refers to the .lita
3280      section symbol.  The addend is ignored when writing, but is filled
3281      in with the file's GP value on reading, for convenience, as with
3282      the GPDISP_LO16 reloc.
3283
3284      The ELF_LITERAL reloc is somewhere between 16_GOTOFF and
3285      GPDISP_LO16.  It should refer to the symbol to be referenced, as
3286      with 16_GOTOFF, but it generates output not based on the position
3287      within the .got section, but relative to the GP value chosen for
3288      the file during the final link stage.
3289
3290      The LITUSE reloc, on the instruction using the loaded address,
3291      gives information to the linker that it might be able to use to
3292      optimize away some literal section references.  The symbol is
3293      ignored (read as the absolute section symbol), and the "addend"
3294      indicates the type of instruction using the register: 1 - "memory"
3295      fmt insn 2 - byte-manipulation (byte offset reg) 3 - jsr (target
3296      of branch)
3297
3298  -- : BFD_RELOC_ALPHA_HINT
3299      The HINT relocation indicates a value that should be filled into
3300      the "hint" field of a jmp/jsr/ret instruction, for possible branch-
3301      prediction logic which may be provided on some processors.
3302
3303  -- : BFD_RELOC_ALPHA_LINKAGE
3304      The LINKAGE relocation outputs a linkage pair in the object file,
3305      which is filled by the linker.
3306
3307  -- : BFD_RELOC_ALPHA_CODEADDR
3308      The CODEADDR relocation outputs a STO_CA in the object file, which
3309      is filled by the linker.
3310
3311  -- : BFD_RELOC_ALPHA_GPREL_HI16
3312  -- : BFD_RELOC_ALPHA_GPREL_LO16
3313      The GPREL_HI/LO relocations together form a 32-bit offset from the
3314      GP register.
3315
3316  -- : BFD_RELOC_ALPHA_BRSGP
3317      Like BFD_RELOC_23_PCREL_S2, except that the source and target must
3318      share a common GP, and the target address is adjusted for
3319      STO_ALPHA_STD_GPLOAD.
3320
3321  -- : BFD_RELOC_ALPHA_TLSGD
3322  -- : BFD_RELOC_ALPHA_TLSLDM
3323  -- : BFD_RELOC_ALPHA_DTPMOD64
3324  -- : BFD_RELOC_ALPHA_GOTDTPREL16
3325  -- : BFD_RELOC_ALPHA_DTPREL64
3326  -- : BFD_RELOC_ALPHA_DTPREL_HI16
3327  -- : BFD_RELOC_ALPHA_DTPREL_LO16
3328  -- : BFD_RELOC_ALPHA_DTPREL16
3329  -- : BFD_RELOC_ALPHA_GOTTPREL16
3330  -- : BFD_RELOC_ALPHA_TPREL64
3331  -- : BFD_RELOC_ALPHA_TPREL_HI16
3332  -- : BFD_RELOC_ALPHA_TPREL_LO16
3333  -- : BFD_RELOC_ALPHA_TPREL16
3334      Alpha thread-local storage relocations.
3335
3336  -- : BFD_RELOC_MIPS_JMP
3337      Bits 27..2 of the relocation address shifted right 2 bits; simple
3338      reloc otherwise.
3339
3340  -- : BFD_RELOC_MIPS16_JMP
3341      The MIPS16 jump instruction.
3342
3343  -- : BFD_RELOC_MIPS16_GPREL
3344      MIPS16 GP relative reloc.
3345
3346  -- : BFD_RELOC_HI16
3347      High 16 bits of 32-bit value; simple reloc.
3348
3349  -- : BFD_RELOC_HI16_S
3350      High 16 bits of 32-bit value but the low 16 bits will be sign
3351      extended and added to form the final result.  If the low 16 bits
3352      form a negative number, we need to add one to the high value to
3353      compensate for the borrow when the low bits are added.
3354
3355  -- : BFD_RELOC_LO16
3356      Low 16 bits.
3357
3358  -- : BFD_RELOC_HI16_PCREL
3359      High 16 bits of 32-bit pc-relative value
3360
3361  -- : BFD_RELOC_HI16_S_PCREL
3362      High 16 bits of 32-bit pc-relative value, adjusted
3363
3364  -- : BFD_RELOC_LO16_PCREL
3365      Low 16 bits of pc-relative value
3366
3367  -- : BFD_RELOC_MIPS16_HI16
3368      MIPS16 high 16 bits of 32-bit value.
3369
3370  -- : BFD_RELOC_MIPS16_HI16_S
3371      MIPS16 high 16 bits of 32-bit value but the low 16 bits will be
3372      sign extended and added to form the final result.  If the low 16
3373      bits form a negative number, we need to add one to the high value
3374      to compensate for the borrow when the low bits are added.
3375
3376  -- : BFD_RELOC_MIPS16_LO16
3377      MIPS16 low 16 bits.
3378
3379  -- : BFD_RELOC_MIPS_LITERAL
3380      Relocation against a MIPS literal section.
3381
3382  -- : BFD_RELOC_MIPS_GOT16
3383  -- : BFD_RELOC_MIPS_CALL16
3384  -- : BFD_RELOC_MIPS_GOT_HI16
3385  -- : BFD_RELOC_MIPS_GOT_LO16
3386  -- : BFD_RELOC_MIPS_CALL_HI16
3387  -- : BFD_RELOC_MIPS_CALL_LO16
3388  -- : BFD_RELOC_MIPS_SUB
3389  -- : BFD_RELOC_MIPS_GOT_PAGE
3390  -- : BFD_RELOC_MIPS_GOT_OFST
3391  -- : BFD_RELOC_MIPS_GOT_DISP
3392  -- : BFD_RELOC_MIPS_SHIFT5
3393  -- : BFD_RELOC_MIPS_SHIFT6
3394  -- : BFD_RELOC_MIPS_INSERT_A
3395  -- : BFD_RELOC_MIPS_INSERT_B
3396  -- : BFD_RELOC_MIPS_DELETE
3397  -- : BFD_RELOC_MIPS_HIGHEST
3398  -- : BFD_RELOC_MIPS_HIGHER
3399  -- : BFD_RELOC_MIPS_SCN_DISP
3400  -- : BFD_RELOC_MIPS_REL16
3401  -- : BFD_RELOC_MIPS_RELGOT
3402  -- : BFD_RELOC_MIPS_JALR
3403  -- : BFD_RELOC_MIPS_TLS_DTPMOD32
3404  -- : BFD_RELOC_MIPS_TLS_DTPREL32
3405  -- : BFD_RELOC_MIPS_TLS_DTPMOD64
3406  -- : BFD_RELOC_MIPS_TLS_DTPREL64
3407  -- : BFD_RELOC_MIPS_TLS_GD
3408  -- : BFD_RELOC_MIPS_TLS_LDM
3409  -- : BFD_RELOC_MIPS_TLS_DTPREL_HI16
3410  -- : BFD_RELOC_MIPS_TLS_DTPREL_LO16
3411  -- : BFD_RELOC_MIPS_TLS_GOTTPREL
3412  -- : BFD_RELOC_MIPS_TLS_TPREL32
3413  -- : BFD_RELOC_MIPS_TLS_TPREL64
3414  -- : BFD_RELOC_MIPS_TLS_TPREL_HI16
3415  -- : BFD_RELOC_MIPS_TLS_TPREL_LO16
3416      MIPS ELF relocations.
3417
3418  -- : BFD_RELOC_MIPS_COPY
3419  -- : BFD_RELOC_MIPS_JUMP_SLOT
3420      MIPS ELF relocations (VxWorks extensions).
3421
3422  -- : BFD_RELOC_FRV_LABEL16
3423  -- : BFD_RELOC_FRV_LABEL24
3424  -- : BFD_RELOC_FRV_LO16
3425  -- : BFD_RELOC_FRV_HI16
3426  -- : BFD_RELOC_FRV_GPREL12
3427  -- : BFD_RELOC_FRV_GPRELU12
3428  -- : BFD_RELOC_FRV_GPREL32
3429  -- : BFD_RELOC_FRV_GPRELHI
3430  -- : BFD_RELOC_FRV_GPRELLO
3431  -- : BFD_RELOC_FRV_GOT12
3432  -- : BFD_RELOC_FRV_GOTHI
3433  -- : BFD_RELOC_FRV_GOTLO
3434  -- : BFD_RELOC_FRV_FUNCDESC
3435  -- : BFD_RELOC_FRV_FUNCDESC_GOT12
3436  -- : BFD_RELOC_FRV_FUNCDESC_GOTHI
3437  -- : BFD_RELOC_FRV_FUNCDESC_GOTLO
3438  -- : BFD_RELOC_FRV_FUNCDESC_VALUE
3439  -- : BFD_RELOC_FRV_FUNCDESC_GOTOFF12
3440  -- : BFD_RELOC_FRV_FUNCDESC_GOTOFFHI
3441  -- : BFD_RELOC_FRV_FUNCDESC_GOTOFFLO
3442  -- : BFD_RELOC_FRV_GOTOFF12
3443  -- : BFD_RELOC_FRV_GOTOFFHI
3444  -- : BFD_RELOC_FRV_GOTOFFLO
3445  -- : BFD_RELOC_FRV_GETTLSOFF
3446  -- : BFD_RELOC_FRV_TLSDESC_VALUE
3447  -- : BFD_RELOC_FRV_GOTTLSDESC12
3448  -- : BFD_RELOC_FRV_GOTTLSDESCHI
3449  -- : BFD_RELOC_FRV_GOTTLSDESCLO
3450  -- : BFD_RELOC_FRV_TLSMOFF12
3451  -- : BFD_RELOC_FRV_TLSMOFFHI
3452  -- : BFD_RELOC_FRV_TLSMOFFLO
3453  -- : BFD_RELOC_FRV_GOTTLSOFF12
3454  -- : BFD_RELOC_FRV_GOTTLSOFFHI
3455  -- : BFD_RELOC_FRV_GOTTLSOFFLO
3456  -- : BFD_RELOC_FRV_TLSOFF
3457  -- : BFD_RELOC_FRV_TLSDESC_RELAX
3458  -- : BFD_RELOC_FRV_GETTLSOFF_RELAX
3459  -- : BFD_RELOC_FRV_TLSOFF_RELAX
3460  -- : BFD_RELOC_FRV_TLSMOFF
3461      Fujitsu Frv Relocations.
3462
3463  -- : BFD_RELOC_MN10300_GOTOFF24
3464      This is a 24bit GOT-relative reloc for the mn10300.
3465
3466  -- : BFD_RELOC_MN10300_GOT32
3467      This is a 32bit GOT-relative reloc for the mn10300, offset by two
3468      bytes in the instruction.
3469
3470  -- : BFD_RELOC_MN10300_GOT24
3471      This is a 24bit GOT-relative reloc for the mn10300, offset by two
3472      bytes in the instruction.
3473
3474  -- : BFD_RELOC_MN10300_GOT16
3475      This is a 16bit GOT-relative reloc for the mn10300, offset by two
3476      bytes in the instruction.
3477
3478  -- : BFD_RELOC_MN10300_COPY
3479      Copy symbol at runtime.
3480
3481  -- : BFD_RELOC_MN10300_GLOB_DAT
3482      Create GOT entry.
3483
3484  -- : BFD_RELOC_MN10300_JMP_SLOT
3485      Create PLT entry.
3486
3487  -- : BFD_RELOC_MN10300_RELATIVE
3488      Adjust by program base.
3489
3490  -- : BFD_RELOC_386_GOT32
3491  -- : BFD_RELOC_386_PLT32
3492  -- : BFD_RELOC_386_COPY
3493  -- : BFD_RELOC_386_GLOB_DAT
3494  -- : BFD_RELOC_386_JUMP_SLOT
3495  -- : BFD_RELOC_386_RELATIVE
3496  -- : BFD_RELOC_386_GOTOFF
3497  -- : BFD_RELOC_386_GOTPC
3498  -- : BFD_RELOC_386_TLS_TPOFF
3499  -- : BFD_RELOC_386_TLS_IE
3500  -- : BFD_RELOC_386_TLS_GOTIE
3501  -- : BFD_RELOC_386_TLS_LE
3502  -- : BFD_RELOC_386_TLS_GD
3503  -- : BFD_RELOC_386_TLS_LDM
3504  -- : BFD_RELOC_386_TLS_LDO_32
3505  -- : BFD_RELOC_386_TLS_IE_32
3506  -- : BFD_RELOC_386_TLS_LE_32
3507  -- : BFD_RELOC_386_TLS_DTPMOD32
3508  -- : BFD_RELOC_386_TLS_DTPOFF32
3509  -- : BFD_RELOC_386_TLS_TPOFF32
3510  -- : BFD_RELOC_386_TLS_GOTDESC
3511  -- : BFD_RELOC_386_TLS_DESC_CALL
3512  -- : BFD_RELOC_386_TLS_DESC
3513      i386/elf relocations
3514
3515  -- : BFD_RELOC_X86_64_GOT32
3516  -- : BFD_RELOC_X86_64_PLT32
3517  -- : BFD_RELOC_X86_64_COPY
3518  -- : BFD_RELOC_X86_64_GLOB_DAT
3519  -- : BFD_RELOC_X86_64_JUMP_SLOT
3520  -- : BFD_RELOC_X86_64_RELATIVE
3521  -- : BFD_RELOC_X86_64_GOTPCREL
3522  -- : BFD_RELOC_X86_64_32S
3523  -- : BFD_RELOC_X86_64_DTPMOD64
3524  -- : BFD_RELOC_X86_64_DTPOFF64
3525  -- : BFD_RELOC_X86_64_TPOFF64
3526  -- : BFD_RELOC_X86_64_TLSGD
3527  -- : BFD_RELOC_X86_64_TLSLD
3528  -- : BFD_RELOC_X86_64_DTPOFF32
3529  -- : BFD_RELOC_X86_64_GOTTPOFF
3530  -- : BFD_RELOC_X86_64_TPOFF32
3531  -- : BFD_RELOC_X86_64_GOTOFF64
3532  -- : BFD_RELOC_X86_64_GOTPC32
3533  -- : BFD_RELOC_X86_64_GOT64
3534  -- : BFD_RELOC_X86_64_GOTPCREL64
3535  -- : BFD_RELOC_X86_64_GOTPC64
3536  -- : BFD_RELOC_X86_64_GOTPLT64
3537  -- : BFD_RELOC_X86_64_PLTOFF64
3538  -- : BFD_RELOC_X86_64_GOTPC32_TLSDESC
3539  -- : BFD_RELOC_X86_64_TLSDESC_CALL
3540  -- : BFD_RELOC_X86_64_TLSDESC
3541      x86-64/elf relocations
3542
3543  -- : BFD_RELOC_NS32K_IMM_8
3544  -- : BFD_RELOC_NS32K_IMM_16
3545  -- : BFD_RELOC_NS32K_IMM_32
3546  -- : BFD_RELOC_NS32K_IMM_8_PCREL
3547  -- : BFD_RELOC_NS32K_IMM_16_PCREL
3548  -- : BFD_RELOC_NS32K_IMM_32_PCREL
3549  -- : BFD_RELOC_NS32K_DISP_8
3550  -- : BFD_RELOC_NS32K_DISP_16
3551  -- : BFD_RELOC_NS32K_DISP_32
3552  -- : BFD_RELOC_NS32K_DISP_8_PCREL
3553  -- : BFD_RELOC_NS32K_DISP_16_PCREL
3554  -- : BFD_RELOC_NS32K_DISP_32_PCREL
3555      ns32k relocations
3556
3557  -- : BFD_RELOC_PDP11_DISP_8_PCREL
3558  -- : BFD_RELOC_PDP11_DISP_6_PCREL
3559      PDP11 relocations
3560
3561  -- : BFD_RELOC_PJ_CODE_HI16
3562  -- : BFD_RELOC_PJ_CODE_LO16
3563  -- : BFD_RELOC_PJ_CODE_DIR16
3564  -- : BFD_RELOC_PJ_CODE_DIR32
3565  -- : BFD_RELOC_PJ_CODE_REL16
3566  -- : BFD_RELOC_PJ_CODE_REL32
3567      Picojava relocs.  Not all of these appear in object files.
3568
3569  -- : BFD_RELOC_PPC_B26
3570  -- : BFD_RELOC_PPC_BA26
3571  -- : BFD_RELOC_PPC_TOC16
3572  -- : BFD_RELOC_PPC_B16
3573  -- : BFD_RELOC_PPC_B16_BRTAKEN
3574  -- : BFD_RELOC_PPC_B16_BRNTAKEN
3575  -- : BFD_RELOC_PPC_BA16
3576  -- : BFD_RELOC_PPC_BA16_BRTAKEN
3577  -- : BFD_RELOC_PPC_BA16_BRNTAKEN
3578  -- : BFD_RELOC_PPC_COPY
3579  -- : BFD_RELOC_PPC_GLOB_DAT
3580  -- : BFD_RELOC_PPC_JMP_SLOT
3581  -- : BFD_RELOC_PPC_RELATIVE
3582  -- : BFD_RELOC_PPC_LOCAL24PC
3583  -- : BFD_RELOC_PPC_EMB_NADDR32
3584  -- : BFD_RELOC_PPC_EMB_NADDR16
3585  -- : BFD_RELOC_PPC_EMB_NADDR16_LO
3586  -- : BFD_RELOC_PPC_EMB_NADDR16_HI
3587  -- : BFD_RELOC_PPC_EMB_NADDR16_HA
3588  -- : BFD_RELOC_PPC_EMB_SDAI16
3589  -- : BFD_RELOC_PPC_EMB_SDA2I16
3590  -- : BFD_RELOC_PPC_EMB_SDA2REL
3591  -- : BFD_RELOC_PPC_EMB_SDA21
3592  -- : BFD_RELOC_PPC_EMB_MRKREF
3593  -- : BFD_RELOC_PPC_EMB_RELSEC16
3594  -- : BFD_RELOC_PPC_EMB_RELST_LO
3595  -- : BFD_RELOC_PPC_EMB_RELST_HI
3596  -- : BFD_RELOC_PPC_EMB_RELST_HA
3597  -- : BFD_RELOC_PPC_EMB_BIT_FLD
3598  -- : BFD_RELOC_PPC_EMB_RELSDA
3599  -- : BFD_RELOC_PPC64_HIGHER
3600  -- : BFD_RELOC_PPC64_HIGHER_S
3601  -- : BFD_RELOC_PPC64_HIGHEST
3602  -- : BFD_RELOC_PPC64_HIGHEST_S
3603  -- : BFD_RELOC_PPC64_TOC16_LO
3604  -- : BFD_RELOC_PPC64_TOC16_HI
3605  -- : BFD_RELOC_PPC64_TOC16_HA
3606  -- : BFD_RELOC_PPC64_TOC
3607  -- : BFD_RELOC_PPC64_PLTGOT16
3608  -- : BFD_RELOC_PPC64_PLTGOT16_LO
3609  -- : BFD_RELOC_PPC64_PLTGOT16_HI
3610  -- : BFD_RELOC_PPC64_PLTGOT16_HA
3611  -- : BFD_RELOC_PPC64_ADDR16_DS
3612  -- : BFD_RELOC_PPC64_ADDR16_LO_DS
3613  -- : BFD_RELOC_PPC64_GOT16_DS
3614  -- : BFD_RELOC_PPC64_GOT16_LO_DS
3615  -- : BFD_RELOC_PPC64_PLT16_LO_DS
3616  -- : BFD_RELOC_PPC64_SECTOFF_DS
3617  -- : BFD_RELOC_PPC64_SECTOFF_LO_DS
3618  -- : BFD_RELOC_PPC64_TOC16_DS
3619  -- : BFD_RELOC_PPC64_TOC16_LO_DS
3620  -- : BFD_RELOC_PPC64_PLTGOT16_DS
3621  -- : BFD_RELOC_PPC64_PLTGOT16_LO_DS
3622      Power(rs6000) and PowerPC relocations.
3623
3624  -- : BFD_RELOC_PPC_TLS
3625  -- : BFD_RELOC_PPC_DTPMOD
3626  -- : BFD_RELOC_PPC_TPREL16
3627  -- : BFD_RELOC_PPC_TPREL16_LO
3628  -- : BFD_RELOC_PPC_TPREL16_HI
3629  -- : BFD_RELOC_PPC_TPREL16_HA
3630  -- : BFD_RELOC_PPC_TPREL
3631  -- : BFD_RELOC_PPC_DTPREL16
3632  -- : BFD_RELOC_PPC_DTPREL16_LO
3633  -- : BFD_RELOC_PPC_DTPREL16_HI
3634  -- : BFD_RELOC_PPC_DTPREL16_HA
3635  -- : BFD_RELOC_PPC_DTPREL
3636  -- : BFD_RELOC_PPC_GOT_TLSGD16
3637  -- : BFD_RELOC_PPC_GOT_TLSGD16_LO
3638  -- : BFD_RELOC_PPC_GOT_TLSGD16_HI
3639  -- : BFD_RELOC_PPC_GOT_TLSGD16_HA
3640  -- : BFD_RELOC_PPC_GOT_TLSLD16
3641  -- : BFD_RELOC_PPC_GOT_TLSLD16_LO
3642  -- : BFD_RELOC_PPC_GOT_TLSLD16_HI
3643  -- : BFD_RELOC_PPC_GOT_TLSLD16_HA
3644  -- : BFD_RELOC_PPC_GOT_TPREL16
3645  -- : BFD_RELOC_PPC_GOT_TPREL16_LO
3646  -- : BFD_RELOC_PPC_GOT_TPREL16_HI
3647  -- : BFD_RELOC_PPC_GOT_TPREL16_HA
3648  -- : BFD_RELOC_PPC_GOT_DTPREL16
3649  -- : BFD_RELOC_PPC_GOT_DTPREL16_LO
3650  -- : BFD_RELOC_PPC_GOT_DTPREL16_HI
3651  -- : BFD_RELOC_PPC_GOT_DTPREL16_HA
3652  -- : BFD_RELOC_PPC64_TPREL16_DS
3653  -- : BFD_RELOC_PPC64_TPREL16_LO_DS
3654  -- : BFD_RELOC_PPC64_TPREL16_HIGHER
3655  -- : BFD_RELOC_PPC64_TPREL16_HIGHERA
3656  -- : BFD_RELOC_PPC64_TPREL16_HIGHEST
3657  -- : BFD_RELOC_PPC64_TPREL16_HIGHESTA
3658  -- : BFD_RELOC_PPC64_DTPREL16_DS
3659  -- : BFD_RELOC_PPC64_DTPREL16_LO_DS
3660  -- : BFD_RELOC_PPC64_DTPREL16_HIGHER
3661  -- : BFD_RELOC_PPC64_DTPREL16_HIGHERA
3662  -- : BFD_RELOC_PPC64_DTPREL16_HIGHEST
3663  -- : BFD_RELOC_PPC64_DTPREL16_HIGHESTA
3664      PowerPC and PowerPC64 thread-local storage relocations.
3665
3666  -- : BFD_RELOC_I370_D12
3667      IBM 370/390 relocations
3668
3669  -- : BFD_RELOC_CTOR
3670      The type of reloc used to build a constructor table - at the moment
3671      probably a 32 bit wide absolute relocation, but the target can
3672      choose.  It generally does map to one of the other relocation
3673      types.
3674
3675  -- : BFD_RELOC_ARM_PCREL_BRANCH
3676      ARM 26 bit pc-relative branch.  The lowest two bits must be zero
3677      and are not stored in the instruction.
3678
3679  -- : BFD_RELOC_ARM_PCREL_BLX
3680      ARM 26 bit pc-relative branch.  The lowest bit must be zero and is
3681      not stored in the instruction.  The 2nd lowest bit comes from a 1
3682      bit field in the instruction.
3683
3684  -- : BFD_RELOC_THUMB_PCREL_BLX
3685      Thumb 22 bit pc-relative branch.  The lowest bit must be zero and
3686      is not stored in the instruction.  The 2nd lowest bit comes from a
3687      1 bit field in the instruction.
3688
3689  -- : BFD_RELOC_ARM_PCREL_CALL
3690      ARM 26-bit pc-relative branch for an unconditional BL or BLX
3691      instruction.
3692
3693  -- : BFD_RELOC_ARM_PCREL_JUMP
3694      ARM 26-bit pc-relative branch for B or conditional BL instruction.
3695
3696  -- : BFD_RELOC_THUMB_PCREL_BRANCH7
3697  -- : BFD_RELOC_THUMB_PCREL_BRANCH9
3698  -- : BFD_RELOC_THUMB_PCREL_BRANCH12
3699  -- : BFD_RELOC_THUMB_PCREL_BRANCH20
3700  -- : BFD_RELOC_THUMB_PCREL_BRANCH23
3701  -- : BFD_RELOC_THUMB_PCREL_BRANCH25
3702      Thumb 7-, 9-, 12-, 20-, 23-, and 25-bit pc-relative branches.  The
3703      lowest bit must be zero and is not stored in the instruction.
3704      Note that the corresponding ELF R_ARM_THM_JUMPnn constant has an
3705      "nn" one smaller in all cases.  Note further that BRANCH23
3706      corresponds to R_ARM_THM_CALL.
3707
3708  -- : BFD_RELOC_ARM_OFFSET_IMM
3709      12-bit immediate offset, used in ARM-format ldr and str
3710      instructions.
3711
3712  -- : BFD_RELOC_ARM_THUMB_OFFSET
3713      5-bit immediate offset, used in Thumb-format ldr and str
3714      instructions.
3715
3716  -- : BFD_RELOC_ARM_TARGET1
3717      Pc-relative or absolute relocation depending on target.  Used for
3718      entries in .init_array sections.
3719
3720  -- : BFD_RELOC_ARM_ROSEGREL32
3721      Read-only segment base relative address.
3722
3723  -- : BFD_RELOC_ARM_SBREL32
3724      Data segment base relative address.
3725
3726  -- : BFD_RELOC_ARM_TARGET2
3727      This reloc is used for references to RTTI data from exception
3728      handling tables.  The actual definition depends on the target.  It
3729      may be a pc-relative or some form of GOT-indirect relocation.
3730
3731  -- : BFD_RELOC_ARM_PREL31
3732      31-bit PC relative address.
3733
3734  -- : BFD_RELOC_ARM_JUMP_SLOT
3735  -- : BFD_RELOC_ARM_GLOB_DAT
3736  -- : BFD_RELOC_ARM_GOT32
3737  -- : BFD_RELOC_ARM_PLT32
3738  -- : BFD_RELOC_ARM_RELATIVE
3739  -- : BFD_RELOC_ARM_GOTOFF
3740  -- : BFD_RELOC_ARM_GOTPC
3741      Relocations for setting up GOTs and PLTs for shared libraries.
3742
3743  -- : BFD_RELOC_ARM_TLS_GD32
3744  -- : BFD_RELOC_ARM_TLS_LDO32
3745  -- : BFD_RELOC_ARM_TLS_LDM32
3746  -- : BFD_RELOC_ARM_TLS_DTPOFF32
3747  -- : BFD_RELOC_ARM_TLS_DTPMOD32
3748  -- : BFD_RELOC_ARM_TLS_TPOFF32
3749  -- : BFD_RELOC_ARM_TLS_IE32
3750  -- : BFD_RELOC_ARM_TLS_LE32
3751      ARM thread-local storage relocations.
3752
3753  -- : BFD_RELOC_ARM_IMMEDIATE
3754  -- : BFD_RELOC_ARM_ADRL_IMMEDIATE
3755  -- : BFD_RELOC_ARM_T32_IMMEDIATE
3756  -- : BFD_RELOC_ARM_T32_IMM12
3757  -- : BFD_RELOC_ARM_T32_ADD_PC12
3758  -- : BFD_RELOC_ARM_SHIFT_IMM
3759  -- : BFD_RELOC_ARM_SMC
3760  -- : BFD_RELOC_ARM_SWI
3761  -- : BFD_RELOC_ARM_MULTI
3762  -- : BFD_RELOC_ARM_CP_OFF_IMM
3763  -- : BFD_RELOC_ARM_CP_OFF_IMM_S2
3764  -- : BFD_RELOC_ARM_T32_CP_OFF_IMM
3765  -- : BFD_RELOC_ARM_T32_CP_OFF_IMM_S2
3766  -- : BFD_RELOC_ARM_ADR_IMM
3767  -- : BFD_RELOC_ARM_LDR_IMM
3768  -- : BFD_RELOC_ARM_LITERAL
3769  -- : BFD_RELOC_ARM_IN_POOL
3770  -- : BFD_RELOC_ARM_OFFSET_IMM8
3771  -- : BFD_RELOC_ARM_T32_OFFSET_U8
3772  -- : BFD_RELOC_ARM_T32_OFFSET_IMM
3773  -- : BFD_RELOC_ARM_HWLITERAL
3774  -- : BFD_RELOC_ARM_THUMB_ADD
3775  -- : BFD_RELOC_ARM_THUMB_IMM
3776  -- : BFD_RELOC_ARM_THUMB_SHIFT
3777      These relocs are only used within the ARM assembler.  They are not
3778      (at present) written to any object files.
3779
3780  -- : BFD_RELOC_SH_PCDISP8BY2
3781  -- : BFD_RELOC_SH_PCDISP12BY2
3782  -- : BFD_RELOC_SH_IMM3
3783  -- : BFD_RELOC_SH_IMM3U
3784  -- : BFD_RELOC_SH_DISP12
3785  -- : BFD_RELOC_SH_DISP12BY2
3786  -- : BFD_RELOC_SH_DISP12BY4
3787  -- : BFD_RELOC_SH_DISP12BY8
3788  -- : BFD_RELOC_SH_DISP20
3789  -- : BFD_RELOC_SH_DISP20BY8
3790  -- : BFD_RELOC_SH_IMM4
3791  -- : BFD_RELOC_SH_IMM4BY2
3792  -- : BFD_RELOC_SH_IMM4BY4
3793  -- : BFD_RELOC_SH_IMM8
3794  -- : BFD_RELOC_SH_IMM8BY2
3795  -- : BFD_RELOC_SH_IMM8BY4
3796  -- : BFD_RELOC_SH_PCRELIMM8BY2
3797  -- : BFD_RELOC_SH_PCRELIMM8BY4
3798  -- : BFD_RELOC_SH_SWITCH16
3799  -- : BFD_RELOC_SH_SWITCH32
3800  -- : BFD_RELOC_SH_USES
3801  -- : BFD_RELOC_SH_COUNT
3802  -- : BFD_RELOC_SH_ALIGN
3803  -- : BFD_RELOC_SH_CODE
3804  -- : BFD_RELOC_SH_DATA
3805  -- : BFD_RELOC_SH_LABEL
3806  -- : BFD_RELOC_SH_LOOP_START
3807  -- : BFD_RELOC_SH_LOOP_END
3808  -- : BFD_RELOC_SH_COPY
3809  -- : BFD_RELOC_SH_GLOB_DAT
3810  -- : BFD_RELOC_SH_JMP_SLOT
3811  -- : BFD_RELOC_SH_RELATIVE
3812  -- : BFD_RELOC_SH_GOTPC
3813  -- : BFD_RELOC_SH_GOT_LOW16
3814  -- : BFD_RELOC_SH_GOT_MEDLOW16
3815  -- : BFD_RELOC_SH_GOT_MEDHI16
3816  -- : BFD_RELOC_SH_GOT_HI16
3817  -- : BFD_RELOC_SH_GOTPLT_LOW16
3818  -- : BFD_RELOC_SH_GOTPLT_MEDLOW16
3819  -- : BFD_RELOC_SH_GOTPLT_MEDHI16
3820  -- : BFD_RELOC_SH_GOTPLT_HI16
3821  -- : BFD_RELOC_SH_PLT_LOW16
3822  -- : BFD_RELOC_SH_PLT_MEDLOW16
3823  -- : BFD_RELOC_SH_PLT_MEDHI16
3824  -- : BFD_RELOC_SH_PLT_HI16
3825  -- : BFD_RELOC_SH_GOTOFF_LOW16
3826  -- : BFD_RELOC_SH_GOTOFF_MEDLOW16
3827  -- : BFD_RELOC_SH_GOTOFF_MEDHI16
3828  -- : BFD_RELOC_SH_GOTOFF_HI16
3829  -- : BFD_RELOC_SH_GOTPC_LOW16
3830  -- : BFD_RELOC_SH_GOTPC_MEDLOW16
3831  -- : BFD_RELOC_SH_GOTPC_MEDHI16
3832  -- : BFD_RELOC_SH_GOTPC_HI16
3833  -- : BFD_RELOC_SH_COPY64
3834  -- : BFD_RELOC_SH_GLOB_DAT64
3835  -- : BFD_RELOC_SH_JMP_SLOT64
3836  -- : BFD_RELOC_SH_RELATIVE64
3837  -- : BFD_RELOC_SH_GOT10BY4
3838  -- : BFD_RELOC_SH_GOT10BY8
3839  -- : BFD_RELOC_SH_GOTPLT10BY4
3840  -- : BFD_RELOC_SH_GOTPLT10BY8
3841  -- : BFD_RELOC_SH_GOTPLT32
3842  -- : BFD_RELOC_SH_SHMEDIA_CODE
3843  -- : BFD_RELOC_SH_IMMU5
3844  -- : BFD_RELOC_SH_IMMS6
3845  -- : BFD_RELOC_SH_IMMS6BY32
3846  -- : BFD_RELOC_SH_IMMU6
3847  -- : BFD_RELOC_SH_IMMS10
3848  -- : BFD_RELOC_SH_IMMS10BY2
3849  -- : BFD_RELOC_SH_IMMS10BY4
3850  -- : BFD_RELOC_SH_IMMS10BY8
3851  -- : BFD_RELOC_SH_IMMS16
3852  -- : BFD_RELOC_SH_IMMU16
3853  -- : BFD_RELOC_SH_IMM_LOW16
3854  -- : BFD_RELOC_SH_IMM_LOW16_PCREL
3855  -- : BFD_RELOC_SH_IMM_MEDLOW16
3856  -- : BFD_RELOC_SH_IMM_MEDLOW16_PCREL
3857  -- : BFD_RELOC_SH_IMM_MEDHI16
3858  -- : BFD_RELOC_SH_IMM_MEDHI16_PCREL
3859  -- : BFD_RELOC_SH_IMM_HI16
3860  -- : BFD_RELOC_SH_IMM_HI16_PCREL
3861  -- : BFD_RELOC_SH_PT_16
3862  -- : BFD_RELOC_SH_TLS_GD_32
3863  -- : BFD_RELOC_SH_TLS_LD_32
3864  -- : BFD_RELOC_SH_TLS_LDO_32
3865  -- : BFD_RELOC_SH_TLS_IE_32
3866  -- : BFD_RELOC_SH_TLS_LE_32
3867  -- : BFD_RELOC_SH_TLS_DTPMOD32
3868  -- : BFD_RELOC_SH_TLS_DTPOFF32
3869  -- : BFD_RELOC_SH_TLS_TPOFF32
3870      Renesas / SuperH SH relocs.  Not all of these appear in object
3871      files.
3872
3873  -- : BFD_RELOC_ARC_B22_PCREL
3874      ARC Cores relocs.  ARC 22 bit pc-relative branch.  The lowest two
3875      bits must be zero and are not stored in the instruction.  The high
3876      20 bits are installed in bits 26 through 7 of the instruction.
3877
3878  -- : BFD_RELOC_ARC_B26
3879      ARC 26 bit absolute branch.  The lowest two bits must be zero and
3880      are not stored in the instruction.  The high 24 bits are installed
3881      in bits 23 through 0.
3882
3883  -- : BFD_RELOC_BFIN_16_IMM
3884      ADI Blackfin 16 bit immediate absolute reloc.
3885
3886  -- : BFD_RELOC_BFIN_16_HIGH
3887      ADI Blackfin 16 bit immediate absolute reloc higher 16 bits.
3888
3889  -- : BFD_RELOC_BFIN_4_PCREL
3890      ADI Blackfin 'a' part of LSETUP.
3891
3892  -- : BFD_RELOC_BFIN_5_PCREL
3893      ADI Blackfin.
3894
3895  -- : BFD_RELOC_BFIN_16_LOW
3896      ADI Blackfin 16 bit immediate absolute reloc lower 16 bits.
3897
3898  -- : BFD_RELOC_BFIN_10_PCREL
3899      ADI Blackfin.
3900
3901  -- : BFD_RELOC_BFIN_11_PCREL
3902      ADI Blackfin 'b' part of LSETUP.
3903
3904  -- : BFD_RELOC_BFIN_12_PCREL_JUMP
3905      ADI Blackfin.
3906
3907  -- : BFD_RELOC_BFIN_12_PCREL_JUMP_S
3908      ADI Blackfin Short jump, pcrel.
3909
3910  -- : BFD_RELOC_BFIN_24_PCREL_CALL_X
3911      ADI Blackfin Call.x not implemented.
3912
3913  -- : BFD_RELOC_BFIN_24_PCREL_JUMP_L
3914      ADI Blackfin Long Jump pcrel.
3915
3916  -- : BFD_RELOC_BFIN_GOT17M4
3917  -- : BFD_RELOC_BFIN_GOTHI
3918  -- : BFD_RELOC_BFIN_GOTLO
3919  -- : BFD_RELOC_BFIN_FUNCDESC
3920  -- : BFD_RELOC_BFIN_FUNCDESC_GOT17M4
3921  -- : BFD_RELOC_BFIN_FUNCDESC_GOTHI
3922  -- : BFD_RELOC_BFIN_FUNCDESC_GOTLO
3923  -- : BFD_RELOC_BFIN_FUNCDESC_VALUE
3924  -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4
3925  -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI
3926  -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO
3927  -- : BFD_RELOC_BFIN_GOTOFF17M4
3928  -- : BFD_RELOC_BFIN_GOTOFFHI
3929  -- : BFD_RELOC_BFIN_GOTOFFLO
3930      ADI Blackfin FD-PIC relocations.
3931
3932  -- : BFD_RELOC_BFIN_GOT
3933      ADI Blackfin GOT relocation.
3934
3935  -- : BFD_RELOC_BFIN_PLTPC
3936      ADI Blackfin PLTPC relocation.
3937
3938  -- : BFD_ARELOC_BFIN_PUSH
3939      ADI Blackfin arithmetic relocation.
3940
3941  -- : BFD_ARELOC_BFIN_CONST
3942      ADI Blackfin arithmetic relocation.
3943
3944  -- : BFD_ARELOC_BFIN_ADD
3945      ADI Blackfin arithmetic relocation.
3946
3947  -- : BFD_ARELOC_BFIN_SUB
3948      ADI Blackfin arithmetic relocation.
3949
3950  -- : BFD_ARELOC_BFIN_MULT
3951      ADI Blackfin arithmetic relocation.
3952
3953  -- : BFD_ARELOC_BFIN_DIV
3954      ADI Blackfin arithmetic relocation.
3955
3956  -- : BFD_ARELOC_BFIN_MOD
3957      ADI Blackfin arithmetic relocation.
3958
3959  -- : BFD_ARELOC_BFIN_LSHIFT
3960      ADI Blackfin arithmetic relocation.
3961
3962  -- : BFD_ARELOC_BFIN_RSHIFT
3963      ADI Blackfin arithmetic relocation.
3964
3965  -- : BFD_ARELOC_BFIN_AND
3966      ADI Blackfin arithmetic relocation.
3967
3968  -- : BFD_ARELOC_BFIN_OR
3969      ADI Blackfin arithmetic relocation.
3970
3971  -- : BFD_ARELOC_BFIN_XOR
3972      ADI Blackfin arithmetic relocation.
3973
3974  -- : BFD_ARELOC_BFIN_LAND
3975      ADI Blackfin arithmetic relocation.
3976
3977  -- : BFD_ARELOC_BFIN_LOR
3978      ADI Blackfin arithmetic relocation.
3979
3980  -- : BFD_ARELOC_BFIN_LEN
3981      ADI Blackfin arithmetic relocation.
3982
3983  -- : BFD_ARELOC_BFIN_NEG
3984      ADI Blackfin arithmetic relocation.
3985
3986  -- : BFD_ARELOC_BFIN_COMP
3987      ADI Blackfin arithmetic relocation.
3988
3989  -- : BFD_ARELOC_BFIN_PAGE
3990      ADI Blackfin arithmetic relocation.
3991
3992  -- : BFD_ARELOC_BFIN_HWPAGE
3993      ADI Blackfin arithmetic relocation.
3994
3995  -- : BFD_ARELOC_BFIN_ADDR
3996      ADI Blackfin arithmetic relocation.
3997
3998  -- : BFD_RELOC_D10V_10_PCREL_R
3999      Mitsubishi D10V relocs.  This is a 10-bit reloc with the right 2
4000      bits assumed to be 0.
4001
4002  -- : BFD_RELOC_D10V_10_PCREL_L
4003      Mitsubishi D10V relocs.  This is a 10-bit reloc with the right 2
4004      bits assumed to be 0.  This is the same as the previous reloc
4005      except it is in the left container, i.e., shifted left 15 bits.
4006
4007  -- : BFD_RELOC_D10V_18
4008      This is an 18-bit reloc with the right 2 bits assumed to be 0.
4009
4010  -- : BFD_RELOC_D10V_18_PCREL
4011      This is an 18-bit reloc with the right 2 bits assumed to be 0.
4012
4013  -- : BFD_RELOC_D30V_6
4014      Mitsubishi D30V relocs.  This is a 6-bit absolute reloc.
4015
4016  -- : BFD_RELOC_D30V_9_PCREL
4017      This is a 6-bit pc-relative reloc with the right 3 bits assumed to
4018      be 0.
4019
4020  -- : BFD_RELOC_D30V_9_PCREL_R
4021      This is a 6-bit pc-relative reloc with the right 3 bits assumed to
4022      be 0. Same as the previous reloc but on the right side of the
4023      container.
4024
4025  -- : BFD_RELOC_D30V_15
4026      This is a 12-bit absolute reloc with the right 3 bitsassumed to be
4027      0.
4028
4029  -- : BFD_RELOC_D30V_15_PCREL
4030      This is a 12-bit pc-relative reloc with the right 3 bits assumed
4031      to be 0.
4032
4033  -- : BFD_RELOC_D30V_15_PCREL_R
4034      This is a 12-bit pc-relative reloc with the right 3 bits assumed
4035      to be 0. Same as the previous reloc but on the right side of the
4036      container.
4037
4038  -- : BFD_RELOC_D30V_21
4039      This is an 18-bit absolute reloc with the right 3 bits assumed to
4040      be 0.
4041
4042  -- : BFD_RELOC_D30V_21_PCREL
4043      This is an 18-bit pc-relative reloc with the right 3 bits assumed
4044      to be 0.
4045
4046  -- : BFD_RELOC_D30V_21_PCREL_R
4047      This is an 18-bit pc-relative reloc with the right 3 bits assumed
4048      to be 0. Same as the previous reloc but on the right side of the
4049      container.
4050
4051  -- : BFD_RELOC_D30V_32
4052      This is a 32-bit absolute reloc.
4053
4054  -- : BFD_RELOC_D30V_32_PCREL
4055      This is a 32-bit pc-relative reloc.
4056
4057  -- : BFD_RELOC_DLX_HI16_S
4058      DLX relocs
4059
4060  -- : BFD_RELOC_DLX_LO16
4061      DLX relocs
4062
4063  -- : BFD_RELOC_DLX_JMP26
4064      DLX relocs
4065
4066  -- : BFD_RELOC_M32C_HI8
4067  -- : BFD_RELOC_M32C_RL_JUMP
4068  -- : BFD_RELOC_M32C_RL_1ADDR
4069  -- : BFD_RELOC_M32C_RL_2ADDR
4070      Renesas M16C/M32C Relocations.
4071
4072  -- : BFD_RELOC_M32R_24
4073      Renesas M32R (formerly Mitsubishi M32R) relocs.  This is a 24 bit
4074      absolute address.
4075
4076  -- : BFD_RELOC_M32R_10_PCREL
4077      This is a 10-bit pc-relative reloc with the right 2 bits assumed
4078      to be 0.
4079
4080  -- : BFD_RELOC_M32R_18_PCREL
4081      This is an 18-bit reloc with the right 2 bits assumed to be 0.
4082
4083  -- : BFD_RELOC_M32R_26_PCREL
4084      This is a 26-bit reloc with the right 2 bits assumed to be 0.
4085
4086  -- : BFD_RELOC_M32R_HI16_ULO
4087      This is a 16-bit reloc containing the high 16 bits of an address
4088      used when the lower 16 bits are treated as unsigned.
4089
4090  -- : BFD_RELOC_M32R_HI16_SLO
4091      This is a 16-bit reloc containing the high 16 bits of an address
4092      used when the lower 16 bits are treated as signed.
4093
4094  -- : BFD_RELOC_M32R_LO16
4095      This is a 16-bit reloc containing the lower 16 bits of an address.
4096
4097  -- : BFD_RELOC_M32R_SDA16
4098      This is a 16-bit reloc containing the small data area offset for
4099      use in add3, load, and store instructions.
4100
4101  -- : BFD_RELOC_M32R_GOT24
4102  -- : BFD_RELOC_M32R_26_PLTREL
4103  -- : BFD_RELOC_M32R_COPY
4104  -- : BFD_RELOC_M32R_GLOB_DAT
4105  -- : BFD_RELOC_M32R_JMP_SLOT
4106  -- : BFD_RELOC_M32R_RELATIVE
4107  -- : BFD_RELOC_M32R_GOTOFF
4108  -- : BFD_RELOC_M32R_GOTOFF_HI_ULO
4109  -- : BFD_RELOC_M32R_GOTOFF_HI_SLO
4110  -- : BFD_RELOC_M32R_GOTOFF_LO
4111  -- : BFD_RELOC_M32R_GOTPC24
4112  -- : BFD_RELOC_M32R_GOT16_HI_ULO
4113  -- : BFD_RELOC_M32R_GOT16_HI_SLO
4114  -- : BFD_RELOC_M32R_GOT16_LO
4115  -- : BFD_RELOC_M32R_GOTPC_HI_ULO
4116  -- : BFD_RELOC_M32R_GOTPC_HI_SLO
4117  -- : BFD_RELOC_M32R_GOTPC_LO
4118      For PIC.
4119
4120  -- : BFD_RELOC_V850_9_PCREL
4121      This is a 9-bit reloc
4122
4123  -- : BFD_RELOC_V850_22_PCREL
4124      This is a 22-bit reloc
4125
4126  -- : BFD_RELOC_V850_SDA_16_16_OFFSET
4127      This is a 16 bit offset from the short data area pointer.
4128
4129  -- : BFD_RELOC_V850_SDA_15_16_OFFSET
4130      This is a 16 bit offset (of which only 15 bits are used) from the
4131      short data area pointer.
4132
4133  -- : BFD_RELOC_V850_ZDA_16_16_OFFSET
4134      This is a 16 bit offset from the zero data area pointer.
4135
4136  -- : BFD_RELOC_V850_ZDA_15_16_OFFSET
4137      This is a 16 bit offset (of which only 15 bits are used) from the
4138      zero data area pointer.
4139
4140  -- : BFD_RELOC_V850_TDA_6_8_OFFSET
4141      This is an 8 bit offset (of which only 6 bits are used) from the
4142      tiny data area pointer.
4143
4144  -- : BFD_RELOC_V850_TDA_7_8_OFFSET
4145      This is an 8bit offset (of which only 7 bits are used) from the
4146      tiny data area pointer.
4147
4148  -- : BFD_RELOC_V850_TDA_7_7_OFFSET
4149      This is a 7 bit offset from the tiny data area pointer.
4150
4151  -- : BFD_RELOC_V850_TDA_16_16_OFFSET
4152      This is a 16 bit offset from the tiny data area pointer.
4153
4154  -- : BFD_RELOC_V850_TDA_4_5_OFFSET
4155      This is a 5 bit offset (of which only 4 bits are used) from the
4156      tiny data area pointer.
4157
4158  -- : BFD_RELOC_V850_TDA_4_4_OFFSET
4159      This is a 4 bit offset from the tiny data area pointer.
4160
4161  -- : BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET
4162      This is a 16 bit offset from the short data area pointer, with the
4163      bits placed non-contiguously in the instruction.
4164
4165  -- : BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET
4166      This is a 16 bit offset from the zero data area pointer, with the
4167      bits placed non-contiguously in the instruction.
4168
4169  -- : BFD_RELOC_V850_CALLT_6_7_OFFSET
4170      This is a 6 bit offset from the call table base pointer.
4171
4172  -- : BFD_RELOC_V850_CALLT_16_16_OFFSET
4173      This is a 16 bit offset from the call table base pointer.
4174
4175  -- : BFD_RELOC_V850_LONGCALL
4176      Used for relaxing indirect function calls.
4177
4178  -- : BFD_RELOC_V850_LONGJUMP
4179      Used for relaxing indirect jumps.
4180
4181  -- : BFD_RELOC_V850_ALIGN
4182      Used to maintain alignment whilst relaxing.
4183
4184  -- : BFD_RELOC_V850_LO16_SPLIT_OFFSET
4185      This is a variation of BFD_RELOC_LO16 that can be used in v850e
4186      ld.bu instructions.
4187
4188  -- : BFD_RELOC_MN10300_32_PCREL
4189      This is a 32bit pcrel reloc for the mn10300, offset by two bytes
4190      in the instruction.
4191
4192  -- : BFD_RELOC_MN10300_16_PCREL
4193      This is a 16bit pcrel reloc for the mn10300, offset by two bytes
4194      in the instruction.
4195
4196  -- : BFD_RELOC_TIC30_LDP
4197      This is a 8bit DP reloc for the tms320c30, where the most
4198      significant 8 bits of a 24 bit word are placed into the least
4199      significant 8 bits of the opcode.
4200
4201  -- : BFD_RELOC_TIC54X_PARTLS7
4202      This is a 7bit reloc for the tms320c54x, where the least
4203      significant 7 bits of a 16 bit word are placed into the least
4204      significant 7 bits of the opcode.
4205
4206  -- : BFD_RELOC_TIC54X_PARTMS9
4207      This is a 9bit DP reloc for the tms320c54x, where the most
4208      significant 9 bits of a 16 bit word are placed into the least
4209      significant 9 bits of the opcode.
4210
4211  -- : BFD_RELOC_TIC54X_23
4212      This is an extended address 23-bit reloc for the tms320c54x.
4213
4214  -- : BFD_RELOC_TIC54X_16_OF_23
4215      This is a 16-bit reloc for the tms320c54x, where the least
4216      significant 16 bits of a 23-bit extended address are placed into
4217      the opcode.
4218
4219  -- : BFD_RELOC_TIC54X_MS7_OF_23
4220      This is a reloc for the tms320c54x, where the most significant 7
4221      bits of a 23-bit extended address are placed into the opcode.
4222
4223  -- : BFD_RELOC_FR30_48
4224      This is a 48 bit reloc for the FR30 that stores 32 bits.
4225
4226  -- : BFD_RELOC_FR30_20
4227      This is a 32 bit reloc for the FR30 that stores 20 bits split up
4228      into two sections.
4229
4230  -- : BFD_RELOC_FR30_6_IN_4
4231      This is a 16 bit reloc for the FR30 that stores a 6 bit word
4232      offset in 4 bits.
4233
4234  -- : BFD_RELOC_FR30_8_IN_8
4235      This is a 16 bit reloc for the FR30 that stores an 8 bit byte
4236      offset into 8 bits.
4237
4238  -- : BFD_RELOC_FR30_9_IN_8
4239      This is a 16 bit reloc for the FR30 that stores a 9 bit short
4240      offset into 8 bits.
4241
4242  -- : BFD_RELOC_FR30_10_IN_8
4243      This is a 16 bit reloc for the FR30 that stores a 10 bit word
4244      offset into 8 bits.
4245
4246  -- : BFD_RELOC_FR30_9_PCREL
4247      This is a 16 bit reloc for the FR30 that stores a 9 bit pc relative
4248      short offset into 8 bits.
4249
4250  -- : BFD_RELOC_FR30_12_PCREL
4251      This is a 16 bit reloc for the FR30 that stores a 12 bit pc
4252      relative short offset into 11 bits.
4253
4254  -- : BFD_RELOC_MCORE_PCREL_IMM8BY4
4255  -- : BFD_RELOC_MCORE_PCREL_IMM11BY2
4256  -- : BFD_RELOC_MCORE_PCREL_IMM4BY2
4257  -- : BFD_RELOC_MCORE_PCREL_32
4258  -- : BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2
4259  -- : BFD_RELOC_MCORE_RVA
4260      Motorola Mcore relocations.
4261
4262  -- : BFD_RELOC_MMIX_GETA
4263  -- : BFD_RELOC_MMIX_GETA_1
4264  -- : BFD_RELOC_MMIX_GETA_2
4265  -- : BFD_RELOC_MMIX_GETA_3
4266      These are relocations for the GETA instruction.
4267
4268  -- : BFD_RELOC_MMIX_CBRANCH
4269  -- : BFD_RELOC_MMIX_CBRANCH_J
4270  -- : BFD_RELOC_MMIX_CBRANCH_1
4271  -- : BFD_RELOC_MMIX_CBRANCH_2
4272  -- : BFD_RELOC_MMIX_CBRANCH_3
4273      These are relocations for a conditional branch instruction.
4274
4275  -- : BFD_RELOC_MMIX_PUSHJ
4276  -- : BFD_RELOC_MMIX_PUSHJ_1
4277  -- : BFD_RELOC_MMIX_PUSHJ_2
4278  -- : BFD_RELOC_MMIX_PUSHJ_3
4279  -- : BFD_RELOC_MMIX_PUSHJ_STUBBABLE
4280      These are relocations for the PUSHJ instruction.
4281
4282  -- : BFD_RELOC_MMIX_JMP
4283  -- : BFD_RELOC_MMIX_JMP_1
4284  -- : BFD_RELOC_MMIX_JMP_2
4285  -- : BFD_RELOC_MMIX_JMP_3
4286      These are relocations for the JMP instruction.
4287
4288  -- : BFD_RELOC_MMIX_ADDR19
4289      This is a relocation for a relative address as in a GETA
4290      instruction or a branch.
4291
4292  -- : BFD_RELOC_MMIX_ADDR27
4293      This is a relocation for a relative address as in a JMP
4294      instruction.
4295
4296  -- : BFD_RELOC_MMIX_REG_OR_BYTE
4297      This is a relocation for an instruction field that may be a general
4298      register or a value 0..255.
4299
4300  -- : BFD_RELOC_MMIX_REG
4301      This is a relocation for an instruction field that may be a general
4302      register.
4303
4304  -- : BFD_RELOC_MMIX_BASE_PLUS_OFFSET
4305      This is a relocation for two instruction fields holding a register
4306      and an offset, the equivalent of the relocation.
4307
4308  -- : BFD_RELOC_MMIX_LOCAL
4309      This relocation is an assertion that the expression is not
4310      allocated as a global register.  It does not modify contents.
4311
4312  -- : BFD_RELOC_AVR_7_PCREL
4313      This is a 16 bit reloc for the AVR that stores 8 bit pc relative
4314      short offset into 7 bits.
4315
4316  -- : BFD_RELOC_AVR_13_PCREL
4317      This is a 16 bit reloc for the AVR that stores 13 bit pc relative
4318      short offset into 12 bits.
4319
4320  -- : BFD_RELOC_AVR_16_PM
4321      This is a 16 bit reloc for the AVR that stores 17 bit value
4322      (usually program memory address) into 16 bits.
4323
4324  -- : BFD_RELOC_AVR_LO8_LDI
4325      This is a 16 bit reloc for the AVR that stores 8 bit value (usually
4326      data memory address) into 8 bit immediate value of LDI insn.
4327
4328  -- : BFD_RELOC_AVR_HI8_LDI
4329      This is a 16 bit reloc for the AVR that stores 8 bit value (high 8
4330      bit of data memory address) into 8 bit immediate value of LDI insn.
4331
4332  -- : BFD_RELOC_AVR_HH8_LDI
4333      This is a 16 bit reloc for the AVR that stores 8 bit value (most
4334      high 8 bit of program memory address) into 8 bit immediate value
4335      of LDI insn.
4336
4337  -- : BFD_RELOC_AVR_MS8_LDI
4338      This is a 16 bit reloc for the AVR that stores 8 bit value (most
4339      high 8 bit of 32 bit value) into 8 bit immediate value of LDI insn.
4340
4341  -- : BFD_RELOC_AVR_LO8_LDI_NEG
4342      This is a 16 bit reloc for the AVR that stores negated 8 bit value
4343      (usually data memory address) into 8 bit immediate value of SUBI
4344      insn.
4345
4346  -- : BFD_RELOC_AVR_HI8_LDI_NEG
4347      This is a 16 bit reloc for the AVR that stores negated 8 bit value
4348      (high 8 bit of data memory address) into 8 bit immediate value of
4349      SUBI insn.
4350
4351  -- : BFD_RELOC_AVR_HH8_LDI_NEG
4352      This is a 16 bit reloc for the AVR that stores negated 8 bit value
4353      (most high 8 bit of program memory address) into 8 bit immediate
4354      value of LDI or SUBI insn.
4355
4356  -- : BFD_RELOC_AVR_MS8_LDI_NEG
4357      This is a 16 bit reloc for the AVR that stores negated 8 bit value
4358      (msb of 32 bit value) into 8 bit immediate value of LDI insn.
4359
4360  -- : BFD_RELOC_AVR_LO8_LDI_PM
4361      This is a 16 bit reloc for the AVR that stores 8 bit value (usually
4362      command address) into 8 bit immediate value of LDI insn.
4363
4364  -- : BFD_RELOC_AVR_HI8_LDI_PM
4365      This is a 16 bit reloc for the AVR that stores 8 bit value (high 8
4366      bit of command address) into 8 bit immediate value of LDI insn.
4367
4368  -- : BFD_RELOC_AVR_HH8_LDI_PM
4369      This is a 16 bit reloc for the AVR that stores 8 bit value (most
4370      high 8 bit of command address) into 8 bit immediate value of LDI
4371      insn.
4372
4373  -- : BFD_RELOC_AVR_LO8_LDI_PM_NEG
4374      This is a 16 bit reloc for the AVR that stores negated 8 bit value
4375      (usually command address) into 8 bit immediate value of SUBI insn.
4376
4377  -- : BFD_RELOC_AVR_HI8_LDI_PM_NEG
4378      This is a 16 bit reloc for the AVR that stores negated 8 bit value
4379      (high 8 bit of 16 bit command address) into 8 bit immediate value
4380      of SUBI insn.
4381
4382  -- : BFD_RELOC_AVR_HH8_LDI_PM_NEG
4383      This is a 16 bit reloc for the AVR that stores negated 8 bit value
4384      (high 6 bit of 22 bit command address) into 8 bit immediate value
4385      of SUBI insn.
4386
4387  -- : BFD_RELOC_AVR_CALL
4388      This is a 32 bit reloc for the AVR that stores 23 bit value into
4389      22 bits.
4390
4391  -- : BFD_RELOC_AVR_LDI
4392      This is a 16 bit reloc for the AVR that stores all needed bits for
4393      absolute addressing with ldi with overflow check to linktime
4394
4395  -- : BFD_RELOC_AVR_6
4396      This is a 6 bit reloc for the AVR that stores offset for ldd/std
4397      instructions
4398
4399  -- : BFD_RELOC_AVR_6_ADIW
4400      This is a 6 bit reloc for the AVR that stores offset for adiw/sbiw
4401      instructions
4402
4403  -- : BFD_RELOC_390_12
4404      Direct 12 bit.
4405
4406  -- : BFD_RELOC_390_GOT12
4407      12 bit GOT offset.
4408
4409  -- : BFD_RELOC_390_PLT32
4410      32 bit PC relative PLT address.
4411
4412  -- : BFD_RELOC_390_COPY
4413      Copy symbol at runtime.
4414
4415  -- : BFD_RELOC_390_GLOB_DAT
4416      Create GOT entry.
4417
4418  -- : BFD_RELOC_390_JMP_SLOT
4419      Create PLT entry.
4420
4421  -- : BFD_RELOC_390_RELATIVE
4422      Adjust by program base.
4423
4424  -- : BFD_RELOC_390_GOTPC
4425      32 bit PC relative offset to GOT.
4426
4427  -- : BFD_RELOC_390_GOT16
4428      16 bit GOT offset.
4429
4430  -- : BFD_RELOC_390_PC16DBL
4431      PC relative 16 bit shifted by 1.
4432
4433  -- : BFD_RELOC_390_PLT16DBL
4434      16 bit PC rel. PLT shifted by 1.
4435
4436  -- : BFD_RELOC_390_PC32DBL
4437      PC relative 32 bit shifted by 1.
4438
4439  -- : BFD_RELOC_390_PLT32DBL
4440      32 bit PC rel. PLT shifted by 1.
4441
4442  -- : BFD_RELOC_390_GOTPCDBL
4443      32 bit PC rel. GOT shifted by 1.
4444
4445  -- : BFD_RELOC_390_GOT64
4446      64 bit GOT offset.
4447
4448  -- : BFD_RELOC_390_PLT64
4449      64 bit PC relative PLT address.
4450
4451  -- : BFD_RELOC_390_GOTENT
4452      32 bit rel. offset to GOT entry.
4453
4454  -- : BFD_RELOC_390_GOTOFF64
4455      64 bit offset to GOT.
4456
4457  -- : BFD_RELOC_390_GOTPLT12
4458      12-bit offset to symbol-entry within GOT, with PLT handling.
4459
4460  -- : BFD_RELOC_390_GOTPLT16
4461      16-bit offset to symbol-entry within GOT, with PLT handling.
4462
4463  -- : BFD_RELOC_390_GOTPLT32
4464      32-bit offset to symbol-entry within GOT, with PLT handling.
4465
4466  -- : BFD_RELOC_390_GOTPLT64
4467      64-bit offset to symbol-entry within GOT, with PLT handling.
4468
4469  -- : BFD_RELOC_390_GOTPLTENT
4470      32-bit rel. offset to symbol-entry within GOT, with PLT handling.
4471
4472  -- : BFD_RELOC_390_PLTOFF16
4473      16-bit rel. offset from the GOT to a PLT entry.
4474
4475  -- : BFD_RELOC_390_PLTOFF32
4476      32-bit rel. offset from the GOT to a PLT entry.
4477
4478  -- : BFD_RELOC_390_PLTOFF64
4479      64-bit rel. offset from the GOT to a PLT entry.
4480
4481  -- : BFD_RELOC_390_TLS_LOAD
4482  -- : BFD_RELOC_390_TLS_GDCALL
4483  -- : BFD_RELOC_390_TLS_LDCALL
4484  -- : BFD_RELOC_390_TLS_GD32
4485  -- : BFD_RELOC_390_TLS_GD64
4486  -- : BFD_RELOC_390_TLS_GOTIE12
4487  -- : BFD_RELOC_390_TLS_GOTIE32
4488  -- : BFD_RELOC_390_TLS_GOTIE64
4489  -- : BFD_RELOC_390_TLS_LDM32
4490  -- : BFD_RELOC_390_TLS_LDM64
4491  -- : BFD_RELOC_390_TLS_IE32
4492  -- : BFD_RELOC_390_TLS_IE64
4493  -- : BFD_RELOC_390_TLS_IEENT
4494  -- : BFD_RELOC_390_TLS_LE32
4495  -- : BFD_RELOC_390_TLS_LE64
4496  -- : BFD_RELOC_390_TLS_LDO32
4497  -- : BFD_RELOC_390_TLS_LDO64
4498  -- : BFD_RELOC_390_TLS_DTPMOD
4499  -- : BFD_RELOC_390_TLS_DTPOFF
4500  -- : BFD_RELOC_390_TLS_TPOFF
4501      s390 tls relocations.
4502
4503  -- : BFD_RELOC_390_20
4504  -- : BFD_RELOC_390_GOT20
4505  -- : BFD_RELOC_390_GOTPLT20
4506  -- : BFD_RELOC_390_TLS_GOTIE20
4507      Long displacement extension.
4508
4509  -- : BFD_RELOC_IP2K_FR9
4510      Scenix IP2K - 9-bit register number / data address
4511
4512  -- : BFD_RELOC_IP2K_BANK
4513      Scenix IP2K - 4-bit register/data bank number
4514
4515  -- : BFD_RELOC_IP2K_ADDR16CJP
4516      Scenix IP2K - low 13 bits of instruction word address
4517
4518  -- : BFD_RELOC_IP2K_PAGE3
4519      Scenix IP2K - high 3 bits of instruction word address
4520
4521  -- : BFD_RELOC_IP2K_LO8DATA
4522  -- : BFD_RELOC_IP2K_HI8DATA
4523  -- : BFD_RELOC_IP2K_EX8DATA
4524      Scenix IP2K - ext/low/high 8 bits of data address
4525
4526  -- : BFD_RELOC_IP2K_LO8INSN
4527  -- : BFD_RELOC_IP2K_HI8INSN
4528      Scenix IP2K - low/high 8 bits of instruction word address
4529
4530  -- : BFD_RELOC_IP2K_PC_SKIP
4531      Scenix IP2K - even/odd PC modifier to modify snb pcl.0
4532
4533  -- : BFD_RELOC_IP2K_TEXT
4534      Scenix IP2K - 16 bit word address in text section.
4535
4536  -- : BFD_RELOC_IP2K_FR_OFFSET
4537      Scenix IP2K - 7-bit sp or dp offset
4538
4539  -- : BFD_RELOC_VPE4KMATH_DATA
4540  -- : BFD_RELOC_VPE4KMATH_INSN
4541      Scenix VPE4K coprocessor - data/insn-space addressing
4542
4543  -- : BFD_RELOC_VTABLE_INHERIT
4544  -- : BFD_RELOC_VTABLE_ENTRY
4545      These two relocations are used by the linker to determine which of
4546      the entries in a C++ virtual function table are actually used.
4547      When the -gc-sections option is given, the linker will zero out
4548      the entries that are not used, so that the code for those
4549      functions need not be included in the output.
4550
4551      VTABLE_INHERIT is a zero-space relocation used to describe to the
4552      linker the inheritance tree of a C++ virtual function table.  The
4553      relocation's symbol should be the parent class' vtable, and the
4554      relocation should be located at the child vtable.
4555
4556      VTABLE_ENTRY is a zero-space relocation that describes the use of a
4557      virtual function table entry.  The reloc's symbol should refer to
4558      the table of the class mentioned in the code.  Off of that base,
4559      an offset describes the entry that is being used.  For Rela hosts,
4560      this offset is stored in the reloc's addend.  For Rel hosts, we
4561      are forced to put this offset in the reloc's section offset.
4562
4563  -- : BFD_RELOC_IA64_IMM14
4564  -- : BFD_RELOC_IA64_IMM22
4565  -- : BFD_RELOC_IA64_IMM64
4566  -- : BFD_RELOC_IA64_DIR32MSB
4567  -- : BFD_RELOC_IA64_DIR32LSB
4568  -- : BFD_RELOC_IA64_DIR64MSB
4569  -- : BFD_RELOC_IA64_DIR64LSB
4570  -- : BFD_RELOC_IA64_GPREL22
4571  -- : BFD_RELOC_IA64_GPREL64I
4572  -- : BFD_RELOC_IA64_GPREL32MSB
4573  -- : BFD_RELOC_IA64_GPREL32LSB
4574  -- : BFD_RELOC_IA64_GPREL64MSB
4575  -- : BFD_RELOC_IA64_GPREL64LSB
4576  -- : BFD_RELOC_IA64_LTOFF22
4577  -- : BFD_RELOC_IA64_LTOFF64I
4578  -- : BFD_RELOC_IA64_PLTOFF22
4579  -- : BFD_RELOC_IA64_PLTOFF64I
4580  -- : BFD_RELOC_IA64_PLTOFF64MSB
4581  -- : BFD_RELOC_IA64_PLTOFF64LSB
4582  -- : BFD_RELOC_IA64_FPTR64I
4583  -- : BFD_RELOC_IA64_FPTR32MSB
4584  -- : BFD_RELOC_IA64_FPTR32LSB
4585  -- : BFD_RELOC_IA64_FPTR64MSB
4586  -- : BFD_RELOC_IA64_FPTR64LSB
4587  -- : BFD_RELOC_IA64_PCREL21B
4588  -- : BFD_RELOC_IA64_PCREL21BI
4589  -- : BFD_RELOC_IA64_PCREL21M
4590  -- : BFD_RELOC_IA64_PCREL21F
4591  -- : BFD_RELOC_IA64_PCREL22
4592  -- : BFD_RELOC_IA64_PCREL60B
4593  -- : BFD_RELOC_IA64_PCREL64I
4594  -- : BFD_RELOC_IA64_PCREL32MSB
4595  -- : BFD_RELOC_IA64_PCREL32LSB
4596  -- : BFD_RELOC_IA64_PCREL64MSB
4597  -- : BFD_RELOC_IA64_PCREL64LSB
4598  -- : BFD_RELOC_IA64_LTOFF_FPTR22
4599  -- : BFD_RELOC_IA64_LTOFF_FPTR64I
4600  -- : BFD_RELOC_IA64_LTOFF_FPTR32MSB
4601  -- : BFD_RELOC_IA64_LTOFF_FPTR32LSB
4602  -- : BFD_RELOC_IA64_LTOFF_FPTR64MSB
4603  -- : BFD_RELOC_IA64_LTOFF_FPTR64LSB
4604  -- : BFD_RELOC_IA64_SEGREL32MSB
4605  -- : BFD_RELOC_IA64_SEGREL32LSB
4606  -- : BFD_RELOC_IA64_SEGREL64MSB
4607  -- : BFD_RELOC_IA64_SEGREL64LSB
4608  -- : BFD_RELOC_IA64_SECREL32MSB
4609  -- : BFD_RELOC_IA64_SECREL32LSB
4610  -- : BFD_RELOC_IA64_SECREL64MSB
4611  -- : BFD_RELOC_IA64_SECREL64LSB
4612  -- : BFD_RELOC_IA64_REL32MSB
4613  -- : BFD_RELOC_IA64_REL32LSB
4614  -- : BFD_RELOC_IA64_REL64MSB
4615  -- : BFD_RELOC_IA64_REL64LSB
4616  -- : BFD_RELOC_IA64_LTV32MSB
4617  -- : BFD_RELOC_IA64_LTV32LSB
4618  -- : BFD_RELOC_IA64_LTV64MSB
4619  -- : BFD_RELOC_IA64_LTV64LSB
4620  -- : BFD_RELOC_IA64_IPLTMSB
4621  -- : BFD_RELOC_IA64_IPLTLSB
4622  -- : BFD_RELOC_IA64_COPY
4623  -- : BFD_RELOC_IA64_LTOFF22X
4624  -- : BFD_RELOC_IA64_LDXMOV
4625  -- : BFD_RELOC_IA64_TPREL14
4626  -- : BFD_RELOC_IA64_TPREL22
4627  -- : BFD_RELOC_IA64_TPREL64I
4628  -- : BFD_RELOC_IA64_TPREL64MSB
4629  -- : BFD_RELOC_IA64_TPREL64LSB
4630  -- : BFD_RELOC_IA64_LTOFF_TPREL22
4631  -- : BFD_RELOC_IA64_DTPMOD64MSB
4632  -- : BFD_RELOC_IA64_DTPMOD64LSB
4633  -- : BFD_RELOC_IA64_LTOFF_DTPMOD22
4634  -- : BFD_RELOC_IA64_DTPREL14
4635  -- : BFD_RELOC_IA64_DTPREL22
4636  -- : BFD_RELOC_IA64_DTPREL64I
4637  -- : BFD_RELOC_IA64_DTPREL32MSB
4638  -- : BFD_RELOC_IA64_DTPREL32LSB
4639  -- : BFD_RELOC_IA64_DTPREL64MSB
4640  -- : BFD_RELOC_IA64_DTPREL64LSB
4641  -- : BFD_RELOC_IA64_LTOFF_DTPREL22
4642      Intel IA64 Relocations.
4643
4644  -- : BFD_RELOC_M68HC11_HI8
4645      Motorola 68HC11 reloc.  This is the 8 bit high part of an absolute
4646      address.
4647
4648  -- : BFD_RELOC_M68HC11_LO8
4649      Motorola 68HC11 reloc.  This is the 8 bit low part of an absolute
4650      address.
4651
4652  -- : BFD_RELOC_M68HC11_3B
4653      Motorola 68HC11 reloc.  This is the 3 bit of a value.
4654
4655  -- : BFD_RELOC_M68HC11_RL_JUMP
4656      Motorola 68HC11 reloc.  This reloc marks the beginning of a
4657      jump/call instruction.  It is used for linker relaxation to
4658      correctly identify beginning of instruction and change some
4659      branches to use PC-relative addressing mode.
4660
4661  -- : BFD_RELOC_M68HC11_RL_GROUP
4662      Motorola 68HC11 reloc.  This reloc marks a group of several
4663      instructions that gcc generates and for which the linker
4664      relaxation pass can modify and/or remove some of them.
4665
4666  -- : BFD_RELOC_M68HC11_LO16
4667      Motorola 68HC11 reloc.  This is the 16-bit lower part of an
4668      address.  It is used for 'call' instruction to specify the symbol
4669      address without any special transformation (due to memory bank
4670      window).
4671
4672  -- : BFD_RELOC_M68HC11_PAGE
4673      Motorola 68HC11 reloc.  This is a 8-bit reloc that specifies the
4674      page number of an address.  It is used by 'call' instruction to
4675      specify the page number of the symbol.
4676
4677  -- : BFD_RELOC_M68HC11_24
4678      Motorola 68HC11 reloc.  This is a 24-bit reloc that represents the
4679      address with a 16-bit value and a 8-bit page number.  The symbol
4680      address is transformed to follow the 16K memory bank of 68HC12
4681      (seen as mapped in the window).
4682
4683  -- : BFD_RELOC_M68HC12_5B
4684      Motorola 68HC12 reloc.  This is the 5 bits of a value.
4685
4686  -- : BFD_RELOC_16C_NUM08
4687  -- : BFD_RELOC_16C_NUM08_C
4688  -- : BFD_RELOC_16C_NUM16
4689  -- : BFD_RELOC_16C_NUM16_C
4690  -- : BFD_RELOC_16C_NUM32
4691  -- : BFD_RELOC_16C_NUM32_C
4692  -- : BFD_RELOC_16C_DISP04
4693  -- : BFD_RELOC_16C_DISP04_C
4694  -- : BFD_RELOC_16C_DISP08
4695  -- : BFD_RELOC_16C_DISP08_C
4696  -- : BFD_RELOC_16C_DISP16
4697  -- : BFD_RELOC_16C_DISP16_C
4698  -- : BFD_RELOC_16C_DISP24
4699  -- : BFD_RELOC_16C_DISP24_C
4700  -- : BFD_RELOC_16C_DISP24a
4701  -- : BFD_RELOC_16C_DISP24a_C
4702  -- : BFD_RELOC_16C_REG04
4703  -- : BFD_RELOC_16C_REG04_C
4704  -- : BFD_RELOC_16C_REG04a
4705  -- : BFD_RELOC_16C_REG04a_C
4706  -- : BFD_RELOC_16C_REG14
4707  -- : BFD_RELOC_16C_REG14_C
4708  -- : BFD_RELOC_16C_REG16
4709  -- : BFD_RELOC_16C_REG16_C
4710  -- : BFD_RELOC_16C_REG20
4711  -- : BFD_RELOC_16C_REG20_C
4712  -- : BFD_RELOC_16C_ABS20
4713  -- : BFD_RELOC_16C_ABS20_C
4714  -- : BFD_RELOC_16C_ABS24
4715  -- : BFD_RELOC_16C_ABS24_C
4716  -- : BFD_RELOC_16C_IMM04
4717  -- : BFD_RELOC_16C_IMM04_C
4718  -- : BFD_RELOC_16C_IMM16
4719  -- : BFD_RELOC_16C_IMM16_C
4720  -- : BFD_RELOC_16C_IMM20
4721  -- : BFD_RELOC_16C_IMM20_C
4722  -- : BFD_RELOC_16C_IMM24
4723  -- : BFD_RELOC_16C_IMM24_C
4724  -- : BFD_RELOC_16C_IMM32
4725  -- : BFD_RELOC_16C_IMM32_C
4726      NS CR16C Relocations.
4727
4728  -- : BFD_RELOC_CRX_REL4
4729  -- : BFD_RELOC_CRX_REL8
4730  -- : BFD_RELOC_CRX_REL8_CMP
4731  -- : BFD_RELOC_CRX_REL16
4732  -- : BFD_RELOC_CRX_REL24
4733  -- : BFD_RELOC_CRX_REL32
4734  -- : BFD_RELOC_CRX_REGREL12
4735  -- : BFD_RELOC_CRX_REGREL22
4736  -- : BFD_RELOC_CRX_REGREL28
4737  -- : BFD_RELOC_CRX_REGREL32
4738  -- : BFD_RELOC_CRX_ABS16
4739  -- : BFD_RELOC_CRX_ABS32
4740  -- : BFD_RELOC_CRX_NUM8
4741  -- : BFD_RELOC_CRX_NUM16
4742  -- : BFD_RELOC_CRX_NUM32
4743  -- : BFD_RELOC_CRX_IMM16
4744  -- : BFD_RELOC_CRX_IMM32
4745  -- : BFD_RELOC_CRX_SWITCH8
4746  -- : BFD_RELOC_CRX_SWITCH16
4747  -- : BFD_RELOC_CRX_SWITCH32
4748      NS CRX Relocations.
4749
4750  -- : BFD_RELOC_CRIS_BDISP8
4751  -- : BFD_RELOC_CRIS_UNSIGNED_5
4752  -- : BFD_RELOC_CRIS_SIGNED_6
4753  -- : BFD_RELOC_CRIS_UNSIGNED_6
4754  -- : BFD_RELOC_CRIS_SIGNED_8
4755  -- : BFD_RELOC_CRIS_UNSIGNED_8
4756  -- : BFD_RELOC_CRIS_SIGNED_16
4757  -- : BFD_RELOC_CRIS_UNSIGNED_16
4758  -- : BFD_RELOC_CRIS_LAPCQ_OFFSET
4759  -- : BFD_RELOC_CRIS_UNSIGNED_4
4760      These relocs are only used within the CRIS assembler.  They are not
4761      (at present) written to any object files.
4762
4763  -- : BFD_RELOC_CRIS_COPY
4764  -- : BFD_RELOC_CRIS_GLOB_DAT
4765  -- : BFD_RELOC_CRIS_JUMP_SLOT
4766  -- : BFD_RELOC_CRIS_RELATIVE
4767      Relocs used in ELF shared libraries for CRIS.
4768
4769  -- : BFD_RELOC_CRIS_32_GOT
4770      32-bit offset to symbol-entry within GOT.
4771
4772  -- : BFD_RELOC_CRIS_16_GOT
4773      16-bit offset to symbol-entry within GOT.
4774
4775  -- : BFD_RELOC_CRIS_32_GOTPLT
4776      32-bit offset to symbol-entry within GOT, with PLT handling.
4777
4778  -- : BFD_RELOC_CRIS_16_GOTPLT
4779      16-bit offset to symbol-entry within GOT, with PLT handling.
4780
4781  -- : BFD_RELOC_CRIS_32_GOTREL
4782      32-bit offset to symbol, relative to GOT.
4783
4784  -- : BFD_RELOC_CRIS_32_PLT_GOTREL
4785      32-bit offset to symbol with PLT entry, relative to GOT.
4786
4787  -- : BFD_RELOC_CRIS_32_PLT_PCREL
4788      32-bit offset to symbol with PLT entry, relative to this
4789      relocation.
4790
4791  -- : BFD_RELOC_860_COPY
4792  -- : BFD_RELOC_860_GLOB_DAT
4793  -- : BFD_RELOC_860_JUMP_SLOT
4794  -- : BFD_RELOC_860_RELATIVE
4795  -- : BFD_RELOC_860_PC26
4796  -- : BFD_RELOC_860_PLT26
4797  -- : BFD_RELOC_860_PC16
4798  -- : BFD_RELOC_860_LOW0
4799  -- : BFD_RELOC_860_SPLIT0
4800  -- : BFD_RELOC_860_LOW1
4801  -- : BFD_RELOC_860_SPLIT1
4802  -- : BFD_RELOC_860_LOW2
4803  -- : BFD_RELOC_860_SPLIT2
4804  -- : BFD_RELOC_860_LOW3
4805  -- : BFD_RELOC_860_LOGOT0
4806  -- : BFD_RELOC_860_SPGOT0
4807  -- : BFD_RELOC_860_LOGOT1
4808  -- : BFD_RELOC_860_SPGOT1
4809  -- : BFD_RELOC_860_LOGOTOFF0
4810  -- : BFD_RELOC_860_SPGOTOFF0
4811  -- : BFD_RELOC_860_LOGOTOFF1
4812  -- : BFD_RELOC_860_SPGOTOFF1
4813  -- : BFD_RELOC_860_LOGOTOFF2
4814  -- : BFD_RELOC_860_LOGOTOFF3
4815  -- : BFD_RELOC_860_LOPC
4816  -- : BFD_RELOC_860_HIGHADJ
4817  -- : BFD_RELOC_860_HAGOT
4818  -- : BFD_RELOC_860_HAGOTOFF
4819  -- : BFD_RELOC_860_HAPC
4820  -- : BFD_RELOC_860_HIGH
4821  -- : BFD_RELOC_860_HIGOT
4822  -- : BFD_RELOC_860_HIGOTOFF
4823      Intel i860 Relocations.
4824
4825  -- : BFD_RELOC_OPENRISC_ABS_26
4826  -- : BFD_RELOC_OPENRISC_REL_26
4827      OpenRISC Relocations.
4828
4829  -- : BFD_RELOC_H8_DIR16A8
4830  -- : BFD_RELOC_H8_DIR16R8
4831  -- : BFD_RELOC_H8_DIR24A8
4832  -- : BFD_RELOC_H8_DIR24R8
4833  -- : BFD_RELOC_H8_DIR32A16
4834      H8 elf Relocations.
4835
4836  -- : BFD_RELOC_XSTORMY16_REL_12
4837  -- : BFD_RELOC_XSTORMY16_12
4838  -- : BFD_RELOC_XSTORMY16_24
4839  -- : BFD_RELOC_XSTORMY16_FPTR16
4840      Sony Xstormy16 Relocations.
4841
4842  -- : BFD_RELOC_XC16X_PAG
4843  -- : BFD_RELOC_XC16X_POF
4844  -- : BFD_RELOC_XC16X_SEG
4845  -- : BFD_RELOC_XC16X_SOF
4846      Infineon Relocations.
4847
4848  -- : BFD_RELOC_VAX_GLOB_DAT
4849  -- : BFD_RELOC_VAX_JMP_SLOT
4850  -- : BFD_RELOC_VAX_RELATIVE
4851      Relocations used by VAX ELF.
4852
4853  -- : BFD_RELOC_MT_PC16
4854      Morpho MT - 16 bit immediate relocation.
4855
4856  -- : BFD_RELOC_MT_HI16
4857      Morpho MT - Hi 16 bits of an address.
4858
4859  -- : BFD_RELOC_MT_LO16
4860      Morpho MT - Low 16 bits of an address.
4861
4862  -- : BFD_RELOC_MT_GNU_VTINHERIT
4863      Morpho MT - Used to tell the linker which vtable entries are used.
4864
4865  -- : BFD_RELOC_MT_GNU_VTENTRY
4866      Morpho MT - Used to tell the linker which vtable entries are used.
4867
4868  -- : BFD_RELOC_MT_PCINSN8
4869      Morpho MT - 8 bit immediate relocation.
4870
4871  -- : BFD_RELOC_MSP430_10_PCREL
4872  -- : BFD_RELOC_MSP430_16_PCREL
4873  -- : BFD_RELOC_MSP430_16
4874  -- : BFD_RELOC_MSP430_16_PCREL_BYTE
4875  -- : BFD_RELOC_MSP430_16_BYTE
4876  -- : BFD_RELOC_MSP430_2X_PCREL
4877  -- : BFD_RELOC_MSP430_RL_PCREL
4878      msp430 specific relocation codes
4879
4880  -- : BFD_RELOC_IQ2000_OFFSET_16
4881  -- : BFD_RELOC_IQ2000_OFFSET_21
4882  -- : BFD_RELOC_IQ2000_UHI16
4883      IQ2000 Relocations.
4884
4885  -- : BFD_RELOC_XTENSA_RTLD
4886      Special Xtensa relocation used only by PLT entries in ELF shared
4887      objects to indicate that the runtime linker should set the value
4888      to one of its own internal functions or data structures.
4889
4890  -- : BFD_RELOC_XTENSA_GLOB_DAT
4891  -- : BFD_RELOC_XTENSA_JMP_SLOT
4892  -- : BFD_RELOC_XTENSA_RELATIVE
4893      Xtensa relocations for ELF shared objects.
4894
4895  -- : BFD_RELOC_XTENSA_PLT
4896      Xtensa relocation used in ELF object files for symbols that may
4897      require PLT entries.  Otherwise, this is just a generic 32-bit
4898      relocation.
4899
4900  -- : BFD_RELOC_XTENSA_DIFF8
4901  -- : BFD_RELOC_XTENSA_DIFF16
4902  -- : BFD_RELOC_XTENSA_DIFF32
4903      Xtensa relocations to mark the difference of two local symbols.
4904      These are only needed to support linker relaxation and can be
4905      ignored when not relaxing.  The field is set to the value of the
4906      difference assuming no relaxation.  The relocation encodes the
4907      position of the first symbol so the linker can determine whether
4908      to adjust the field value.
4909
4910  -- : BFD_RELOC_XTENSA_SLOT0_OP
4911  -- : BFD_RELOC_XTENSA_SLOT1_OP
4912  -- : BFD_RELOC_XTENSA_SLOT2_OP
4913  -- : BFD_RELOC_XTENSA_SLOT3_OP
4914  -- : BFD_RELOC_XTENSA_SLOT4_OP
4915  -- : BFD_RELOC_XTENSA_SLOT5_OP
4916  -- : BFD_RELOC_XTENSA_SLOT6_OP
4917  -- : BFD_RELOC_XTENSA_SLOT7_OP
4918  -- : BFD_RELOC_XTENSA_SLOT8_OP
4919  -- : BFD_RELOC_XTENSA_SLOT9_OP
4920  -- : BFD_RELOC_XTENSA_SLOT10_OP
4921  -- : BFD_RELOC_XTENSA_SLOT11_OP
4922  -- : BFD_RELOC_XTENSA_SLOT12_OP
4923  -- : BFD_RELOC_XTENSA_SLOT13_OP
4924  -- : BFD_RELOC_XTENSA_SLOT14_OP
4925      Generic Xtensa relocations for instruction operands.  Only the slot
4926      number is encoded in the relocation.  The relocation applies to the
4927      last PC-relative immediate operand, or if there are no PC-relative
4928      immediates, to the last immediate operand.
4929
4930  -- : BFD_RELOC_XTENSA_SLOT0_ALT
4931  -- : BFD_RELOC_XTENSA_SLOT1_ALT
4932  -- : BFD_RELOC_XTENSA_SLOT2_ALT
4933  -- : BFD_RELOC_XTENSA_SLOT3_ALT
4934  -- : BFD_RELOC_XTENSA_SLOT4_ALT
4935  -- : BFD_RELOC_XTENSA_SLOT5_ALT
4936  -- : BFD_RELOC_XTENSA_SLOT6_ALT
4937  -- : BFD_RELOC_XTENSA_SLOT7_ALT
4938  -- : BFD_RELOC_XTENSA_SLOT8_ALT
4939  -- : BFD_RELOC_XTENSA_SLOT9_ALT
4940  -- : BFD_RELOC_XTENSA_SLOT10_ALT
4941  -- : BFD_RELOC_XTENSA_SLOT11_ALT
4942  -- : BFD_RELOC_XTENSA_SLOT12_ALT
4943  -- : BFD_RELOC_XTENSA_SLOT13_ALT
4944  -- : BFD_RELOC_XTENSA_SLOT14_ALT
4945      Alternate Xtensa relocations.  Only the slot is encoded in the
4946      relocation.  The meaning of these relocations is opcode-specific.
4947
4948  -- : BFD_RELOC_XTENSA_OP0
4949  -- : BFD_RELOC_XTENSA_OP1
4950  -- : BFD_RELOC_XTENSA_OP2
4951      Xtensa relocations for backward compatibility.  These have all been
4952      replaced by BFD_RELOC_XTENSA_SLOT0_OP.
4953
4954  -- : BFD_RELOC_XTENSA_ASM_EXPAND
4955      Xtensa relocation to mark that the assembler expanded the
4956      instructions from an original target.  The expansion size is
4957      encoded in the reloc size.
4958
4959  -- : BFD_RELOC_XTENSA_ASM_SIMPLIFY
4960      Xtensa relocation to mark that the linker should simplify
4961      assembler-expanded instructions.  This is commonly used internally
4962      by the linker after analysis of a BFD_RELOC_XTENSA_ASM_EXPAND.
4963
4964  -- : BFD_RELOC_Z80_DISP8
4965      8 bit signed offset in (ix+d) or (iy+d).
4966
4967  -- : BFD_RELOC_Z8K_DISP7
4968      DJNZ offset.
4969
4970  -- : BFD_RELOC_Z8K_CALLR
4971      CALR offset.
4972
4973  -- : BFD_RELOC_Z8K_IMM4L
4974      4 bit value.
4975
4976
4977      typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;
4978    
4979 2.10.2.2 `bfd_reloc_type_lookup'
4980 ................................
4981
4982 *Synopsis*
4983      reloc_howto_type *bfd_reloc_type_lookup
4984         (bfd *abfd, bfd_reloc_code_real_type code);
4985    *Description*
4986 Return a pointer to a howto structure which, when invoked, will perform
4987 the relocation CODE on data from the architecture noted.
4988
4989 2.10.2.3 `bfd_default_reloc_type_lookup'
4990 ........................................
4991
4992 *Synopsis*
4993      reloc_howto_type *bfd_default_reloc_type_lookup
4994         (bfd *abfd, bfd_reloc_code_real_type  code);
4995    *Description*
4996 Provides a default relocation lookup routine for any architecture.
4997
4998 2.10.2.4 `bfd_get_reloc_code_name'
4999 ..................................
5000
5001 *Synopsis*
5002      const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code);
5003    *Description*
5004 Provides a printable name for the supplied relocation code.  Useful
5005 mainly for printing error messages.
5006
5007 2.10.2.5 `bfd_generic_relax_section'
5008 ....................................
5009
5010 *Synopsis*
5011      bfd_boolean bfd_generic_relax_section
5012         (bfd *abfd,
5013          asection *section,
5014          struct bfd_link_info *,
5015          bfd_boolean *);
5016    *Description*
5017 Provides default handling for relaxing for back ends which don't do
5018 relaxing.
5019
5020 2.10.2.6 `bfd_generic_gc_sections'
5021 ..................................
5022
5023 *Synopsis*
5024      bfd_boolean bfd_generic_gc_sections
5025         (bfd *, struct bfd_link_info *);
5026    *Description*
5027 Provides default handling for relaxing for back ends which don't do
5028 section gc - i.e., does nothing.
5029
5030 2.10.2.7 `bfd_generic_merge_sections'
5031 .....................................
5032
5033 *Synopsis*
5034      bfd_boolean bfd_generic_merge_sections
5035         (bfd *, struct bfd_link_info *);
5036    *Description*
5037 Provides default handling for SEC_MERGE section merging for back ends
5038 which don't have SEC_MERGE support - i.e., does nothing.
5039
5040 2.10.2.8 `bfd_generic_get_relocated_section_contents'
5041 .....................................................
5042
5043 *Synopsis*
5044      bfd_byte *bfd_generic_get_relocated_section_contents
5045         (bfd *abfd,
5046          struct bfd_link_info *link_info,
5047          struct bfd_link_order *link_order,
5048          bfd_byte *data,
5049          bfd_boolean relocatable,
5050          asymbol **symbols);
5051    *Description*
5052 Provides default handling of relocation effort for back ends which
5053 can't be bothered to do it efficiently.
5054
5055 \1f
5056 File: bfd.info,  Node: Core Files,  Next: Targets,  Prev: Relocations,  Up: BFD front end
5057
5058 2.11 Core files
5059 ===============
5060
5061 2.11.1 Core file functions
5062 --------------------------
5063
5064 *Description*
5065 These are functions pertaining to core files.
5066
5067 2.11.1.1 `bfd_core_file_failing_command'
5068 ........................................
5069
5070 *Synopsis*
5071      const char *bfd_core_file_failing_command (bfd *abfd);
5072    *Description*
5073 Return a read-only string explaining which program was running when it
5074 failed and produced the core file ABFD.
5075
5076 2.11.1.2 `bfd_core_file_failing_signal'
5077 .......................................
5078
5079 *Synopsis*
5080      int bfd_core_file_failing_signal (bfd *abfd);
5081    *Description*
5082 Returns the signal number which caused the core dump which generated
5083 the file the BFD ABFD is attached to.
5084
5085 2.11.1.3 `core_file_matches_executable_p'
5086 .........................................
5087
5088 *Synopsis*
5089      bfd_boolean core_file_matches_executable_p
5090         (bfd *core_bfd, bfd *exec_bfd);
5091    *Description*
5092 Return `TRUE' if the core file attached to CORE_BFD was generated by a
5093 run of the executable file attached to EXEC_BFD, `FALSE' otherwise.
5094
5095 2.11.1.4 `generic_core_file_matches_executable_p'
5096 .................................................
5097
5098 *Synopsis*
5099      bfd_boolean generic_core_file_matches_executable_p
5100         (bfd *core_bfd, bfd *exec_bfd);
5101    *Description*
5102 Return TRUE if the core file attached to CORE_BFD was generated by a
5103 run of the executable file attached to EXEC_BFD.  The match is based on
5104 executable basenames only.
5105
5106    Note: When not able to determine the core file failing command or
5107 the executable name, we still return TRUE even though we're not sure
5108 that core file and executable match.  This is to avoid generating a
5109 false warning in situations where we really don't know whether they
5110 match or not.
5111
5112 \1f
5113 File: bfd.info,  Node: Targets,  Next: Architectures,  Prev: Core Files,  Up: BFD front end
5114
5115 2.12 Targets
5116 ============
5117
5118 *Description*
5119 Each port of BFD to a different machine requires the creation of a
5120 target back end. All the back end provides to the root part of BFD is a
5121 structure containing pointers to functions which perform certain low
5122 level operations on files. BFD translates the applications's requests
5123 through a pointer into calls to the back end routines.
5124
5125    When a file is opened with `bfd_openr', its format and target are
5126 unknown. BFD uses various mechanisms to determine how to interpret the
5127 file. The operations performed are:
5128
5129    * Create a BFD by calling the internal routine `_bfd_new_bfd', then
5130      call `bfd_find_target' with the target string supplied to
5131      `bfd_openr' and the new BFD pointer.
5132
5133    * If a null target string was provided to `bfd_find_target', look up
5134      the environment variable `GNUTARGET' and use that as the target
5135      string.
5136
5137    * If the target string is still `NULL', or the target string is
5138      `default', then use the first item in the target vector as the
5139      target type, and set `target_defaulted' in the BFD to cause
5140      `bfd_check_format' to loop through all the targets.  *Note
5141      bfd_target::.  *Note Formats::.
5142
5143    * Otherwise, inspect the elements in the target vector one by one,
5144      until a match on target name is found. When found, use it.
5145
5146    * Otherwise return the error `bfd_error_invalid_target' to
5147      `bfd_openr'.
5148
5149    * `bfd_openr' attempts to open the file using `bfd_open_file', and
5150      returns the BFD.
5151    Once the BFD has been opened and the target selected, the file
5152 format may be determined. This is done by calling `bfd_check_format' on
5153 the BFD with a suggested format.  If `target_defaulted' has been set,
5154 each possible target type is tried to see if it recognizes the
5155 specified format.  `bfd_check_format' returns `TRUE' when the caller
5156 guesses right.
5157
5158 * Menu:
5159
5160 * bfd_target::
5161
5162 \1f
5163 File: bfd.info,  Node: bfd_target,  Prev: Targets,  Up: Targets
5164
5165 2.12.1 bfd_target
5166 -----------------
5167
5168 *Description*
5169 This structure contains everything that BFD knows about a target. It
5170 includes things like its byte order, name, and which routines to call
5171 to do various operations.
5172
5173    Every BFD points to a target structure with its `xvec' member.
5174
5175    The macros below are used to dispatch to functions through the
5176 `bfd_target' vector. They are used in a number of macros further down
5177 in `bfd.h', and are also used when calling various routines by hand
5178 inside the BFD implementation.  The ARGLIST argument must be
5179 parenthesized; it contains all the arguments to the called function.
5180
5181    They make the documentation (more) unpleasant to read, so if someone
5182 wants to fix this and not break the above, please do.
5183      #define BFD_SEND(bfd, message, arglist) \
5184        ((*((bfd)->xvec->message)) arglist)
5185
5186      #ifdef DEBUG_BFD_SEND
5187      #undef BFD_SEND
5188      #define BFD_SEND(bfd, message, arglist) \
5189        (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
5190          ((*((bfd)->xvec->message)) arglist) : \
5191          (bfd_assert (__FILE__,__LINE__), NULL))
5192      #endif
5193    For operations which index on the BFD format:
5194      #define BFD_SEND_FMT(bfd, message, arglist) \
5195        (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist)
5196
5197      #ifdef DEBUG_BFD_SEND
5198      #undef BFD_SEND_FMT
5199      #define BFD_SEND_FMT(bfd, message, arglist) \
5200        (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
5201         (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist) : \
5202         (bfd_assert (__FILE__,__LINE__), NULL))
5203      #endif
5204    This is the structure which defines the type of BFD this is.  The
5205 `xvec' member of the struct `bfd' itself points here.  Each module that
5206 implements access to a different target under BFD, defines one of these.
5207
5208    FIXME, these names should be rationalised with the names of the
5209 entry points which call them. Too bad we can't have one macro to define
5210 them both!
5211      enum bfd_flavour
5212      {
5213        bfd_target_unknown_flavour,
5214        bfd_target_aout_flavour,
5215        bfd_target_coff_flavour,
5216        bfd_target_ecoff_flavour,
5217        bfd_target_xcoff_flavour,
5218        bfd_target_elf_flavour,
5219        bfd_target_ieee_flavour,
5220        bfd_target_nlm_flavour,
5221        bfd_target_oasys_flavour,
5222        bfd_target_tekhex_flavour,
5223        bfd_target_srec_flavour,
5224        bfd_target_ihex_flavour,
5225        bfd_target_som_flavour,
5226        bfd_target_os9k_flavour,
5227        bfd_target_versados_flavour,
5228        bfd_target_msdos_flavour,
5229        bfd_target_ovax_flavour,
5230        bfd_target_evax_flavour,
5231        bfd_target_mmo_flavour,
5232        bfd_target_mach_o_flavour,
5233        bfd_target_pef_flavour,
5234        bfd_target_pef_xlib_flavour,
5235        bfd_target_sym_flavour
5236      };
5237
5238      enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN };
5239
5240      /* Forward declaration.  */
5241      typedef struct bfd_link_info _bfd_link_info;
5242
5243      typedef struct bfd_target
5244      {
5245        /* Identifies the kind of target, e.g., SunOS4, Ultrix, etc.  */
5246        char *name;
5247
5248       /* The "flavour" of a back end is a general indication about
5249          the contents of a file.  */
5250        enum bfd_flavour flavour;
5251
5252        /* The order of bytes within the data area of a file.  */
5253        enum bfd_endian byteorder;
5254
5255       /* The order of bytes within the header parts of a file.  */
5256        enum bfd_endian header_byteorder;
5257
5258        /* A mask of all the flags which an executable may have set -
5259           from the set `BFD_NO_FLAGS', `HAS_RELOC', ...`D_PAGED'.  */
5260        flagword object_flags;
5261
5262       /* A mask of all the flags which a section may have set - from
5263          the set `SEC_NO_FLAGS', `SEC_ALLOC', ...`SET_NEVER_LOAD'.  */
5264        flagword section_flags;
5265
5266       /* The character normally found at the front of a symbol.
5267          (if any), perhaps `_'.  */
5268        char symbol_leading_char;
5269
5270       /* The pad character for file names within an archive header.  */
5271        char ar_pad_char;
5272
5273        /* The maximum number of characters in an archive header.  */
5274        unsigned short ar_max_namelen;
5275
5276        /* Entries for byte swapping for data. These are different from the
5277           other entry points, since they don't take a BFD as the first argument.
5278           Certain other handlers could do the same.  */
5279        bfd_uint64_t   (*bfd_getx64) (const void *);
5280        bfd_int64_t    (*bfd_getx_signed_64) (const void *);
5281        void           (*bfd_putx64) (bfd_uint64_t, void *);
5282        bfd_vma        (*bfd_getx32) (const void *);
5283        bfd_signed_vma (*bfd_getx_signed_32) (const void *);
5284        void           (*bfd_putx32) (bfd_vma, void *);
5285        bfd_vma        (*bfd_getx16) (const void *);
5286        bfd_signed_vma (*bfd_getx_signed_16) (const void *);
5287        void           (*bfd_putx16) (bfd_vma, void *);
5288
5289        /* Byte swapping for the headers.  */
5290        bfd_uint64_t   (*bfd_h_getx64) (const void *);
5291        bfd_int64_t    (*bfd_h_getx_signed_64) (const void *);
5292        void           (*bfd_h_putx64) (bfd_uint64_t, void *);
5293        bfd_vma        (*bfd_h_getx32) (const void *);
5294        bfd_signed_vma (*bfd_h_getx_signed_32) (const void *);
5295        void           (*bfd_h_putx32) (bfd_vma, void *);
5296        bfd_vma        (*bfd_h_getx16) (const void *);
5297        bfd_signed_vma (*bfd_h_getx_signed_16) (const void *);
5298        void           (*bfd_h_putx16) (bfd_vma, void *);
5299
5300        /* Format dependent routines: these are vectors of entry points
5301           within the target vector structure, one for each format to check.  */
5302
5303        /* Check the format of a file being read.  Return a `bfd_target *' or zero.  */
5304        const struct bfd_target *(*_bfd_check_format[bfd_type_end]) (bfd *);
5305
5306        /* Set the format of a file being written.  */
5307        bfd_boolean (*_bfd_set_format[bfd_type_end]) (bfd *);
5308
5309        /* Write cached information into a file being written, at `bfd_close'.  */
5310        bfd_boolean (*_bfd_write_contents[bfd_type_end]) (bfd *);
5311    The general target vector.  These vectors are initialized using the
5312 BFD_JUMP_TABLE macros.
5313
5314        /* Generic entry points.  */
5315      #define BFD_JUMP_TABLE_GENERIC(NAME) \
5316        NAME##_close_and_cleanup, \
5317        NAME##_bfd_free_cached_info, \
5318        NAME##_new_section_hook, \
5319        NAME##_get_section_contents, \
5320        NAME##_get_section_contents_in_window
5321
5322        /* Called when the BFD is being closed to do any necessary cleanup.  */
5323        bfd_boolean (*_close_and_cleanup) (bfd *);
5324        /* Ask the BFD to free all cached information.  */
5325        bfd_boolean (*_bfd_free_cached_info) (bfd *);
5326        /* Called when a new section is created.  */
5327        bfd_boolean (*_new_section_hook) (bfd *, sec_ptr);
5328        /* Read the contents of a section.  */
5329        bfd_boolean (*_bfd_get_section_contents)
5330          (bfd *, sec_ptr, void *, file_ptr, bfd_size_type);
5331        bfd_boolean (*_bfd_get_section_contents_in_window)
5332          (bfd *, sec_ptr, bfd_window *, file_ptr, bfd_size_type);
5333
5334        /* Entry points to copy private data.  */
5335      #define BFD_JUMP_TABLE_COPY(NAME) \
5336        NAME##_bfd_copy_private_bfd_data, \
5337        NAME##_bfd_merge_private_bfd_data, \
5338        _bfd_generic_init_private_section_data, \
5339        NAME##_bfd_copy_private_section_data, \
5340        NAME##_bfd_copy_private_symbol_data, \
5341        NAME##_bfd_copy_private_header_data, \
5342        NAME##_bfd_set_private_flags, \
5343        NAME##_bfd_print_private_bfd_data
5344
5345        /* Called to copy BFD general private data from one object file
5346           to another.  */
5347        bfd_boolean (*_bfd_copy_private_bfd_data) (bfd *, bfd *);
5348        /* Called to merge BFD general private data from one object file
5349           to a common output file when linking.  */
5350        bfd_boolean (*_bfd_merge_private_bfd_data) (bfd *, bfd *);
5351        /* Called to initialize BFD private section data from one object file
5352           to another.  */
5353      #define bfd_init_private_section_data(ibfd, isec, obfd, osec, link_info) \
5354        BFD_SEND (obfd, _bfd_init_private_section_data, (ibfd, isec, obfd, osec, link_info))
5355        bfd_boolean (*_bfd_init_private_section_data)
5356          (bfd *, sec_ptr, bfd *, sec_ptr, struct bfd_link_info *);
5357        /* Called to copy BFD private section data from one object file
5358           to another.  */
5359        bfd_boolean (*_bfd_copy_private_section_data)
5360          (bfd *, sec_ptr, bfd *, sec_ptr);
5361        /* Called to copy BFD private symbol data from one symbol
5362           to another.  */
5363        bfd_boolean (*_bfd_copy_private_symbol_data)
5364          (bfd *, asymbol *, bfd *, asymbol *);
5365        /* Called to copy BFD private header data from one object file
5366           to another.  */
5367        bfd_boolean (*_bfd_copy_private_header_data)
5368          (bfd *, bfd *);
5369        /* Called to set private backend flags.  */
5370        bfd_boolean (*_bfd_set_private_flags) (bfd *, flagword);
5371
5372        /* Called to print private BFD data.  */
5373        bfd_boolean (*_bfd_print_private_bfd_data) (bfd *, void *);
5374
5375        /* Core file entry points.  */
5376      #define BFD_JUMP_TABLE_CORE(NAME) \
5377        NAME##_core_file_failing_command, \
5378        NAME##_core_file_failing_signal, \
5379        NAME##_core_file_matches_executable_p
5380
5381        char *      (*_core_file_failing_command) (bfd *);
5382        int         (*_core_file_failing_signal) (bfd *);
5383        bfd_boolean (*_core_file_matches_executable_p) (bfd *, bfd *);
5384
5385        /* Archive entry points.  */
5386      #define BFD_JUMP_TABLE_ARCHIVE(NAME) \
5387        NAME##_slurp_armap, \
5388        NAME##_slurp_extended_name_table, \
5389        NAME##_construct_extended_name_table, \
5390        NAME##_truncate_arname, \
5391        NAME##_write_armap, \
5392        NAME##_read_ar_hdr, \
5393        NAME##_openr_next_archived_file, \
5394        NAME##_get_elt_at_index, \
5395        NAME##_generic_stat_arch_elt, \
5396        NAME##_update_armap_timestamp
5397
5398        bfd_boolean (*_bfd_slurp_armap) (bfd *);
5399        bfd_boolean (*_bfd_slurp_extended_name_table) (bfd *);
5400        bfd_boolean (*_bfd_construct_extended_name_table)
5401          (bfd *, char **, bfd_size_type *, const char **);
5402        void        (*_bfd_truncate_arname) (bfd *, const char *, char *);
5403        bfd_boolean (*write_armap)
5404          (bfd *, unsigned int, struct orl *, unsigned int, int);
5405        void *      (*_bfd_read_ar_hdr_fn) (bfd *);
5406        bfd *       (*openr_next_archived_file) (bfd *, bfd *);
5407      #define bfd_get_elt_at_index(b,i) BFD_SEND (b, _bfd_get_elt_at_index, (b,i))
5408        bfd *       (*_bfd_get_elt_at_index) (bfd *, symindex);
5409        int         (*_bfd_stat_arch_elt) (bfd *, struct stat *);
5410        bfd_boolean (*_bfd_update_armap_timestamp) (bfd *);
5411
5412        /* Entry points used for symbols.  */
5413      #define BFD_JUMP_TABLE_SYMBOLS(NAME) \
5414        NAME##_get_symtab_upper_bound, \
5415        NAME##_canonicalize_symtab, \
5416        NAME##_make_empty_symbol, \
5417        NAME##_print_symbol, \
5418        NAME##_get_symbol_info, \
5419        NAME##_bfd_is_local_label_name, \
5420        NAME##_bfd_is_target_special_symbol, \
5421        NAME##_get_lineno, \
5422        NAME##_find_nearest_line, \
5423        _bfd_generic_find_line, \
5424        NAME##_find_inliner_info, \
5425        NAME##_bfd_make_debug_symbol, \
5426        NAME##_read_minisymbols, \
5427        NAME##_minisymbol_to_symbol
5428
5429        long        (*_bfd_get_symtab_upper_bound) (bfd *);
5430        long        (*_bfd_canonicalize_symtab)
5431          (bfd *, struct bfd_symbol **);
5432        struct bfd_symbol *
5433                    (*_bfd_make_empty_symbol) (bfd *);
5434        void        (*_bfd_print_symbol)
5435          (bfd *, void *, struct bfd_symbol *, bfd_print_symbol_type);
5436      #define bfd_print_symbol(b,p,s,e) BFD_SEND (b, _bfd_print_symbol, (b,p,s,e))
5437        void        (*_bfd_get_symbol_info)
5438          (bfd *, struct bfd_symbol *, symbol_info *);
5439      #define bfd_get_symbol_info(b,p,e) BFD_SEND (b, _bfd_get_symbol_info, (b,p,e))
5440        bfd_boolean (*_bfd_is_local_label_name) (bfd *, const char *);
5441        bfd_boolean (*_bfd_is_target_special_symbol) (bfd *, asymbol *);
5442        alent *     (*_get_lineno) (bfd *, struct bfd_symbol *);
5443        bfd_boolean (*_bfd_find_nearest_line)
5444          (bfd *, struct bfd_section *, struct bfd_symbol **, bfd_vma,
5445           const char **, const char **, unsigned int *);
5446        bfd_boolean (*_bfd_find_line)
5447          (bfd *, struct bfd_symbol **, struct bfd_symbol *,
5448           const char **, unsigned int *);
5449        bfd_boolean (*_bfd_find_inliner_info)
5450          (bfd *, const char **, const char **, unsigned int *);
5451       /* Back-door to allow format-aware applications to create debug symbols
5452          while using BFD for everything else.  Currently used by the assembler
5453          when creating COFF files.  */
5454        asymbol *   (*_bfd_make_debug_symbol)
5455          (bfd *, void *, unsigned long size);
5456      #define bfd_read_minisymbols(b, d, m, s) \
5457        BFD_SEND (b, _read_minisymbols, (b, d, m, s))
5458        long        (*_read_minisymbols)
5459          (bfd *, bfd_boolean, void **, unsigned int *);
5460      #define bfd_minisymbol_to_symbol(b, d, m, f) \
5461        BFD_SEND (b, _minisymbol_to_symbol, (b, d, m, f))
5462        asymbol *   (*_minisymbol_to_symbol)
5463          (bfd *, bfd_boolean, const void *, asymbol *);
5464
5465        /* Routines for relocs.  */
5466      #define BFD_JUMP_TABLE_RELOCS(NAME) \
5467        NAME##_get_reloc_upper_bound, \
5468        NAME##_canonicalize_reloc, \
5469        NAME##_bfd_reloc_type_lookup
5470
5471        long        (*_get_reloc_upper_bound) (bfd *, sec_ptr);
5472        long        (*_bfd_canonicalize_reloc)
5473          (bfd *, sec_ptr, arelent **, struct bfd_symbol **);
5474        /* See documentation on reloc types.  */
5475        reloc_howto_type *
5476                    (*reloc_type_lookup) (bfd *, bfd_reloc_code_real_type);
5477
5478        /* Routines used when writing an object file.  */
5479      #define BFD_JUMP_TABLE_WRITE(NAME) \
5480        NAME##_set_arch_mach, \
5481        NAME##_set_section_contents
5482
5483        bfd_boolean (*_bfd_set_arch_mach)
5484          (bfd *, enum bfd_architecture, unsigned long);
5485        bfd_boolean (*_bfd_set_section_contents)
5486          (bfd *, sec_ptr, const void *, file_ptr, bfd_size_type);
5487
5488        /* Routines used by the linker.  */
5489      #define BFD_JUMP_TABLE_LINK(NAME) \
5490        NAME##_sizeof_headers, \
5491        NAME##_bfd_get_relocated_section_contents, \
5492        NAME##_bfd_relax_section, \
5493        NAME##_bfd_link_hash_table_create, \
5494        NAME##_bfd_link_hash_table_free, \
5495        NAME##_bfd_link_add_symbols, \
5496        NAME##_bfd_link_just_syms, \
5497        NAME##_bfd_final_link, \
5498        NAME##_bfd_link_split_section, \
5499        NAME##_bfd_gc_sections, \
5500        NAME##_bfd_merge_sections, \
5501        NAME##_bfd_is_group_section, \
5502        NAME##_bfd_discard_group, \
5503        NAME##_section_already_linked \
5504
5505        int         (*_bfd_sizeof_headers) (bfd *, bfd_boolean);
5506        bfd_byte *  (*_bfd_get_relocated_section_contents)
5507          (bfd *, struct bfd_link_info *, struct bfd_link_order *,
5508           bfd_byte *, bfd_boolean, struct bfd_symbol **);
5509
5510        bfd_boolean (*_bfd_relax_section)
5511          (bfd *, struct bfd_section *, struct bfd_link_info *, bfd_boolean *);
5512
5513        /* Create a hash table for the linker.  Different backends store
5514           different information in this table.  */
5515        struct bfd_link_hash_table *
5516                    (*_bfd_link_hash_table_create) (bfd *);
5517
5518        /* Release the memory associated with the linker hash table.  */
5519        void        (*_bfd_link_hash_table_free) (struct bfd_link_hash_table *);
5520
5521        /* Add symbols from this object file into the hash table.  */
5522        bfd_boolean (*_bfd_link_add_symbols) (bfd *, struct bfd_link_info *);
5523
5524        /* Indicate that we are only retrieving symbol values from this section.  */
5525        void        (*_bfd_link_just_syms) (asection *, struct bfd_link_info *);
5526
5527        /* Do a link based on the link_order structures attached to each
5528           section of the BFD.  */
5529        bfd_boolean (*_bfd_final_link) (bfd *, struct bfd_link_info *);
5530
5531        /* Should this section be split up into smaller pieces during linking.  */
5532        bfd_boolean (*_bfd_link_split_section) (bfd *, struct bfd_section *);
5533
5534        /* Remove sections that are not referenced from the output.  */
5535        bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *);
5536
5537        /* Attempt to merge SEC_MERGE sections.  */
5538        bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *);
5539
5540        /* Is this section a member of a group?  */
5541        bfd_boolean (*_bfd_is_group_section) (bfd *, const struct bfd_section *);
5542
5543        /* Discard members of a group.  */
5544        bfd_boolean (*_bfd_discard_group) (bfd *, struct bfd_section *);
5545
5546        /* Check if SEC has been already linked during a reloceatable or
5547           final link.  */
5548        void (*_section_already_linked) (bfd *, struct bfd_section *);
5549
5550        /* Routines to handle dynamic symbols and relocs.  */
5551      #define BFD_JUMP_TABLE_DYNAMIC(NAME) \
5552        NAME##_get_dynamic_symtab_upper_bound, \
5553        NAME##_canonicalize_dynamic_symtab, \
5554        NAME##_get_synthetic_symtab, \
5555        NAME##_get_dynamic_reloc_upper_bound, \
5556        NAME##_canonicalize_dynamic_reloc
5557
5558        /* Get the amount of memory required to hold the dynamic symbols.  */
5559        long        (*_bfd_get_dynamic_symtab_upper_bound) (bfd *);
5560        /* Read in the dynamic symbols.  */
5561        long        (*_bfd_canonicalize_dynamic_symtab)
5562          (bfd *, struct bfd_symbol **);
5563        /* Create synthetized symbols.  */
5564        long        (*_bfd_get_synthetic_symtab)
5565          (bfd *, long, struct bfd_symbol **, long, struct bfd_symbol **,
5566           struct bfd_symbol **);
5567        /* Get the amount of memory required to hold the dynamic relocs.  */
5568        long        (*_bfd_get_dynamic_reloc_upper_bound) (bfd *);
5569        /* Read in the dynamic relocs.  */
5570        long        (*_bfd_canonicalize_dynamic_reloc)
5571          (bfd *, arelent **, struct bfd_symbol **);
5572    A pointer to an alternative bfd_target in case the current one is not
5573 satisfactory.  This can happen when the target cpu supports both big
5574 and little endian code, and target chosen by the linker has the wrong
5575 endianness.  The function open_output() in ld/ldlang.c uses this field
5576 to find an alternative output format that is suitable.
5577        /* Opposite endian version of this target.  */
5578        const struct bfd_target * alternative_target;
5579
5580        /* Data for use by back-end routines, which isn't
5581           generic enough to belong in this structure.  */
5582        const void *backend_data;
5583
5584      } bfd_target;
5585
5586 2.12.1.1 `bfd_set_default_target'
5587 .................................
5588
5589 *Synopsis*
5590      bfd_boolean bfd_set_default_target (const char *name);
5591    *Description*
5592 Set the default target vector to use when recognizing a BFD.  This
5593 takes the name of the target, which may be a BFD target name or a
5594 configuration triplet.
5595
5596 2.12.1.2 `bfd_find_target'
5597 ..........................
5598
5599 *Synopsis*
5600      const bfd_target *bfd_find_target (const char *target_name, bfd *abfd);
5601    *Description*
5602 Return a pointer to the transfer vector for the object target named
5603 TARGET_NAME.  If TARGET_NAME is `NULL', choose the one in the
5604 environment variable `GNUTARGET'; if that is null or not defined, then
5605 choose the first entry in the target list.  Passing in the string
5606 "default" or setting the environment variable to "default" will cause
5607 the first entry in the target list to be returned, and
5608 "target_defaulted" will be set in the BFD.  This causes
5609 `bfd_check_format' to loop over all the targets to find the one that
5610 matches the file being read.
5611
5612 2.12.1.3 `bfd_target_list'
5613 ..........................
5614
5615 *Synopsis*
5616      const char ** bfd_target_list (void);
5617    *Description*
5618 Return a freshly malloced NULL-terminated vector of the names of all
5619 the valid BFD targets. Do not modify the names.
5620
5621 2.12.1.4 `bfd_seach_for_target'
5622 ...............................
5623
5624 *Synopsis*
5625      const bfd_target *bfd_search_for_target
5626         (int (*search_func) (const bfd_target *, void *),
5627          void *);
5628    *Description*
5629 Return a pointer to the first transfer vector in the list of transfer
5630 vectors maintained by BFD that produces a non-zero result when passed
5631 to the function SEARCH_FUNC.  The parameter DATA is passed, unexamined,
5632 to the search function.
5633
5634 \1f
5635 File: bfd.info,  Node: Architectures,  Next: Opening and Closing,  Prev: Targets,  Up: BFD front end
5636
5637 2.13 Architectures
5638 ==================
5639
5640 BFD keeps one atom in a BFD describing the architecture of the data
5641 attached to the BFD: a pointer to a `bfd_arch_info_type'.
5642
5643    Pointers to structures can be requested independently of a BFD so
5644 that an architecture's information can be interrogated without access
5645 to an open BFD.
5646
5647    The architecture information is provided by each architecture
5648 package.  The set of default architectures is selected by the macro
5649 `SELECT_ARCHITECTURES'.  This is normally set up in the
5650 `config/TARGET.mt' file of your choice.  If the name is not defined,
5651 then all the architectures supported are included.
5652
5653    When BFD starts up, all the architectures are called with an
5654 initialize method.  It is up to the architecture back end to insert as
5655 many items into the list of architectures as it wants to; generally
5656 this would be one for each machine and one for the default case (an
5657 item with a machine field of 0).
5658
5659    BFD's idea of an architecture is implemented in `archures.c'.
5660
5661 2.13.1 bfd_architecture
5662 -----------------------
5663
5664 *Description*
5665 This enum gives the object file's CPU architecture, in a global
5666 sense--i.e., what processor family does it belong to?  Another field
5667 indicates which processor within the family is in use.  The machine
5668 gives a number which distinguishes different versions of the
5669 architecture, containing, for example, 2 and 3 for Intel i960 KA and
5670 i960 KB, and 68020 and 68030 for Motorola 68020 and 68030.
5671      enum bfd_architecture
5672      {
5673        bfd_arch_unknown,   /* File arch not known.  */
5674        bfd_arch_obscure,   /* Arch known, not one of these.  */
5675        bfd_arch_m68k,      /* Motorola 68xxx */
5676      #define bfd_mach_m68000 1
5677      #define bfd_mach_m68008 2
5678      #define bfd_mach_m68010 3
5679      #define bfd_mach_m68020 4
5680      #define bfd_mach_m68030 5
5681      #define bfd_mach_m68040 6
5682      #define bfd_mach_m68060 7
5683      #define bfd_mach_cpu32  8
5684      #define bfd_mach_mcf_isa_a_nodiv 9
5685      #define bfd_mach_mcf_isa_a 10
5686      #define bfd_mach_mcf_isa_a_mac 11
5687      #define bfd_mach_mcf_isa_a_emac 12
5688      #define bfd_mach_mcf_isa_aplus 13
5689      #define bfd_mach_mcf_isa_aplus_mac 14
5690      #define bfd_mach_mcf_isa_aplus_emac 15
5691      #define bfd_mach_mcf_isa_b_nousp 16
5692      #define bfd_mach_mcf_isa_b_nousp_mac 17
5693      #define bfd_mach_mcf_isa_b_nousp_emac 18
5694      #define bfd_mach_mcf_isa_b 19
5695      #define bfd_mach_mcf_isa_b_mac 20
5696      #define bfd_mach_mcf_isa_b_emac 21
5697      #define bfd_mach_mcf_isa_b_float 22
5698      #define bfd_mach_mcf_isa_b_float_mac 23
5699      #define bfd_mach_mcf_isa_b_float_emac 24
5700        bfd_arch_vax,       /* DEC Vax */
5701        bfd_arch_i960,      /* Intel 960 */
5702          /* The order of the following is important.
5703             lower number indicates a machine type that
5704             only accepts a subset of the instructions
5705             available to machines with higher numbers.
5706             The exception is the "ca", which is
5707             incompatible with all other machines except
5708             "core".  */
5709
5710      #define bfd_mach_i960_core      1
5711      #define bfd_mach_i960_ka_sa     2
5712      #define bfd_mach_i960_kb_sb     3
5713      #define bfd_mach_i960_mc        4
5714      #define bfd_mach_i960_xa        5
5715      #define bfd_mach_i960_ca        6
5716      #define bfd_mach_i960_jx        7
5717      #define bfd_mach_i960_hx        8
5718
5719        bfd_arch_or32,      /* OpenRISC 32 */
5720
5721        bfd_arch_sparc,     /* SPARC */
5722      #define bfd_mach_sparc                 1
5723      /* The difference between v8plus and v9 is that v9 is a true 64 bit env.  */
5724      #define bfd_mach_sparc_sparclet        2
5725      #define bfd_mach_sparc_sparclite       3
5726      #define bfd_mach_sparc_v8plus          4
5727      #define bfd_mach_sparc_v8plusa         5 /* with ultrasparc add'ns.  */
5728      #define bfd_mach_sparc_sparclite_le    6
5729      #define bfd_mach_sparc_v9              7
5730      #define bfd_mach_sparc_v9a             8 /* with ultrasparc add'ns.  */
5731      #define bfd_mach_sparc_v8plusb         9 /* with cheetah add'ns.  */
5732      #define bfd_mach_sparc_v9b             10 /* with cheetah add'ns.  */
5733      /* Nonzero if MACH has the v9 instruction set.  */
5734      #define bfd_mach_sparc_v9_p(mach) \
5735        ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9b \
5736         && (mach) != bfd_mach_sparc_sparclite_le)
5737      /* Nonzero if MACH is a 64 bit sparc architecture.  */
5738      #define bfd_mach_sparc_64bit_p(mach) \
5739        ((mach) >= bfd_mach_sparc_v9 && (mach) != bfd_mach_sparc_v8plusb)
5740        bfd_arch_mips,      /* MIPS Rxxxx */
5741      #define bfd_mach_mips3000              3000
5742      #define bfd_mach_mips3900              3900
5743      #define bfd_mach_mips4000              4000
5744      #define bfd_mach_mips4010              4010
5745      #define bfd_mach_mips4100              4100
5746      #define bfd_mach_mips4111              4111
5747      #define bfd_mach_mips4120              4120
5748      #define bfd_mach_mips4300              4300
5749      #define bfd_mach_mips4400              4400
5750      #define bfd_mach_mips4600              4600
5751      #define bfd_mach_mips4650              4650
5752      #define bfd_mach_mips5000              5000
5753      #define bfd_mach_mips5400              5400
5754      #define bfd_mach_mips5500              5500
5755      #define bfd_mach_mips6000              6000
5756      #define bfd_mach_mips7000              7000
5757      #define bfd_mach_mips8000              8000
5758      #define bfd_mach_mips9000              9000
5759      #define bfd_mach_mips10000             10000
5760      #define bfd_mach_mips12000             12000
5761      #define bfd_mach_mips16                16
5762      #define bfd_mach_mips5                 5
5763      #define bfd_mach_mips_sb1              12310201 /* octal 'SB', 01 */
5764      #define bfd_mach_mipsisa32             32
5765      #define bfd_mach_mipsisa32r2           33
5766      #define bfd_mach_mipsisa64             64
5767      #define bfd_mach_mipsisa64r2           65
5768        bfd_arch_i386,      /* Intel 386 */
5769      #define bfd_mach_i386_i386 1
5770      #define bfd_mach_i386_i8086 2
5771      #define bfd_mach_i386_i386_intel_syntax 3
5772      #define bfd_mach_x86_64 64
5773      #define bfd_mach_x86_64_intel_syntax 65
5774        bfd_arch_we32k,     /* AT&T WE32xxx */
5775        bfd_arch_tahoe,     /* CCI/Harris Tahoe */
5776        bfd_arch_i860,      /* Intel 860 */
5777        bfd_arch_i370,      /* IBM 360/370 Mainframes */
5778        bfd_arch_romp,      /* IBM ROMP PC/RT */
5779        bfd_arch_convex,    /* Convex */
5780        bfd_arch_m88k,      /* Motorola 88xxx */
5781        bfd_arch_m98k,      /* Motorola 98xxx */
5782        bfd_arch_pyramid,   /* Pyramid Technology */
5783        bfd_arch_h8300,     /* Renesas H8/300 (formerly Hitachi H8/300) */
5784      #define bfd_mach_h8300    1
5785      #define bfd_mach_h8300h   2
5786      #define bfd_mach_h8300s   3
5787      #define bfd_mach_h8300hn  4
5788      #define bfd_mach_h8300sn  5
5789      #define bfd_mach_h8300sx  6
5790      #define bfd_mach_h8300sxn 7
5791        bfd_arch_pdp11,     /* DEC PDP-11 */
5792        bfd_arch_powerpc,   /* PowerPC */
5793      #define bfd_mach_ppc           32
5794      #define bfd_mach_ppc64         64
5795      #define bfd_mach_ppc_403       403
5796      #define bfd_mach_ppc_403gc     4030
5797      #define bfd_mach_ppc_505       505
5798      #define bfd_mach_ppc_601       601
5799      #define bfd_mach_ppc_602       602
5800      #define bfd_mach_ppc_603       603
5801      #define bfd_mach_ppc_ec603e    6031
5802      #define bfd_mach_ppc_604       604
5803      #define bfd_mach_ppc_620       620
5804      #define bfd_mach_ppc_630       630
5805      #define bfd_mach_ppc_750       750
5806      #define bfd_mach_ppc_860       860
5807      #define bfd_mach_ppc_a35       35
5808      #define bfd_mach_ppc_rs64ii    642
5809      #define bfd_mach_ppc_rs64iii   643
5810      #define bfd_mach_ppc_7400      7400
5811      #define bfd_mach_ppc_e500      500
5812        bfd_arch_rs6000,    /* IBM RS/6000 */
5813      #define bfd_mach_rs6k          6000
5814      #define bfd_mach_rs6k_rs1      6001
5815      #define bfd_mach_rs6k_rsc      6003
5816      #define bfd_mach_rs6k_rs2      6002
5817        bfd_arch_hppa,      /* HP PA RISC */
5818      #define bfd_mach_hppa10        10
5819      #define bfd_mach_hppa11        11
5820      #define bfd_mach_hppa20        20
5821      #define bfd_mach_hppa20w       25
5822        bfd_arch_d10v,      /* Mitsubishi D10V */
5823      #define bfd_mach_d10v          1
5824      #define bfd_mach_d10v_ts2      2
5825      #define bfd_mach_d10v_ts3      3
5826        bfd_arch_d30v,      /* Mitsubishi D30V */
5827        bfd_arch_dlx,       /* DLX */
5828        bfd_arch_m68hc11,   /* Motorola 68HC11 */
5829        bfd_arch_m68hc12,   /* Motorola 68HC12 */
5830      #define bfd_mach_m6812_default 0
5831      #define bfd_mach_m6812         1
5832      #define bfd_mach_m6812s        2
5833        bfd_arch_z8k,       /* Zilog Z8000 */
5834      #define bfd_mach_z8001         1
5835      #define bfd_mach_z8002         2
5836        bfd_arch_h8500,     /* Renesas H8/500 (formerly Hitachi H8/500) */
5837        bfd_arch_sh,        /* Renesas / SuperH SH (formerly Hitachi SH) */
5838      #define bfd_mach_sh            1
5839      #define bfd_mach_sh2        0x20
5840      #define bfd_mach_sh_dsp     0x2d
5841      #define bfd_mach_sh2a       0x2a
5842      #define bfd_mach_sh2a_nofpu 0x2b
5843      #define bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu 0x2a1
5844      #define bfd_mach_sh2a_nofpu_or_sh3_nommu 0x2a2
5845      #define bfd_mach_sh2a_or_sh4  0x2a3
5846      #define bfd_mach_sh2a_or_sh3e 0x2a4
5847      #define bfd_mach_sh2e       0x2e
5848      #define bfd_mach_sh3        0x30
5849      #define bfd_mach_sh3_nommu  0x31
5850      #define bfd_mach_sh3_dsp    0x3d
5851      #define bfd_mach_sh3e       0x3e
5852      #define bfd_mach_sh4        0x40
5853      #define bfd_mach_sh4_nofpu  0x41
5854      #define bfd_mach_sh4_nommu_nofpu  0x42
5855      #define bfd_mach_sh4a       0x4a
5856      #define bfd_mach_sh4a_nofpu 0x4b
5857      #define bfd_mach_sh4al_dsp  0x4d
5858      #define bfd_mach_sh5        0x50
5859        bfd_arch_alpha,     /* Dec Alpha */
5860      #define bfd_mach_alpha_ev4  0x10
5861      #define bfd_mach_alpha_ev5  0x20
5862      #define bfd_mach_alpha_ev6  0x30
5863        bfd_arch_arm,       /* Advanced Risc Machines ARM.  */
5864      #define bfd_mach_arm_unknown   0
5865      #define bfd_mach_arm_2         1
5866      #define bfd_mach_arm_2a        2
5867      #define bfd_mach_arm_3         3
5868      #define bfd_mach_arm_3M        4
5869      #define bfd_mach_arm_4         5
5870      #define bfd_mach_arm_4T        6
5871      #define bfd_mach_arm_5         7
5872      #define bfd_mach_arm_5T        8
5873      #define bfd_mach_arm_5TE       9
5874      #define bfd_mach_arm_XScale    10
5875      #define bfd_mach_arm_ep9312    11
5876      #define bfd_mach_arm_iWMMXt    12
5877        bfd_arch_ns32k,     /* National Semiconductors ns32000 */
5878        bfd_arch_w65,       /* WDC 65816 */
5879        bfd_arch_tic30,     /* Texas Instruments TMS320C30 */
5880        bfd_arch_tic4x,     /* Texas Instruments TMS320C3X/4X */
5881      #define bfd_mach_tic3x         30
5882      #define bfd_mach_tic4x         40
5883        bfd_arch_tic54x,    /* Texas Instruments TMS320C54X */
5884        bfd_arch_tic80,     /* TI TMS320c80 (MVP) */
5885        bfd_arch_v850,      /* NEC V850 */
5886      #define bfd_mach_v850          1
5887      #define bfd_mach_v850e         'E'
5888      #define bfd_mach_v850e1        '1'
5889        bfd_arch_arc,       /* ARC Cores */
5890      #define bfd_mach_arc_5         5
5891      #define bfd_mach_arc_6         6
5892      #define bfd_mach_arc_7         7
5893      #define bfd_mach_arc_8         8
5894       bfd_arch_m32c,     /* Renesas M16C/M32C.  */
5895      #define bfd_mach_m16c        0x75
5896      #define bfd_mach_m32c        0x78
5897        bfd_arch_m32r,      /* Renesas M32R (formerly Mitsubishi M32R/D) */
5898      #define bfd_mach_m32r          1 /* For backwards compatibility.  */
5899      #define bfd_mach_m32rx         'x'
5900      #define bfd_mach_m32r2         '2'
5901        bfd_arch_mn10200,   /* Matsushita MN10200 */
5902        bfd_arch_mn10300,   /* Matsushita MN10300 */
5903      #define bfd_mach_mn10300               300
5904      #define bfd_mach_am33          330
5905      #define bfd_mach_am33_2        332
5906        bfd_arch_fr30,
5907      #define bfd_mach_fr30          0x46523330
5908        bfd_arch_frv,
5909      #define bfd_mach_frv           1
5910      #define bfd_mach_frvsimple     2
5911      #define bfd_mach_fr300         300
5912      #define bfd_mach_fr400         400
5913      #define bfd_mach_fr450         450
5914      #define bfd_mach_frvtomcat     499     /* fr500 prototype */
5915      #define bfd_mach_fr500         500
5916      #define bfd_mach_fr550         550
5917        bfd_arch_mcore,
5918        bfd_arch_ia64,      /* HP/Intel ia64 */
5919      #define bfd_mach_ia64_elf64    64
5920      #define bfd_mach_ia64_elf32    32
5921        bfd_arch_ip2k,      /* Ubicom IP2K microcontrollers. */
5922      #define bfd_mach_ip2022        1
5923      #define bfd_mach_ip2022ext     2
5924       bfd_arch_iq2000,     /* Vitesse IQ2000.  */
5925      #define bfd_mach_iq2000        1
5926      #define bfd_mach_iq10          2
5927        bfd_arch_mt,
5928      #define bfd_mach_ms1           1
5929      #define bfd_mach_mrisc2        2
5930      #define bfd_mach_ms2           3
5931        bfd_arch_pj,
5932        bfd_arch_avr,       /* Atmel AVR microcontrollers.  */
5933      #define bfd_mach_avr1          1
5934      #define bfd_mach_avr2          2
5935      #define bfd_mach_avr3          3
5936      #define bfd_mach_avr4          4
5937      #define bfd_mach_avr5          5
5938        bfd_arch_bfin,        /* ADI Blackfin */
5939      #define bfd_mach_bfin          1
5940        bfd_arch_cr16c,       /* National Semiconductor CompactRISC. */
5941      #define bfd_mach_cr16c         1
5942        bfd_arch_crx,       /*  National Semiconductor CRX.  */
5943      #define bfd_mach_crx           1
5944        bfd_arch_cris,      /* Axis CRIS */
5945      #define bfd_mach_cris_v0_v10   255
5946      #define bfd_mach_cris_v32      32
5947      #define bfd_mach_cris_v10_v32  1032
5948        bfd_arch_s390,      /* IBM s390 */
5949      #define bfd_mach_s390_31       31
5950      #define bfd_mach_s390_64       64
5951        bfd_arch_openrisc,  /* OpenRISC */
5952        bfd_arch_mmix,      /* Donald Knuth's educational processor.  */
5953        bfd_arch_xstormy16,
5954      #define bfd_mach_xstormy16     1
5955        bfd_arch_msp430,    /* Texas Instruments MSP430 architecture.  */
5956      #define bfd_mach_msp11          11
5957      #define bfd_mach_msp110         110
5958      #define bfd_mach_msp12          12
5959      #define bfd_mach_msp13          13
5960      #define bfd_mach_msp14          14
5961      #define bfd_mach_msp15          15
5962      #define bfd_mach_msp16          16
5963      #define bfd_mach_msp21          21
5964      #define bfd_mach_msp31          31
5965      #define bfd_mach_msp32          32
5966      #define bfd_mach_msp33          33
5967      #define bfd_mach_msp41          41
5968      #define bfd_mach_msp42          42
5969      #define bfd_mach_msp43          43
5970      #define bfd_mach_msp44          44
5971        bfd_arch_xc16x,     /* Infineon's XC16X Series.               */
5972      #define bfd_mach_xc16x         1
5973      #define bfd_mach_xc16xl        2
5974      #define bfd_mach_xc16xs         3
5975        bfd_arch_xtensa,    /* Tensilica's Xtensa cores.  */
5976      #define bfd_mach_xtensa        1
5977         bfd_arch_maxq,     /* Dallas MAXQ 10/20 */
5978      #define bfd_mach_maxq10    10
5979      #define bfd_mach_maxq20    20
5980        bfd_arch_z80,
5981      #define bfd_mach_z80strict      1 /* No undocumented opcodes.  */
5982      #define bfd_mach_z80            3 /* With ixl, ixh, iyl, and iyh.  */
5983      #define bfd_mach_z80full        7 /* All undocumented instructions.  */
5984      #define bfd_mach_r800           11 /* R800: successor with multiplication.  */
5985        bfd_arch_last
5986        };
5987
5988 2.13.2 bfd_arch_info
5989 --------------------
5990
5991 *Description*
5992 This structure contains information on architectures for use within BFD.
5993
5994      typedef struct bfd_arch_info
5995      {
5996        int bits_per_word;
5997        int bits_per_address;
5998        int bits_per_byte;
5999        enum bfd_architecture arch;
6000        unsigned long mach;
6001        const char *arch_name;
6002        const char *printable_name;
6003        unsigned int section_align_power;
6004        /* TRUE if this is the default machine for the architecture.
6005           The default arch should be the first entry for an arch so that
6006           all the entries for that arch can be accessed via `next'.  */
6007        bfd_boolean the_default;
6008        const struct bfd_arch_info * (*compatible)
6009          (const struct bfd_arch_info *a, const struct bfd_arch_info *b);
6010
6011        bfd_boolean (*scan) (const struct bfd_arch_info *, const char *);
6012
6013        const struct bfd_arch_info *next;
6014      }
6015      bfd_arch_info_type;
6016
6017 2.13.2.1 `bfd_printable_name'
6018 .............................
6019
6020 *Synopsis*
6021      const char *bfd_printable_name (bfd *abfd);
6022    *Description*
6023 Return a printable string representing the architecture and machine
6024 from the pointer to the architecture info structure.
6025
6026 2.13.2.2 `bfd_scan_arch'
6027 ........................
6028
6029 *Synopsis*
6030      const bfd_arch_info_type *bfd_scan_arch (const char *string);
6031    *Description*
6032 Figure out if BFD supports any cpu which could be described with the
6033 name STRING.  Return a pointer to an `arch_info' structure if a machine
6034 is found, otherwise NULL.
6035
6036 2.13.2.3 `bfd_arch_list'
6037 ........................
6038
6039 *Synopsis*
6040      const char **bfd_arch_list (void);
6041    *Description*
6042 Return a freshly malloced NULL-terminated vector of the names of all
6043 the valid BFD architectures.  Do not modify the names.
6044
6045 2.13.2.4 `bfd_arch_get_compatible'
6046 ..................................
6047
6048 *Synopsis*
6049      const bfd_arch_info_type *bfd_arch_get_compatible
6050         (const bfd *abfd, const bfd *bbfd, bfd_boolean accept_unknowns);
6051    *Description*
6052 Determine whether two BFDs' architectures and machine types are
6053 compatible.  Calculates the lowest common denominator between the two
6054 architectures and machine types implied by the BFDs and returns a
6055 pointer to an `arch_info' structure describing the compatible machine.
6056
6057 2.13.2.5 `bfd_default_arch_struct'
6058 ..................................
6059
6060 *Description*
6061 The `bfd_default_arch_struct' is an item of `bfd_arch_info_type' which
6062 has been initialized to a fairly generic state.  A BFD starts life by
6063 pointing to this structure, until the correct back end has determined
6064 the real architecture of the file.
6065      extern const bfd_arch_info_type bfd_default_arch_struct;
6066
6067 2.13.2.6 `bfd_set_arch_info'
6068 ............................
6069
6070 *Synopsis*
6071      void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg);
6072    *Description*
6073 Set the architecture info of ABFD to ARG.
6074
6075 2.13.2.7 `bfd_default_set_arch_mach'
6076 ....................................
6077
6078 *Synopsis*
6079      bfd_boolean bfd_default_set_arch_mach
6080         (bfd *abfd, enum bfd_architecture arch, unsigned long mach);
6081    *Description*
6082 Set the architecture and machine type in BFD ABFD to ARCH and MACH.
6083 Find the correct pointer to a structure and insert it into the
6084 `arch_info' pointer.
6085
6086 2.13.2.8 `bfd_get_arch'
6087 .......................
6088
6089 *Synopsis*
6090      enum bfd_architecture bfd_get_arch (bfd *abfd);
6091    *Description*
6092 Return the enumerated type which describes the BFD ABFD's architecture.
6093
6094 2.13.2.9 `bfd_get_mach'
6095 .......................
6096
6097 *Synopsis*
6098      unsigned long bfd_get_mach (bfd *abfd);
6099    *Description*
6100 Return the long type which describes the BFD ABFD's machine.
6101
6102 2.13.2.10 `bfd_arch_bits_per_byte'
6103 ..................................
6104
6105 *Synopsis*
6106      unsigned int bfd_arch_bits_per_byte (bfd *abfd);
6107    *Description*
6108 Return the number of bits in one of the BFD ABFD's architecture's bytes.
6109
6110 2.13.2.11 `bfd_arch_bits_per_address'
6111 .....................................
6112
6113 *Synopsis*
6114      unsigned int bfd_arch_bits_per_address (bfd *abfd);
6115    *Description*
6116 Return the number of bits in one of the BFD ABFD's architecture's
6117 addresses.
6118
6119 2.13.2.12 `bfd_default_compatible'
6120 ..................................
6121
6122 *Synopsis*
6123      const bfd_arch_info_type *bfd_default_compatible
6124         (const bfd_arch_info_type *a, const bfd_arch_info_type *b);
6125    *Description*
6126 The default function for testing for compatibility.
6127
6128 2.13.2.13 `bfd_default_scan'
6129 ............................
6130
6131 *Synopsis*
6132      bfd_boolean bfd_default_scan
6133         (const struct bfd_arch_info *info, const char *string);
6134    *Description*
6135 The default function for working out whether this is an architecture
6136 hit and a machine hit.
6137
6138 2.13.2.14 `bfd_get_arch_info'
6139 .............................
6140
6141 *Synopsis*
6142      const bfd_arch_info_type *bfd_get_arch_info (bfd *abfd);
6143    *Description*
6144 Return the architecture info struct in ABFD.
6145
6146 2.13.2.15 `bfd_lookup_arch'
6147 ...........................
6148
6149 *Synopsis*
6150      const bfd_arch_info_type *bfd_lookup_arch
6151         (enum bfd_architecture arch, unsigned long machine);
6152    *Description*
6153 Look for the architecture info structure which matches the arguments
6154 ARCH and MACHINE. A machine of 0 matches the machine/architecture
6155 structure which marks itself as the default.
6156
6157 2.13.2.16 `bfd_printable_arch_mach'
6158 ...................................
6159
6160 *Synopsis*
6161      const char *bfd_printable_arch_mach
6162         (enum bfd_architecture arch, unsigned long machine);
6163    *Description*
6164 Return a printable string representing the architecture and machine
6165 type.
6166
6167    This routine is depreciated.
6168
6169 2.13.2.17 `bfd_octets_per_byte'
6170 ...............................
6171
6172 *Synopsis*
6173      unsigned int bfd_octets_per_byte (bfd *abfd);
6174    *Description*
6175 Return the number of octets (8-bit quantities) per target byte (minimum
6176 addressable unit).  In most cases, this will be one, but some DSP
6177 targets have 16, 32, or even 48 bits per byte.
6178
6179 2.13.2.18 `bfd_arch_mach_octets_per_byte'
6180 .........................................
6181
6182 *Synopsis*
6183      unsigned int bfd_arch_mach_octets_per_byte
6184         (enum bfd_architecture arch, unsigned long machine);
6185    *Description*
6186 See bfd_octets_per_byte.
6187
6188    This routine is provided for those cases where a bfd * is not
6189 available
6190
6191 \1f
6192 File: bfd.info,  Node: Opening and Closing,  Next: Internal,  Prev: Architectures,  Up: BFD front end
6193
6194 2.14 Opening and closing BFDs
6195 =============================
6196
6197 2.14.1 Functions for opening and closing
6198 ----------------------------------------
6199
6200 2.14.1.1 `bfd_fopen'
6201 ....................
6202
6203 *Synopsis*
6204      bfd *bfd_fopen (const char *filename, const char *target,
6205          const char *mode, int fd);
6206    *Description*
6207 Open the file FILENAME with the target TARGET.  Return a pointer to the
6208 created BFD.  If FD is not -1, then `fdopen' is used to open the file;
6209 otherwise, `fopen' is used.  MODE is passed directly to `fopen' or
6210 `fdopen'.
6211
6212    Calls `bfd_find_target', so TARGET is interpreted as by that
6213 function.
6214
6215    The new BFD is marked as cacheable iff FD is -1.
6216
6217    If `NULL' is returned then an error has occured.   Possible errors
6218 are `bfd_error_no_memory', `bfd_error_invalid_target' or `system_call'
6219 error.
6220
6221 2.14.1.2 `bfd_openr'
6222 ....................
6223
6224 *Synopsis*
6225      bfd *bfd_openr (const char *filename, const char *target);
6226    *Description*
6227 Open the file FILENAME (using `fopen') with the target TARGET.  Return
6228 a pointer to the created BFD.
6229
6230    Calls `bfd_find_target', so TARGET is interpreted as by that
6231 function.
6232
6233    If `NULL' is returned then an error has occured.   Possible errors
6234 are `bfd_error_no_memory', `bfd_error_invalid_target' or `system_call'
6235 error.
6236
6237 2.14.1.3 `bfd_fdopenr'
6238 ......................
6239
6240 *Synopsis*
6241      bfd *bfd_fdopenr (const char *filename, const char *target, int fd);
6242    *Description*
6243 `bfd_fdopenr' is to `bfd_fopenr' much like `fdopen' is to `fopen'.  It
6244 opens a BFD on a file already described by the FD supplied.
6245
6246    When the file is later `bfd_close'd, the file descriptor will be
6247 closed.  If the caller desires that this file descriptor be cached by
6248 BFD (opened as needed, closed as needed to free descriptors for other
6249 opens), with the supplied FD used as an initial file descriptor (but
6250 subject to closure at any time), call bfd_set_cacheable(bfd, 1) on the
6251 returned BFD.  The default is to assume no caching; the file descriptor
6252 will remain open until `bfd_close', and will not be affected by BFD
6253 operations on other files.
6254
6255    Possible errors are `bfd_error_no_memory',
6256 `bfd_error_invalid_target' and `bfd_error_system_call'.
6257
6258 2.14.1.4 `bfd_openstreamr'
6259 ..........................
6260
6261 *Synopsis*
6262      bfd *bfd_openstreamr (const char *, const char *, void *);
6263    *Description*
6264 Open a BFD for read access on an existing stdio stream.  When the BFD
6265 is passed to `bfd_close', the stream will be closed.
6266
6267 2.14.1.5 `bfd_openr_iovec'
6268 ..........................
6269
6270 *Synopsis*
6271      bfd *bfd_openr_iovec (const char *filename, const char *target,
6272          void *(*open) (struct bfd *nbfd,
6273          void *open_closure),
6274          void *open_closure,
6275          file_ptr (*pread) (struct bfd *nbfd,
6276          void *stream,
6277          void *buf,
6278          file_ptr nbytes,
6279          file_ptr offset),
6280          int (*close) (struct bfd *nbfd,
6281          void *stream));
6282    *Description*
6283 Create and return a BFD backed by a read-only STREAM.  The STREAM is
6284 created using OPEN, accessed using PREAD and destroyed using CLOSE.
6285
6286    Calls `bfd_find_target', so TARGET is interpreted as by that
6287 function.
6288
6289    Calls OPEN (which can call `bfd_zalloc' and `bfd_get_filename') to
6290 obtain the read-only stream backing the BFD.  OPEN either succeeds
6291 returning the non-`NULL' STREAM, or fails returning `NULL' (setting
6292 `bfd_error').
6293
6294    Calls PREAD to request NBYTES of data from STREAM starting at OFFSET
6295 (e.g., via a call to `bfd_read').  PREAD either succeeds returning the
6296 number of bytes read (which can be less than NBYTES when end-of-file),
6297 or fails returning -1 (setting `bfd_error').
6298
6299    Calls CLOSE when the BFD is later closed using `bfd_close'.  CLOSE
6300 either succeeds returning 0, or fails returning -1 (setting
6301 `bfd_error').
6302
6303    If `bfd_openr_iovec' returns `NULL' then an error has occurred.
6304 Possible errors are `bfd_error_no_memory', `bfd_error_invalid_target'
6305 and `bfd_error_system_call'.
6306
6307 2.14.1.6 `bfd_openw'
6308 ....................
6309
6310 *Synopsis*
6311      bfd *bfd_openw (const char *filename, const char *target);
6312    *Description*
6313 Create a BFD, associated with file FILENAME, using the file format
6314 TARGET, and return a pointer to it.
6315
6316    Possible errors are `bfd_error_system_call', `bfd_error_no_memory',
6317 `bfd_error_invalid_target'.
6318
6319 2.14.1.7 `bfd_close'
6320 ....................
6321
6322 *Synopsis*
6323      bfd_boolean bfd_close (bfd *abfd);
6324    *Description*
6325 Close a BFD. If the BFD was open for writing, then pending operations
6326 are completed and the file written out and closed.  If the created file
6327 is executable, then `chmod' is called to mark it as such.
6328
6329    All memory attached to the BFD is released.
6330
6331    The file descriptor associated with the BFD is closed (even if it
6332 was passed in to BFD by `bfd_fdopenr').
6333
6334    *Returns*
6335 `TRUE' is returned if all is ok, otherwise `FALSE'.
6336
6337 2.14.1.8 `bfd_close_all_done'
6338 .............................
6339
6340 *Synopsis*
6341      bfd_boolean bfd_close_all_done (bfd *);
6342    *Description*
6343 Close a BFD.  Differs from `bfd_close' since it does not complete any
6344 pending operations.  This routine would be used if the application had
6345 just used BFD for swapping and didn't want to use any of the writing
6346 code.
6347
6348    If the created file is executable, then `chmod' is called to mark it
6349 as such.
6350
6351    All memory attached to the BFD is released.
6352
6353    *Returns*
6354 `TRUE' is returned if all is ok, otherwise `FALSE'.
6355
6356 2.14.1.9 `bfd_create'
6357 .....................
6358
6359 *Synopsis*
6360      bfd *bfd_create (const char *filename, bfd *templ);
6361    *Description*
6362 Create a new BFD in the manner of `bfd_openw', but without opening a
6363 file. The new BFD takes the target from the target used by TEMPLATE.
6364 The format is always set to `bfd_object'.
6365
6366 2.14.1.10 `bfd_make_writable'
6367 .............................
6368
6369 *Synopsis*
6370      bfd_boolean bfd_make_writable (bfd *abfd);
6371    *Description*
6372 Takes a BFD as created by `bfd_create' and converts it into one like as
6373 returned by `bfd_openw'.  It does this by converting the BFD to
6374 BFD_IN_MEMORY.  It's assumed that you will call `bfd_make_readable' on
6375 this bfd later.
6376
6377    *Returns*
6378 `TRUE' is returned if all is ok, otherwise `FALSE'.
6379
6380 2.14.1.11 `bfd_make_readable'
6381 .............................
6382
6383 *Synopsis*
6384      bfd_boolean bfd_make_readable (bfd *abfd);
6385    *Description*
6386 Takes a BFD as created by `bfd_create' and `bfd_make_writable' and
6387 converts it into one like as returned by `bfd_openr'.  It does this by
6388 writing the contents out to the memory buffer, then reversing the
6389 direction.
6390
6391    *Returns*
6392 `TRUE' is returned if all is ok, otherwise `FALSE'.
6393
6394 2.14.1.12 `bfd_alloc'
6395 .....................
6396
6397 *Synopsis*
6398      void *bfd_alloc (bfd *abfd, bfd_size_type wanted);
6399    *Description*
6400 Allocate a block of WANTED bytes of memory attached to `abfd' and
6401 return a pointer to it.
6402
6403 2.14.1.13 `bfd_alloc2'
6404 ......................
6405
6406 *Synopsis*
6407      void *bfd_alloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size);
6408    *Description*
6409 Allocate a block of NMEMB elements of SIZE bytes each of memory
6410 attached to `abfd' and return a pointer to it.
6411
6412 2.14.1.14 `bfd_zalloc'
6413 ......................
6414
6415 *Synopsis*
6416      void *bfd_zalloc (bfd *abfd, bfd_size_type wanted);
6417    *Description*
6418 Allocate a block of WANTED bytes of zeroed memory attached to `abfd'
6419 and return a pointer to it.
6420
6421 2.14.1.15 `bfd_zalloc2'
6422 .......................
6423
6424 *Synopsis*
6425      void *bfd_zalloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size);
6426    *Description*
6427 Allocate a block of NMEMB elements of SIZE bytes each of zeroed memory
6428 attached to `abfd' and return a pointer to it.
6429
6430 2.14.1.16 `bfd_calc_gnu_debuglink_crc32'
6431 ........................................
6432
6433 *Synopsis*
6434      unsigned long bfd_calc_gnu_debuglink_crc32
6435         (unsigned long crc, const unsigned char *buf, bfd_size_type len);
6436    *Description*
6437 Computes a CRC value as used in the .gnu_debuglink section.  Advances
6438 the previously computed CRC value by computing and adding in the crc32
6439 for LEN bytes of BUF.
6440
6441    *Returns*
6442 Return the updated CRC32 value.
6443
6444 2.14.1.17 `get_debug_link_info'
6445 ...............................
6446
6447 *Synopsis*
6448      char *get_debug_link_info (bfd *abfd, unsigned long *crc32_out);
6449    *Description*
6450 fetch the filename and CRC32 value for any separate debuginfo
6451 associated with ABFD. Return NULL if no such info found, otherwise
6452 return filename and update CRC32_OUT.
6453
6454 2.14.1.18 `separate_debug_file_exists'
6455 ......................................
6456
6457 *Synopsis*
6458      bfd_boolean separate_debug_file_exists
6459         (char *name, unsigned long crc32);
6460    *Description*
6461 Checks to see if NAME is a file and if its contents match CRC32.
6462
6463 2.14.1.19 `find_separate_debug_file'
6464 ....................................
6465
6466 *Synopsis*
6467      char *find_separate_debug_file (bfd *abfd);
6468    *Description*
6469 Searches ABFD for a reference to separate debugging information, scans
6470 various locations in the filesystem, including the file tree rooted at
6471 DEBUG_FILE_DIRECTORY, and returns a filename of such debugging
6472 information if the file is found and has matching CRC32.  Returns NULL
6473 if no reference to debugging file exists, or file cannot be found.
6474
6475 2.14.1.20 `bfd_follow_gnu_debuglink'
6476 ....................................
6477
6478 *Synopsis*
6479      char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir);
6480    *Description*
6481 Takes a BFD and searches it for a .gnu_debuglink section.  If this
6482 section is found, it examines the section for the name and checksum of
6483 a '.debug' file containing auxiliary debugging information.  It then
6484 searches the filesystem for this .debug file in some standard
6485 locations, including the directory tree rooted at DIR, and if found
6486 returns the full filename.
6487
6488    If DIR is NULL, it will search a default path configured into libbfd
6489 at build time.  [XXX this feature is not currently implemented].
6490
6491    *Returns*
6492 `NULL' on any errors or failure to locate the .debug file, otherwise a
6493 pointer to a heap-allocated string containing the filename.  The caller
6494 is responsible for freeing this string.
6495
6496 2.14.1.21 `bfd_create_gnu_debuglink_section'
6497 ............................................
6498
6499 *Synopsis*
6500      struct bfd_section *bfd_create_gnu_debuglink_section
6501         (bfd *abfd, const char *filename);
6502    *Description*
6503 Takes a BFD and adds a .gnu_debuglink section to it.  The section is
6504 sized to be big enough to contain a link to the specified FILENAME.
6505
6506    *Returns*
6507 A pointer to the new section is returned if all is ok.  Otherwise
6508 `NULL' is returned and bfd_error is set.
6509
6510 2.14.1.22 `bfd_fill_in_gnu_debuglink_section'
6511 .............................................
6512
6513 *Synopsis*
6514      bfd_boolean bfd_fill_in_gnu_debuglink_section
6515         (bfd *abfd, struct bfd_section *sect, const char *filename);
6516    *Description*
6517 Takes a BFD and containing a .gnu_debuglink section SECT and fills in
6518 the contents of the section to contain a link to the specified
6519 FILENAME.  The filename should be relative to the current directory.
6520
6521    *Returns*
6522 `TRUE' is returned if all is ok.  Otherwise `FALSE' is returned and
6523 bfd_error is set.
6524
6525 \1f
6526 File: bfd.info,  Node: Internal,  Next: File Caching,  Prev: Opening and Closing,  Up: BFD front end
6527
6528 2.15 Implementation details
6529 ===========================
6530
6531 2.15.1 Internal functions
6532 -------------------------
6533
6534 *Description*
6535 These routines are used within BFD.  They are not intended for export,
6536 but are documented here for completeness.
6537
6538 2.15.1.1 `bfd_write_bigendian_4byte_int'
6539 ........................................
6540
6541 *Synopsis*
6542      bfd_boolean bfd_write_bigendian_4byte_int (bfd *, unsigned int);
6543    *Description*
6544 Write a 4 byte integer I to the output BFD ABFD, in big endian order
6545 regardless of what else is going on.  This is useful in archives.
6546
6547 2.15.1.2 `bfd_put_size'
6548 .......................
6549
6550 2.15.1.3 `bfd_get_size'
6551 .......................
6552
6553 *Description*
6554 These macros as used for reading and writing raw data in sections; each
6555 access (except for bytes) is vectored through the target format of the
6556 BFD and mangled accordingly. The mangling performs any necessary endian
6557 translations and removes alignment restrictions.  Note that types
6558 accepted and returned by these macros are identical so they can be
6559 swapped around in macros--for example, `libaout.h' defines `GET_WORD'
6560 to either `bfd_get_32' or `bfd_get_64'.
6561
6562    In the put routines, VAL must be a `bfd_vma'.  If we are on a system
6563 without prototypes, the caller is responsible for making sure that is
6564 true, with a cast if necessary.  We don't cast them in the macro
6565 definitions because that would prevent `lint' or `gcc -Wall' from
6566 detecting sins such as passing a pointer.  To detect calling these with
6567 less than a `bfd_vma', use `gcc -Wconversion' on a host with 64 bit
6568 `bfd_vma''s.
6569
6570      /* Byte swapping macros for user section data.  */
6571
6572      #define bfd_put_8(abfd, val, ptr) \
6573        ((void) (*((unsigned char *) (ptr)) = (val) & 0xff))
6574      #define bfd_put_signed_8 \
6575        bfd_put_8
6576      #define bfd_get_8(abfd, ptr) \
6577        (*(unsigned char *) (ptr) & 0xff)
6578      #define bfd_get_signed_8(abfd, ptr) \
6579        (((*(unsigned char *) (ptr) & 0xff) ^ 0x80) - 0x80)
6580
6581      #define bfd_put_16(abfd, val, ptr) \
6582        BFD_SEND (abfd, bfd_putx16, ((val),(ptr)))
6583      #define bfd_put_signed_16 \
6584        bfd_put_16
6585      #define bfd_get_16(abfd, ptr) \
6586        BFD_SEND (abfd, bfd_getx16, (ptr))
6587      #define bfd_get_signed_16(abfd, ptr) \
6588        BFD_SEND (abfd, bfd_getx_signed_16, (ptr))
6589
6590      #define bfd_put_32(abfd, val, ptr) \
6591        BFD_SEND (abfd, bfd_putx32, ((val),(ptr)))
6592      #define bfd_put_signed_32 \
6593        bfd_put_32
6594      #define bfd_get_32(abfd, ptr) \
6595        BFD_SEND (abfd, bfd_getx32, (ptr))
6596      #define bfd_get_signed_32(abfd, ptr) \
6597        BFD_SEND (abfd, bfd_getx_signed_32, (ptr))
6598
6599      #define bfd_put_64(abfd, val, ptr) \
6600        BFD_SEND (abfd, bfd_putx64, ((val), (ptr)))
6601      #define bfd_put_signed_64 \
6602        bfd_put_64
6603      #define bfd_get_64(abfd, ptr) \
6604        BFD_SEND (abfd, bfd_getx64, (ptr))
6605      #define bfd_get_signed_64(abfd, ptr) \
6606        BFD_SEND (abfd, bfd_getx_signed_64, (ptr))
6607
6608      #define bfd_get(bits, abfd, ptr)                       \
6609        ((bits) == 8 ? (bfd_vma) bfd_get_8 (abfd, ptr)       \
6610         : (bits) == 16 ? bfd_get_16 (abfd, ptr)             \
6611         : (bits) == 32 ? bfd_get_32 (abfd, ptr)             \
6612         : (bits) == 64 ? bfd_get_64 (abfd, ptr)             \
6613         : (abort (), (bfd_vma) - 1))
6614
6615      #define bfd_put(bits, abfd, val, ptr)                  \
6616        ((bits) == 8 ? bfd_put_8  (abfd, val, ptr)           \
6617         : (bits) == 16 ? bfd_put_16 (abfd, val, ptr)                \
6618         : (bits) == 32 ? bfd_put_32 (abfd, val, ptr)                \
6619         : (bits) == 64 ? bfd_put_64 (abfd, val, ptr)                \
6620         : (abort (), (void) 0))
6621
6622 2.15.1.4 `bfd_h_put_size'
6623 .........................
6624
6625 *Description*
6626 These macros have the same function as their `bfd_get_x' brethren,
6627 except that they are used for removing information for the header
6628 records of object files. Believe it or not, some object files keep
6629 their header records in big endian order and their data in little
6630 endian order.
6631
6632      /* Byte swapping macros for file header data.  */
6633
6634      #define bfd_h_put_8(abfd, val, ptr) \
6635        bfd_put_8 (abfd, val, ptr)
6636      #define bfd_h_put_signed_8(abfd, val, ptr) \
6637        bfd_put_8 (abfd, val, ptr)
6638      #define bfd_h_get_8(abfd, ptr) \
6639        bfd_get_8 (abfd, ptr)
6640      #define bfd_h_get_signed_8(abfd, ptr) \
6641        bfd_get_signed_8 (abfd, ptr)
6642
6643      #define bfd_h_put_16(abfd, val, ptr) \
6644        BFD_SEND (abfd, bfd_h_putx16, (val, ptr))
6645      #define bfd_h_put_signed_16 \
6646        bfd_h_put_16
6647      #define bfd_h_get_16(abfd, ptr) \
6648        BFD_SEND (abfd, bfd_h_getx16, (ptr))
6649      #define bfd_h_get_signed_16(abfd, ptr) \
6650        BFD_SEND (abfd, bfd_h_getx_signed_16, (ptr))
6651
6652      #define bfd_h_put_32(abfd, val, ptr) \
6653        BFD_SEND (abfd, bfd_h_putx32, (val, ptr))
6654      #define bfd_h_put_signed_32 \
6655        bfd_h_put_32
6656      #define bfd_h_get_32(abfd, ptr) \
6657        BFD_SEND (abfd, bfd_h_getx32, (ptr))
6658      #define bfd_h_get_signed_32(abfd, ptr) \
6659        BFD_SEND (abfd, bfd_h_getx_signed_32, (ptr))
6660
6661      #define bfd_h_put_64(abfd, val, ptr) \
6662        BFD_SEND (abfd, bfd_h_putx64, (val, ptr))
6663      #define bfd_h_put_signed_64 \
6664        bfd_h_put_64
6665      #define bfd_h_get_64(abfd, ptr) \
6666        BFD_SEND (abfd, bfd_h_getx64, (ptr))
6667      #define bfd_h_get_signed_64(abfd, ptr) \
6668        BFD_SEND (abfd, bfd_h_getx_signed_64, (ptr))
6669
6670      /* Aliases for the above, which should eventually go away.  */
6671
6672      #define H_PUT_64  bfd_h_put_64
6673      #define H_PUT_32  bfd_h_put_32
6674      #define H_PUT_16  bfd_h_put_16
6675      #define H_PUT_8   bfd_h_put_8
6676      #define H_PUT_S64 bfd_h_put_signed_64
6677      #define H_PUT_S32 bfd_h_put_signed_32
6678      #define H_PUT_S16 bfd_h_put_signed_16
6679      #define H_PUT_S8  bfd_h_put_signed_8
6680      #define H_GET_64  bfd_h_get_64
6681      #define H_GET_32  bfd_h_get_32
6682      #define H_GET_16  bfd_h_get_16
6683      #define H_GET_8   bfd_h_get_8
6684      #define H_GET_S64 bfd_h_get_signed_64
6685      #define H_GET_S32 bfd_h_get_signed_32
6686      #define H_GET_S16 bfd_h_get_signed_16
6687      #define H_GET_S8  bfd_h_get_signed_8
6688
6689 2.15.1.5 `bfd_log2'
6690 ...................
6691
6692 *Synopsis*
6693      unsigned int bfd_log2 (bfd_vma x);
6694    *Description*
6695 Return the log base 2 of the value supplied, rounded up.  E.g., an X of
6696 1025 returns 11.  A X of 0 returns 0.
6697
6698 \1f
6699 File: bfd.info,  Node: File Caching,  Next: Linker Functions,  Prev: Internal,  Up: BFD front end
6700
6701 2.16 File caching
6702 =================
6703
6704 The file caching mechanism is embedded within BFD and allows the
6705 application to open as many BFDs as it wants without regard to the
6706 underlying operating system's file descriptor limit (often as low as 20
6707 open files).  The module in `cache.c' maintains a least recently used
6708 list of `BFD_CACHE_MAX_OPEN' files, and exports the name
6709 `bfd_cache_lookup', which runs around and makes sure that the required
6710 BFD is open. If not, then it chooses a file to close, closes it and
6711 opens the one wanted, returning its file handle.
6712
6713 2.16.1 Caching functions
6714 ------------------------
6715
6716 2.16.1.1 `bfd_cache_init'
6717 .........................
6718
6719 *Synopsis*
6720      bfd_boolean bfd_cache_init (bfd *abfd);
6721    *Description*
6722 Add a newly opened BFD to the cache.
6723
6724 2.16.1.2 `bfd_cache_close'
6725 ..........................
6726
6727 *Synopsis*
6728      bfd_boolean bfd_cache_close (bfd *abfd);
6729    *Description*
6730 Remove the BFD ABFD from the cache. If the attached file is open, then
6731 close it too.
6732
6733    *Returns*
6734 `FALSE' is returned if closing the file fails, `TRUE' is returned if
6735 all is well.
6736
6737 2.16.1.3 `bfd_cache_close_all'
6738 ..............................
6739
6740 *Synopsis*
6741      bfd_boolean bfd_cache_close_all (void);
6742    *Description*
6743 Remove all BFDs from the cache. If the attached file is open, then
6744 close it too.
6745
6746    *Returns*
6747 `FALSE' is returned if closing one of the file fails, `TRUE' is
6748 returned if all is well.
6749
6750 2.16.1.4 `bfd_open_file'
6751 ........................
6752
6753 *Synopsis*
6754      FILE* bfd_open_file (bfd *abfd);
6755    *Description*
6756 Call the OS to open a file for ABFD.  Return the `FILE *' (possibly
6757 `NULL') that results from this operation.  Set up the BFD so that
6758 future accesses know the file is open. If the `FILE *' returned is
6759 `NULL', then it won't have been put in the cache, so it won't have to
6760 be removed from it.
6761
6762 \1f
6763 File: bfd.info,  Node: Linker Functions,  Next: Hash Tables,  Prev: File Caching,  Up: BFD front end
6764
6765 2.17 Linker Functions
6766 =====================
6767
6768 The linker uses three special entry points in the BFD target vector.
6769 It is not necessary to write special routines for these entry points
6770 when creating a new BFD back end, since generic versions are provided.
6771 However, writing them can speed up linking and make it use
6772 significantly less runtime memory.
6773
6774    The first routine creates a hash table used by the other routines.
6775 The second routine adds the symbols from an object file to the hash
6776 table.  The third routine takes all the object files and links them
6777 together to create the output file.  These routines are designed so
6778 that the linker proper does not need to know anything about the symbols
6779 in the object files that it is linking.  The linker merely arranges the
6780 sections as directed by the linker script and lets BFD handle the
6781 details of symbols and relocs.
6782
6783    The second routine and third routines are passed a pointer to a
6784 `struct bfd_link_info' structure (defined in `bfdlink.h') which holds
6785 information relevant to the link, including the linker hash table
6786 (which was created by the first routine) and a set of callback
6787 functions to the linker proper.
6788
6789    The generic linker routines are in `linker.c', and use the header
6790 file `genlink.h'.  As of this writing, the only back ends which have
6791 implemented versions of these routines are a.out (in `aoutx.h') and
6792 ECOFF (in `ecoff.c').  The a.out routines are used as examples
6793 throughout this section.
6794
6795 * Menu:
6796
6797 * Creating a Linker Hash Table::
6798 * Adding Symbols to the Hash Table::
6799 * Performing the Final Link::
6800
6801 \1f
6802 File: bfd.info,  Node: Creating a Linker Hash Table,  Next: Adding Symbols to the Hash Table,  Prev: Linker Functions,  Up: Linker Functions
6803
6804 2.17.1 Creating a linker hash table
6805 -----------------------------------
6806
6807 The linker routines must create a hash table, which must be derived
6808 from `struct bfd_link_hash_table' described in `bfdlink.c'.  *Note Hash
6809 Tables::, for information on how to create a derived hash table.  This
6810 entry point is called using the target vector of the linker output file.
6811
6812    The `_bfd_link_hash_table_create' entry point must allocate and
6813 initialize an instance of the desired hash table.  If the back end does
6814 not require any additional information to be stored with the entries in
6815 the hash table, the entry point may simply create a `struct
6816 bfd_link_hash_table'.  Most likely, however, some additional
6817 information will be needed.
6818
6819    For example, with each entry in the hash table the a.out linker
6820 keeps the index the symbol has in the final output file (this index
6821 number is used so that when doing a relocatable link the symbol index
6822 used in the output file can be quickly filled in when copying over a
6823 reloc).  The a.out linker code defines the required structures and
6824 functions for a hash table derived from `struct bfd_link_hash_table'.
6825 The a.out linker hash table is created by the function
6826 `NAME(aout,link_hash_table_create)'; it simply allocates space for the
6827 hash table, initializes it, and returns a pointer to it.
6828
6829    When writing the linker routines for a new back end, you will
6830 generally not know exactly which fields will be required until you have
6831 finished.  You should simply create a new hash table which defines no
6832 additional fields, and then simply add fields as they become necessary.
6833
6834 \1f
6835 File: bfd.info,  Node: Adding Symbols to the Hash Table,  Next: Performing the Final Link,  Prev: Creating a Linker Hash Table,  Up: Linker Functions
6836
6837 2.17.2 Adding symbols to the hash table
6838 ---------------------------------------
6839
6840 The linker proper will call the `_bfd_link_add_symbols' entry point for
6841 each object file or archive which is to be linked (typically these are
6842 the files named on the command line, but some may also come from the
6843 linker script).  The entry point is responsible for examining the file.
6844 For an object file, BFD must add any relevant symbol information to
6845 the hash table.  For an archive, BFD must determine which elements of
6846 the archive should be used and adding them to the link.
6847
6848    The a.out version of this entry point is
6849 `NAME(aout,link_add_symbols)'.
6850
6851 * Menu:
6852
6853 * Differing file formats::
6854 * Adding symbols from an object file::
6855 * Adding symbols from an archive::
6856
6857 \1f
6858 File: bfd.info,  Node: Differing file formats,  Next: Adding symbols from an object file,  Prev: Adding Symbols to the Hash Table,  Up: Adding Symbols to the Hash Table
6859
6860 2.17.2.1 Differing file formats
6861 ...............................
6862
6863 Normally all the files involved in a link will be of the same format,
6864 but it is also possible to link together different format object files,
6865 and the back end must support that.  The `_bfd_link_add_symbols' entry
6866 point is called via the target vector of the file to be added.  This
6867 has an important consequence: the function may not assume that the hash
6868 table is the type created by the corresponding
6869 `_bfd_link_hash_table_create' vector.  All the `_bfd_link_add_symbols'
6870 function can assume about the hash table is that it is derived from
6871 `struct bfd_link_hash_table'.
6872
6873    Sometimes the `_bfd_link_add_symbols' function must store some
6874 information in the hash table entry to be used by the `_bfd_final_link'
6875 function.  In such a case the `creator' field of the hash table must be
6876 checked to make sure that the hash table was created by an object file
6877 of the same format.
6878
6879    The `_bfd_final_link' routine must be prepared to handle a hash
6880 entry without any extra information added by the
6881 `_bfd_link_add_symbols' function.  A hash entry without extra
6882 information will also occur when the linker script directs the linker
6883 to create a symbol.  Note that, regardless of how a hash table entry is
6884 added, all the fields will be initialized to some sort of null value by
6885 the hash table entry initialization function.
6886
6887    See `ecoff_link_add_externals' for an example of how to check the
6888 `creator' field before saving information (in this case, the ECOFF
6889 external symbol debugging information) in a hash table entry.
6890
6891 \1f
6892 File: bfd.info,  Node: Adding symbols from an object file,  Next: Adding symbols from an archive,  Prev: Differing file formats,  Up: Adding Symbols to the Hash Table
6893
6894 2.17.2.2 Adding symbols from an object file
6895 ...........................................
6896
6897 When the `_bfd_link_add_symbols' routine is passed an object file, it
6898 must add all externally visible symbols in that object file to the hash
6899 table.  The actual work of adding the symbol to the hash table is
6900 normally handled by the function `_bfd_generic_link_add_one_symbol'.
6901 The `_bfd_link_add_symbols' routine is responsible for reading all the
6902 symbols from the object file and passing the correct information to
6903 `_bfd_generic_link_add_one_symbol'.
6904
6905    The `_bfd_link_add_symbols' routine should not use
6906 `bfd_canonicalize_symtab' to read the symbols.  The point of providing
6907 this routine is to avoid the overhead of converting the symbols into
6908 generic `asymbol' structures.
6909
6910    `_bfd_generic_link_add_one_symbol' handles the details of combining
6911 common symbols, warning about multiple definitions, and so forth.  It
6912 takes arguments which describe the symbol to add, notably symbol flags,
6913 a section, and an offset.  The symbol flags include such things as
6914 `BSF_WEAK' or `BSF_INDIRECT'.  The section is a section in the object
6915 file, or something like `bfd_und_section_ptr' for an undefined symbol
6916 or `bfd_com_section_ptr' for a common symbol.
6917
6918    If the `_bfd_final_link' routine is also going to need to read the
6919 symbol information, the `_bfd_link_add_symbols' routine should save it
6920 somewhere attached to the object file BFD.  However, the information
6921 should only be saved if the `keep_memory' field of the `info' argument
6922 is TRUE, so that the `-no-keep-memory' linker switch is effective.
6923
6924    The a.out function which adds symbols from an object file is
6925 `aout_link_add_object_symbols', and most of the interesting work is in
6926 `aout_link_add_symbols'.  The latter saves pointers to the hash tables
6927 entries created by `_bfd_generic_link_add_one_symbol' indexed by symbol
6928 number, so that the `_bfd_final_link' routine does not have to call the
6929 hash table lookup routine to locate the entry.
6930
6931 \1f
6932 File: bfd.info,  Node: Adding symbols from an archive,  Prev: Adding symbols from an object file,  Up: Adding Symbols to the Hash Table
6933
6934 2.17.2.3 Adding symbols from an archive
6935 .......................................
6936
6937 When the `_bfd_link_add_symbols' routine is passed an archive, it must
6938 look through the symbols defined by the archive and decide which
6939 elements of the archive should be included in the link.  For each such
6940 element it must call the `add_archive_element' linker callback, and it
6941 must add the symbols from the object file to the linker hash table.
6942
6943    In most cases the work of looking through the symbols in the archive
6944 should be done by the `_bfd_generic_link_add_archive_symbols' function.
6945 This function builds a hash table from the archive symbol table and
6946 looks through the list of undefined symbols to see which elements
6947 should be included.  `_bfd_generic_link_add_archive_symbols' is passed
6948 a function to call to make the final decision about adding an archive
6949 element to the link and to do the actual work of adding the symbols to
6950 the linker hash table.
6951
6952    The function passed to `_bfd_generic_link_add_archive_symbols' must
6953 read the symbols of the archive element and decide whether the archive
6954 element should be included in the link.  If the element is to be
6955 included, the `add_archive_element' linker callback routine must be
6956 called with the element as an argument, and the elements symbols must
6957 be added to the linker hash table just as though the element had itself
6958 been passed to the `_bfd_link_add_symbols' function.
6959
6960    When the a.out `_bfd_link_add_symbols' function receives an archive,
6961 it calls `_bfd_generic_link_add_archive_symbols' passing
6962 `aout_link_check_archive_element' as the function argument.
6963 `aout_link_check_archive_element' calls `aout_link_check_ar_symbols'.
6964 If the latter decides to add the element (an element is only added if
6965 it provides a real, non-common, definition for a previously undefined
6966 or common symbol) it calls the `add_archive_element' callback and then
6967 `aout_link_check_archive_element' calls `aout_link_add_symbols' to
6968 actually add the symbols to the linker hash table.
6969
6970    The ECOFF back end is unusual in that it does not normally call
6971 `_bfd_generic_link_add_archive_symbols', because ECOFF archives already
6972 contain a hash table of symbols.  The ECOFF back end searches the
6973 archive itself to avoid the overhead of creating a new hash table.
6974
6975 \1f
6976 File: bfd.info,  Node: Performing the Final Link,  Prev: Adding Symbols to the Hash Table,  Up: Linker Functions
6977
6978 2.17.3 Performing the final link
6979 --------------------------------
6980
6981 When all the input files have been processed, the linker calls the
6982 `_bfd_final_link' entry point of the output BFD.  This routine is
6983 responsible for producing the final output file, which has several
6984 aspects.  It must relocate the contents of the input sections and copy
6985 the data into the output sections.  It must build an output symbol
6986 table including any local symbols from the input files and the global
6987 symbols from the hash table.  When producing relocatable output, it must
6988 modify the input relocs and write them into the output file.  There may
6989 also be object format dependent work to be done.
6990
6991    The linker will also call the `write_object_contents' entry point
6992 when the BFD is closed.  The two entry points must work together in
6993 order to produce the correct output file.
6994
6995    The details of how this works are inevitably dependent upon the
6996 specific object file format.  The a.out `_bfd_final_link' routine is
6997 `NAME(aout,final_link)'.
6998
6999 * Menu:
7000
7001 * Information provided by the linker::
7002 * Relocating the section contents::
7003 * Writing the symbol table::
7004
7005 \1f
7006 File: bfd.info,  Node: Information provided by the linker,  Next: Relocating the section contents,  Prev: Performing the Final Link,  Up: Performing the Final Link
7007
7008 2.17.3.1 Information provided by the linker
7009 ...........................................
7010
7011 Before the linker calls the `_bfd_final_link' entry point, it sets up
7012 some data structures for the function to use.
7013
7014    The `input_bfds' field of the `bfd_link_info' structure will point
7015 to a list of all the input files included in the link.  These files are
7016 linked through the `link_next' field of the `bfd' structure.
7017
7018    Each section in the output file will have a list of `link_order'
7019 structures attached to the `map_head.link_order' field (the
7020 `link_order' structure is defined in `bfdlink.h').  These structures
7021 describe how to create the contents of the output section in terms of
7022 the contents of various input sections, fill constants, and,
7023 eventually, other types of information.  They also describe relocs that
7024 must be created by the BFD backend, but do not correspond to any input
7025 file; this is used to support -Ur, which builds constructors while
7026 generating a relocatable object file.
7027
7028 \1f
7029 File: bfd.info,  Node: Relocating the section contents,  Next: Writing the symbol table,  Prev: Information provided by the linker,  Up: Performing the Final Link
7030
7031 2.17.3.2 Relocating the section contents
7032 ........................................
7033
7034 The `_bfd_final_link' function should look through the `link_order'
7035 structures attached to each section of the output file.  Each
7036 `link_order' structure should either be handled specially, or it should
7037 be passed to the function `_bfd_default_link_order' which will do the
7038 right thing (`_bfd_default_link_order' is defined in `linker.c').
7039
7040    For efficiency, a `link_order' of type `bfd_indirect_link_order'
7041 whose associated section belongs to a BFD of the same format as the
7042 output BFD must be handled specially.  This type of `link_order'
7043 describes part of an output section in terms of a section belonging to
7044 one of the input files.  The `_bfd_final_link' function should read the
7045 contents of the section and any associated relocs, apply the relocs to
7046 the section contents, and write out the modified section contents.  If
7047 performing a relocatable link, the relocs themselves must also be
7048 modified and written out.
7049
7050    The functions `_bfd_relocate_contents' and
7051 `_bfd_final_link_relocate' provide some general support for performing
7052 the actual relocations, notably overflow checking.  Their arguments
7053 include information about the symbol the relocation is against and a
7054 `reloc_howto_type' argument which describes the relocation to perform.
7055 These functions are defined in `reloc.c'.
7056
7057    The a.out function which handles reading, relocating, and writing
7058 section contents is `aout_link_input_section'.  The actual relocation
7059 is done in `aout_link_input_section_std' and
7060 `aout_link_input_section_ext'.
7061
7062 \1f
7063 File: bfd.info,  Node: Writing the symbol table,  Prev: Relocating the section contents,  Up: Performing the Final Link
7064
7065 2.17.3.3 Writing the symbol table
7066 .................................
7067
7068 The `_bfd_final_link' function must gather all the symbols in the input
7069 files and write them out.  It must also write out all the symbols in
7070 the global hash table.  This must be controlled by the `strip' and
7071 `discard' fields of the `bfd_link_info' structure.
7072
7073    The local symbols of the input files will not have been entered into
7074 the linker hash table.  The `_bfd_final_link' routine must consider
7075 each input file and include the symbols in the output file.  It may be
7076 convenient to do this when looking through the `link_order' structures,
7077 or it may be done by stepping through the `input_bfds' list.
7078
7079    The `_bfd_final_link' routine must also traverse the global hash
7080 table to gather all the externally visible symbols.  It is possible
7081 that most of the externally visible symbols may be written out when
7082 considering the symbols of each input file, but it is still necessary
7083 to traverse the hash table since the linker script may have defined
7084 some symbols that are not in any of the input files.
7085
7086    The `strip' field of the `bfd_link_info' structure controls which
7087 symbols are written out.  The possible values are listed in
7088 `bfdlink.h'.  If the value is `strip_some', then the `keep_hash' field
7089 of the `bfd_link_info' structure is a hash table of symbols to keep;
7090 each symbol should be looked up in this hash table, and only symbols
7091 which are present should be included in the output file.
7092
7093    If the `strip' field of the `bfd_link_info' structure permits local
7094 symbols to be written out, the `discard' field is used to further
7095 controls which local symbols are included in the output file.  If the
7096 value is `discard_l', then all local symbols which begin with a certain
7097 prefix are discarded; this is controlled by the
7098 `bfd_is_local_label_name' entry point.
7099
7100    The a.out backend handles symbols by calling
7101 `aout_link_write_symbols' on each input BFD and then traversing the
7102 global hash table with the function `aout_link_write_other_symbol'.  It
7103 builds a string table while writing out the symbols, which is written
7104 to the output file at the end of `NAME(aout,final_link)'.
7105
7106 2.17.3.4 `bfd_link_split_section'
7107 .................................
7108
7109 *Synopsis*
7110      bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec);
7111    *Description*
7112 Return nonzero if SEC should be split during a reloceatable or final
7113 link.
7114      #define bfd_link_split_section(abfd, sec) \
7115             BFD_SEND (abfd, _bfd_link_split_section, (abfd, sec))
7116
7117 2.17.3.5 `bfd_section_already_linked'
7118 .....................................
7119
7120 *Synopsis*
7121      void bfd_section_already_linked (bfd *abfd, asection *sec);
7122    *Description*
7123 Check if SEC has been already linked during a reloceatable or final
7124 link.
7125      #define bfd_section_already_linked(abfd, sec) \
7126             BFD_SEND (abfd, _section_already_linked, (abfd, sec))
7127
7128 \1f
7129 File: bfd.info,  Node: Hash Tables,  Prev: Linker Functions,  Up: BFD front end
7130
7131 2.18 Hash Tables
7132 ================
7133
7134 BFD provides a simple set of hash table functions.  Routines are
7135 provided to initialize a hash table, to free a hash table, to look up a
7136 string in a hash table and optionally create an entry for it, and to
7137 traverse a hash table.  There is currently no routine to delete an
7138 string from a hash table.
7139
7140    The basic hash table does not permit any data to be stored with a
7141 string.  However, a hash table is designed to present a base class from
7142 which other types of hash tables may be derived.  These derived types
7143 may store additional information with the string.  Hash tables were
7144 implemented in this way, rather than simply providing a data pointer in
7145 a hash table entry, because they were designed for use by the linker
7146 back ends.  The linker may create thousands of hash table entries, and
7147 the overhead of allocating private data and storing and following
7148 pointers becomes noticeable.
7149
7150    The basic hash table code is in `hash.c'.
7151
7152 * Menu:
7153
7154 * Creating and Freeing a Hash Table::
7155 * Looking Up or Entering a String::
7156 * Traversing a Hash Table::
7157 * Deriving a New Hash Table Type::
7158
7159 \1f
7160 File: bfd.info,  Node: Creating and Freeing a Hash Table,  Next: Looking Up or Entering a String,  Prev: Hash Tables,  Up: Hash Tables
7161
7162 2.18.1 Creating and freeing a hash table
7163 ----------------------------------------
7164
7165 To create a hash table, create an instance of a `struct bfd_hash_table'
7166 (defined in `bfd.h') and call `bfd_hash_table_init' (if you know
7167 approximately how many entries you will need, the function
7168 `bfd_hash_table_init_n', which takes a SIZE argument, may be used).
7169 `bfd_hash_table_init' returns `FALSE' if some sort of error occurs.
7170
7171    The function `bfd_hash_table_init' take as an argument a function to
7172 use to create new entries.  For a basic hash table, use the function
7173 `bfd_hash_newfunc'.  *Note Deriving a New Hash Table Type::, for why
7174 you would want to use a different value for this argument.
7175
7176    `bfd_hash_table_init' will create an objalloc which will be used to
7177 allocate new entries.  You may allocate memory on this objalloc using
7178 `bfd_hash_allocate'.
7179
7180    Use `bfd_hash_table_free' to free up all the memory that has been
7181 allocated for a hash table.  This will not free up the `struct
7182 bfd_hash_table' itself, which you must provide.
7183
7184    Use `bfd_hash_set_default_size' to set the default size of hash
7185 table to use.
7186
7187 \1f
7188 File: bfd.info,  Node: Looking Up or Entering a String,  Next: Traversing a Hash Table,  Prev: Creating and Freeing a Hash Table,  Up: Hash Tables
7189
7190 2.18.2 Looking up or entering a string
7191 --------------------------------------
7192
7193 The function `bfd_hash_lookup' is used both to look up a string in the
7194 hash table and to create a new entry.
7195
7196    If the CREATE argument is `FALSE', `bfd_hash_lookup' will look up a
7197 string.  If the string is found, it will returns a pointer to a `struct
7198 bfd_hash_entry'.  If the string is not found in the table
7199 `bfd_hash_lookup' will return `NULL'.  You should not modify any of the
7200 fields in the returns `struct bfd_hash_entry'.
7201
7202    If the CREATE argument is `TRUE', the string will be entered into
7203 the hash table if it is not already there.  Either way a pointer to a
7204 `struct bfd_hash_entry' will be returned, either to the existing
7205 structure or to a newly created one.  In this case, a `NULL' return
7206 means that an error occurred.
7207
7208    If the CREATE argument is `TRUE', and a new entry is created, the
7209 COPY argument is used to decide whether to copy the string onto the
7210 hash table objalloc or not.  If COPY is passed as `FALSE', you must be
7211 careful not to deallocate or modify the string as long as the hash table
7212 exists.
7213
7214 \1f
7215 File: bfd.info,  Node: Traversing a Hash Table,  Next: Deriving a New Hash Table Type,  Prev: Looking Up or Entering a String,  Up: Hash Tables
7216
7217 2.18.3 Traversing a hash table
7218 ------------------------------
7219
7220 The function `bfd_hash_traverse' may be used to traverse a hash table,
7221 calling a function on each element.  The traversal is done in a random
7222 order.
7223
7224    `bfd_hash_traverse' takes as arguments a function and a generic
7225 `void *' pointer.  The function is called with a hash table entry (a
7226 `struct bfd_hash_entry *') and the generic pointer passed to
7227 `bfd_hash_traverse'.  The function must return a `boolean' value, which
7228 indicates whether to continue traversing the hash table.  If the
7229 function returns `FALSE', `bfd_hash_traverse' will stop the traversal
7230 and return immediately.
7231
7232 \1f
7233 File: bfd.info,  Node: Deriving a New Hash Table Type,  Prev: Traversing a Hash Table,  Up: Hash Tables
7234
7235 2.18.4 Deriving a new hash table type
7236 -------------------------------------
7237
7238 Many uses of hash tables want to store additional information which
7239 each entry in the hash table.  Some also find it convenient to store
7240 additional information with the hash table itself.  This may be done
7241 using a derived hash table.
7242
7243    Since C is not an object oriented language, creating a derived hash
7244 table requires sticking together some boilerplate routines with a few
7245 differences specific to the type of hash table you want to create.
7246
7247    An example of a derived hash table is the linker hash table.  The
7248 structures for this are defined in `bfdlink.h'.  The functions are in
7249 `linker.c'.
7250
7251    You may also derive a hash table from an already derived hash table.
7252 For example, the a.out linker backend code uses a hash table derived
7253 from the linker hash table.
7254
7255 * Menu:
7256
7257 * Define the Derived Structures::
7258 * Write the Derived Creation Routine::
7259 * Write Other Derived Routines::
7260
7261 \1f
7262 File: bfd.info,  Node: Define the Derived Structures,  Next: Write the Derived Creation Routine,  Prev: Deriving a New Hash Table Type,  Up: Deriving a New Hash Table Type
7263
7264 2.18.4.1 Define the derived structures
7265 ......................................
7266
7267 You must define a structure for an entry in the hash table, and a
7268 structure for the hash table itself.
7269
7270    The first field in the structure for an entry in the hash table must
7271 be of the type used for an entry in the hash table you are deriving
7272 from.  If you are deriving from a basic hash table this is `struct
7273 bfd_hash_entry', which is defined in `bfd.h'.  The first field in the
7274 structure for the hash table itself must be of the type of the hash
7275 table you are deriving from itself.  If you are deriving from a basic
7276 hash table, this is `struct bfd_hash_table'.
7277
7278    For example, the linker hash table defines `struct
7279 bfd_link_hash_entry' (in `bfdlink.h').  The first field, `root', is of
7280 type `struct bfd_hash_entry'.  Similarly, the first field in `struct
7281 bfd_link_hash_table', `table', is of type `struct bfd_hash_table'.
7282
7283 \1f
7284 File: bfd.info,  Node: Write the Derived Creation Routine,  Next: Write Other Derived Routines,  Prev: Define the Derived Structures,  Up: Deriving a New Hash Table Type
7285
7286 2.18.4.2 Write the derived creation routine
7287 ...........................................
7288
7289 You must write a routine which will create and initialize an entry in
7290 the hash table.  This routine is passed as the function argument to
7291 `bfd_hash_table_init'.
7292
7293    In order to permit other hash tables to be derived from the hash
7294 table you are creating, this routine must be written in a standard way.
7295
7296    The first argument to the creation routine is a pointer to a hash
7297 table entry.  This may be `NULL', in which case the routine should
7298 allocate the right amount of space.  Otherwise the space has already
7299 been allocated by a hash table type derived from this one.
7300
7301    After allocating space, the creation routine must call the creation
7302 routine of the hash table type it is derived from, passing in a pointer
7303 to the space it just allocated.  This will initialize any fields used
7304 by the base hash table.
7305
7306    Finally the creation routine must initialize any local fields for
7307 the new hash table type.
7308
7309    Here is a boilerplate example of a creation routine.  FUNCTION_NAME
7310 is the name of the routine.  ENTRY_TYPE is the type of an entry in the
7311 hash table you are creating.  BASE_NEWFUNC is the name of the creation
7312 routine of the hash table type your hash table is derived from.
7313
7314      struct bfd_hash_entry *
7315      FUNCTION_NAME (struct bfd_hash_entry *entry,
7316                           struct bfd_hash_table *table,
7317                           const char *string)
7318      {
7319        struct ENTRY_TYPE *ret = (ENTRY_TYPE *) entry;
7320
7321       /* Allocate the structure if it has not already been allocated by a
7322          derived class.  */
7323        if (ret == NULL)
7324          {
7325            ret = bfd_hash_allocate (table, sizeof (* ret));
7326            if (ret == NULL)
7327              return NULL;
7328          }
7329
7330       /* Call the allocation method of the base class.  */
7331        ret = ((ENTRY_TYPE *)
7332              BASE_NEWFUNC ((struct bfd_hash_entry *) ret, table, string));
7333
7334       /* Initialize the local fields here.  */
7335
7336        return (struct bfd_hash_entry *) ret;
7337      }
7338    *Description*
7339 The creation routine for the linker hash table, which is in `linker.c',
7340 looks just like this example.  FUNCTION_NAME is
7341 `_bfd_link_hash_newfunc'.  ENTRY_TYPE is `struct bfd_link_hash_entry'.
7342 BASE_NEWFUNC is `bfd_hash_newfunc', the creation routine for a basic
7343 hash table.
7344
7345    `_bfd_link_hash_newfunc' also initializes the local fields in a
7346 linker hash table entry: `type', `written' and `next'.
7347
7348 \1f
7349 File: bfd.info,  Node: Write Other Derived Routines,  Prev: Write the Derived Creation Routine,  Up: Deriving a New Hash Table Type
7350
7351 2.18.4.3 Write other derived routines
7352 .....................................
7353
7354 You will want to write other routines for your new hash table, as well.
7355
7356    You will want an initialization routine which calls the
7357 initialization routine of the hash table you are deriving from and
7358 initializes any other local fields.  For the linker hash table, this is
7359 `_bfd_link_hash_table_init' in `linker.c'.
7360
7361    You will want a lookup routine which calls the lookup routine of the
7362 hash table you are deriving from and casts the result.  The linker hash
7363 table uses `bfd_link_hash_lookup' in `linker.c' (this actually takes an
7364 additional argument which it uses to decide how to return the looked up
7365 value).
7366
7367    You may want a traversal routine.  This should just call the
7368 traversal routine of the hash table you are deriving from with
7369 appropriate casts.  The linker hash table uses `bfd_link_hash_traverse'
7370 in `linker.c'.
7371
7372    These routines may simply be defined as macros.  For example, the
7373 a.out backend linker hash table, which is derived from the linker hash
7374 table, uses macros for the lookup and traversal routines.  These are
7375 `aout_link_hash_lookup' and `aout_link_hash_traverse' in aoutx.h.
7376
7377 \1f
7378 File: bfd.info,  Node: BFD back ends,  Next: GNU Free Documentation License,  Prev: BFD front end,  Up: Top
7379
7380 3 BFD back ends
7381 ***************
7382
7383 * Menu:
7384
7385 * What to Put Where::
7386 * aout ::       a.out backends
7387 * coff ::       coff backends
7388 * elf  ::       elf backends
7389 * mmo  ::       mmo backend
7390
7391 \1f
7392 File: bfd.info,  Node: What to Put Where,  Next: aout,  Prev: BFD back ends,  Up: BFD back ends
7393
7394    All of BFD lives in one directory.
7395
7396 \1f
7397 File: bfd.info,  Node: aout,  Next: coff,  Prev: What to Put Where,  Up: BFD back ends
7398
7399 3.1 a.out backends
7400 ==================
7401
7402 *Description*
7403 BFD supports a number of different flavours of a.out format, though the
7404 major differences are only the sizes of the structures on disk, and the
7405 shape of the relocation information.
7406
7407    The support is split into a basic support file `aoutx.h' and other
7408 files which derive functions from the base. One derivation file is
7409 `aoutf1.h' (for a.out flavour 1), and adds to the basic a.out functions
7410 support for sun3, sun4, 386 and 29k a.out files, to create a target
7411 jump vector for a specific target.
7412
7413    This information is further split out into more specific files for
7414 each machine, including `sunos.c' for sun3 and sun4, `newsos3.c' for
7415 the Sony NEWS, and `demo64.c' for a demonstration of a 64 bit a.out
7416 format.
7417
7418    The base file `aoutx.h' defines general mechanisms for reading and
7419 writing records to and from disk and various other methods which BFD
7420 requires. It is included by `aout32.c' and `aout64.c' to form the names
7421 `aout_32_swap_exec_header_in', `aout_64_swap_exec_header_in', etc.
7422
7423    As an example, this is what goes on to make the back end for a sun4,
7424 from `aout32.c':
7425
7426             #define ARCH_SIZE 32
7427             #include "aoutx.h"
7428
7429    Which exports names:
7430
7431             ...
7432             aout_32_canonicalize_reloc
7433             aout_32_find_nearest_line
7434             aout_32_get_lineno
7435             aout_32_get_reloc_upper_bound
7436             ...
7437
7438    from `sunos.c':
7439
7440             #define TARGET_NAME "a.out-sunos-big"
7441             #define VECNAME    sunos_big_vec
7442             #include "aoutf1.h"
7443
7444    requires all the names from `aout32.c', and produces the jump vector
7445
7446             sunos_big_vec
7447
7448    The file `host-aout.c' is a special case.  It is for a large set of
7449 hosts that use "more or less standard" a.out files, and for which
7450 cross-debugging is not interesting.  It uses the standard 32-bit a.out
7451 support routines, but determines the file offsets and addresses of the
7452 text, data, and BSS sections, the machine architecture and machine
7453 type, and the entry point address, in a host-dependent manner.  Once
7454 these values have been determined, generic code is used to handle the
7455 object file.
7456
7457    When porting it to run on a new system, you must supply:
7458
7459              HOST_PAGE_SIZE
7460              HOST_SEGMENT_SIZE
7461              HOST_MACHINE_ARCH       (optional)
7462              HOST_MACHINE_MACHINE    (optional)
7463              HOST_TEXT_START_ADDR
7464              HOST_STACK_END_ADDR
7465
7466    in the file `../include/sys/h-XXX.h' (for your host).  These values,
7467 plus the structures and macros defined in `a.out.h' on your host
7468 system, will produce a BFD target that will access ordinary a.out files
7469 on your host. To configure a new machine to use `host-aout.c', specify:
7470
7471             TDEFAULTS = -DDEFAULT_VECTOR=host_aout_big_vec
7472             TDEPFILES= host-aout.o trad-core.o
7473
7474    in the `config/XXX.mt' file, and modify `configure.in' to use the
7475 `XXX.mt' file (by setting "`bfd_target=XXX'") when your configuration
7476 is selected.
7477
7478 3.1.1 Relocations
7479 -----------------
7480
7481 *Description*
7482 The file `aoutx.h' provides for both the _standard_ and _extended_
7483 forms of a.out relocation records.
7484
7485    The standard records contain only an address, a symbol index, and a
7486 type field. The extended records (used on 29ks and sparcs) also have a
7487 full integer for an addend.
7488
7489 3.1.2 Internal entry points
7490 ---------------------------
7491
7492 *Description*
7493 `aoutx.h' exports several routines for accessing the contents of an
7494 a.out file, which are gathered and exported in turn by various format
7495 specific files (eg sunos.c).
7496
7497 3.1.2.1 `aout_SIZE_swap_exec_header_in'
7498 .......................................
7499
7500 *Synopsis*
7501      void aout_SIZE_swap_exec_header_in,
7502         (bfd *abfd,
7503          struct external_exec *bytes,
7504          struct internal_exec *execp);
7505    *Description*
7506 Swap the information in an executable header RAW_BYTES taken from a raw
7507 byte stream memory image into the internal exec header structure EXECP.
7508
7509 3.1.2.2 `aout_SIZE_swap_exec_header_out'
7510 ........................................
7511
7512 *Synopsis*
7513      void aout_SIZE_swap_exec_header_out
7514         (bfd *abfd,
7515          struct internal_exec *execp,
7516          struct external_exec *raw_bytes);
7517    *Description*
7518 Swap the information in an internal exec header structure EXECP into
7519 the buffer RAW_BYTES ready for writing to disk.
7520
7521 3.1.2.3 `aout_SIZE_some_aout_object_p'
7522 ......................................
7523
7524 *Synopsis*
7525      const bfd_target *aout_SIZE_some_aout_object_p
7526         (bfd *abfd,
7527          struct internal_exec *execp,
7528          const bfd_target *(*callback_to_real_object_p) (bfd *));
7529    *Description*
7530 Some a.out variant thinks that the file open in ABFD checking is an
7531 a.out file.  Do some more checking, and set up for access if it really
7532 is.  Call back to the calling environment's "finish up" function just
7533 before returning, to handle any last-minute setup.
7534
7535 3.1.2.4 `aout_SIZE_mkobject'
7536 ............................
7537
7538 *Synopsis*
7539      bfd_boolean aout_SIZE_mkobject, (bfd *abfd);
7540    *Description*
7541 Initialize BFD ABFD for use with a.out files.
7542
7543 3.1.2.5 `aout_SIZE_machine_type'
7544 ................................
7545
7546 *Synopsis*
7547      enum machine_type  aout_SIZE_machine_type
7548         (enum bfd_architecture arch,
7549          unsigned long machine,
7550          bfd_boolean *unknown);
7551    *Description*
7552 Keep track of machine architecture and machine type for a.out's. Return
7553 the `machine_type' for a particular architecture and machine, or
7554 `M_UNKNOWN' if that exact architecture and machine can't be represented
7555 in a.out format.
7556
7557    If the architecture is understood, machine type 0 (default) is
7558 always understood.
7559
7560 3.1.2.6 `aout_SIZE_set_arch_mach'
7561 .................................
7562
7563 *Synopsis*
7564      bfd_boolean aout_SIZE_set_arch_mach,
7565         (bfd *,
7566          enum bfd_architecture arch,
7567          unsigned long machine);
7568    *Description*
7569 Set the architecture and the machine of the BFD ABFD to the values ARCH
7570 and MACHINE.  Verify that ABFD's format can support the architecture
7571 required.
7572
7573 3.1.2.7 `aout_SIZE_new_section_hook'
7574 ....................................
7575
7576 *Synopsis*
7577      bfd_boolean aout_SIZE_new_section_hook,
7578         (bfd *abfd,
7579          asection *newsect);
7580    *Description*
7581 Called by the BFD in response to a `bfd_make_section' request.
7582
7583 \1f
7584 File: bfd.info,  Node: coff,  Next: elf,  Prev: aout,  Up: BFD back ends
7585
7586 3.2 coff backends
7587 =================
7588
7589 BFD supports a number of different flavours of coff format.  The major
7590 differences between formats are the sizes and alignments of fields in
7591 structures on disk, and the occasional extra field.
7592
7593    Coff in all its varieties is implemented with a few common files and
7594 a number of implementation specific files. For example, The 88k bcs
7595 coff format is implemented in the file `coff-m88k.c'. This file
7596 `#include's `coff/m88k.h' which defines the external structure of the
7597 coff format for the 88k, and `coff/internal.h' which defines the
7598 internal structure. `coff-m88k.c' also defines the relocations used by
7599 the 88k format *Note Relocations::.
7600
7601    The Intel i960 processor version of coff is implemented in
7602 `coff-i960.c'. This file has the same structure as `coff-m88k.c',
7603 except that it includes `coff/i960.h' rather than `coff-m88k.h'.
7604
7605 3.2.1 Porting to a new version of coff
7606 --------------------------------------
7607
7608 The recommended method is to select from the existing implementations
7609 the version of coff which is most like the one you want to use.  For
7610 example, we'll say that i386 coff is the one you select, and that your
7611 coff flavour is called foo.  Copy `i386coff.c' to `foocoff.c', copy
7612 `../include/coff/i386.h' to `../include/coff/foo.h', and add the lines
7613 to `targets.c' and `Makefile.in' so that your new back end is used.
7614 Alter the shapes of the structures in `../include/coff/foo.h' so that
7615 they match what you need. You will probably also have to add `#ifdef's
7616 to the code in `coff/internal.h' and `coffcode.h' if your version of
7617 coff is too wild.
7618
7619    You can verify that your new BFD backend works quite simply by
7620 building `objdump' from the `binutils' directory, and making sure that
7621 its version of what's going on and your host system's idea (assuming it
7622 has the pretty standard coff dump utility, usually called `att-dump' or
7623 just `dump') are the same.  Then clean up your code, and send what
7624 you've done to Cygnus. Then your stuff will be in the next release, and
7625 you won't have to keep integrating it.
7626
7627 3.2.2 How the coff backend works
7628 --------------------------------
7629
7630 3.2.2.1 File layout
7631 ...................
7632
7633 The Coff backend is split into generic routines that are applicable to
7634 any Coff target and routines that are specific to a particular target.
7635 The target-specific routines are further split into ones which are
7636 basically the same for all Coff targets except that they use the
7637 external symbol format or use different values for certain constants.
7638
7639    The generic routines are in `coffgen.c'.  These routines work for
7640 any Coff target.  They use some hooks into the target specific code;
7641 the hooks are in a `bfd_coff_backend_data' structure, one of which
7642 exists for each target.
7643
7644    The essentially similar target-specific routines are in
7645 `coffcode.h'.  This header file includes executable C code.  The
7646 various Coff targets first include the appropriate Coff header file,
7647 make any special defines that are needed, and then include `coffcode.h'.
7648
7649    Some of the Coff targets then also have additional routines in the
7650 target source file itself.
7651
7652    For example, `coff-i960.c' includes `coff/internal.h' and
7653 `coff/i960.h'.  It then defines a few constants, such as `I960', and
7654 includes `coffcode.h'.  Since the i960 has complex relocation types,
7655 `coff-i960.c' also includes some code to manipulate the i960 relocs.
7656 This code is not in `coffcode.h' because it would not be used by any
7657 other target.
7658
7659 3.2.2.2 Bit twiddling
7660 .....................
7661
7662 Each flavour of coff supported in BFD has its own header file
7663 describing the external layout of the structures. There is also an
7664 internal description of the coff layout, in `coff/internal.h'. A major
7665 function of the coff backend is swapping the bytes and twiddling the
7666 bits to translate the external form of the structures into the normal
7667 internal form. This is all performed in the `bfd_swap'_thing_direction
7668 routines. Some elements are different sizes between different versions
7669 of coff; it is the duty of the coff version specific include file to
7670 override the definitions of various packing routines in `coffcode.h'.
7671 E.g., the size of line number entry in coff is sometimes 16 bits, and
7672 sometimes 32 bits. `#define'ing `PUT_LNSZ_LNNO' and `GET_LNSZ_LNNO'
7673 will select the correct one. No doubt, some day someone will find a
7674 version of coff which has a varying field size not catered to at the
7675 moment. To port BFD, that person will have to add more `#defines'.
7676 Three of the bit twiddling routines are exported to `gdb';
7677 `coff_swap_aux_in', `coff_swap_sym_in' and `coff_swap_lineno_in'. `GDB'
7678 reads the symbol table on its own, but uses BFD to fix things up.  More
7679 of the bit twiddlers are exported for `gas'; `coff_swap_aux_out',
7680 `coff_swap_sym_out', `coff_swap_lineno_out', `coff_swap_reloc_out',
7681 `coff_swap_filehdr_out', `coff_swap_aouthdr_out',
7682 `coff_swap_scnhdr_out'. `Gas' currently keeps track of all the symbol
7683 table and reloc drudgery itself, thereby saving the internal BFD
7684 overhead, but uses BFD to swap things on the way out, making cross
7685 ports much safer.  Doing so also allows BFD (and thus the linker) to
7686 use the same header files as `gas', which makes one avenue to disaster
7687 disappear.
7688
7689 3.2.2.3 Symbol reading
7690 ......................
7691
7692 The simple canonical form for symbols used by BFD is not rich enough to
7693 keep all the information available in a coff symbol table. The back end
7694 gets around this problem by keeping the original symbol table around,
7695 "behind the scenes".
7696
7697    When a symbol table is requested (through a call to
7698 `bfd_canonicalize_symtab'), a request gets through to
7699 `coff_get_normalized_symtab'. This reads the symbol table from the coff
7700 file and swaps all the structures inside into the internal form. It
7701 also fixes up all the pointers in the table (represented in the file by
7702 offsets from the first symbol in the table) into physical pointers to
7703 elements in the new internal table. This involves some work since the
7704 meanings of fields change depending upon context: a field that is a
7705 pointer to another structure in the symbol table at one moment may be
7706 the size in bytes of a structure at the next.  Another pass is made
7707 over the table. All symbols which mark file names (`C_FILE' symbols)
7708 are modified so that the internal string points to the value in the
7709 auxent (the real filename) rather than the normal text associated with
7710 the symbol (`".file"').
7711
7712    At this time the symbol names are moved around. Coff stores all
7713 symbols less than nine characters long physically within the symbol
7714 table; longer strings are kept at the end of the file in the string
7715 table. This pass moves all strings into memory and replaces them with
7716 pointers to the strings.
7717
7718    The symbol table is massaged once again, this time to create the
7719 canonical table used by the BFD application. Each symbol is inspected
7720 in turn, and a decision made (using the `sclass' field) about the
7721 various flags to set in the `asymbol'.  *Note Symbols::. The generated
7722 canonical table shares strings with the hidden internal symbol table.
7723
7724    Any linenumbers are read from the coff file too, and attached to the
7725 symbols which own the functions the linenumbers belong to.
7726
7727 3.2.2.4 Symbol writing
7728 ......................
7729
7730 Writing a symbol to a coff file which didn't come from a coff file will
7731 lose any debugging information. The `asymbol' structure remembers the
7732 BFD from which the symbol was taken, and on output the back end makes
7733 sure that the same destination target as source target is present.
7734
7735    When the symbols have come from a coff file then all the debugging
7736 information is preserved.
7737
7738    Symbol tables are provided for writing to the back end in a vector
7739 of pointers to pointers. This allows applications like the linker to
7740 accumulate and output large symbol tables without having to do too much
7741 byte copying.
7742
7743    This function runs through the provided symbol table and patches
7744 each symbol marked as a file place holder (`C_FILE') to point to the
7745 next file place holder in the list. It also marks each `offset' field
7746 in the list with the offset from the first symbol of the current symbol.
7747
7748    Another function of this procedure is to turn the canonical value
7749 form of BFD into the form used by coff. Internally, BFD expects symbol
7750 values to be offsets from a section base; so a symbol physically at
7751 0x120, but in a section starting at 0x100, would have the value 0x20.
7752 Coff expects symbols to contain their final value, so symbols have
7753 their values changed at this point to reflect their sum with their
7754 owning section.  This transformation uses the `output_section' field of
7755 the `asymbol''s `asection' *Note Sections::.
7756
7757    * `coff_mangle_symbols'
7758    This routine runs though the provided symbol table and uses the
7759 offsets generated by the previous pass and the pointers generated when
7760 the symbol table was read in to create the structured hierarchy
7761 required by coff. It changes each pointer to a symbol into the index
7762 into the symbol table of the asymbol.
7763
7764    * `coff_write_symbols'
7765    This routine runs through the symbol table and patches up the
7766 symbols from their internal form into the coff way, calls the bit
7767 twiddlers, and writes out the table to the file.
7768
7769 3.2.2.5 `coff_symbol_type'
7770 ..........................
7771
7772 *Description*
7773 The hidden information for an `asymbol' is described in a
7774 `combined_entry_type':
7775
7776
7777      typedef struct coff_ptr_struct
7778      {
7779        /* Remembers the offset from the first symbol in the file for
7780           this symbol. Generated by coff_renumber_symbols. */
7781        unsigned int offset;
7782
7783        /* Should the value of this symbol be renumbered.  Used for
7784           XCOFF C_BSTAT symbols.  Set by coff_slurp_symbol_table.  */
7785        unsigned int fix_value : 1;
7786
7787        /* Should the tag field of this symbol be renumbered.
7788           Created by coff_pointerize_aux. */
7789        unsigned int fix_tag : 1;
7790
7791        /* Should the endidx field of this symbol be renumbered.
7792           Created by coff_pointerize_aux. */
7793        unsigned int fix_end : 1;
7794
7795        /* Should the x_csect.x_scnlen field be renumbered.
7796           Created by coff_pointerize_aux. */
7797        unsigned int fix_scnlen : 1;
7798
7799        /* Fix up an XCOFF C_BINCL/C_EINCL symbol.  The value is the
7800           index into the line number entries.  Set by coff_slurp_symbol_table.  */
7801        unsigned int fix_line : 1;
7802
7803        /* The container for the symbol structure as read and translated
7804           from the file. */
7805        union
7806        {
7807          union internal_auxent auxent;
7808          struct internal_syment syment;
7809        } u;
7810      } combined_entry_type;
7811
7812
7813      /* Each canonical asymbol really looks like this: */
7814
7815      typedef struct coff_symbol_struct
7816      {
7817        /* The actual symbol which the rest of BFD works with */
7818        asymbol symbol;
7819
7820        /* A pointer to the hidden information for this symbol */
7821        combined_entry_type *native;
7822
7823        /* A pointer to the linenumber information for this symbol */
7824        struct lineno_cache_entry *lineno;
7825
7826        /* Have the line numbers been relocated yet ? */
7827        bfd_boolean done_lineno;
7828      } coff_symbol_type;
7829    
7830 3.2.2.6 `bfd_coff_backend_data'
7831 ...............................
7832
7833      /* COFF symbol classifications.  */
7834
7835      enum coff_symbol_classification
7836      {
7837        /* Global symbol.  */
7838        COFF_SYMBOL_GLOBAL,
7839        /* Common symbol.  */
7840        COFF_SYMBOL_COMMON,
7841        /* Undefined symbol.  */
7842        COFF_SYMBOL_UNDEFINED,
7843        /* Local symbol.  */
7844        COFF_SYMBOL_LOCAL,
7845        /* PE section symbol.  */
7846        COFF_SYMBOL_PE_SECTION
7847      };
7848 Special entry points for gdb to swap in coff symbol table parts:
7849      typedef struct
7850      {
7851        void (*_bfd_coff_swap_aux_in)
7852          (bfd *, void *, int, int, int, int, void *);
7853
7854        void (*_bfd_coff_swap_sym_in)
7855          (bfd *, void *, void *);
7856
7857        void (*_bfd_coff_swap_lineno_in)
7858          (bfd *, void *, void *);
7859
7860        unsigned int (*_bfd_coff_swap_aux_out)
7861          (bfd *, void *, int, int, int, int, void *);
7862
7863        unsigned int (*_bfd_coff_swap_sym_out)
7864          (bfd *, void *, void *);
7865
7866        unsigned int (*_bfd_coff_swap_lineno_out)
7867          (bfd *, void *, void *);
7868
7869        unsigned int (*_bfd_coff_swap_reloc_out)
7870          (bfd *, void *, void *);
7871
7872        unsigned int (*_bfd_coff_swap_filehdr_out)
7873          (bfd *, void *, void *);
7874
7875        unsigned int (*_bfd_coff_swap_aouthdr_out)
7876          (bfd *, void *, void *);
7877
7878        unsigned int (*_bfd_coff_swap_scnhdr_out)
7879          (bfd *, void *, void *);
7880
7881        unsigned int _bfd_filhsz;
7882        unsigned int _bfd_aoutsz;
7883        unsigned int _bfd_scnhsz;
7884        unsigned int _bfd_symesz;
7885        unsigned int _bfd_auxesz;
7886        unsigned int _bfd_relsz;
7887        unsigned int _bfd_linesz;
7888        unsigned int _bfd_filnmlen;
7889        bfd_boolean _bfd_coff_long_filenames;
7890        bfd_boolean _bfd_coff_long_section_names;
7891        unsigned int _bfd_coff_default_section_alignment_power;
7892        bfd_boolean _bfd_coff_force_symnames_in_strings;
7893        unsigned int _bfd_coff_debug_string_prefix_length;
7894
7895        void (*_bfd_coff_swap_filehdr_in)
7896          (bfd *, void *, void *);
7897
7898        void (*_bfd_coff_swap_aouthdr_in)
7899          (bfd *, void *, void *);
7900
7901        void (*_bfd_coff_swap_scnhdr_in)
7902          (bfd *, void *, void *);
7903
7904        void (*_bfd_coff_swap_reloc_in)
7905          (bfd *abfd, void *, void *);
7906
7907        bfd_boolean (*_bfd_coff_bad_format_hook)
7908          (bfd *, void *);
7909
7910        bfd_boolean (*_bfd_coff_set_arch_mach_hook)
7911          (bfd *, void *);
7912
7913        void * (*_bfd_coff_mkobject_hook)
7914          (bfd *, void *, void *);
7915
7916        bfd_boolean (*_bfd_styp_to_sec_flags_hook)
7917          (bfd *, void *, const char *, asection *, flagword *);
7918
7919        void (*_bfd_set_alignment_hook)
7920          (bfd *, asection *, void *);
7921
7922        bfd_boolean (*_bfd_coff_slurp_symbol_table)
7923          (bfd *);
7924
7925        bfd_boolean (*_bfd_coff_symname_in_debug)
7926          (bfd *, struct internal_syment *);
7927
7928        bfd_boolean (*_bfd_coff_pointerize_aux_hook)
7929          (bfd *, combined_entry_type *, combined_entry_type *,
7930                  unsigned int, combined_entry_type *);
7931
7932        bfd_boolean (*_bfd_coff_print_aux)
7933          (bfd *, FILE *, combined_entry_type *, combined_entry_type *,
7934                  combined_entry_type *, unsigned int);
7935
7936        void (*_bfd_coff_reloc16_extra_cases)
7937          (bfd *, struct bfd_link_info *, struct bfd_link_order *, arelent *,
7938                 bfd_byte *, unsigned int *, unsigned int *);
7939
7940        int (*_bfd_coff_reloc16_estimate)
7941          (bfd *, asection *, arelent *, unsigned int,
7942                  struct bfd_link_info *);
7943
7944        enum coff_symbol_classification (*_bfd_coff_classify_symbol)
7945          (bfd *, struct internal_syment *);
7946
7947        bfd_boolean (*_bfd_coff_compute_section_file_positions)
7948          (bfd *);
7949
7950        bfd_boolean (*_bfd_coff_start_final_link)
7951          (bfd *, struct bfd_link_info *);
7952
7953        bfd_boolean (*_bfd_coff_relocate_section)
7954          (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
7955                  struct internal_reloc *, struct internal_syment *, asection **);
7956
7957        reloc_howto_type *(*_bfd_coff_rtype_to_howto)
7958          (bfd *, asection *, struct internal_reloc *,
7959                  struct coff_link_hash_entry *, struct internal_syment *,
7960                  bfd_vma *);
7961
7962        bfd_boolean (*_bfd_coff_adjust_symndx)
7963          (bfd *, struct bfd_link_info *, bfd *, asection *,
7964                  struct internal_reloc *, bfd_boolean *);
7965
7966        bfd_boolean (*_bfd_coff_link_add_one_symbol)
7967          (struct bfd_link_info *, bfd *, const char *, flagword,
7968                  asection *, bfd_vma, const char *, bfd_boolean, bfd_boolean,
7969                  struct bfd_link_hash_entry **);
7970
7971        bfd_boolean (*_bfd_coff_link_output_has_begun)
7972          (bfd *, struct coff_final_link_info *);
7973
7974        bfd_boolean (*_bfd_coff_final_link_postscript)
7975          (bfd *, struct coff_final_link_info *);
7976
7977      } bfd_coff_backend_data;
7978
7979      #define coff_backend_info(abfd) \
7980        ((bfd_coff_backend_data *) (abfd)->xvec->backend_data)
7981
7982      #define bfd_coff_swap_aux_in(a,e,t,c,ind,num,i) \
7983        ((coff_backend_info (a)->_bfd_coff_swap_aux_in) (a,e,t,c,ind,num,i))
7984
7985      #define bfd_coff_swap_sym_in(a,e,i) \
7986        ((coff_backend_info (a)->_bfd_coff_swap_sym_in) (a,e,i))
7987
7988      #define bfd_coff_swap_lineno_in(a,e,i) \
7989        ((coff_backend_info ( a)->_bfd_coff_swap_lineno_in) (a,e,i))
7990
7991      #define bfd_coff_swap_reloc_out(abfd, i, o) \
7992        ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_out) (abfd, i, o))
7993
7994      #define bfd_coff_swap_lineno_out(abfd, i, o) \
7995        ((coff_backend_info (abfd)->_bfd_coff_swap_lineno_out) (abfd, i, o))
7996
7997      #define bfd_coff_swap_aux_out(a,i,t,c,ind,num,o) \
7998        ((coff_backend_info (a)->_bfd_coff_swap_aux_out) (a,i,t,c,ind,num,o))
7999
8000      #define bfd_coff_swap_sym_out(abfd, i,o) \
8001        ((coff_backend_info (abfd)->_bfd_coff_swap_sym_out) (abfd, i, o))
8002
8003      #define bfd_coff_swap_scnhdr_out(abfd, i,o) \
8004        ((coff_backend_info (abfd)->_bfd_coff_swap_scnhdr_out) (abfd, i, o))
8005
8006      #define bfd_coff_swap_filehdr_out(abfd, i,o) \
8007        ((coff_backend_info (abfd)->_bfd_coff_swap_filehdr_out) (abfd, i, o))
8008
8009      #define bfd_coff_swap_aouthdr_out(abfd, i,o) \
8010        ((coff_backend_info (abfd)->_bfd_coff_swap_aouthdr_out) (abfd, i, o))
8011
8012      #define bfd_coff_filhsz(abfd) (coff_backend_info (abfd)->_bfd_filhsz)
8013      #define bfd_coff_aoutsz(abfd) (coff_backend_info (abfd)->_bfd_aoutsz)
8014      #define bfd_coff_scnhsz(abfd) (coff_backend_info (abfd)->_bfd_scnhsz)
8015      #define bfd_coff_symesz(abfd) (coff_backend_info (abfd)->_bfd_symesz)
8016      #define bfd_coff_auxesz(abfd) (coff_backend_info (abfd)->_bfd_auxesz)
8017      #define bfd_coff_relsz(abfd)  (coff_backend_info (abfd)->_bfd_relsz)
8018      #define bfd_coff_linesz(abfd) (coff_backend_info (abfd)->_bfd_linesz)
8019      #define bfd_coff_filnmlen(abfd) (coff_backend_info (abfd)->_bfd_filnmlen)
8020      #define bfd_coff_long_filenames(abfd) \
8021        (coff_backend_info (abfd)->_bfd_coff_long_filenames)
8022      #define bfd_coff_long_section_names(abfd) \
8023        (coff_backend_info (abfd)->_bfd_coff_long_section_names)
8024      #define bfd_coff_default_section_alignment_power(abfd) \
8025        (coff_backend_info (abfd)->_bfd_coff_default_section_alignment_power)
8026      #define bfd_coff_swap_filehdr_in(abfd, i,o) \
8027        ((coff_backend_info (abfd)->_bfd_coff_swap_filehdr_in) (abfd, i, o))
8028
8029      #define bfd_coff_swap_aouthdr_in(abfd, i,o) \
8030        ((coff_backend_info (abfd)->_bfd_coff_swap_aouthdr_in) (abfd, i, o))
8031
8032      #define bfd_coff_swap_scnhdr_in(abfd, i,o) \
8033        ((coff_backend_info (abfd)->_bfd_coff_swap_scnhdr_in) (abfd, i, o))
8034
8035      #define bfd_coff_swap_reloc_in(abfd, i, o) \
8036        ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_in) (abfd, i, o))
8037
8038      #define bfd_coff_bad_format_hook(abfd, filehdr) \
8039        ((coff_backend_info (abfd)->_bfd_coff_bad_format_hook) (abfd, filehdr))
8040
8041      #define bfd_coff_set_arch_mach_hook(abfd, filehdr)\
8042        ((coff_backend_info (abfd)->_bfd_coff_set_arch_mach_hook) (abfd, filehdr))
8043      #define bfd_coff_mkobject_hook(abfd, filehdr, aouthdr)\
8044        ((coff_backend_info (abfd)->_bfd_coff_mkobject_hook)\
8045         (abfd, filehdr, aouthdr))
8046
8047      #define bfd_coff_styp_to_sec_flags_hook(abfd, scnhdr, name, section, flags_ptr)\
8048        ((coff_backend_info (abfd)->_bfd_styp_to_sec_flags_hook)\
8049         (abfd, scnhdr, name, section, flags_ptr))
8050
8051      #define bfd_coff_set_alignment_hook(abfd, sec, scnhdr)\
8052        ((coff_backend_info (abfd)->_bfd_set_alignment_hook) (abfd, sec, scnhdr))
8053
8054      #define bfd_coff_slurp_symbol_table(abfd)\
8055        ((coff_backend_info (abfd)->_bfd_coff_slurp_symbol_table) (abfd))
8056
8057      #define bfd_coff_symname_in_debug(abfd, sym)\
8058        ((coff_backend_info (abfd)->_bfd_coff_symname_in_debug) (abfd, sym))
8059
8060      #define bfd_coff_force_symnames_in_strings(abfd)\
8061        (coff_backend_info (abfd)->_bfd_coff_force_symnames_in_strings)
8062
8063      #define bfd_coff_debug_string_prefix_length(abfd)\
8064        (coff_backend_info (abfd)->_bfd_coff_debug_string_prefix_length)
8065
8066      #define bfd_coff_print_aux(abfd, file, base, symbol, aux, indaux)\
8067        ((coff_backend_info (abfd)->_bfd_coff_print_aux)\
8068         (abfd, file, base, symbol, aux, indaux))
8069
8070      #define bfd_coff_reloc16_extra_cases(abfd, link_info, link_order,\
8071                                           reloc, data, src_ptr, dst_ptr)\
8072        ((coff_backend_info (abfd)->_bfd_coff_reloc16_extra_cases)\
8073         (abfd, link_info, link_order, reloc, data, src_ptr, dst_ptr))
8074
8075      #define bfd_coff_reloc16_estimate(abfd, section, reloc, shrink, link_info)\
8076        ((coff_backend_info (abfd)->_bfd_coff_reloc16_estimate)\
8077         (abfd, section, reloc, shrink, link_info))
8078
8079      #define bfd_coff_classify_symbol(abfd, sym)\
8080        ((coff_backend_info (abfd)->_bfd_coff_classify_symbol)\
8081         (abfd, sym))
8082
8083      #define bfd_coff_compute_section_file_positions(abfd)\
8084        ((coff_backend_info (abfd)->_bfd_coff_compute_section_file_positions)\
8085         (abfd))
8086
8087      #define bfd_coff_start_final_link(obfd, info)\
8088        ((coff_backend_info (obfd)->_bfd_coff_start_final_link)\
8089         (obfd, info))
8090      #define bfd_coff_relocate_section(obfd,info,ibfd,o,con,rel,isyms,secs)\
8091        ((coff_backend_info (ibfd)->_bfd_coff_relocate_section)\
8092         (obfd, info, ibfd, o, con, rel, isyms, secs))
8093      #define bfd_coff_rtype_to_howto(abfd, sec, rel, h, sym, addendp)\
8094        ((coff_backend_info (abfd)->_bfd_coff_rtype_to_howto)\
8095         (abfd, sec, rel, h, sym, addendp))
8096      #define bfd_coff_adjust_symndx(obfd, info, ibfd, sec, rel, adjustedp)\
8097        ((coff_backend_info (abfd)->_bfd_coff_adjust_symndx)\
8098         (obfd, info, ibfd, sec, rel, adjustedp))
8099      #define bfd_coff_link_add_one_symbol(info, abfd, name, flags, section,\
8100                                           value, string, cp, coll, hashp)\
8101        ((coff_backend_info (abfd)->_bfd_coff_link_add_one_symbol)\
8102         (info, abfd, name, flags, section, value, string, cp, coll, hashp))
8103
8104      #define bfd_coff_link_output_has_begun(a,p) \
8105        ((coff_backend_info (a)->_bfd_coff_link_output_has_begun) (a, p))
8106      #define bfd_coff_final_link_postscript(a,p) \
8107        ((coff_backend_info (a)->_bfd_coff_final_link_postscript) (a, p))
8108
8109 3.2.2.7 Writing relocations
8110 ...........................
8111
8112 To write relocations, the back end steps though the canonical
8113 relocation table and create an `internal_reloc'. The symbol index to
8114 use is removed from the `offset' field in the symbol table supplied.
8115 The address comes directly from the sum of the section base address and
8116 the relocation offset; the type is dug directly from the howto field.
8117 Then the `internal_reloc' is swapped into the shape of an
8118 `external_reloc' and written out to disk.
8119
8120 3.2.2.8 Reading linenumbers
8121 ...........................
8122
8123 Creating the linenumber table is done by reading in the entire coff
8124 linenumber table, and creating another table for internal use.
8125
8126    A coff linenumber table is structured so that each function is
8127 marked as having a line number of 0. Each line within the function is
8128 an offset from the first line in the function. The base of the line
8129 number information for the table is stored in the symbol associated
8130 with the function.
8131
8132    Note: The PE format uses line number 0 for a flag indicating a new
8133 source file.
8134
8135    The information is copied from the external to the internal table,
8136 and each symbol which marks a function is marked by pointing its...
8137
8138    How does this work ?
8139
8140 3.2.2.9 Reading relocations
8141 ...........................
8142
8143 Coff relocations are easily transformed into the internal BFD form
8144 (`arelent').
8145
8146    Reading a coff relocation table is done in the following stages:
8147
8148    * Read the entire coff relocation table into memory.
8149
8150    * Process each relocation in turn; first swap it from the external
8151      to the internal form.
8152
8153    * Turn the symbol referenced in the relocation's symbol index into a
8154      pointer into the canonical symbol table.  This table is the same
8155      as the one returned by a call to `bfd_canonicalize_symtab'. The
8156      back end will call that routine and save the result if a
8157      canonicalization hasn't been done.
8158
8159    * The reloc index is turned into a pointer to a howto structure, in
8160      a back end specific way. For instance, the 386 and 960 use the
8161      `r_type' to directly produce an index into a howto table vector;
8162      the 88k subtracts a number from the `r_type' field and creates an
8163      addend field.
8164
8165 \1f
8166 File: bfd.info,  Node: elf,  Next: mmo,  Prev: coff,  Up: BFD back ends
8167
8168 3.3 ELF backends
8169 ================
8170
8171 BFD support for ELF formats is being worked on.  Currently, the best
8172 supported back ends are for sparc and i386 (running svr4 or Solaris 2).
8173
8174    Documentation of the internals of the support code still needs to be
8175 written.  The code is changing quickly enough that we haven't bothered
8176 yet.
8177
8178 3.3.0.1 `bfd_elf_find_section'
8179 ..............................
8180
8181 *Synopsis*
8182      struct elf_internal_shdr *bfd_elf_find_section (bfd *abfd, char *name);
8183    *Description*
8184 Helper functions for GDB to locate the string tables.  Since BFD hides
8185 string tables from callers, GDB needs to use an internal hook to find
8186 them.  Sun's .stabstr, in particular, isn't even pointed to by the
8187 .stab section, so ordinary mechanisms wouldn't work to find it, even if
8188 we had some.
8189
8190 \1f
8191 File: bfd.info,  Node: mmo,  Prev: elf,  Up: BFD back ends
8192
8193 3.4 mmo backend
8194 ===============
8195
8196 The mmo object format is used exclusively together with Professor
8197 Donald E. Knuth's educational 64-bit processor MMIX.  The simulator
8198 `mmix' which is available at
8199 `http://www-cs-faculty.stanford.edu/~knuth/programs/mmix.tar.gz'
8200 understands this format.  That package also includes a combined
8201 assembler and linker called `mmixal'.  The mmo format has no advantages
8202 feature-wise compared to e.g. ELF.  It is a simple non-relocatable
8203 object format with no support for archives or debugging information,
8204 except for symbol value information and line numbers (which is not yet
8205 implemented in BFD).  See
8206 `http://www-cs-faculty.stanford.edu/~knuth/mmix.html' for more
8207 information about MMIX.  The ELF format is used for intermediate object
8208 files in the BFD implementation.
8209
8210 * Menu:
8211
8212 * File layout::
8213 * Symbol-table::
8214 * mmo section mapping::
8215
8216 \1f
8217 File: bfd.info,  Node: File layout,  Next: Symbol-table,  Prev: mmo,  Up: mmo
8218
8219 3.4.1 File layout
8220 -----------------
8221
8222 The mmo file contents is not partitioned into named sections as with
8223 e.g. ELF.  Memory areas is formed by specifying the location of the
8224 data that follows.  Only the memory area `0x0000...00' to `0x01ff...ff'
8225 is executable, so it is used for code (and constants) and the area
8226 `0x2000...00' to `0x20ff...ff' is used for writable data.  *Note mmo
8227 section mapping::.
8228
8229    There is provision for specifying "special data" of 65536 different
8230 types.  We use type 80 (decimal), arbitrarily chosen the same as the
8231 ELF `e_machine' number for MMIX, filling it with section information
8232 normally found in ELF objects. *Note mmo section mapping::.
8233
8234    Contents is entered as 32-bit words, xor:ed over previous contents,
8235 always zero-initialized.  A word that starts with the byte `0x98' forms
8236 a command called a `lopcode', where the next byte distinguished between
8237 the thirteen lopcodes.  The two remaining bytes, called the `Y' and `Z'
8238 fields, or the `YZ' field (a 16-bit big-endian number), are used for
8239 various purposes different for each lopcode.  As documented in
8240 `http://www-cs-faculty.stanford.edu/~knuth/mmixal-intro.ps.gz', the
8241 lopcodes are:
8242
8243 `lop_quote'
8244      0x98000001.  The next word is contents, regardless of whether it
8245      starts with 0x98 or not.
8246
8247 `lop_loc'
8248      0x9801YYZZ, where `Z' is 1 or 2.  This is a location directive,
8249      setting the location for the next data to the next 32-bit word
8250      (for Z = 1) or 64-bit word (for Z = 2), plus Y * 2^56.  Normally
8251      `Y' is 0 for the text segment and 2 for the data segment.
8252
8253 `lop_skip'
8254      0x9802YYZZ.  Increase the current location by `YZ' bytes.
8255
8256 `lop_fixo'
8257      0x9803YYZZ, where `Z' is 1 or 2.  Store the current location as 64
8258      bits into the location pointed to by the next 32-bit (Z = 1) or
8259      64-bit (Z = 2) word, plus Y * 2^56.
8260
8261 `lop_fixr'
8262      0x9804YYZZ.  `YZ' is stored into the current location plus 2 - 4 *
8263      YZ.
8264
8265 `lop_fixrx'
8266      0x980500ZZ.  `Z' is 16 or 24.  A value `L' derived from the
8267      following 32-bit word are used in a manner similar to `YZ' in
8268      lop_fixr: it is xor:ed into the current location minus 4 * L.  The
8269      first byte of the word is 0 or 1.  If it is 1, then L = (LOWEST 24
8270      BITS OF WORD) - 2^Z, if 0, then L = (LOWEST 24 BITS OF WORD).
8271
8272 `lop_file'
8273      0x9806YYZZ.  `Y' is the file number, `Z' is count of 32-bit words.
8274      Set the file number to `Y' and the line counter to 0.  The next Z
8275      * 4 bytes contain the file name, padded with zeros if the count is
8276      not a multiple of four.  The same `Y' may occur multiple times,
8277      but `Z' must be 0 for all but the first occurrence.
8278
8279 `lop_line'
8280      0x9807YYZZ.  `YZ' is the line number.  Together with lop_file, it
8281      forms the source location for the next 32-bit word.  Note that for
8282      each non-lopcode 32-bit word, line numbers are assumed incremented
8283      by one.
8284
8285 `lop_spec'
8286      0x9808YYZZ.  `YZ' is the type number.  Data until the next lopcode
8287      other than lop_quote forms special data of type `YZ'.  *Note mmo
8288      section mapping::.
8289
8290      Other types than 80, (or type 80 with a content that does not
8291      parse) is stored in sections named `.MMIX.spec_data.N' where N is
8292      the `YZ'-type.  The flags for such a sections say not to allocate
8293      or load the data.  The vma is 0.  Contents of multiple occurrences
8294      of special data N is concatenated to the data of the previous
8295      lop_spec Ns.  The location in data or code at which the lop_spec
8296      occurred is lost.
8297
8298 `lop_pre'
8299      0x980901ZZ.  The first lopcode in a file.  The `Z' field forms the
8300      length of header information in 32-bit words, where the first word
8301      tells the time in seconds since `00:00:00 GMT Jan 1 1970'.
8302
8303 `lop_post'
8304      0x980a00ZZ.  Z > 32.  This lopcode follows after all
8305      content-generating lopcodes in a program.  The `Z' field denotes
8306      the value of `rG' at the beginning of the program.  The following
8307      256 - Z big-endian 64-bit words are loaded into global registers
8308      `$G' ... `$255'.
8309
8310 `lop_stab'
8311      0x980b0000.  The next-to-last lopcode in a program.  Must follow
8312      immediately after the lop_post lopcode and its data.  After this
8313      lopcode follows all symbols in a compressed format (*note
8314      Symbol-table::).
8315
8316 `lop_end'
8317      0x980cYYZZ.  The last lopcode in a program.  It must follow the
8318      lop_stab lopcode and its data.  The `YZ' field contains the number
8319      of 32-bit words of symbol table information after the preceding
8320      lop_stab lopcode.
8321
8322    Note that the lopcode "fixups"; `lop_fixr', `lop_fixrx' and
8323 `lop_fixo' are not generated by BFD, but are handled.  They are
8324 generated by `mmixal'.
8325
8326    This trivial one-label, one-instruction file:
8327
8328       :Main TRAP 1,2,3
8329
8330    can be represented this way in mmo:
8331
8332       0x98090101 - lop_pre, one 32-bit word with timestamp.
8333       <timestamp>
8334       0x98010002 - lop_loc, text segment, using a 64-bit address.
8335                    Note that mmixal does not emit this for the file above.
8336       0x00000000 - Address, high 32 bits.
8337       0x00000000 - Address, low 32 bits.
8338       0x98060002 - lop_file, 2 32-bit words for file-name.
8339       0x74657374 - "test"
8340       0x2e730000 - ".s\0\0"
8341       0x98070001 - lop_line, line 1.
8342       0x00010203 - TRAP 1,2,3
8343       0x980a00ff - lop_post, setting $255 to 0.
8344       0x00000000
8345       0x00000000
8346       0x980b0000 - lop_stab for ":Main" = 0, serial 1.
8347       0x203a4040   *Note Symbol-table::.
8348       0x10404020
8349       0x4d206120
8350       0x69016e00
8351       0x81000000
8352       0x980c0005 - lop_end; symbol table contained five 32-bit words.
8353
8354 \1f
8355 File: bfd.info,  Node: Symbol-table,  Next: mmo section mapping,  Prev: File layout,  Up: mmo
8356
8357 3.4.2 Symbol table format
8358 -------------------------
8359
8360 From mmixal.w (or really, the generated mmixal.tex) in
8361 `http://www-cs-faculty.stanford.edu/~knuth/programs/mmix.tar.gz'):
8362 "Symbols are stored and retrieved by means of a `ternary search trie',
8363 following ideas of Bentley and Sedgewick. (See ACM-SIAM Symp. on
8364 Discrete Algorithms `8' (1997), 360-369; R.Sedgewick, `Algorithms in C'
8365 (Reading, Mass.  Addison-Wesley, 1998), `15.4'.)  Each trie node stores
8366 a character, and there are branches to subtries for the cases where a
8367 given character is less than, equal to, or greater than the character
8368 in the trie.  There also is a pointer to a symbol table entry if a
8369 symbol ends at the current node."
8370
8371    So it's a tree encoded as a stream of bytes.  The stream of bytes
8372 acts on a single virtual global symbol, adding and removing characters
8373 and signalling complete symbol points.  Here, we read the stream and
8374 create symbols at the completion points.
8375
8376    First, there's a control byte `m'.  If any of the listed bits in `m'
8377 is nonzero, we execute what stands at the right, in the listed order:
8378
8379       (MMO3_LEFT)
8380       0x40 - Traverse left trie.
8381              (Read a new command byte and recurse.)
8382
8383       (MMO3_SYMBITS)
8384       0x2f - Read the next byte as a character and store it in the
8385              current character position; increment character position.
8386              Test the bits of `m':
8387
8388              (MMO3_WCHAR)
8389              0x80 - The character is 16-bit (so read another byte,
8390                     merge into current character.
8391
8392              (MMO3_TYPEBITS)
8393              0xf  - We have a complete symbol; parse the type, value
8394                     and serial number and do what should be done
8395                     with a symbol.  The type and length information
8396                     is in j = (m & 0xf).
8397
8398                     (MMO3_REGQUAL_BITS)
8399                     j == 0xf: A register variable.  The following
8400                               byte tells which register.
8401                     j <= 8:   An absolute symbol.  Read j bytes as the
8402                               big-endian number the symbol equals.
8403                               A j = 2 with two zero bytes denotes an
8404                               unknown symbol.
8405                     j > 8:    As with j <= 8, but add (0x20 << 56)
8406                               to the value in the following j - 8
8407                               bytes.
8408
8409                     Then comes the serial number, as a variant of
8410                     uleb128, but better named ubeb128:
8411                     Read bytes and shift the previous value left 7
8412                     (multiply by 128).  Add in the new byte, repeat
8413                     until a byte has bit 7 set.  The serial number
8414                     is the computed value minus 128.
8415
8416              (MMO3_MIDDLE)
8417              0x20 - Traverse middle trie.  (Read a new command byte
8418                     and recurse.)  Decrement character position.
8419
8420       (MMO3_RIGHT)
8421       0x10 - Traverse right trie.  (Read a new command byte and
8422              recurse.)
8423
8424    Let's look again at the `lop_stab' for the trivial file (*note File
8425 layout::).
8426
8427       0x980b0000 - lop_stab for ":Main" = 0, serial 1.
8428       0x203a4040
8429       0x10404020
8430       0x4d206120
8431       0x69016e00
8432       0x81000000
8433
8434    This forms the trivial trie (note that the path between ":" and "M"
8435 is redundant):
8436
8437       203a     ":"
8438       40       /
8439       40      /
8440       10      \
8441       40      /
8442       40     /
8443       204d  "M"
8444       2061  "a"
8445       2069  "i"
8446       016e  "n" is the last character in a full symbol, and
8447             with a value represented in one byte.
8448       00    The value is 0.
8449       81    The serial number is 1.
8450
8451 \1f
8452 File: bfd.info,  Node: mmo section mapping,  Prev: Symbol-table,  Up: mmo
8453
8454 3.4.3 mmo section mapping
8455 -------------------------
8456
8457 The implementation in BFD uses special data type 80 (decimal) to
8458 encapsulate and describe named sections, containing e.g. debug
8459 information.  If needed, any datum in the encapsulation will be quoted
8460 using lop_quote.  First comes a 32-bit word holding the number of
8461 32-bit words containing the zero-terminated zero-padded segment name.
8462 After the name there's a 32-bit word holding flags describing the
8463 section type.  Then comes a 64-bit big-endian word with the section
8464 length (in bytes), then another with the section start address.
8465 Depending on the type of section, the contents might follow,
8466 zero-padded to 32-bit boundary.  For a loadable section (such as data
8467 or code), the contents might follow at some later point, not
8468 necessarily immediately, as a lop_loc with the same start address as in
8469 the section description, followed by the contents.  This in effect
8470 forms a descriptor that must be emitted before the actual contents.
8471 Sections described this way must not overlap.
8472
8473    For areas that don't have such descriptors, synthetic sections are
8474 formed by BFD.  Consecutive contents in the two memory areas
8475 `0x0000...00' to `0x01ff...ff' and `0x2000...00' to `0x20ff...ff' are
8476 entered in sections named `.text' and `.data' respectively.  If an area
8477 is not otherwise described, but would together with a neighboring lower
8478 area be less than `0x40000000' bytes long, it is joined with the lower
8479 area and the gap is zero-filled.  For other cases, a new section is
8480 formed, named `.MMIX.sec.N'.  Here, N is a number, a running count
8481 through the mmo file, starting at 0.
8482
8483    A loadable section specified as:
8484
8485       .section secname,"ax"
8486       TETRA 1,2,3,4,-1,-2009
8487       BYTE 80
8488
8489    and linked to address `0x4', is represented by the sequence:
8490
8491       0x98080050 - lop_spec 80
8492       0x00000002 - two 32-bit words for the section name
8493       0x7365636e - "secn"
8494       0x616d6500 - "ame\0"
8495       0x00000033 - flags CODE, READONLY, LOAD, ALLOC
8496       0x00000000 - high 32 bits of section length
8497       0x0000001c - section length is 28 bytes; 6 * 4 + 1 + alignment to 32 bits
8498       0x00000000 - high 32 bits of section address
8499       0x00000004 - section address is 4
8500       0x98010002 - 64 bits with address of following data
8501       0x00000000 - high 32 bits of address
8502       0x00000004 - low 32 bits: data starts at address 4
8503       0x00000001 - 1
8504       0x00000002 - 2
8505       0x00000003 - 3
8506       0x00000004 - 4
8507       0xffffffff - -1
8508       0xfffff827 - -2009
8509       0x50000000 - 80 as a byte, padded with zeros.
8510
8511    Note that the lop_spec wrapping does not include the section
8512 contents.  Compare this to a non-loaded section specified as:
8513
8514       .section thirdsec
8515       TETRA 200001,100002
8516       BYTE 38,40
8517
8518    This, when linked to address `0x200000000000001c', is represented by:
8519
8520       0x98080050 - lop_spec 80
8521       0x00000002 - two 32-bit words for the section name
8522       0x7365636e - "thir"
8523       0x616d6500 - "dsec"
8524       0x00000010 - flag READONLY
8525       0x00000000 - high 32 bits of section length
8526       0x0000000c - section length is 12 bytes; 2 * 4 + 2 + alignment to 32 bits
8527       0x20000000 - high 32 bits of address
8528       0x0000001c - low 32 bits of address 0x200000000000001c
8529       0x00030d41 - 200001
8530       0x000186a2 - 100002
8531       0x26280000 - 38, 40 as bytes, padded with zeros
8532
8533    For the latter example, the section contents must not be loaded in
8534 memory, and is therefore specified as part of the special data.  The
8535 address is usually unimportant but might provide information for e.g.
8536 the DWARF 2 debugging format.
8537
8538 \1f
8539 File: bfd.info,  Node: GNU Free Documentation License,  Next: Index,  Prev: BFD back ends,  Up: Top
8540
8541 Appendix A GNU Free Documentation License
8542 *****************************************
8543
8544                         Version 1.1, March 2000
8545
8546      Copyright (C) 2000, 2003 Free Software Foundation, Inc.
8547      51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
8548
8549      Everyone is permitted to copy and distribute verbatim copies
8550      of this license document, but changing it is not allowed.
8551
8552
8553   0. PREAMBLE
8554
8555      The purpose of this License is to make a manual, textbook, or other
8556      written document "free" in the sense of freedom: to assure everyone
8557      the effective freedom to copy and redistribute it, with or without
8558      modifying it, either commercially or noncommercially.  Secondarily,
8559      this License preserves for the author and publisher a way to get
8560      credit for their work, while not being considered responsible for
8561      modifications made by others.
8562
8563      This License is a kind of "copyleft", which means that derivative
8564      works of the document must themselves be free in the same sense.
8565      It complements the GNU General Public License, which is a copyleft
8566      license designed for free software.
8567
8568      We have designed this License in order to use it for manuals for
8569      free software, because free software needs free documentation: a
8570      free program should come with manuals providing the same freedoms
8571      that the software does.  But this License is not limited to
8572      software manuals; it can be used for any textual work, regardless
8573      of subject matter or whether it is published as a printed book.
8574      We recommend this License principally for works whose purpose is
8575      instruction or reference.
8576
8577
8578   1. APPLICABILITY AND DEFINITIONS
8579
8580      This License applies to any manual or other work that contains a
8581      notice placed by the copyright holder saying it can be distributed
8582      under the terms of this License.  The "Document", below, refers to
8583      any such manual or work.  Any member of the public is a licensee,
8584      and is addressed as "you."
8585
8586      A "Modified Version" of the Document means any work containing the
8587      Document or a portion of it, either copied verbatim, or with
8588      modifications and/or translated into another language.
8589
8590      A "Secondary Section" is a named appendix or a front-matter
8591      section of the Document that deals exclusively with the
8592      relationship of the publishers or authors of the Document to the
8593      Document's overall subject (or to related matters) and contains
8594      nothing that could fall directly within that overall subject.
8595      (For example, if the Document is in part a textbook of
8596      mathematics, a Secondary Section may not explain any mathematics.)
8597      The relationship could be a matter of historical connection with
8598      the subject or with related matters, or of legal, commercial,
8599      philosophical, ethical or political position regarding them.
8600
8601      The "Invariant Sections" are certain Secondary Sections whose
8602      titles are designated, as being those of Invariant Sections, in
8603      the notice that says that the Document is released under this
8604      License.
8605
8606      The "Cover Texts" are certain short passages of text that are
8607      listed, as Front-Cover Texts or Back-Cover Texts, in the notice
8608      that says that the Document is released under this License.
8609
8610      A "Transparent" copy of the Document means a machine-readable copy,
8611      represented in a format whose specification is available to the
8612      general public, whose contents can be viewed and edited directly
8613      and straightforwardly with generic text editors or (for images
8614      composed of pixels) generic paint programs or (for drawings) some
8615      widely available drawing editor, and that is suitable for input to
8616      text formatters or for automatic translation to a variety of
8617      formats suitable for input to text formatters.  A copy made in an
8618      otherwise Transparent file format whose markup has been designed
8619      to thwart or discourage subsequent modification by readers is not
8620      Transparent.  A copy that is not "Transparent" is called "Opaque."
8621
8622      Examples of suitable formats for Transparent copies include plain
8623      ASCII without markup, Texinfo input format, LaTeX input format,
8624      SGML or XML using a publicly available DTD, and
8625      standard-conforming simple HTML designed for human modification.
8626      Opaque formats include PostScript, PDF, proprietary formats that
8627      can be read and edited only by proprietary word processors, SGML
8628      or XML for which the DTD and/or processing tools are not generally
8629      available, and the machine-generated HTML produced by some word
8630      processors for output purposes only.
8631
8632      The "Title Page" means, for a printed book, the title page itself,
8633      plus such following pages as are needed to hold, legibly, the
8634      material this License requires to appear in the title page.  For
8635      works in formats which do not have any title page as such, "Title
8636      Page" means the text near the most prominent appearance of the
8637      work's title, preceding the beginning of the body of the text.
8638
8639   2. VERBATIM COPYING
8640
8641      You may copy and distribute the Document in any medium, either
8642      commercially or noncommercially, provided that this License, the
8643      copyright notices, and the license notice saying this License
8644      applies to the Document are reproduced in all copies, and that you
8645      add no other conditions whatsoever to those of this License.  You
8646      may not use technical measures to obstruct or control the reading
8647      or further copying of the copies you make or distribute.  However,
8648      you may accept compensation in exchange for copies.  If you
8649      distribute a large enough number of copies you must also follow
8650      the conditions in section 3.
8651
8652      You may also lend copies, under the same conditions stated above,
8653      and you may publicly display copies.
8654
8655   3. COPYING IN QUANTITY
8656
8657      If you publish printed copies of the Document numbering more than
8658      100, and the Document's license notice requires Cover Texts, you
8659      must enclose the copies in covers that carry, clearly and legibly,
8660      all these Cover Texts: Front-Cover Texts on the front cover, and
8661      Back-Cover Texts on the back cover.  Both covers must also clearly
8662      and legibly identify you as the publisher of these copies.  The
8663      front cover must present the full title with all words of the
8664      title equally prominent and visible.  You may add other material
8665      on the covers in addition.  Copying with changes limited to the
8666      covers, as long as they preserve the title of the Document and
8667      satisfy these conditions, can be treated as verbatim copying in
8668      other respects.
8669
8670      If the required texts for either cover are too voluminous to fit
8671      legibly, you should put the first ones listed (as many as fit
8672      reasonably) on the actual cover, and continue the rest onto
8673      adjacent pages.
8674
8675      If you publish or distribute Opaque copies of the Document
8676      numbering more than 100, you must either include a
8677      machine-readable Transparent copy along with each Opaque copy, or
8678      state in or with each Opaque copy a publicly-accessible
8679      computer-network location containing a complete Transparent copy
8680      of the Document, free of added material, which the general
8681      network-using public has access to download anonymously at no
8682      charge using public-standard network protocols.  If you use the
8683      latter option, you must take reasonably prudent steps, when you
8684      begin distribution of Opaque copies in quantity, to ensure that
8685      this Transparent copy will remain thus accessible at the stated
8686      location until at least one year after the last time you
8687      distribute an Opaque copy (directly or through your agents or
8688      retailers) of that edition to the public.
8689
8690      It is requested, but not required, that you contact the authors of
8691      the Document well before redistributing any large number of
8692      copies, to give them a chance to provide you with an updated
8693      version of the Document.
8694
8695   4. MODIFICATIONS
8696
8697      You may copy and distribute a Modified Version of the Document
8698      under the conditions of sections 2 and 3 above, provided that you
8699      release the Modified Version under precisely this License, with
8700      the Modified Version filling the role of the Document, thus
8701      licensing distribution and modification of the Modified Version to
8702      whoever possesses a copy of it.  In addition, you must do these
8703      things in the Modified Version:
8704
8705      A. Use in the Title Page (and on the covers, if any) a title
8706      distinct    from that of the Document, and from those of previous
8707      versions    (which should, if there were any, be listed in the
8708      History section    of the Document).  You may use the same title
8709      as a previous version    if the original publisher of that version
8710      gives permission.
8711      B. List on the Title Page, as authors, one or more persons or
8712      entities    responsible for authorship of the modifications in the
8713      Modified    Version, together with at least five of the principal
8714      authors of the    Document (all of its principal authors, if it
8715      has less than five).
8716      C. State on the Title page the name of the publisher of the
8717      Modified Version, as the publisher.
8718      D. Preserve all the copyright notices of the Document.
8719      E. Add an appropriate copyright notice for your modifications
8720      adjacent to the other copyright notices.
8721      F. Include, immediately after the copyright notices, a license
8722      notice    giving the public permission to use the Modified Version
8723      under the    terms of this License, in the form shown in the
8724      Addendum below.
8725      G. Preserve in that license notice the full lists of Invariant
8726      Sections    and required Cover Texts given in the Document's
8727      license notice.
8728      H. Include an unaltered copy of this License.
8729      I. Preserve the section entitled "History", and its title, and add
8730      to    it an item stating at least the title, year, new authors, and
8731        publisher of the Modified Version as given on the Title Page.
8732      If    there is no section entitled "History" in the Document,
8733      create one    stating the title, year, authors, and publisher of
8734      the Document as    given on its Title Page, then add an item
8735      describing the Modified    Version as stated in the previous
8736      sentence.
8737      J. Preserve the network location, if any, given in the Document for
8738        public access to a Transparent copy of the Document, and
8739      likewise    the network locations given in the Document for
8740      previous versions    it was based on.  These may be placed in the
8741      "History" section.     You may omit a network location for a work
8742      that was published at    least four years before the Document
8743      itself, or if the original    publisher of the version it refers
8744      to gives permission.
8745      K. In any section entitled "Acknowledgements" or "Dedications",
8746      preserve the section's title, and preserve in the section all the
8747       substance and tone of each of the contributor acknowledgements
8748      and/or dedications given therein.
8749      L. Preserve all the Invariant Sections of the Document,
8750      unaltered in their text and in their titles.  Section numbers
8751      or the equivalent are not considered part of the section titles.
8752      M. Delete any section entitled "Endorsements."  Such a section
8753      may not be included in the Modified Version.
8754      N. Do not retitle any existing section as "Endorsements"    or to
8755      conflict in title with any Invariant Section.
8756
8757      If the Modified Version includes new front-matter sections or
8758      appendices that qualify as Secondary Sections and contain no
8759      material copied from the Document, you may at your option
8760      designate some or all of these sections as invariant.  To do this,
8761      add their titles to the list of Invariant Sections in the Modified
8762      Version's license notice.  These titles must be distinct from any
8763      other section titles.
8764
8765      You may add a section entitled "Endorsements", provided it contains
8766      nothing but endorsements of your Modified Version by various
8767      parties-for example, statements of peer review or that the text has
8768      been approved by an organization as the authoritative definition
8769      of a standard.
8770
8771      You may add a passage of up to five words as a Front-Cover Text,
8772      and a passage of up to 25 words as a Back-Cover Text, to the end
8773      of the list of Cover Texts in the Modified Version.  Only one
8774      passage of Front-Cover Text and one of Back-Cover Text may be
8775      added by (or through arrangements made by) any one entity.  If the
8776      Document already includes a cover text for the same cover,
8777      previously added by you or by arrangement made by the same entity
8778      you are acting on behalf of, you may not add another; but you may
8779      replace the old one, on explicit permission from the previous
8780      publisher that added the old one.
8781
8782      The author(s) and publisher(s) of the Document do not by this
8783      License give permission to use their names for publicity for or to
8784      assert or imply endorsement of any Modified Version.
8785
8786   5. COMBINING DOCUMENTS
8787
8788      You may combine the Document with other documents released under
8789      this License, under the terms defined in section 4 above for
8790      modified versions, provided that you include in the combination
8791      all of the Invariant Sections of all of the original documents,
8792      unmodified, and list them all as Invariant Sections of your
8793      combined work in its license notice.
8794
8795      The combined work need only contain one copy of this License, and
8796      multiple identical Invariant Sections may be replaced with a single
8797      copy.  If there are multiple Invariant Sections with the same name
8798      but different contents, make the title of each such section unique
8799      by adding at the end of it, in parentheses, the name of the
8800      original author or publisher of that section if known, or else a
8801      unique number.  Make the same adjustment to the section titles in
8802      the list of Invariant Sections in the license notice of the
8803      combined work.
8804
8805      In the combination, you must combine any sections entitled
8806      "History" in the various original documents, forming one section
8807      entitled "History"; likewise combine any sections entitled
8808      "Acknowledgements", and any sections entitled "Dedications."  You
8809      must delete all sections entitled "Endorsements."
8810
8811   6. COLLECTIONS OF DOCUMENTS
8812
8813      You may make a collection consisting of the Document and other
8814      documents released under this License, and replace the individual
8815      copies of this License in the various documents with a single copy
8816      that is included in the collection, provided that you follow the
8817      rules of this License for verbatim copying of each of the
8818      documents in all other respects.
8819
8820      You may extract a single document from such a collection, and
8821      distribute it individually under this License, provided you insert
8822      a copy of this License into the extracted document, and follow
8823      this License in all other respects regarding verbatim copying of
8824      that document.
8825
8826   7. AGGREGATION WITH INDEPENDENT WORKS
8827
8828      A compilation of the Document or its derivatives with other
8829      separate and independent documents or works, in or on a volume of
8830      a storage or distribution medium, does not as a whole count as a
8831      Modified Version of the Document, provided no compilation
8832      copyright is claimed for the compilation.  Such a compilation is
8833      called an "aggregate", and this License does not apply to the
8834      other self-contained works thus compiled with the Document, on
8835      account of their being thus compiled, if they are not themselves
8836      derivative works of the Document.
8837
8838      If the Cover Text requirement of section 3 is applicable to these
8839      copies of the Document, then if the Document is less than one
8840      quarter of the entire aggregate, the Document's Cover Texts may be
8841      placed on covers that surround only the Document within the
8842      aggregate.  Otherwise they must appear on covers around the whole
8843      aggregate.
8844
8845   8. TRANSLATION
8846
8847      Translation is considered a kind of modification, so you may
8848      distribute translations of the Document under the terms of section
8849      4.  Replacing Invariant Sections with translations requires special
8850      permission from their copyright holders, but you may include
8851      translations of some or all Invariant Sections in addition to the
8852      original versions of these Invariant Sections.  You may include a
8853      translation of this License provided that you also include the
8854      original English version of this License.  In case of a
8855      disagreement between the translation and the original English
8856      version of this License, the original English version will prevail.
8857
8858   9. TERMINATION
8859
8860      You may not copy, modify, sublicense, or distribute the Document
8861      except as expressly provided for under this License.  Any other
8862      attempt to copy, modify, sublicense or distribute the Document is
8863      void, and will automatically terminate your rights under this
8864      License.  However, parties who have received copies, or rights,
8865      from you under this License will not have their licenses
8866      terminated so long as such parties remain in full compliance.
8867
8868  10. FUTURE REVISIONS OF THIS LICENSE
8869
8870      The Free Software Foundation may publish new, revised versions of
8871      the GNU Free Documentation License from time to time.  Such new
8872      versions will be similar in spirit to the present version, but may
8873      differ in detail to address new problems or concerns.  See
8874      http://www.gnu.org/copyleft/.
8875
8876      Each version of the License is given a distinguishing version
8877      number.  If the Document specifies that a particular numbered
8878      version of this License "or any later version" applies to it, you
8879      have the option of following the terms and conditions either of
8880      that specified version or of any later version that has been
8881      published (not as a draft) by the Free Software Foundation.  If
8882      the Document does not specify a version number of this License,
8883      you may choose any version ever published (not as a draft) by the
8884      Free Software Foundation.
8885
8886
8887 ADDENDUM: How to use this License for your documents
8888 ====================================================
8889
8890 To use this License in a document you have written, include a copy of
8891 the License in the document and put the following copyright and license
8892 notices just after the title page:
8893
8894      Copyright (C)  YEAR  YOUR NAME.
8895      Permission is granted to copy, distribute and/or modify this document
8896      under the terms of the GNU Free Documentation License, Version 1.1
8897      or any later version published by the Free Software Foundation;
8898      with the Invariant Sections being LIST THEIR TITLES, with the
8899      Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
8900      A copy of the license is included in the section entitled "GNU
8901      Free Documentation License."
8902
8903    If you have no Invariant Sections, write "with no Invariant Sections"
8904 instead of saying which ones are invariant.  If you have no Front-Cover
8905 Texts, write "no Front-Cover Texts" instead of "Front-Cover Texts being
8906 LIST"; likewise for Back-Cover Texts.
8907
8908    If your document contains nontrivial examples of program code, we
8909 recommend releasing these examples in parallel under your choice of
8910 free software license, such as the GNU General Public License, to
8911 permit their use in free software.
8912
8913 \1f
8914 File: bfd.info,  Node: Index,  Prev: GNU Free Documentation License,  Up: Top
8915
8916 Index
8917 *****
8918
8919 \0\b[index\0\b]
8920 * Menu:
8921
8922 * _bfd_final_link_relocate:              Relocating the section contents.
8923                                                              (line   22)
8924 * _bfd_generic_link_add_archive_symbols: Adding symbols from an archive.
8925                                                              (line   12)
8926 * _bfd_generic_link_add_one_symbol:      Adding symbols from an object file.
8927                                                              (line   19)
8928 * _bfd_generic_make_empty_symbol:        symbol handling functions.
8929                                                              (line   92)
8930 * _bfd_link_add_symbols in target vector: Adding Symbols to the Hash Table.
8931                                                              (line    6)
8932 * _bfd_link_final_link in target vector: Performing the Final Link.
8933                                                              (line    6)
8934 * _bfd_link_hash_table_create in target vector: Creating a Linker Hash Table.
8935                                                              (line    6)
8936 * _bfd_relocate_contents:                Relocating the section contents.
8937                                                              (line   22)
8938 * aout_SIZE_machine_type:                aout.               (line  147)
8939 * aout_SIZE_mkobject:                    aout.               (line  139)
8940 * aout_SIZE_new_section_hook:            aout.               (line  177)
8941 * aout_SIZE_set_arch_mach:               aout.               (line  164)
8942 * aout_SIZE_some_aout_object_p:          aout.               (line  125)
8943 * aout_SIZE_swap_exec_header_in:         aout.               (line  101)
8944 * aout_SIZE_swap_exec_header_out:        aout.               (line  113)
8945 * arelent_chain:                         typedef arelent.    (line  339)
8946 * BFD:                                   Overview.           (line    6)
8947 * BFD canonical format:                  Canonical format.   (line   11)
8948 * bfd_alloc:                             Opening and Closing.
8949                                                              (line  203)
8950 * bfd_alloc2:                            Opening and Closing.
8951                                                              (line  212)
8952 * bfd_alt_mach_code:                     BFD front end.      (line  599)
8953 * bfd_arch_bits_per_address:             Architectures.      (line  476)
8954 * bfd_arch_bits_per_byte:                Architectures.      (line  468)
8955 * bfd_arch_get_compatible:               Architectures.      (line  411)
8956 * bfd_arch_list:                         Architectures.      (line  402)
8957 * bfd_arch_mach_octets_per_byte:         Architectures.      (line  545)
8958 * BFD_ARELOC_BFIN_ADD:                   howto manager.      (line  887)
8959 * BFD_ARELOC_BFIN_ADDR:                  howto manager.      (line  938)
8960 * BFD_ARELOC_BFIN_AND:                   howto manager.      (line  908)
8961 * BFD_ARELOC_BFIN_COMP:                  howto manager.      (line  929)
8962 * BFD_ARELOC_BFIN_CONST:                 howto manager.      (line  884)
8963 * BFD_ARELOC_BFIN_DIV:                   howto manager.      (line  896)
8964 * BFD_ARELOC_BFIN_HWPAGE:                howto manager.      (line  935)
8965 * BFD_ARELOC_BFIN_LAND:                  howto manager.      (line  917)
8966 * BFD_ARELOC_BFIN_LEN:                   howto manager.      (line  923)
8967 * BFD_ARELOC_BFIN_LOR:                   howto manager.      (line  920)
8968 * BFD_ARELOC_BFIN_LSHIFT:                howto manager.      (line  902)
8969 * BFD_ARELOC_BFIN_MOD:                   howto manager.      (line  899)
8970 * BFD_ARELOC_BFIN_MULT:                  howto manager.      (line  893)
8971 * BFD_ARELOC_BFIN_NEG:                   howto manager.      (line  926)
8972 * BFD_ARELOC_BFIN_OR:                    howto manager.      (line  911)
8973 * BFD_ARELOC_BFIN_PAGE:                  howto manager.      (line  932)
8974 * BFD_ARELOC_BFIN_PUSH:                  howto manager.      (line  881)
8975 * BFD_ARELOC_BFIN_RSHIFT:                howto manager.      (line  905)
8976 * BFD_ARELOC_BFIN_SUB:                   howto manager.      (line  890)
8977 * BFD_ARELOC_BFIN_XOR:                   howto manager.      (line  914)
8978 * bfd_cache_close:                       File Caching.       (line   26)
8979 * bfd_cache_close_all:                   File Caching.       (line   39)
8980 * bfd_cache_init:                        File Caching.       (line   18)
8981 * bfd_calc_gnu_debuglink_crc32:          Opening and Closing.
8982                                                              (line  239)
8983 * bfd_canonicalize_reloc:                BFD front end.      (line  318)
8984 * bfd_canonicalize_symtab:               symbol handling functions.
8985                                                              (line   50)
8986 * bfd_check_format:                      Formats.            (line   21)
8987 * bfd_check_format_matches:              Formats.            (line   52)
8988 * bfd_check_overflow:                    typedef arelent.    (line  351)
8989 * bfd_close:                             Opening and Closing.
8990                                                              (line  128)
8991 * bfd_close_all_done:                    Opening and Closing.
8992                                                              (line  146)
8993 * bfd_coff_backend_data:                 coff.               (line  246)
8994 * bfd_copy_private_bfd_data:             BFD front end.      (line  457)
8995 * bfd_copy_private_header_data:          BFD front end.      (line  439)
8996 * bfd_copy_private_section_data:         section prototypes. (line  255)
8997 * bfd_copy_private_symbol_data:          symbol handling functions.
8998                                                              (line  140)
8999 * bfd_core_file_failing_command:         Core Files.         (line   12)
9000 * bfd_core_file_failing_signal:          Core Files.         (line   21)
9001 * bfd_create:                            Opening and Closing.
9002                                                              (line  165)
9003 * bfd_create_gnu_debuglink_section:      Opening and Closing.
9004                                                              (line  305)
9005 * bfd_decode_symclass:                   symbol handling functions.
9006                                                              (line  111)
9007 * bfd_default_arch_struct:               Architectures.      (line  423)
9008 * bfd_default_compatible:                Architectures.      (line  485)
9009 * bfd_default_reloc_type_lookup:         howto manager.      (line 1931)
9010 * bfd_default_scan:                      Architectures.      (line  494)
9011 * bfd_default_set_arch_mach:             Architectures.      (line  441)
9012 * bfd_elf_find_section:                  elf.                (line   13)
9013 * bfd_errmsg:                            BFD front end.      (line  243)
9014 * bfd_fdopenr:                           Opening and Closing.
9015                                                              (line   46)
9016 * bfd_fill_in_gnu_debuglink_section:     Opening and Closing.
9017                                                              (line  319)
9018 * bfd_find_target:                       bfd_target.         (line  434)
9019 * bfd_follow_gnu_debuglink:              Opening and Closing.
9020                                                              (line  284)
9021 * bfd_fopen:                             Opening and Closing.
9022                                                              (line    9)
9023 * bfd_format_string:                     Formats.            (line   79)
9024 * bfd_generic_discard_group:             section prototypes. (line  281)
9025 * bfd_generic_gc_sections:               howto manager.      (line 1962)
9026 * bfd_generic_get_relocated_section_contents: howto manager. (line 1982)
9027 * bfd_generic_is_group_section:          section prototypes. (line  273)
9028 * bfd_generic_merge_sections:            howto manager.      (line 1972)
9029 * bfd_generic_relax_section:             howto manager.      (line 1949)
9030 * bfd_get_arch:                          Architectures.      (line  452)
9031 * bfd_get_arch_info:                     Architectures.      (line  504)
9032 * bfd_get_arch_size:                     BFD front end.      (line  362)
9033 * bfd_get_error:                         BFD front end.      (line  226)
9034 * bfd_get_error_handler:                 BFD front end.      (line  294)
9035 * bfd_get_gp_size:                       BFD front end.      (line  403)
9036 * bfd_get_mach:                          Architectures.      (line  460)
9037 * bfd_get_mtime:                         BFD front end.      (line  687)
9038 * bfd_get_next_mapent:                   Archives.           (line   52)
9039 * bfd_get_reloc_code_name:               howto manager.      (line 1940)
9040 * bfd_get_reloc_size:                    typedef arelent.    (line  330)
9041 * bfd_get_reloc_upper_bound:             BFD front end.      (line  308)
9042 * bfd_get_section_by_name:               section prototypes. (line   17)
9043 * bfd_get_section_by_name_if:            section prototypes. (line   31)
9044 * bfd_get_section_contents:              section prototypes. (line  228)
9045 * bfd_get_sign_extend_vma:               BFD front end.      (line  375)
9046 * bfd_get_size <1>:                      Internal.           (line   25)
9047 * bfd_get_size:                          BFD front end.      (line  696)
9048 * bfd_get_symtab_upper_bound:            symbol handling functions.
9049                                                              (line    6)
9050 * bfd_get_unique_section_name:           section prototypes. (line   50)
9051 * bfd_h_put_size:                        Internal.           (line   97)
9052 * bfd_hash_allocate:                     Creating and Freeing a Hash Table.
9053                                                              (line   17)
9054 * bfd_hash_lookup:                       Looking Up or Entering a String.
9055                                                              (line    6)
9056 * bfd_hash_newfunc:                      Creating and Freeing a Hash Table.
9057                                                              (line   12)
9058 * bfd_hash_set_default_size:             Creating and Freeing a Hash Table.
9059                                                              (line   25)
9060 * bfd_hash_table_free:                   Creating and Freeing a Hash Table.
9061                                                              (line   21)
9062 * bfd_hash_table_init:                   Creating and Freeing a Hash Table.
9063                                                              (line    6)
9064 * bfd_hash_table_init_n:                 Creating and Freeing a Hash Table.
9065                                                              (line    6)
9066 * bfd_hash_traverse:                     Traversing a Hash Table.
9067                                                              (line    6)
9068 * bfd_init:                              Initialization.     (line   11)
9069 * bfd_install_relocation:                typedef arelent.    (line  392)
9070 * bfd_is_local_label:                    symbol handling functions.
9071                                                              (line   17)
9072 * bfd_is_local_label_name:               symbol handling functions.
9073                                                              (line   26)
9074 * bfd_is_target_special_symbol:          symbol handling functions.
9075                                                              (line   38)
9076 * bfd_is_undefined_symclass:             symbol handling functions.
9077                                                              (line  120)
9078 * bfd_link_split_section:                Writing the symbol table.
9079                                                              (line   44)
9080 * bfd_log2:                              Internal.           (line  164)
9081 * bfd_lookup_arch:                       Architectures.      (line  512)
9082 * bfd_make_debug_symbol:                 symbol handling functions.
9083                                                              (line  102)
9084 * bfd_make_empty_symbol:                 symbol handling functions.
9085                                                              (line   78)
9086 * bfd_make_readable:                     Opening and Closing.
9087                                                              (line  189)
9088 * bfd_make_section:                      section prototypes. (line  129)
9089 * bfd_make_section_anyway:               section prototypes. (line  100)
9090 * bfd_make_section_anyway_with_flags:    section prototypes. (line   82)
9091 * bfd_make_section_old_way:              section prototypes. (line   62)
9092 * bfd_make_section_with_flags:           section prototypes. (line  116)
9093 * bfd_make_writable:                     Opening and Closing.
9094                                                              (line  175)
9095 * bfd_malloc_and_get_section:            section prototypes. (line  245)
9096 * bfd_map_over_sections:                 section prototypes. (line  155)
9097 * bfd_merge_private_bfd_data:            BFD front end.      (line  473)
9098 * bfd_octets_per_byte:                   Architectures.      (line  535)
9099 * bfd_open_file:                         File Caching.       (line   52)
9100 * bfd_openr:                             Opening and Closing.
9101                                                              (line   30)
9102 * bfd_openr_iovec:                       Opening and Closing.
9103                                                              (line   76)
9104 * bfd_openr_next_archived_file:          Archives.           (line   78)
9105 * bfd_openstreamr:                       Opening and Closing.
9106                                                              (line   67)
9107 * bfd_openw:                             Opening and Closing.
9108                                                              (line  116)
9109 * bfd_perform_relocation:                typedef arelent.    (line  367)
9110 * bfd_perror:                            BFD front end.      (line  252)
9111 * bfd_preserve_finish:                   BFD front end.      (line  647)
9112 * bfd_preserve_restore:                  BFD front end.      (line  637)
9113 * bfd_preserve_save:                     BFD front end.      (line  621)
9114 * bfd_print_symbol_vandf:                symbol handling functions.
9115                                                              (line   70)
9116 * bfd_printable_arch_mach:               Architectures.      (line  523)
9117 * bfd_printable_name:                    Architectures.      (line  383)
9118 * bfd_put_size:                          Internal.           (line   22)
9119 * BFD_RELOC_12_PCREL:                    howto manager.      (line   39)
9120 * BFD_RELOC_14:                          howto manager.      (line   31)
9121 * BFD_RELOC_16:                          howto manager.      (line   30)
9122 * BFD_RELOC_16_BASEREL:                  howto manager.      (line   80)
9123 * BFD_RELOC_16_GOT_PCREL:                howto manager.      (line   52)
9124 * BFD_RELOC_16_GOTOFF:                   howto manager.      (line   55)
9125 * BFD_RELOC_16_PCREL:                    howto manager.      (line   38)
9126 * BFD_RELOC_16_PCREL_S2:                 howto manager.      (line   92)
9127 * BFD_RELOC_16_PLT_PCREL:                howto manager.      (line   63)
9128 * BFD_RELOC_16_PLTOFF:                   howto manager.      (line   67)
9129 * BFD_RELOC_16C_ABS20:                   howto manager.      (line 1655)
9130 * BFD_RELOC_16C_ABS20_C:                 howto manager.      (line 1656)
9131 * BFD_RELOC_16C_ABS24:                   howto manager.      (line 1657)
9132 * BFD_RELOC_16C_ABS24_C:                 howto manager.      (line 1658)
9133 * BFD_RELOC_16C_DISP04:                  howto manager.      (line 1635)
9134 * BFD_RELOC_16C_DISP04_C:                howto manager.      (line 1636)
9135 * BFD_RELOC_16C_DISP08:                  howto manager.      (line 1637)
9136 * BFD_RELOC_16C_DISP08_C:                howto manager.      (line 1638)
9137 * BFD_RELOC_16C_DISP16:                  howto manager.      (line 1639)
9138 * BFD_RELOC_16C_DISP16_C:                howto manager.      (line 1640)
9139 * BFD_RELOC_16C_DISP24:                  howto manager.      (line 1641)
9140 * BFD_RELOC_16C_DISP24_C:                howto manager.      (line 1642)
9141 * BFD_RELOC_16C_DISP24a:                 howto manager.      (line 1643)
9142 * BFD_RELOC_16C_DISP24a_C:               howto manager.      (line 1644)
9143 * BFD_RELOC_16C_IMM04:                   howto manager.      (line 1659)
9144 * BFD_RELOC_16C_IMM04_C:                 howto manager.      (line 1660)
9145 * BFD_RELOC_16C_IMM16:                   howto manager.      (line 1661)
9146 * BFD_RELOC_16C_IMM16_C:                 howto manager.      (line 1662)
9147 * BFD_RELOC_16C_IMM20:                   howto manager.      (line 1663)
9148 * BFD_RELOC_16C_IMM20_C:                 howto manager.      (line 1664)
9149 * BFD_RELOC_16C_IMM24:                   howto manager.      (line 1665)
9150 * BFD_RELOC_16C_IMM24_C:                 howto manager.      (line 1666)
9151 * BFD_RELOC_16C_IMM32:                   howto manager.      (line 1667)
9152 * BFD_RELOC_16C_IMM32_C:                 howto manager.      (line 1668)
9153 * BFD_RELOC_16C_NUM08:                   howto manager.      (line 1629)
9154 * BFD_RELOC_16C_NUM08_C:                 howto manager.      (line 1630)
9155 * BFD_RELOC_16C_NUM16:                   howto manager.      (line 1631)
9156 * BFD_RELOC_16C_NUM16_C:                 howto manager.      (line 1632)
9157 * BFD_RELOC_16C_NUM32:                   howto manager.      (line 1633)
9158 * BFD_RELOC_16C_NUM32_C:                 howto manager.      (line 1634)
9159 * BFD_RELOC_16C_REG04:                   howto manager.      (line 1645)
9160 * BFD_RELOC_16C_REG04_C:                 howto manager.      (line 1646)
9161 * BFD_RELOC_16C_REG04a:                  howto manager.      (line 1647)
9162 * BFD_RELOC_16C_REG04a_C:                howto manager.      (line 1648)
9163 * BFD_RELOC_16C_REG14:                   howto manager.      (line 1649)
9164 * BFD_RELOC_16C_REG14_C:                 howto manager.      (line 1650)
9165 * BFD_RELOC_16C_REG16:                   howto manager.      (line 1651)
9166 * BFD_RELOC_16C_REG16_C:                 howto manager.      (line 1652)
9167 * BFD_RELOC_16C_REG20:                   howto manager.      (line 1653)
9168 * BFD_RELOC_16C_REG20_C:                 howto manager.      (line 1654)
9169 * BFD_RELOC_23_PCREL_S2:                 howto manager.      (line   93)
9170 * BFD_RELOC_24:                          howto manager.      (line   29)
9171 * BFD_RELOC_24_PCREL:                    howto manager.      (line   37)
9172 * BFD_RELOC_24_PLT_PCREL:                howto manager.      (line   62)
9173 * BFD_RELOC_26:                          howto manager.      (line   28)
9174 * BFD_RELOC_32:                          howto manager.      (line   27)
9175 * BFD_RELOC_32_BASEREL:                  howto manager.      (line   79)
9176 * BFD_RELOC_32_GOT_PCREL:                howto manager.      (line   51)
9177 * BFD_RELOC_32_GOTOFF:                   howto manager.      (line   54)
9178 * BFD_RELOC_32_PCREL:                    howto manager.      (line   36)
9179 * BFD_RELOC_32_PCREL_S2:                 howto manager.      (line   91)
9180 * BFD_RELOC_32_PLT_PCREL:                howto manager.      (line   61)
9181 * BFD_RELOC_32_PLTOFF:                   howto manager.      (line   66)
9182 * BFD_RELOC_32_SECREL:                   howto manager.      (line   48)
9183 * BFD_RELOC_386_COPY:                    howto manager.      (line  435)
9184 * BFD_RELOC_386_GLOB_DAT:                howto manager.      (line  436)
9185 * BFD_RELOC_386_GOT32:                   howto manager.      (line  433)
9186 * BFD_RELOC_386_GOTOFF:                  howto manager.      (line  439)
9187 * BFD_RELOC_386_GOTPC:                   howto manager.      (line  440)
9188 * BFD_RELOC_386_JUMP_SLOT:               howto manager.      (line  437)
9189 * BFD_RELOC_386_PLT32:                   howto manager.      (line  434)
9190 * BFD_RELOC_386_RELATIVE:                howto manager.      (line  438)
9191 * BFD_RELOC_386_TLS_DESC:                howto manager.      (line  455)
9192 * BFD_RELOC_386_TLS_DESC_CALL:           howto manager.      (line  454)
9193 * BFD_RELOC_386_TLS_DTPMOD32:            howto manager.      (line  450)
9194 * BFD_RELOC_386_TLS_DTPOFF32:            howto manager.      (line  451)
9195 * BFD_RELOC_386_TLS_GD:                  howto manager.      (line  445)
9196 * BFD_RELOC_386_TLS_GOTDESC:             howto manager.      (line  453)
9197 * BFD_RELOC_386_TLS_GOTIE:               howto manager.      (line  443)
9198 * BFD_RELOC_386_TLS_IE:                  howto manager.      (line  442)
9199 * BFD_RELOC_386_TLS_IE_32:               howto manager.      (line  448)
9200 * BFD_RELOC_386_TLS_LDM:                 howto manager.      (line  446)
9201 * BFD_RELOC_386_TLS_LDO_32:              howto manager.      (line  447)
9202 * BFD_RELOC_386_TLS_LE:                  howto manager.      (line  444)
9203 * BFD_RELOC_386_TLS_LE_32:               howto manager.      (line  449)
9204 * BFD_RELOC_386_TLS_TPOFF:               howto manager.      (line  441)
9205 * BFD_RELOC_386_TLS_TPOFF32:             howto manager.      (line  452)
9206 * BFD_RELOC_390_12:                      howto manager.      (line 1346)
9207 * BFD_RELOC_390_20:                      howto manager.      (line 1446)
9208 * BFD_RELOC_390_COPY:                    howto manager.      (line 1355)
9209 * BFD_RELOC_390_GLOB_DAT:                howto manager.      (line 1358)
9210 * BFD_RELOC_390_GOT12:                   howto manager.      (line 1349)
9211 * BFD_RELOC_390_GOT16:                   howto manager.      (line 1370)
9212 * BFD_RELOC_390_GOT20:                   howto manager.      (line 1447)
9213 * BFD_RELOC_390_GOT64:                   howto manager.      (line 1388)
9214 * BFD_RELOC_390_GOTENT:                  howto manager.      (line 1394)
9215 * BFD_RELOC_390_GOTOFF64:                howto manager.      (line 1397)
9216 * BFD_RELOC_390_GOTPC:                   howto manager.      (line 1367)
9217 * BFD_RELOC_390_GOTPCDBL:                howto manager.      (line 1385)
9218 * BFD_RELOC_390_GOTPLT12:                howto manager.      (line 1400)
9219 * BFD_RELOC_390_GOTPLT16:                howto manager.      (line 1403)
9220 * BFD_RELOC_390_GOTPLT20:                howto manager.      (line 1448)
9221 * BFD_RELOC_390_GOTPLT32:                howto manager.      (line 1406)
9222 * BFD_RELOC_390_GOTPLT64:                howto manager.      (line 1409)
9223 * BFD_RELOC_390_GOTPLTENT:               howto manager.      (line 1412)
9224 * BFD_RELOC_390_JMP_SLOT:                howto manager.      (line 1361)
9225 * BFD_RELOC_390_PC16DBL:                 howto manager.      (line 1373)
9226 * BFD_RELOC_390_PC32DBL:                 howto manager.      (line 1379)
9227 * BFD_RELOC_390_PLT16DBL:                howto manager.      (line 1376)
9228 * BFD_RELOC_390_PLT32:                   howto manager.      (line 1352)
9229 * BFD_RELOC_390_PLT32DBL:                howto manager.      (line 1382)
9230 * BFD_RELOC_390_PLT64:                   howto manager.      (line 1391)
9231 * BFD_RELOC_390_PLTOFF16:                howto manager.      (line 1415)
9232 * BFD_RELOC_390_PLTOFF32:                howto manager.      (line 1418)
9233 * BFD_RELOC_390_PLTOFF64:                howto manager.      (line 1421)
9234 * BFD_RELOC_390_RELATIVE:                howto manager.      (line 1364)
9235 * BFD_RELOC_390_TLS_DTPMOD:              howto manager.      (line 1441)
9236 * BFD_RELOC_390_TLS_DTPOFF:              howto manager.      (line 1442)
9237 * BFD_RELOC_390_TLS_GD32:                howto manager.      (line 1427)
9238 * BFD_RELOC_390_TLS_GD64:                howto manager.      (line 1428)
9239 * BFD_RELOC_390_TLS_GDCALL:              howto manager.      (line 1425)
9240 * BFD_RELOC_390_TLS_GOTIE12:             howto manager.      (line 1429)
9241 * BFD_RELOC_390_TLS_GOTIE20:             howto manager.      (line 1449)
9242 * BFD_RELOC_390_TLS_GOTIE32:             howto manager.      (line 1430)
9243 * BFD_RELOC_390_TLS_GOTIE64:             howto manager.      (line 1431)
9244 * BFD_RELOC_390_TLS_IE32:                howto manager.      (line 1434)
9245 * BFD_RELOC_390_TLS_IE64:                howto manager.      (line 1435)
9246 * BFD_RELOC_390_TLS_IEENT:               howto manager.      (line 1436)
9247 * BFD_RELOC_390_TLS_LDCALL:              howto manager.      (line 1426)
9248 * BFD_RELOC_390_TLS_LDM32:               howto manager.      (line 1432)
9249 * BFD_RELOC_390_TLS_LDM64:               howto manager.      (line 1433)
9250 * BFD_RELOC_390_TLS_LDO32:               howto manager.      (line 1439)
9251 * BFD_RELOC_390_TLS_LDO64:               howto manager.      (line 1440)
9252 * BFD_RELOC_390_TLS_LE32:                howto manager.      (line 1437)
9253 * BFD_RELOC_390_TLS_LE64:                howto manager.      (line 1438)
9254 * BFD_RELOC_390_TLS_LOAD:                howto manager.      (line 1424)
9255 * BFD_RELOC_390_TLS_TPOFF:               howto manager.      (line 1443)
9256 * BFD_RELOC_64:                          howto manager.      (line   26)
9257 * BFD_RELOC_64_PCREL:                    howto manager.      (line   35)
9258 * BFD_RELOC_64_PLT_PCREL:                howto manager.      (line   60)
9259 * BFD_RELOC_64_PLTOFF:                   howto manager.      (line   65)
9260 * BFD_RELOC_68K_GLOB_DAT:                howto manager.      (line   74)
9261 * BFD_RELOC_68K_JMP_SLOT:                howto manager.      (line   75)
9262 * BFD_RELOC_68K_RELATIVE:                howto manager.      (line   76)
9263 * BFD_RELOC_8:                           howto manager.      (line   32)
9264 * BFD_RELOC_860_COPY:                    howto manager.      (line 1734)
9265 * BFD_RELOC_860_GLOB_DAT:                howto manager.      (line 1735)
9266 * BFD_RELOC_860_HAGOT:                   howto manager.      (line 1760)
9267 * BFD_RELOC_860_HAGOTOFF:                howto manager.      (line 1761)
9268 * BFD_RELOC_860_HAPC:                    howto manager.      (line 1762)
9269 * BFD_RELOC_860_HIGH:                    howto manager.      (line 1763)
9270 * BFD_RELOC_860_HIGHADJ:                 howto manager.      (line 1759)
9271 * BFD_RELOC_860_HIGOT:                   howto manager.      (line 1764)
9272 * BFD_RELOC_860_HIGOTOFF:                howto manager.      (line 1765)
9273 * BFD_RELOC_860_JUMP_SLOT:               howto manager.      (line 1736)
9274 * BFD_RELOC_860_LOGOT0:                  howto manager.      (line 1748)
9275 * BFD_RELOC_860_LOGOT1:                  howto manager.      (line 1750)
9276 * BFD_RELOC_860_LOGOTOFF0:               howto manager.      (line 1752)
9277 * BFD_RELOC_860_LOGOTOFF1:               howto manager.      (line 1754)
9278 * BFD_RELOC_860_LOGOTOFF2:               howto manager.      (line 1756)
9279 * BFD_RELOC_860_LOGOTOFF3:               howto manager.      (line 1757)
9280 * BFD_RELOC_860_LOPC:                    howto manager.      (line 1758)
9281 * BFD_RELOC_860_LOW0:                    howto manager.      (line 1741)
9282 * BFD_RELOC_860_LOW1:                    howto manager.      (line 1743)
9283 * BFD_RELOC_860_LOW2:                    howto manager.      (line 1745)
9284 * BFD_RELOC_860_LOW3:                    howto manager.      (line 1747)
9285 * BFD_RELOC_860_PC16:                    howto manager.      (line 1740)
9286 * BFD_RELOC_860_PC26:                    howto manager.      (line 1738)
9287 * BFD_RELOC_860_PLT26:                   howto manager.      (line 1739)
9288 * BFD_RELOC_860_RELATIVE:                howto manager.      (line 1737)
9289 * BFD_RELOC_860_SPGOT0:                  howto manager.      (line 1749)
9290 * BFD_RELOC_860_SPGOT1:                  howto manager.      (line 1751)
9291 * BFD_RELOC_860_SPGOTOFF0:               howto manager.      (line 1753)
9292 * BFD_RELOC_860_SPGOTOFF1:               howto manager.      (line 1755)
9293 * BFD_RELOC_860_SPLIT0:                  howto manager.      (line 1742)
9294 * BFD_RELOC_860_SPLIT1:                  howto manager.      (line 1744)
9295 * BFD_RELOC_860_SPLIT2:                  howto manager.      (line 1746)
9296 * BFD_RELOC_8_BASEREL:                   howto manager.      (line   84)
9297 * BFD_RELOC_8_FFnn:                      howto manager.      (line   88)
9298 * BFD_RELOC_8_GOT_PCREL:                 howto manager.      (line   53)
9299 * BFD_RELOC_8_GOTOFF:                    howto manager.      (line   59)
9300 * BFD_RELOC_8_PCREL:                     howto manager.      (line   40)
9301 * BFD_RELOC_8_PLT_PCREL:                 howto manager.      (line   64)
9302 * BFD_RELOC_8_PLTOFF:                    howto manager.      (line   71)
9303 * BFD_RELOC_ALPHA_BRSGP:                 howto manager.      (line  259)
9304 * BFD_RELOC_ALPHA_CODEADDR:              howto manager.      (line  250)
9305 * BFD_RELOC_ALPHA_DTPMOD64:              howto manager.      (line  266)
9306 * BFD_RELOC_ALPHA_DTPREL16:              howto manager.      (line  271)
9307 * BFD_RELOC_ALPHA_DTPREL64:              howto manager.      (line  268)
9308 * BFD_RELOC_ALPHA_DTPREL_HI16:           howto manager.      (line  269)
9309 * BFD_RELOC_ALPHA_DTPREL_LO16:           howto manager.      (line  270)
9310 * BFD_RELOC_ALPHA_ELF_LITERAL:           howto manager.      (line  215)
9311 * BFD_RELOC_ALPHA_GOTDTPREL16:           howto manager.      (line  267)
9312 * BFD_RELOC_ALPHA_GOTTPREL16:            howto manager.      (line  272)
9313 * BFD_RELOC_ALPHA_GPDISP:                howto manager.      (line  209)
9314 * BFD_RELOC_ALPHA_GPDISP_HI16:           howto manager.      (line  195)
9315 * BFD_RELOC_ALPHA_GPDISP_LO16:           howto manager.      (line  203)
9316 * BFD_RELOC_ALPHA_GPREL_HI16:            howto manager.      (line  254)
9317 * BFD_RELOC_ALPHA_GPREL_LO16:            howto manager.      (line  255)
9318 * BFD_RELOC_ALPHA_HINT:                  howto manager.      (line  241)
9319 * BFD_RELOC_ALPHA_LINKAGE:               howto manager.      (line  246)
9320 * BFD_RELOC_ALPHA_LITERAL:               howto manager.      (line  214)
9321 * BFD_RELOC_ALPHA_LITUSE:                howto manager.      (line  216)
9322 * BFD_RELOC_ALPHA_TLSGD:                 howto manager.      (line  264)
9323 * BFD_RELOC_ALPHA_TLSLDM:                howto manager.      (line  265)
9324 * BFD_RELOC_ALPHA_TPREL16:               howto manager.      (line  276)
9325 * BFD_RELOC_ALPHA_TPREL64:               howto manager.      (line  273)
9326 * BFD_RELOC_ALPHA_TPREL_HI16:            howto manager.      (line  274)
9327 * BFD_RELOC_ALPHA_TPREL_LO16:            howto manager.      (line  275)
9328 * BFD_RELOC_ARC_B22_PCREL:               howto manager.      (line  816)
9329 * BFD_RELOC_ARC_B26:                     howto manager.      (line  821)
9330 * BFD_RELOC_ARM_ADR_IMM:                 howto manager.      (line  709)
9331 * BFD_RELOC_ARM_ADRL_IMMEDIATE:          howto manager.      (line  697)
9332 * BFD_RELOC_ARM_CP_OFF_IMM:              howto manager.      (line  705)
9333 * BFD_RELOC_ARM_CP_OFF_IMM_S2:           howto manager.      (line  706)
9334 * BFD_RELOC_ARM_GLOB_DAT:                howto manager.      (line  678)
9335 * BFD_RELOC_ARM_GOT32:                   howto manager.      (line  679)
9336 * BFD_RELOC_ARM_GOTOFF:                  howto manager.      (line  682)
9337 * BFD_RELOC_ARM_GOTPC:                   howto manager.      (line  683)
9338 * BFD_RELOC_ARM_HWLITERAL:               howto manager.      (line  716)
9339 * BFD_RELOC_ARM_IMMEDIATE:               howto manager.      (line  696)
9340 * BFD_RELOC_ARM_IN_POOL:                 howto manager.      (line  712)
9341 * BFD_RELOC_ARM_JUMP_SLOT:               howto manager.      (line  677)
9342 * BFD_RELOC_ARM_LDR_IMM:                 howto manager.      (line  710)
9343 * BFD_RELOC_ARM_LITERAL:                 howto manager.      (line  711)
9344 * BFD_RELOC_ARM_MULTI:                   howto manager.      (line  704)
9345 * BFD_RELOC_ARM_OFFSET_IMM:              howto manager.      (line  651)
9346 * BFD_RELOC_ARM_OFFSET_IMM8:             howto manager.      (line  713)
9347 * BFD_RELOC_ARM_PCREL_BLX:               howto manager.      (line  622)
9348 * BFD_RELOC_ARM_PCREL_BRANCH:            howto manager.      (line  618)
9349 * BFD_RELOC_ARM_PCREL_CALL:              howto manager.      (line  632)
9350 * BFD_RELOC_ARM_PCREL_JUMP:              howto manager.      (line  636)
9351 * BFD_RELOC_ARM_PLT32:                   howto manager.      (line  680)
9352 * BFD_RELOC_ARM_PREL31:                  howto manager.      (line  674)
9353 * BFD_RELOC_ARM_RELATIVE:                howto manager.      (line  681)
9354 * BFD_RELOC_ARM_ROSEGREL32:              howto manager.      (line  663)
9355 * BFD_RELOC_ARM_SBREL32:                 howto manager.      (line  666)
9356 * BFD_RELOC_ARM_SHIFT_IMM:               howto manager.      (line  701)
9357 * BFD_RELOC_ARM_SMC:                     howto manager.      (line  702)
9358 * BFD_RELOC_ARM_SWI:                     howto manager.      (line  703)
9359 * BFD_RELOC_ARM_T32_ADD_PC12:            howto manager.      (line  700)
9360 * BFD_RELOC_ARM_T32_CP_OFF_IMM:          howto manager.      (line  707)
9361 * BFD_RELOC_ARM_T32_CP_OFF_IMM_S2:       howto manager.      (line  708)
9362 * BFD_RELOC_ARM_T32_IMM12:               howto manager.      (line  699)
9363 * BFD_RELOC_ARM_T32_IMMEDIATE:           howto manager.      (line  698)
9364 * BFD_RELOC_ARM_T32_OFFSET_IMM:          howto manager.      (line  715)
9365 * BFD_RELOC_ARM_T32_OFFSET_U8:           howto manager.      (line  714)
9366 * BFD_RELOC_ARM_TARGET1:                 howto manager.      (line  659)
9367 * BFD_RELOC_ARM_TARGET2:                 howto manager.      (line  669)
9368 * BFD_RELOC_ARM_THUMB_ADD:               howto manager.      (line  717)
9369 * BFD_RELOC_ARM_THUMB_IMM:               howto manager.      (line  718)
9370 * BFD_RELOC_ARM_THUMB_OFFSET:            howto manager.      (line  655)
9371 * BFD_RELOC_ARM_THUMB_SHIFT:             howto manager.      (line  719)
9372 * BFD_RELOC_ARM_TLS_DTPMOD32:            howto manager.      (line  690)
9373 * BFD_RELOC_ARM_TLS_DTPOFF32:            howto manager.      (line  689)
9374 * BFD_RELOC_ARM_TLS_GD32:                howto manager.      (line  686)
9375 * BFD_RELOC_ARM_TLS_IE32:                howto manager.      (line  692)
9376 * BFD_RELOC_ARM_TLS_LDM32:               howto manager.      (line  688)
9377 * BFD_RELOC_ARM_TLS_LDO32:               howto manager.      (line  687)
9378 * BFD_RELOC_ARM_TLS_LE32:                howto manager.      (line  693)
9379 * BFD_RELOC_ARM_TLS_TPOFF32:             howto manager.      (line  691)
9380 * BFD_RELOC_AVR_13_PCREL:                howto manager.      (line 1259)
9381 * BFD_RELOC_AVR_16_PM:                   howto manager.      (line 1263)
9382 * BFD_RELOC_AVR_6:                       howto manager.      (line 1338)
9383 * BFD_RELOC_AVR_6_ADIW:                  howto manager.      (line 1342)
9384 * BFD_RELOC_AVR_7_PCREL:                 howto manager.      (line 1255)
9385 * BFD_RELOC_AVR_CALL:                    howto manager.      (line 1330)
9386 * BFD_RELOC_AVR_HH8_LDI:                 howto manager.      (line 1275)
9387 * BFD_RELOC_AVR_HH8_LDI_NEG:             howto manager.      (line 1294)
9388 * BFD_RELOC_AVR_HH8_LDI_PM:              howto manager.      (line 1311)
9389 * BFD_RELOC_AVR_HH8_LDI_PM_NEG:          howto manager.      (line 1325)
9390 * BFD_RELOC_AVR_HI8_LDI:                 howto manager.      (line 1271)
9391 * BFD_RELOC_AVR_HI8_LDI_NEG:             howto manager.      (line 1289)
9392 * BFD_RELOC_AVR_HI8_LDI_PM:              howto manager.      (line 1307)
9393 * BFD_RELOC_AVR_HI8_LDI_PM_NEG:          howto manager.      (line 1320)
9394 * BFD_RELOC_AVR_LDI:                     howto manager.      (line 1334)
9395 * BFD_RELOC_AVR_LO8_LDI:                 howto manager.      (line 1267)
9396 * BFD_RELOC_AVR_LO8_LDI_NEG:             howto manager.      (line 1284)
9397 * BFD_RELOC_AVR_LO8_LDI_PM:              howto manager.      (line 1303)
9398 * BFD_RELOC_AVR_LO8_LDI_PM_NEG:          howto manager.      (line 1316)
9399 * BFD_RELOC_AVR_MS8_LDI:                 howto manager.      (line 1280)
9400 * BFD_RELOC_AVR_MS8_LDI_NEG:             howto manager.      (line 1299)
9401 * BFD_RELOC_BFIN_10_PCREL:               howto manager.      (line  841)
9402 * BFD_RELOC_BFIN_11_PCREL:               howto manager.      (line  844)
9403 * BFD_RELOC_BFIN_12_PCREL_JUMP:          howto manager.      (line  847)
9404 * BFD_RELOC_BFIN_12_PCREL_JUMP_S:        howto manager.      (line  850)
9405 * BFD_RELOC_BFIN_16_HIGH:                howto manager.      (line  829)
9406 * BFD_RELOC_BFIN_16_IMM:                 howto manager.      (line  826)
9407 * BFD_RELOC_BFIN_16_LOW:                 howto manager.      (line  838)
9408 * BFD_RELOC_BFIN_24_PCREL_CALL_X:        howto manager.      (line  853)
9409 * BFD_RELOC_BFIN_24_PCREL_JUMP_L:        howto manager.      (line  856)
9410 * BFD_RELOC_BFIN_4_PCREL:                howto manager.      (line  832)
9411 * BFD_RELOC_BFIN_5_PCREL:                howto manager.      (line  835)
9412 * BFD_RELOC_BFIN_FUNCDESC:               howto manager.      (line  862)
9413 * BFD_RELOC_BFIN_FUNCDESC_GOT17M4:       howto manager.      (line  863)
9414 * BFD_RELOC_BFIN_FUNCDESC_GOTHI:         howto manager.      (line  864)
9415 * BFD_RELOC_BFIN_FUNCDESC_GOTLO:         howto manager.      (line  865)
9416 * BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4:    howto manager.      (line  867)
9417 * BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI:      howto manager.      (line  868)
9418 * BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO:      howto manager.      (line  869)
9419 * BFD_RELOC_BFIN_FUNCDESC_VALUE:         howto manager.      (line  866)
9420 * BFD_RELOC_BFIN_GOT:                    howto manager.      (line  875)
9421 * BFD_RELOC_BFIN_GOT17M4:                howto manager.      (line  859)
9422 * BFD_RELOC_BFIN_GOTHI:                  howto manager.      (line  860)
9423 * BFD_RELOC_BFIN_GOTLO:                  howto manager.      (line  861)
9424 * BFD_RELOC_BFIN_GOTOFF17M4:             howto manager.      (line  870)
9425 * BFD_RELOC_BFIN_GOTOFFHI:               howto manager.      (line  871)
9426 * BFD_RELOC_BFIN_GOTOFFLO:               howto manager.      (line  872)
9427 * BFD_RELOC_BFIN_PLTPC:                  howto manager.      (line  878)
9428 * bfd_reloc_code_type:                   howto manager.      (line   10)
9429 * BFD_RELOC_CRIS_16_GOT:                 howto manager.      (line 1715)
9430 * BFD_RELOC_CRIS_16_GOTPLT:              howto manager.      (line 1721)
9431 * BFD_RELOC_CRIS_32_GOT:                 howto manager.      (line 1712)
9432 * BFD_RELOC_CRIS_32_GOTPLT:              howto manager.      (line 1718)
9433 * BFD_RELOC_CRIS_32_GOTREL:              howto manager.      (line 1724)
9434 * BFD_RELOC_CRIS_32_PLT_GOTREL:          howto manager.      (line 1727)
9435 * BFD_RELOC_CRIS_32_PLT_PCREL:           howto manager.      (line 1730)
9436 * BFD_RELOC_CRIS_BDISP8:                 howto manager.      (line 1693)
9437 * BFD_RELOC_CRIS_COPY:                   howto manager.      (line 1706)
9438 * BFD_RELOC_CRIS_GLOB_DAT:               howto manager.      (line 1707)
9439 * BFD_RELOC_CRIS_JUMP_SLOT:              howto manager.      (line 1708)
9440 * BFD_RELOC_CRIS_LAPCQ_OFFSET:           howto manager.      (line 1701)
9441 * BFD_RELOC_CRIS_RELATIVE:               howto manager.      (line 1709)
9442 * BFD_RELOC_CRIS_SIGNED_16:              howto manager.      (line 1699)
9443 * BFD_RELOC_CRIS_SIGNED_6:               howto manager.      (line 1695)
9444 * BFD_RELOC_CRIS_SIGNED_8:               howto manager.      (line 1697)
9445 * BFD_RELOC_CRIS_UNSIGNED_16:            howto manager.      (line 1700)
9446 * BFD_RELOC_CRIS_UNSIGNED_4:             howto manager.      (line 1702)
9447 * BFD_RELOC_CRIS_UNSIGNED_5:             howto manager.      (line 1694)
9448 * BFD_RELOC_CRIS_UNSIGNED_6:             howto manager.      (line 1696)
9449 * BFD_RELOC_CRIS_UNSIGNED_8:             howto manager.      (line 1698)
9450 * BFD_RELOC_CRX_ABS16:                   howto manager.      (line 1681)
9451 * BFD_RELOC_CRX_ABS32:                   howto manager.      (line 1682)
9452 * BFD_RELOC_CRX_IMM16:                   howto manager.      (line 1686)
9453 * BFD_RELOC_CRX_IMM32:                   howto manager.      (line 1687)
9454 * BFD_RELOC_CRX_NUM16:                   howto manager.      (line 1684)
9455 * BFD_RELOC_CRX_NUM32:                   howto manager.      (line 1685)
9456 * BFD_RELOC_CRX_NUM8:                    howto manager.      (line 1683)
9457 * BFD_RELOC_CRX_REGREL12:                howto manager.      (line 1677)
9458 * BFD_RELOC_CRX_REGREL22:                howto manager.      (line 1678)
9459 * BFD_RELOC_CRX_REGREL28:                howto manager.      (line 1679)
9460 * BFD_RELOC_CRX_REGREL32:                howto manager.      (line 1680)
9461 * BFD_RELOC_CRX_REL16:                   howto manager.      (line 1674)
9462 * BFD_RELOC_CRX_REL24:                   howto manager.      (line 1675)
9463 * BFD_RELOC_CRX_REL32:                   howto manager.      (line 1676)
9464 * BFD_RELOC_CRX_REL4:                    howto manager.      (line 1671)
9465 * BFD_RELOC_CRX_REL8:                    howto manager.      (line 1672)
9466 * BFD_RELOC_CRX_REL8_CMP:                howto manager.      (line 1673)
9467 * BFD_RELOC_CRX_SWITCH16:                howto manager.      (line 1689)
9468 * BFD_RELOC_CRX_SWITCH32:                howto manager.      (line 1690)
9469 * BFD_RELOC_CRX_SWITCH8:                 howto manager.      (line 1688)
9470 * BFD_RELOC_CTOR:                        howto manager.      (line  612)
9471 * BFD_RELOC_D10V_10_PCREL_L:             howto manager.      (line  945)
9472 * BFD_RELOC_D10V_10_PCREL_R:             howto manager.      (line  941)
9473 * BFD_RELOC_D10V_18:                     howto manager.      (line  950)
9474 * BFD_RELOC_D10V_18_PCREL:               howto manager.      (line  953)
9475 * BFD_RELOC_D30V_15:                     howto manager.      (line  968)
9476 * BFD_RELOC_D30V_15_PCREL:               howto manager.      (line  972)
9477 * BFD_RELOC_D30V_15_PCREL_R:             howto manager.      (line  976)
9478 * BFD_RELOC_D30V_21:                     howto manager.      (line  981)
9479 * BFD_RELOC_D30V_21_PCREL:               howto manager.      (line  985)
9480 * BFD_RELOC_D30V_21_PCREL_R:             howto manager.      (line  989)
9481 * BFD_RELOC_D30V_32:                     howto manager.      (line  994)
9482 * BFD_RELOC_D30V_32_PCREL:               howto manager.      (line  997)
9483 * BFD_RELOC_D30V_6:                      howto manager.      (line  956)
9484 * BFD_RELOC_D30V_9_PCREL:                howto manager.      (line  959)
9485 * BFD_RELOC_D30V_9_PCREL_R:              howto manager.      (line  963)
9486 * BFD_RELOC_DLX_HI16_S:                  howto manager.      (line 1000)
9487 * BFD_RELOC_DLX_JMP26:                   howto manager.      (line 1006)
9488 * BFD_RELOC_DLX_LO16:                    howto manager.      (line 1003)
9489 * BFD_RELOC_FR30_10_IN_8:                howto manager.      (line 1185)
9490 * BFD_RELOC_FR30_12_PCREL:               howto manager.      (line 1193)
9491 * BFD_RELOC_FR30_20:                     howto manager.      (line 1169)
9492 * BFD_RELOC_FR30_48:                     howto manager.      (line 1166)
9493 * BFD_RELOC_FR30_6_IN_4:                 howto manager.      (line 1173)
9494 * BFD_RELOC_FR30_8_IN_8:                 howto manager.      (line 1177)
9495 * BFD_RELOC_FR30_9_IN_8:                 howto manager.      (line 1181)
9496 * BFD_RELOC_FR30_9_PCREL:                howto manager.      (line 1189)
9497 * BFD_RELOC_FRV_FUNCDESC:                howto manager.      (line  377)
9498 * BFD_RELOC_FRV_FUNCDESC_GOT12:          howto manager.      (line  378)
9499 * BFD_RELOC_FRV_FUNCDESC_GOTHI:          howto manager.      (line  379)
9500 * BFD_RELOC_FRV_FUNCDESC_GOTLO:          howto manager.      (line  380)
9501 * BFD_RELOC_FRV_FUNCDESC_GOTOFF12:       howto manager.      (line  382)
9502 * BFD_RELOC_FRV_FUNCDESC_GOTOFFHI:       howto manager.      (line  383)
9503 * BFD_RELOC_FRV_FUNCDESC_GOTOFFLO:       howto manager.      (line  384)
9504 * BFD_RELOC_FRV_FUNCDESC_VALUE:          howto manager.      (line  381)
9505 * BFD_RELOC_FRV_GETTLSOFF:               howto manager.      (line  388)
9506 * BFD_RELOC_FRV_GETTLSOFF_RELAX:         howto manager.      (line  401)
9507 * BFD_RELOC_FRV_GOT12:                   howto manager.      (line  374)
9508 * BFD_RELOC_FRV_GOTHI:                   howto manager.      (line  375)
9509 * BFD_RELOC_FRV_GOTLO:                   howto manager.      (line  376)
9510 * BFD_RELOC_FRV_GOTOFF12:                howto manager.      (line  385)
9511 * BFD_RELOC_FRV_GOTOFFHI:                howto manager.      (line  386)
9512 * BFD_RELOC_FRV_GOTOFFLO:                howto manager.      (line  387)
9513 * BFD_RELOC_FRV_GOTTLSDESC12:            howto manager.      (line  390)
9514 * BFD_RELOC_FRV_GOTTLSDESCHI:            howto manager.      (line  391)
9515 * BFD_RELOC_FRV_GOTTLSDESCLO:            howto manager.      (line  392)
9516 * BFD_RELOC_FRV_GOTTLSOFF12:             howto manager.      (line  396)
9517 * BFD_RELOC_FRV_GOTTLSOFFHI:             howto manager.      (line  397)
9518 * BFD_RELOC_FRV_GOTTLSOFFLO:             howto manager.      (line  398)
9519 * BFD_RELOC_FRV_GPREL12:                 howto manager.      (line  369)
9520 * BFD_RELOC_FRV_GPREL32:                 howto manager.      (line  371)
9521 * BFD_RELOC_FRV_GPRELHI:                 howto manager.      (line  372)
9522 * BFD_RELOC_FRV_GPRELLO:                 howto manager.      (line  373)
9523 * BFD_RELOC_FRV_GPRELU12:                howto manager.      (line  370)
9524 * BFD_RELOC_FRV_HI16:                    howto manager.      (line  368)
9525 * BFD_RELOC_FRV_LABEL16:                 howto manager.      (line  365)
9526 * BFD_RELOC_FRV_LABEL24:                 howto manager.      (line  366)
9527 * BFD_RELOC_FRV_LO16:                    howto manager.      (line  367)
9528 * BFD_RELOC_FRV_TLSDESC_RELAX:           howto manager.      (line  400)
9529 * BFD_RELOC_FRV_TLSDESC_VALUE:           howto manager.      (line  389)
9530 * BFD_RELOC_FRV_TLSMOFF:                 howto manager.      (line  403)
9531 * BFD_RELOC_FRV_TLSMOFF12:               howto manager.      (line  393)
9532 * BFD_RELOC_FRV_TLSMOFFHI:               howto manager.      (line  394)
9533 * BFD_RELOC_FRV_TLSMOFFLO:               howto manager.      (line  395)
9534 * BFD_RELOC_FRV_TLSOFF:                  howto manager.      (line  399)
9535 * BFD_RELOC_FRV_TLSOFF_RELAX:            howto manager.      (line  402)
9536 * BFD_RELOC_GPREL16:                     howto manager.      (line  106)
9537 * BFD_RELOC_GPREL32:                     howto manager.      (line  107)
9538 * BFD_RELOC_H8_DIR16A8:                  howto manager.      (line 1772)
9539 * BFD_RELOC_H8_DIR16R8:                  howto manager.      (line 1773)
9540 * BFD_RELOC_H8_DIR24A8:                  howto manager.      (line 1774)
9541 * BFD_RELOC_H8_DIR24R8:                  howto manager.      (line 1775)
9542 * BFD_RELOC_H8_DIR32A16:                 howto manager.      (line 1776)
9543 * BFD_RELOC_HI16:                        howto manager.      (line  289)
9544 * BFD_RELOC_HI16_BASEREL:                howto manager.      (line   82)
9545 * BFD_RELOC_HI16_GOTOFF:                 howto manager.      (line   57)
9546 * BFD_RELOC_HI16_PCREL:                  howto manager.      (line  301)
9547 * BFD_RELOC_HI16_PLTOFF:                 howto manager.      (line   69)
9548 * BFD_RELOC_HI16_S:                      howto manager.      (line  292)
9549 * BFD_RELOC_HI16_S_BASEREL:              howto manager.      (line   83)
9550 * BFD_RELOC_HI16_S_GOTOFF:               howto manager.      (line   58)
9551 * BFD_RELOC_HI16_S_PCREL:                howto manager.      (line  304)
9552 * BFD_RELOC_HI16_S_PLTOFF:               howto manager.      (line   70)
9553 * BFD_RELOC_HI22:                        howto manager.      (line  101)
9554 * BFD_RELOC_I370_D12:                    howto manager.      (line  609)
9555 * BFD_RELOC_I960_CALLJ:                  howto manager.      (line  113)
9556 * BFD_RELOC_IA64_COPY:                   howto manager.      (line 1565)
9557 * BFD_RELOC_IA64_DIR32LSB:               howto manager.      (line 1510)
9558 * BFD_RELOC_IA64_DIR32MSB:               howto manager.      (line 1509)
9559 * BFD_RELOC_IA64_DIR64LSB:               howto manager.      (line 1512)
9560 * BFD_RELOC_IA64_DIR64MSB:               howto manager.      (line 1511)
9561 * BFD_RELOC_IA64_DTPMOD64LSB:            howto manager.      (line 1575)
9562 * BFD_RELOC_IA64_DTPMOD64MSB:            howto manager.      (line 1574)
9563 * BFD_RELOC_IA64_DTPREL14:               howto manager.      (line 1577)
9564 * BFD_RELOC_IA64_DTPREL22:               howto manager.      (line 1578)
9565 * BFD_RELOC_IA64_DTPREL32LSB:            howto manager.      (line 1581)
9566 * BFD_RELOC_IA64_DTPREL32MSB:            howto manager.      (line 1580)
9567 * BFD_RELOC_IA64_DTPREL64I:              howto manager.      (line 1579)
9568 * BFD_RELOC_IA64_DTPREL64LSB:            howto manager.      (line 1583)
9569 * BFD_RELOC_IA64_DTPREL64MSB:            howto manager.      (line 1582)
9570 * BFD_RELOC_IA64_FPTR32LSB:              howto manager.      (line 1527)
9571 * BFD_RELOC_IA64_FPTR32MSB:              howto manager.      (line 1526)
9572 * BFD_RELOC_IA64_FPTR64I:                howto manager.      (line 1525)
9573 * BFD_RELOC_IA64_FPTR64LSB:              howto manager.      (line 1529)
9574 * BFD_RELOC_IA64_FPTR64MSB:              howto manager.      (line 1528)
9575 * BFD_RELOC_IA64_GPREL22:                howto manager.      (line 1513)
9576 * BFD_RELOC_IA64_GPREL32LSB:             howto manager.      (line 1516)
9577 * BFD_RELOC_IA64_GPREL32MSB:             howto manager.      (line 1515)
9578 * BFD_RELOC_IA64_GPREL64I:               howto manager.      (line 1514)
9579 * BFD_RELOC_IA64_GPREL64LSB:             howto manager.      (line 1518)
9580 * BFD_RELOC_IA64_GPREL64MSB:             howto manager.      (line 1517)
9581 * BFD_RELOC_IA64_IMM14:                  howto manager.      (line 1506)
9582 * BFD_RELOC_IA64_IMM22:                  howto manager.      (line 1507)
9583 * BFD_RELOC_IA64_IMM64:                  howto manager.      (line 1508)
9584 * BFD_RELOC_IA64_IPLTLSB:                howto manager.      (line 1564)
9585 * BFD_RELOC_IA64_IPLTMSB:                howto manager.      (line 1563)
9586 * BFD_RELOC_IA64_LDXMOV:                 howto manager.      (line 1567)
9587 * BFD_RELOC_IA64_LTOFF22:                howto manager.      (line 1519)
9588 * BFD_RELOC_IA64_LTOFF22X:               howto manager.      (line 1566)
9589 * BFD_RELOC_IA64_LTOFF64I:               howto manager.      (line 1520)
9590 * BFD_RELOC_IA64_LTOFF_DTPMOD22:         howto manager.      (line 1576)
9591 * BFD_RELOC_IA64_LTOFF_DTPREL22:         howto manager.      (line 1584)
9592 * BFD_RELOC_IA64_LTOFF_FPTR22:           howto manager.      (line 1541)
9593 * BFD_RELOC_IA64_LTOFF_FPTR32LSB:        howto manager.      (line 1544)
9594 * BFD_RELOC_IA64_LTOFF_FPTR32MSB:        howto manager.      (line 1543)
9595 * BFD_RELOC_IA64_LTOFF_FPTR64I:          howto manager.      (line 1542)
9596 * BFD_RELOC_IA64_LTOFF_FPTR64LSB:        howto manager.      (line 1546)
9597 * BFD_RELOC_IA64_LTOFF_FPTR64MSB:        howto manager.      (line 1545)
9598 * BFD_RELOC_IA64_LTOFF_TPREL22:          howto manager.      (line 1573)
9599 * BFD_RELOC_IA64_LTV32LSB:               howto manager.      (line 1560)
9600 * BFD_RELOC_IA64_LTV32MSB:               howto manager.      (line 1559)
9601 * BFD_RELOC_IA64_LTV64LSB:               howto manager.      (line 1562)
9602 * BFD_RELOC_IA64_LTV64MSB:               howto manager.      (line 1561)
9603 * BFD_RELOC_IA64_PCREL21B:               howto manager.      (line 1530)
9604 * BFD_RELOC_IA64_PCREL21BI:              howto manager.      (line 1531)
9605 * BFD_RELOC_IA64_PCREL21F:               howto manager.      (line 1533)
9606 * BFD_RELOC_IA64_PCREL21M:               howto manager.      (line 1532)
9607 * BFD_RELOC_IA64_PCREL22:                howto manager.      (line 1534)
9608 * BFD_RELOC_IA64_PCREL32LSB:             howto manager.      (line 1538)
9609 * BFD_RELOC_IA64_PCREL32MSB:             howto manager.      (line 1537)
9610 * BFD_RELOC_IA64_PCREL60B:               howto manager.      (line 1535)
9611 * BFD_RELOC_IA64_PCREL64I:               howto manager.      (line 1536)
9612 * BFD_RELOC_IA64_PCREL64LSB:             howto manager.      (line 1540)
9613 * BFD_RELOC_IA64_PCREL64MSB:             howto manager.      (line 1539)
9614 * BFD_RELOC_IA64_PLTOFF22:               howto manager.      (line 1521)
9615 * BFD_RELOC_IA64_PLTOFF64I:              howto manager.      (line 1522)
9616 * BFD_RELOC_IA64_PLTOFF64LSB:            howto manager.      (line 1524)
9617 * BFD_RELOC_IA64_PLTOFF64MSB:            howto manager.      (line 1523)
9618 * BFD_RELOC_IA64_REL32LSB:               howto manager.      (line 1556)
9619 * BFD_RELOC_IA64_REL32MSB:               howto manager.      (line 1555)
9620 * BFD_RELOC_IA64_REL64LSB:               howto manager.      (line 1558)
9621 * BFD_RELOC_IA64_REL64MSB:               howto manager.      (line 1557)
9622 * BFD_RELOC_IA64_SECREL32LSB:            howto manager.      (line 1552)
9623 * BFD_RELOC_IA64_SECREL32MSB:            howto manager.      (line 1551)
9624 * BFD_RELOC_IA64_SECREL64LSB:            howto manager.      (line 1554)
9625 * BFD_RELOC_IA64_SECREL64MSB:            howto manager.      (line 1553)
9626 * BFD_RELOC_IA64_SEGREL32LSB:            howto manager.      (line 1548)
9627 * BFD_RELOC_IA64_SEGREL32MSB:            howto manager.      (line 1547)
9628 * BFD_RELOC_IA64_SEGREL64LSB:            howto manager.      (line 1550)
9629 * BFD_RELOC_IA64_SEGREL64MSB:            howto manager.      (line 1549)
9630 * BFD_RELOC_IA64_TPREL14:                howto manager.      (line 1568)
9631 * BFD_RELOC_IA64_TPREL22:                howto manager.      (line 1569)
9632 * BFD_RELOC_IA64_TPREL64I:               howto manager.      (line 1570)
9633 * BFD_RELOC_IA64_TPREL64LSB:             howto manager.      (line 1572)
9634 * BFD_RELOC_IA64_TPREL64MSB:             howto manager.      (line 1571)
9635 * BFD_RELOC_IP2K_ADDR16CJP:              howto manager.      (line 1458)
9636 * BFD_RELOC_IP2K_BANK:                   howto manager.      (line 1455)
9637 * BFD_RELOC_IP2K_EX8DATA:                howto manager.      (line 1466)
9638 * BFD_RELOC_IP2K_FR9:                    howto manager.      (line 1452)
9639 * BFD_RELOC_IP2K_FR_OFFSET:              howto manager.      (line 1479)
9640 * BFD_RELOC_IP2K_HI8DATA:                howto manager.      (line 1465)
9641 * BFD_RELOC_IP2K_HI8INSN:                howto manager.      (line 1470)
9642 * BFD_RELOC_IP2K_LO8DATA:                howto manager.      (line 1464)
9643 * BFD_RELOC_IP2K_LO8INSN:                howto manager.      (line 1469)
9644 * BFD_RELOC_IP2K_PAGE3:                  howto manager.      (line 1461)
9645 * BFD_RELOC_IP2K_PC_SKIP:                howto manager.      (line 1473)
9646 * BFD_RELOC_IP2K_TEXT:                   howto manager.      (line 1476)
9647 * BFD_RELOC_IQ2000_OFFSET_16:            howto manager.      (line 1823)
9648 * BFD_RELOC_IQ2000_OFFSET_21:            howto manager.      (line 1824)
9649 * BFD_RELOC_IQ2000_UHI16:                howto manager.      (line 1825)
9650 * BFD_RELOC_LO10:                        howto manager.      (line  102)
9651 * BFD_RELOC_LO16:                        howto manager.      (line  298)
9652 * BFD_RELOC_LO16_BASEREL:                howto manager.      (line   81)
9653 * BFD_RELOC_LO16_GOTOFF:                 howto manager.      (line   56)
9654 * BFD_RELOC_LO16_PCREL:                  howto manager.      (line  307)
9655 * BFD_RELOC_LO16_PLTOFF:                 howto manager.      (line   68)
9656 * BFD_RELOC_M32C_HI8:                    howto manager.      (line 1009)
9657 * BFD_RELOC_M32C_RL_1ADDR:               howto manager.      (line 1011)
9658 * BFD_RELOC_M32C_RL_2ADDR:               howto manager.      (line 1012)
9659 * BFD_RELOC_M32C_RL_JUMP:                howto manager.      (line 1010)
9660 * BFD_RELOC_M32R_10_PCREL:               howto manager.      (line 1019)
9661 * BFD_RELOC_M32R_18_PCREL:               howto manager.      (line 1023)
9662 * BFD_RELOC_M32R_24:                     howto manager.      (line 1015)
9663 * BFD_RELOC_M32R_26_PCREL:               howto manager.      (line 1026)
9664 * BFD_RELOC_M32R_26_PLTREL:              howto manager.      (line 1045)
9665 * BFD_RELOC_M32R_COPY:                   howto manager.      (line 1046)
9666 * BFD_RELOC_M32R_GLOB_DAT:               howto manager.      (line 1047)
9667 * BFD_RELOC_M32R_GOT16_HI_SLO:           howto manager.      (line 1056)
9668 * BFD_RELOC_M32R_GOT16_HI_ULO:           howto manager.      (line 1055)
9669 * BFD_RELOC_M32R_GOT16_LO:               howto manager.      (line 1057)
9670 * BFD_RELOC_M32R_GOT24:                  howto manager.      (line 1044)
9671 * BFD_RELOC_M32R_GOTOFF:                 howto manager.      (line 1050)
9672 * BFD_RELOC_M32R_GOTOFF_HI_SLO:          howto manager.      (line 1052)
9673 * BFD_RELOC_M32R_GOTOFF_HI_ULO:          howto manager.      (line 1051)
9674 * BFD_RELOC_M32R_GOTOFF_LO:              howto manager.      (line 1053)
9675 * BFD_RELOC_M32R_GOTPC24:                howto manager.      (line 1054)
9676 * BFD_RELOC_M32R_GOTPC_HI_SLO:           howto manager.      (line 1059)
9677 * BFD_RELOC_M32R_GOTPC_HI_ULO:           howto manager.      (line 1058)
9678 * BFD_RELOC_M32R_GOTPC_LO:               howto manager.      (line 1060)
9679 * BFD_RELOC_M32R_HI16_SLO:               howto manager.      (line 1033)
9680 * BFD_RELOC_M32R_HI16_ULO:               howto manager.      (line 1029)
9681 * BFD_RELOC_M32R_JMP_SLOT:               howto manager.      (line 1048)
9682 * BFD_RELOC_M32R_LO16:                   howto manager.      (line 1037)
9683 * BFD_RELOC_M32R_RELATIVE:               howto manager.      (line 1049)
9684 * BFD_RELOC_M32R_SDA16:                  howto manager.      (line 1040)
9685 * BFD_RELOC_M68HC11_24:                  howto manager.      (line 1620)
9686 * BFD_RELOC_M68HC11_3B:                  howto manager.      (line 1595)
9687 * BFD_RELOC_M68HC11_HI8:                 howto manager.      (line 1587)
9688 * BFD_RELOC_M68HC11_LO16:                howto manager.      (line 1609)
9689 * BFD_RELOC_M68HC11_LO8:                 howto manager.      (line 1591)
9690 * BFD_RELOC_M68HC11_PAGE:                howto manager.      (line 1615)
9691 * BFD_RELOC_M68HC11_RL_GROUP:            howto manager.      (line 1604)
9692 * BFD_RELOC_M68HC11_RL_JUMP:             howto manager.      (line 1598)
9693 * BFD_RELOC_M68HC12_5B:                  howto manager.      (line 1626)
9694 * BFD_RELOC_MCORE_PCREL_32:              howto manager.      (line 1200)
9695 * BFD_RELOC_MCORE_PCREL_IMM11BY2:        howto manager.      (line 1198)
9696 * BFD_RELOC_MCORE_PCREL_IMM4BY2:         howto manager.      (line 1199)
9697 * BFD_RELOC_MCORE_PCREL_IMM8BY4:         howto manager.      (line 1197)
9698 * BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2:    howto manager.      (line 1201)
9699 * BFD_RELOC_MCORE_RVA:                   howto manager.      (line 1202)
9700 * BFD_RELOC_MIPS16_GPREL:                howto manager.      (line  286)
9701 * BFD_RELOC_MIPS16_HI16:                 howto manager.      (line  310)
9702 * BFD_RELOC_MIPS16_HI16_S:               howto manager.      (line  313)
9703 * BFD_RELOC_MIPS16_JMP:                  howto manager.      (line  283)
9704 * BFD_RELOC_MIPS16_LO16:                 howto manager.      (line  319)
9705 * BFD_RELOC_MIPS_CALL16:                 howto manager.      (line  326)
9706 * BFD_RELOC_MIPS_CALL_HI16:              howto manager.      (line  329)
9707 * BFD_RELOC_MIPS_CALL_LO16:              howto manager.      (line  330)
9708 * BFD_RELOC_MIPS_COPY:                   howto manager.      (line  361)
9709 * BFD_RELOC_MIPS_DELETE:                 howto manager.      (line  339)
9710 * BFD_RELOC_MIPS_GOT16:                  howto manager.      (line  325)
9711 * BFD_RELOC_MIPS_GOT_DISP:               howto manager.      (line  334)
9712 * BFD_RELOC_MIPS_GOT_HI16:               howto manager.      (line  327)
9713 * BFD_RELOC_MIPS_GOT_LO16:               howto manager.      (line  328)
9714 * BFD_RELOC_MIPS_GOT_OFST:               howto manager.      (line  333)
9715 * BFD_RELOC_MIPS_GOT_PAGE:               howto manager.      (line  332)
9716 * BFD_RELOC_MIPS_HIGHER:                 howto manager.      (line  341)
9717 * BFD_RELOC_MIPS_HIGHEST:                howto manager.      (line  340)
9718 * BFD_RELOC_MIPS_INSERT_A:               howto manager.      (line  337)
9719 * BFD_RELOC_MIPS_INSERT_B:               howto manager.      (line  338)
9720 * BFD_RELOC_MIPS_JALR:                   howto manager.      (line  345)
9721 * BFD_RELOC_MIPS_JMP:                    howto manager.      (line  279)
9722 * BFD_RELOC_MIPS_JUMP_SLOT:              howto manager.      (line  362)
9723 * BFD_RELOC_MIPS_LITERAL:                howto manager.      (line  322)
9724 * BFD_RELOC_MIPS_REL16:                  howto manager.      (line  343)
9725 * BFD_RELOC_MIPS_RELGOT:                 howto manager.      (line  344)
9726 * BFD_RELOC_MIPS_SCN_DISP:               howto manager.      (line  342)
9727 * BFD_RELOC_MIPS_SHIFT5:                 howto manager.      (line  335)
9728 * BFD_RELOC_MIPS_SHIFT6:                 howto manager.      (line  336)
9729 * BFD_RELOC_MIPS_SUB:                    howto manager.      (line  331)
9730 * BFD_RELOC_MIPS_TLS_DTPMOD32:           howto manager.      (line  346)
9731 * BFD_RELOC_MIPS_TLS_DTPMOD64:           howto manager.      (line  348)
9732 * BFD_RELOC_MIPS_TLS_DTPREL32:           howto manager.      (line  347)
9733 * BFD_RELOC_MIPS_TLS_DTPREL64:           howto manager.      (line  349)
9734 * BFD_RELOC_MIPS_TLS_DTPREL_HI16:        howto manager.      (line  352)
9735 * BFD_RELOC_MIPS_TLS_DTPREL_LO16:        howto manager.      (line  353)
9736 * BFD_RELOC_MIPS_TLS_GD:                 howto manager.      (line  350)
9737 * BFD_RELOC_MIPS_TLS_GOTTPREL:           howto manager.      (line  354)
9738 * BFD_RELOC_MIPS_TLS_LDM:                howto manager.      (line  351)
9739 * BFD_RELOC_MIPS_TLS_TPREL32:            howto manager.      (line  355)
9740 * BFD_RELOC_MIPS_TLS_TPREL64:            howto manager.      (line  356)
9741 * BFD_RELOC_MIPS_TLS_TPREL_HI16:         howto manager.      (line  357)
9742 * BFD_RELOC_MIPS_TLS_TPREL_LO16:         howto manager.      (line  358)
9743 * BFD_RELOC_MMIX_ADDR19:                 howto manager.      (line 1231)
9744 * BFD_RELOC_MMIX_ADDR27:                 howto manager.      (line 1235)
9745 * BFD_RELOC_MMIX_BASE_PLUS_OFFSET:       howto manager.      (line 1247)
9746 * BFD_RELOC_MMIX_CBRANCH:                howto manager.      (line 1211)
9747 * BFD_RELOC_MMIX_CBRANCH_1:              howto manager.      (line 1213)
9748 * BFD_RELOC_MMIX_CBRANCH_2:              howto manager.      (line 1214)
9749 * BFD_RELOC_MMIX_CBRANCH_3:              howto manager.      (line 1215)
9750 * BFD_RELOC_MMIX_CBRANCH_J:              howto manager.      (line 1212)
9751 * BFD_RELOC_MMIX_GETA:                   howto manager.      (line 1205)
9752 * BFD_RELOC_MMIX_GETA_1:                 howto manager.      (line 1206)
9753 * BFD_RELOC_MMIX_GETA_2:                 howto manager.      (line 1207)
9754 * BFD_RELOC_MMIX_GETA_3:                 howto manager.      (line 1208)
9755 * BFD_RELOC_MMIX_JMP:                    howto manager.      (line 1225)
9756 * BFD_RELOC_MMIX_JMP_1:                  howto manager.      (line 1226)
9757 * BFD_RELOC_MMIX_JMP_2:                  howto manager.      (line 1227)
9758 * BFD_RELOC_MMIX_JMP_3:                  howto manager.      (line 1228)
9759 * BFD_RELOC_MMIX_LOCAL:                  howto manager.      (line 1251)
9760 * BFD_RELOC_MMIX_PUSHJ:                  howto manager.      (line 1218)
9761 * BFD_RELOC_MMIX_PUSHJ_1:                howto manager.      (line 1219)
9762 * BFD_RELOC_MMIX_PUSHJ_2:                howto manager.      (line 1220)
9763 * BFD_RELOC_MMIX_PUSHJ_3:                howto manager.      (line 1221)
9764 * BFD_RELOC_MMIX_PUSHJ_STUBBABLE:        howto manager.      (line 1222)
9765 * BFD_RELOC_MMIX_REG:                    howto manager.      (line 1243)
9766 * BFD_RELOC_MMIX_REG_OR_BYTE:            howto manager.      (line 1239)
9767 * BFD_RELOC_MN10300_16_PCREL:            howto manager.      (line 1135)
9768 * BFD_RELOC_MN10300_32_PCREL:            howto manager.      (line 1131)
9769 * BFD_RELOC_MN10300_COPY:                howto manager.      (line  421)
9770 * BFD_RELOC_MN10300_GLOB_DAT:            howto manager.      (line  424)
9771 * BFD_RELOC_MN10300_GOT16:               howto manager.      (line  417)
9772 * BFD_RELOC_MN10300_GOT24:               howto manager.      (line  413)
9773 * BFD_RELOC_MN10300_GOT32:               howto manager.      (line  409)
9774 * BFD_RELOC_MN10300_GOTOFF24:            howto manager.      (line  406)
9775 * BFD_RELOC_MN10300_JMP_SLOT:            howto manager.      (line  427)
9776 * BFD_RELOC_MN10300_RELATIVE:            howto manager.      (line  430)
9777 * BFD_RELOC_MSP430_10_PCREL:             howto manager.      (line 1814)
9778 * BFD_RELOC_MSP430_16:                   howto manager.      (line 1816)
9779 * BFD_RELOC_MSP430_16_BYTE:              howto manager.      (line 1818)
9780 * BFD_RELOC_MSP430_16_PCREL:             howto manager.      (line 1815)
9781 * BFD_RELOC_MSP430_16_PCREL_BYTE:        howto manager.      (line 1817)
9782 * BFD_RELOC_MSP430_2X_PCREL:             howto manager.      (line 1819)
9783 * BFD_RELOC_MSP430_RL_PCREL:             howto manager.      (line 1820)
9784 * BFD_RELOC_MT_GNU_VTENTRY:              howto manager.      (line 1808)
9785 * BFD_RELOC_MT_GNU_VTINHERIT:            howto manager.      (line 1805)
9786 * BFD_RELOC_MT_HI16:                     howto manager.      (line 1799)
9787 * BFD_RELOC_MT_LO16:                     howto manager.      (line 1802)
9788 * BFD_RELOC_MT_PC16:                     howto manager.      (line 1796)
9789 * BFD_RELOC_MT_PCINSN8:                  howto manager.      (line 1811)
9790 * BFD_RELOC_NONE:                        howto manager.      (line  116)
9791 * BFD_RELOC_NS32K_DISP_16:               howto manager.      (line  493)
9792 * BFD_RELOC_NS32K_DISP_16_PCREL:         howto manager.      (line  496)
9793 * BFD_RELOC_NS32K_DISP_32:               howto manager.      (line  494)
9794 * BFD_RELOC_NS32K_DISP_32_PCREL:         howto manager.      (line  497)
9795 * BFD_RELOC_NS32K_DISP_8:                howto manager.      (line  492)
9796 * BFD_RELOC_NS32K_DISP_8_PCREL:          howto manager.      (line  495)
9797 * BFD_RELOC_NS32K_IMM_16:                howto manager.      (line  487)
9798 * BFD_RELOC_NS32K_IMM_16_PCREL:          howto manager.      (line  490)
9799 * BFD_RELOC_NS32K_IMM_32:                howto manager.      (line  488)
9800 * BFD_RELOC_NS32K_IMM_32_PCREL:          howto manager.      (line  491)
9801 * BFD_RELOC_NS32K_IMM_8:                 howto manager.      (line  486)
9802 * BFD_RELOC_NS32K_IMM_8_PCREL:           howto manager.      (line  489)
9803 * BFD_RELOC_OPENRISC_ABS_26:             howto manager.      (line 1768)
9804 * BFD_RELOC_OPENRISC_REL_26:             howto manager.      (line 1769)
9805 * BFD_RELOC_PDP11_DISP_6_PCREL:          howto manager.      (line  501)
9806 * BFD_RELOC_PDP11_DISP_8_PCREL:          howto manager.      (line  500)
9807 * BFD_RELOC_PJ_CODE_DIR16:               howto manager.      (line  506)
9808 * BFD_RELOC_PJ_CODE_DIR32:               howto manager.      (line  507)
9809 * BFD_RELOC_PJ_CODE_HI16:                howto manager.      (line  504)
9810 * BFD_RELOC_PJ_CODE_LO16:                howto manager.      (line  505)
9811 * BFD_RELOC_PJ_CODE_REL16:               howto manager.      (line  508)
9812 * BFD_RELOC_PJ_CODE_REL32:               howto manager.      (line  509)
9813 * BFD_RELOC_PPC64_ADDR16_DS:             howto manager.      (line  554)
9814 * BFD_RELOC_PPC64_ADDR16_LO_DS:          howto manager.      (line  555)
9815 * BFD_RELOC_PPC64_DTPREL16_DS:           howto manager.      (line  601)
9816 * BFD_RELOC_PPC64_DTPREL16_HIGHER:       howto manager.      (line  603)
9817 * BFD_RELOC_PPC64_DTPREL16_HIGHERA:      howto manager.      (line  604)
9818 * BFD_RELOC_PPC64_DTPREL16_HIGHEST:      howto manager.      (line  605)
9819 * BFD_RELOC_PPC64_DTPREL16_HIGHESTA:     howto manager.      (line  606)
9820 * BFD_RELOC_PPC64_DTPREL16_LO_DS:        howto manager.      (line  602)
9821 * BFD_RELOC_PPC64_GOT16_DS:              howto manager.      (line  556)
9822 * BFD_RELOC_PPC64_GOT16_LO_DS:           howto manager.      (line  557)
9823 * BFD_RELOC_PPC64_HIGHER:                howto manager.      (line  542)
9824 * BFD_RELOC_PPC64_HIGHER_S:              howto manager.      (line  543)
9825 * BFD_RELOC_PPC64_HIGHEST:               howto manager.      (line  544)
9826 * BFD_RELOC_PPC64_HIGHEST_S:             howto manager.      (line  545)
9827 * BFD_RELOC_PPC64_PLT16_LO_DS:           howto manager.      (line  558)
9828 * BFD_RELOC_PPC64_PLTGOT16:              howto manager.      (line  550)
9829 * BFD_RELOC_PPC64_PLTGOT16_DS:           howto manager.      (line  563)
9830 * BFD_RELOC_PPC64_PLTGOT16_HA:           howto manager.      (line  553)
9831 * BFD_RELOC_PPC64_PLTGOT16_HI:           howto manager.      (line  552)
9832 * BFD_RELOC_PPC64_PLTGOT16_LO:           howto manager.      (line  551)
9833 * BFD_RELOC_PPC64_PLTGOT16_LO_DS:        howto manager.      (line  564)
9834 * BFD_RELOC_PPC64_SECTOFF_DS:            howto manager.      (line  559)
9835 * BFD_RELOC_PPC64_SECTOFF_LO_DS:         howto manager.      (line  560)
9836 * BFD_RELOC_PPC64_TOC:                   howto manager.      (line  549)
9837 * BFD_RELOC_PPC64_TOC16_DS:              howto manager.      (line  561)
9838 * BFD_RELOC_PPC64_TOC16_HA:              howto manager.      (line  548)
9839 * BFD_RELOC_PPC64_TOC16_HI:              howto manager.      (line  547)
9840 * BFD_RELOC_PPC64_TOC16_LO:              howto manager.      (line  546)
9841 * BFD_RELOC_PPC64_TOC16_LO_DS:           howto manager.      (line  562)
9842 * BFD_RELOC_PPC64_TPREL16_DS:            howto manager.      (line  595)
9843 * BFD_RELOC_PPC64_TPREL16_HIGHER:        howto manager.      (line  597)
9844 * BFD_RELOC_PPC64_TPREL16_HIGHERA:       howto manager.      (line  598)
9845 * BFD_RELOC_PPC64_TPREL16_HIGHEST:       howto manager.      (line  599)
9846 * BFD_RELOC_PPC64_TPREL16_HIGHESTA:      howto manager.      (line  600)
9847 * BFD_RELOC_PPC64_TPREL16_LO_DS:         howto manager.      (line  596)
9848 * BFD_RELOC_PPC_B16:                     howto manager.      (line  515)
9849 * BFD_RELOC_PPC_B16_BRNTAKEN:            howto manager.      (line  517)
9850 * BFD_RELOC_PPC_B16_BRTAKEN:             howto manager.      (line  516)
9851 * BFD_RELOC_PPC_B26:                     howto manager.      (line  512)
9852 * BFD_RELOC_PPC_BA16:                    howto manager.      (line  518)
9853 * BFD_RELOC_PPC_BA16_BRNTAKEN:           howto manager.      (line  520)
9854 * BFD_RELOC_PPC_BA16_BRTAKEN:            howto manager.      (line  519)
9855 * BFD_RELOC_PPC_BA26:                    howto manager.      (line  513)
9856 * BFD_RELOC_PPC_COPY:                    howto manager.      (line  521)
9857 * BFD_RELOC_PPC_DTPMOD:                  howto manager.      (line  568)
9858 * BFD_RELOC_PPC_DTPREL:                  howto manager.      (line  578)
9859 * BFD_RELOC_PPC_DTPREL16:                howto manager.      (line  574)
9860 * BFD_RELOC_PPC_DTPREL16_HA:             howto manager.      (line  577)
9861 * BFD_RELOC_PPC_DTPREL16_HI:             howto manager.      (line  576)
9862 * BFD_RELOC_PPC_DTPREL16_LO:             howto manager.      (line  575)
9863 * BFD_RELOC_PPC_EMB_BIT_FLD:             howto manager.      (line  540)
9864 * BFD_RELOC_PPC_EMB_MRKREF:              howto manager.      (line  535)
9865 * BFD_RELOC_PPC_EMB_NADDR16:             howto manager.      (line  527)
9866 * BFD_RELOC_PPC_EMB_NADDR16_HA:          howto manager.      (line  530)
9867 * BFD_RELOC_PPC_EMB_NADDR16_HI:          howto manager.      (line  529)
9868 * BFD_RELOC_PPC_EMB_NADDR16_LO:          howto manager.      (line  528)
9869 * BFD_RELOC_PPC_EMB_NADDR32:             howto manager.      (line  526)
9870 * BFD_RELOC_PPC_EMB_RELSDA:              howto manager.      (line  541)
9871 * BFD_RELOC_PPC_EMB_RELSEC16:            howto manager.      (line  536)
9872 * BFD_RELOC_PPC_EMB_RELST_HA:            howto manager.      (line  539)
9873 * BFD_RELOC_PPC_EMB_RELST_HI:            howto manager.      (line  538)
9874 * BFD_RELOC_PPC_EMB_RELST_LO:            howto manager.      (line  537)
9875 * BFD_RELOC_PPC_EMB_SDA21:               howto manager.      (line  534)
9876 * BFD_RELOC_PPC_EMB_SDA2I16:             howto manager.      (line  532)
9877 * BFD_RELOC_PPC_EMB_SDA2REL:             howto manager.      (line  533)
9878 * BFD_RELOC_PPC_EMB_SDAI16:              howto manager.      (line  531)
9879 * BFD_RELOC_PPC_GLOB_DAT:                howto manager.      (line  522)
9880 * BFD_RELOC_PPC_GOT_DTPREL16:            howto manager.      (line  591)
9881 * BFD_RELOC_PPC_GOT_DTPREL16_HA:         howto manager.      (line  594)
9882 * BFD_RELOC_PPC_GOT_DTPREL16_HI:         howto manager.      (line  593)
9883 * BFD_RELOC_PPC_GOT_DTPREL16_LO:         howto manager.      (line  592)
9884 * BFD_RELOC_PPC_GOT_TLSGD16:             howto manager.      (line  579)
9885 * BFD_RELOC_PPC_GOT_TLSGD16_HA:          howto manager.      (line  582)
9886 * BFD_RELOC_PPC_GOT_TLSGD16_HI:          howto manager.      (line  581)
9887 * BFD_RELOC_PPC_GOT_TLSGD16_LO:          howto manager.      (line  580)
9888 * BFD_RELOC_PPC_GOT_TLSLD16:             howto manager.      (line  583)
9889 * BFD_RELOC_PPC_GOT_TLSLD16_HA:          howto manager.      (line  586)
9890 * BFD_RELOC_PPC_GOT_TLSLD16_HI:          howto manager.      (line  585)
9891 * BFD_RELOC_PPC_GOT_TLSLD16_LO:          howto manager.      (line  584)
9892 * BFD_RELOC_PPC_GOT_TPREL16:             howto manager.      (line  587)
9893 * BFD_RELOC_PPC_GOT_TPREL16_HA:          howto manager.      (line  590)
9894 * BFD_RELOC_PPC_GOT_TPREL16_HI:          howto manager.      (line  589)
9895 * BFD_RELOC_PPC_GOT_TPREL16_LO:          howto manager.      (line  588)
9896 * BFD_RELOC_PPC_JMP_SLOT:                howto manager.      (line  523)
9897 * BFD_RELOC_PPC_LOCAL24PC:               howto manager.      (line  525)
9898 * BFD_RELOC_PPC_RELATIVE:                howto manager.      (line  524)
9899 * BFD_RELOC_PPC_TLS:                     howto manager.      (line  567)
9900 * BFD_RELOC_PPC_TOC16:                   howto manager.      (line  514)
9901 * BFD_RELOC_PPC_TPREL:                   howto manager.      (line  573)
9902 * BFD_RELOC_PPC_TPREL16:                 howto manager.      (line  569)
9903 * BFD_RELOC_PPC_TPREL16_HA:              howto manager.      (line  572)
9904 * BFD_RELOC_PPC_TPREL16_HI:              howto manager.      (line  571)
9905 * BFD_RELOC_PPC_TPREL16_LO:              howto manager.      (line  570)
9906 * BFD_RELOC_RVA:                         howto manager.      (line   85)
9907 * BFD_RELOC_SH_ALIGN:                    howto manager.      (line  745)
9908 * BFD_RELOC_SH_CODE:                     howto manager.      (line  746)
9909 * BFD_RELOC_SH_COPY:                     howto manager.      (line  751)
9910 * BFD_RELOC_SH_COPY64:                   howto manager.      (line  776)
9911 * BFD_RELOC_SH_COUNT:                    howto manager.      (line  744)
9912 * BFD_RELOC_SH_DATA:                     howto manager.      (line  747)
9913 * BFD_RELOC_SH_DISP12:                   howto manager.      (line  727)
9914 * BFD_RELOC_SH_DISP12BY2:                howto manager.      (line  728)
9915 * BFD_RELOC_SH_DISP12BY4:                howto manager.      (line  729)
9916 * BFD_RELOC_SH_DISP12BY8:                howto manager.      (line  730)
9917 * BFD_RELOC_SH_DISP20:                   howto manager.      (line  731)
9918 * BFD_RELOC_SH_DISP20BY8:                howto manager.      (line  732)
9919 * BFD_RELOC_SH_GLOB_DAT:                 howto manager.      (line  752)
9920 * BFD_RELOC_SH_GLOB_DAT64:               howto manager.      (line  777)
9921 * BFD_RELOC_SH_GOT10BY4:                 howto manager.      (line  780)
9922 * BFD_RELOC_SH_GOT10BY8:                 howto manager.      (line  781)
9923 * BFD_RELOC_SH_GOT_HI16:                 howto manager.      (line  759)
9924 * BFD_RELOC_SH_GOT_LOW16:                howto manager.      (line  756)
9925 * BFD_RELOC_SH_GOT_MEDHI16:              howto manager.      (line  758)
9926 * BFD_RELOC_SH_GOT_MEDLOW16:             howto manager.      (line  757)
9927 * BFD_RELOC_SH_GOTOFF_HI16:              howto manager.      (line  771)
9928 * BFD_RELOC_SH_GOTOFF_LOW16:             howto manager.      (line  768)
9929 * BFD_RELOC_SH_GOTOFF_MEDHI16:           howto manager.      (line  770)
9930 * BFD_RELOC_SH_GOTOFF_MEDLOW16:          howto manager.      (line  769)
9931 * BFD_RELOC_SH_GOTPC:                    howto manager.      (line  755)
9932 * BFD_RELOC_SH_GOTPC_HI16:               howto manager.      (line  775)
9933 * BFD_RELOC_SH_GOTPC_LOW16:              howto manager.      (line  772)
9934 * BFD_RELOC_SH_GOTPC_MEDHI16:            howto manager.      (line  774)
9935 * BFD_RELOC_SH_GOTPC_MEDLOW16:           howto manager.      (line  773)
9936 * BFD_RELOC_SH_GOTPLT10BY4:              howto manager.      (line  782)
9937 * BFD_RELOC_SH_GOTPLT10BY8:              howto manager.      (line  783)
9938 * BFD_RELOC_SH_GOTPLT32:                 howto manager.      (line  784)
9939 * BFD_RELOC_SH_GOTPLT_HI16:              howto manager.      (line  763)
9940 * BFD_RELOC_SH_GOTPLT_LOW16:             howto manager.      (line  760)
9941 * BFD_RELOC_SH_GOTPLT_MEDHI16:           howto manager.      (line  762)
9942 * BFD_RELOC_SH_GOTPLT_MEDLOW16:          howto manager.      (line  761)
9943 * BFD_RELOC_SH_IMM3:                     howto manager.      (line  725)
9944 * BFD_RELOC_SH_IMM3U:                    howto manager.      (line  726)
9945 * BFD_RELOC_SH_IMM4:                     howto manager.      (line  733)
9946 * BFD_RELOC_SH_IMM4BY2:                  howto manager.      (line  734)
9947 * BFD_RELOC_SH_IMM4BY4:                  howto manager.      (line  735)
9948 * BFD_RELOC_SH_IMM8:                     howto manager.      (line  736)
9949 * BFD_RELOC_SH_IMM8BY2:                  howto manager.      (line  737)
9950 * BFD_RELOC_SH_IMM8BY4:                  howto manager.      (line  738)
9951 * BFD_RELOC_SH_IMM_HI16:                 howto manager.      (line  802)
9952 * BFD_RELOC_SH_IMM_HI16_PCREL:           howto manager.      (line  803)
9953 * BFD_RELOC_SH_IMM_LOW16:                howto manager.      (line  796)
9954 * BFD_RELOC_SH_IMM_LOW16_PCREL:          howto manager.      (line  797)
9955 * BFD_RELOC_SH_IMM_MEDHI16:              howto manager.      (line  800)
9956 * BFD_RELOC_SH_IMM_MEDHI16_PCREL:        howto manager.      (line  801)
9957 * BFD_RELOC_SH_IMM_MEDLOW16:             howto manager.      (line  798)
9958 * BFD_RELOC_SH_IMM_MEDLOW16_PCREL:       howto manager.      (line  799)
9959 * BFD_RELOC_SH_IMMS10:                   howto manager.      (line  790)
9960 * BFD_RELOC_SH_IMMS10BY2:                howto manager.      (line  791)
9961 * BFD_RELOC_SH_IMMS10BY4:                howto manager.      (line  792)
9962 * BFD_RELOC_SH_IMMS10BY8:                howto manager.      (line  793)
9963 * BFD_RELOC_SH_IMMS16:                   howto manager.      (line  794)
9964 * BFD_RELOC_SH_IMMS6:                    howto manager.      (line  787)
9965 * BFD_RELOC_SH_IMMS6BY32:                howto manager.      (line  788)
9966 * BFD_RELOC_SH_IMMU16:                   howto manager.      (line  795)
9967 * BFD_RELOC_SH_IMMU5:                    howto manager.      (line  786)
9968 * BFD_RELOC_SH_IMMU6:                    howto manager.      (line  789)
9969 * BFD_RELOC_SH_JMP_SLOT:                 howto manager.      (line  753)
9970 * BFD_RELOC_SH_JMP_SLOT64:               howto manager.      (line  778)
9971 * BFD_RELOC_SH_LABEL:                    howto manager.      (line  748)
9972 * BFD_RELOC_SH_LOOP_END:                 howto manager.      (line  750)
9973 * BFD_RELOC_SH_LOOP_START:               howto manager.      (line  749)
9974 * BFD_RELOC_SH_PCDISP12BY2:              howto manager.      (line  724)
9975 * BFD_RELOC_SH_PCDISP8BY2:               howto manager.      (line  723)
9976 * BFD_RELOC_SH_PCRELIMM8BY2:             howto manager.      (line  739)
9977 * BFD_RELOC_SH_PCRELIMM8BY4:             howto manager.      (line  740)
9978 * BFD_RELOC_SH_PLT_HI16:                 howto manager.      (line  767)
9979 * BFD_RELOC_SH_PLT_LOW16:                howto manager.      (line  764)
9980 * BFD_RELOC_SH_PLT_MEDHI16:              howto manager.      (line  766)
9981 * BFD_RELOC_SH_PLT_MEDLOW16:             howto manager.      (line  765)
9982 * BFD_RELOC_SH_PT_16:                    howto manager.      (line  804)
9983 * BFD_RELOC_SH_RELATIVE:                 howto manager.      (line  754)
9984 * BFD_RELOC_SH_RELATIVE64:               howto manager.      (line  779)
9985 * BFD_RELOC_SH_SHMEDIA_CODE:             howto manager.      (line  785)
9986 * BFD_RELOC_SH_SWITCH16:                 howto manager.      (line  741)
9987 * BFD_RELOC_SH_SWITCH32:                 howto manager.      (line  742)
9988 * BFD_RELOC_SH_TLS_DTPMOD32:             howto manager.      (line  810)
9989 * BFD_RELOC_SH_TLS_DTPOFF32:             howto manager.      (line  811)
9990 * BFD_RELOC_SH_TLS_GD_32:                howto manager.      (line  805)
9991 * BFD_RELOC_SH_TLS_IE_32:                howto manager.      (line  808)
9992 * BFD_RELOC_SH_TLS_LD_32:                howto manager.      (line  806)
9993 * BFD_RELOC_SH_TLS_LDO_32:               howto manager.      (line  807)
9994 * BFD_RELOC_SH_TLS_LE_32:                howto manager.      (line  809)
9995 * BFD_RELOC_SH_TLS_TPOFF32:              howto manager.      (line  812)
9996 * BFD_RELOC_SH_USES:                     howto manager.      (line  743)
9997 * BFD_RELOC_SPARC13:                     howto manager.      (line  119)
9998 * BFD_RELOC_SPARC22:                     howto manager.      (line  118)
9999 * BFD_RELOC_SPARC_10:                    howto manager.      (line  141)
10000 * BFD_RELOC_SPARC_11:                    howto manager.      (line  142)
10001 * BFD_RELOC_SPARC_5:                     howto manager.      (line  154)
10002 * BFD_RELOC_SPARC_6:                     howto manager.      (line  153)
10003 * BFD_RELOC_SPARC_64:                    howto manager.      (line  140)
10004 * BFD_RELOC_SPARC_7:                     howto manager.      (line  152)
10005 * BFD_RELOC_SPARC_BASE13:                howto manager.      (line  136)
10006 * BFD_RELOC_SPARC_BASE22:                howto manager.      (line  137)
10007 * BFD_RELOC_SPARC_COPY:                  howto manager.      (line  126)
10008 * BFD_RELOC_SPARC_DISP64:                howto manager.      (line  155)
10009 * BFD_RELOC_SPARC_GLOB_DAT:              howto manager.      (line  127)
10010 * BFD_RELOC_SPARC_GOT10:                 howto manager.      (line  120)
10011 * BFD_RELOC_SPARC_GOT13:                 howto manager.      (line  121)
10012 * BFD_RELOC_SPARC_GOT22:                 howto manager.      (line  122)
10013 * BFD_RELOC_SPARC_H44:                   howto manager.      (line  160)
10014 * BFD_RELOC_SPARC_HH22:                  howto manager.      (line  144)
10015 * BFD_RELOC_SPARC_HIX22:                 howto manager.      (line  158)
10016 * BFD_RELOC_SPARC_HM10:                  howto manager.      (line  145)
10017 * BFD_RELOC_SPARC_JMP_SLOT:              howto manager.      (line  128)
10018 * BFD_RELOC_SPARC_L44:                   howto manager.      (line  162)
10019 * BFD_RELOC_SPARC_LM22:                  howto manager.      (line  146)
10020 * BFD_RELOC_SPARC_LOX10:                 howto manager.      (line  159)
10021 * BFD_RELOC_SPARC_M44:                   howto manager.      (line  161)
10022 * BFD_RELOC_SPARC_OLO10:                 howto manager.      (line  143)
10023 * BFD_RELOC_SPARC_PC10:                  howto manager.      (line  123)
10024 * BFD_RELOC_SPARC_PC22:                  howto manager.      (line  124)
10025 * BFD_RELOC_SPARC_PC_HH22:               howto manager.      (line  147)
10026 * BFD_RELOC_SPARC_PC_HM10:               howto manager.      (line  148)
10027 * BFD_RELOC_SPARC_PC_LM22:               howto manager.      (line  149)
10028 * BFD_RELOC_SPARC_PLT32:                 howto manager.      (line  156)
10029 * BFD_RELOC_SPARC_PLT64:                 howto manager.      (line  157)
10030 * BFD_RELOC_SPARC_REGISTER:              howto manager.      (line  163)
10031 * BFD_RELOC_SPARC_RELATIVE:              howto manager.      (line  129)
10032 * BFD_RELOC_SPARC_REV32:                 howto manager.      (line  166)
10033 * BFD_RELOC_SPARC_TLS_DTPMOD32:          howto manager.      (line  187)
10034 * BFD_RELOC_SPARC_TLS_DTPMOD64:          howto manager.      (line  188)
10035 * BFD_RELOC_SPARC_TLS_DTPOFF32:          howto manager.      (line  189)
10036 * BFD_RELOC_SPARC_TLS_DTPOFF64:          howto manager.      (line  190)
10037 * BFD_RELOC_SPARC_TLS_GD_ADD:            howto manager.      (line  171)
10038 * BFD_RELOC_SPARC_TLS_GD_CALL:           howto manager.      (line  172)
10039 * BFD_RELOC_SPARC_TLS_GD_HI22:           howto manager.      (line  169)
10040 * BFD_RELOC_SPARC_TLS_GD_LO10:           howto manager.      (line  170)
10041 * BFD_RELOC_SPARC_TLS_IE_ADD:            howto manager.      (line  184)
10042 * BFD_RELOC_SPARC_TLS_IE_HI22:           howto manager.      (line  180)
10043 * BFD_RELOC_SPARC_TLS_IE_LD:             howto manager.      (line  182)
10044 * BFD_RELOC_SPARC_TLS_IE_LDX:            howto manager.      (line  183)
10045 * BFD_RELOC_SPARC_TLS_IE_LO10:           howto manager.      (line  181)
10046 * BFD_RELOC_SPARC_TLS_LDM_ADD:           howto manager.      (line  175)
10047 * BFD_RELOC_SPARC_TLS_LDM_CALL:          howto manager.      (line  176)
10048 * BFD_RELOC_SPARC_TLS_LDM_HI22:          howto manager.      (line  173)
10049 * BFD_RELOC_SPARC_TLS_LDM_LO10:          howto manager.      (line  174)
10050 * BFD_RELOC_SPARC_TLS_LDO_ADD:           howto manager.      (line  179)
10051 * BFD_RELOC_SPARC_TLS_LDO_HIX22:         howto manager.      (line  177)
10052 * BFD_RELOC_SPARC_TLS_LDO_LOX10:         howto manager.      (line  178)
10053 * BFD_RELOC_SPARC_TLS_LE_HIX22:          howto manager.      (line  185)
10054 * BFD_RELOC_SPARC_TLS_LE_LOX10:          howto manager.      (line  186)
10055 * BFD_RELOC_SPARC_TLS_TPOFF32:           howto manager.      (line  191)
10056 * BFD_RELOC_SPARC_TLS_TPOFF64:           howto manager.      (line  192)
10057 * BFD_RELOC_SPARC_UA16:                  howto manager.      (line  130)
10058 * BFD_RELOC_SPARC_UA32:                  howto manager.      (line  131)
10059 * BFD_RELOC_SPARC_UA64:                  howto manager.      (line  132)
10060 * BFD_RELOC_SPARC_WDISP16:               howto manager.      (line  150)
10061 * BFD_RELOC_SPARC_WDISP19:               howto manager.      (line  151)
10062 * BFD_RELOC_SPARC_WDISP22:               howto manager.      (line  117)
10063 * BFD_RELOC_SPARC_WPLT30:                howto manager.      (line  125)
10064 * BFD_RELOC_THUMB_PCREL_BLX:             howto manager.      (line  627)
10065 * BFD_RELOC_THUMB_PCREL_BRANCH12:        howto manager.      (line  641)
10066 * BFD_RELOC_THUMB_PCREL_BRANCH20:        howto manager.      (line  642)
10067 * BFD_RELOC_THUMB_PCREL_BRANCH23:        howto manager.      (line  643)
10068 * BFD_RELOC_THUMB_PCREL_BRANCH25:        howto manager.      (line  644)
10069 * BFD_RELOC_THUMB_PCREL_BRANCH7:         howto manager.      (line  639)
10070 * BFD_RELOC_THUMB_PCREL_BRANCH9:         howto manager.      (line  640)
10071 * BFD_RELOC_TIC30_LDP:                   howto manager.      (line 1139)
10072 * BFD_RELOC_TIC54X_16_OF_23:             howto manager.      (line 1157)
10073 * BFD_RELOC_TIC54X_23:                   howto manager.      (line 1154)
10074 * BFD_RELOC_TIC54X_MS7_OF_23:            howto manager.      (line 1162)
10075 * BFD_RELOC_TIC54X_PARTLS7:              howto manager.      (line 1144)
10076 * BFD_RELOC_TIC54X_PARTMS9:              howto manager.      (line 1149)
10077 * bfd_reloc_type_lookup:                 howto manager.      (line 1920)
10078 * BFD_RELOC_V850_22_PCREL:               howto manager.      (line 1066)
10079 * BFD_RELOC_V850_9_PCREL:                howto manager.      (line 1063)
10080 * BFD_RELOC_V850_ALIGN:                  howto manager.      (line 1124)
10081 * BFD_RELOC_V850_CALLT_16_16_OFFSET:     howto manager.      (line 1115)
10082 * BFD_RELOC_V850_CALLT_6_7_OFFSET:       howto manager.      (line 1112)
10083 * BFD_RELOC_V850_LO16_SPLIT_OFFSET:      howto manager.      (line 1127)
10084 * BFD_RELOC_V850_LONGCALL:               howto manager.      (line 1118)
10085 * BFD_RELOC_V850_LONGJUMP:               howto manager.      (line 1121)
10086 * BFD_RELOC_V850_SDA_15_16_OFFSET:       howto manager.      (line 1072)
10087 * BFD_RELOC_V850_SDA_16_16_OFFSET:       howto manager.      (line 1069)
10088 * BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET: howto manager.      (line 1104)
10089 * BFD_RELOC_V850_TDA_16_16_OFFSET:       howto manager.      (line 1094)
10090 * BFD_RELOC_V850_TDA_4_4_OFFSET:         howto manager.      (line 1101)
10091 * BFD_RELOC_V850_TDA_4_5_OFFSET:         howto manager.      (line 1097)
10092 * BFD_RELOC_V850_TDA_6_8_OFFSET:         howto manager.      (line 1083)
10093 * BFD_RELOC_V850_TDA_7_7_OFFSET:         howto manager.      (line 1091)
10094 * BFD_RELOC_V850_TDA_7_8_OFFSET:         howto manager.      (line 1087)
10095 * BFD_RELOC_V850_ZDA_15_16_OFFSET:       howto manager.      (line 1079)
10096 * BFD_RELOC_V850_ZDA_16_16_OFFSET:       howto manager.      (line 1076)
10097 * BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET: howto manager.      (line 1108)
10098 * BFD_RELOC_VAX_GLOB_DAT:                howto manager.      (line 1791)
10099 * BFD_RELOC_VAX_JMP_SLOT:                howto manager.      (line 1792)
10100 * BFD_RELOC_VAX_RELATIVE:                howto manager.      (line 1793)
10101 * BFD_RELOC_VPE4KMATH_DATA:              howto manager.      (line 1482)
10102 * BFD_RELOC_VPE4KMATH_INSN:              howto manager.      (line 1483)
10103 * BFD_RELOC_VTABLE_ENTRY:                howto manager.      (line 1487)
10104 * BFD_RELOC_VTABLE_INHERIT:              howto manager.      (line 1486)
10105 * BFD_RELOC_X86_64_32S:                  howto manager.      (line  465)
10106 * BFD_RELOC_X86_64_COPY:                 howto manager.      (line  460)
10107 * BFD_RELOC_X86_64_DTPMOD64:             howto manager.      (line  466)
10108 * BFD_RELOC_X86_64_DTPOFF32:             howto manager.      (line  471)
10109 * BFD_RELOC_X86_64_DTPOFF64:             howto manager.      (line  467)
10110 * BFD_RELOC_X86_64_GLOB_DAT:             howto manager.      (line  461)
10111 * BFD_RELOC_X86_64_GOT32:                howto manager.      (line  458)
10112 * BFD_RELOC_X86_64_GOT64:                howto manager.      (line  476)
10113 * BFD_RELOC_X86_64_GOTOFF64:             howto manager.      (line  474)
10114 * BFD_RELOC_X86_64_GOTPC32:              howto manager.      (line  475)
10115 * BFD_RELOC_X86_64_GOTPC32_TLSDESC:      howto manager.      (line  481)
10116 * BFD_RELOC_X86_64_GOTPC64:              howto manager.      (line  478)
10117 * BFD_RELOC_X86_64_GOTPCREL:             howto manager.      (line  464)
10118 * BFD_RELOC_X86_64_GOTPCREL64:           howto manager.      (line  477)
10119 * BFD_RELOC_X86_64_GOTPLT64:             howto manager.      (line  479)
10120 * BFD_RELOC_X86_64_GOTTPOFF:             howto manager.      (line  472)
10121 * BFD_RELOC_X86_64_JUMP_SLOT:            howto manager.      (line  462)
10122 * BFD_RELOC_X86_64_PLT32:                howto manager.      (line  459)
10123 * BFD_RELOC_X86_64_PLTOFF64:             howto manager.      (line  480)
10124 * BFD_RELOC_X86_64_RELATIVE:             howto manager.      (line  463)
10125 * BFD_RELOC_X86_64_TLSDESC:              howto manager.      (line  483)
10126 * BFD_RELOC_X86_64_TLSDESC_CALL:         howto manager.      (line  482)
10127 * BFD_RELOC_X86_64_TLSGD:                howto manager.      (line  469)
10128 * BFD_RELOC_X86_64_TLSLD:                howto manager.      (line  470)
10129 * BFD_RELOC_X86_64_TPOFF32:              howto manager.      (line  473)
10130 * BFD_RELOC_X86_64_TPOFF64:              howto manager.      (line  468)
10131 * BFD_RELOC_XC16X_PAG:                   howto manager.      (line 1785)
10132 * BFD_RELOC_XC16X_POF:                   howto manager.      (line 1786)
10133 * BFD_RELOC_XC16X_SEG:                   howto manager.      (line 1787)
10134 * BFD_RELOC_XC16X_SOF:                   howto manager.      (line 1788)
10135 * BFD_RELOC_XSTORMY16_12:                howto manager.      (line 1780)
10136 * BFD_RELOC_XSTORMY16_24:                howto manager.      (line 1781)
10137 * BFD_RELOC_XSTORMY16_FPTR16:            howto manager.      (line 1782)
10138 * BFD_RELOC_XSTORMY16_REL_12:            howto manager.      (line 1779)
10139 * BFD_RELOC_XTENSA_ASM_EXPAND:           howto manager.      (line 1897)
10140 * BFD_RELOC_XTENSA_ASM_SIMPLIFY:         howto manager.      (line 1902)
10141 * BFD_RELOC_XTENSA_DIFF16:               howto manager.      (line 1844)
10142 * BFD_RELOC_XTENSA_DIFF32:               howto manager.      (line 1845)
10143 * BFD_RELOC_XTENSA_DIFF8:                howto manager.      (line 1843)
10144 * BFD_RELOC_XTENSA_GLOB_DAT:             howto manager.      (line 1833)
10145 * BFD_RELOC_XTENSA_JMP_SLOT:             howto manager.      (line 1834)
10146 * BFD_RELOC_XTENSA_OP0:                  howto manager.      (line 1891)
10147 * BFD_RELOC_XTENSA_OP1:                  howto manager.      (line 1892)
10148 * BFD_RELOC_XTENSA_OP2:                  howto manager.      (line 1893)
10149 * BFD_RELOC_XTENSA_PLT:                  howto manager.      (line 1838)
10150 * BFD_RELOC_XTENSA_RELATIVE:             howto manager.      (line 1835)
10151 * BFD_RELOC_XTENSA_RTLD:                 howto manager.      (line 1828)
10152 * BFD_RELOC_XTENSA_SLOT0_ALT:            howto manager.      (line 1873)
10153 * BFD_RELOC_XTENSA_SLOT0_OP:             howto manager.      (line 1853)
10154 * BFD_RELOC_XTENSA_SLOT10_ALT:           howto manager.      (line 1883)
10155 * BFD_RELOC_XTENSA_SLOT10_OP:            howto manager.      (line 1863)
10156 * BFD_RELOC_XTENSA_SLOT11_ALT:           howto manager.      (line 1884)
10157 * BFD_RELOC_XTENSA_SLOT11_OP:            howto manager.      (line 1864)
10158 * BFD_RELOC_XTENSA_SLOT12_ALT:           howto manager.      (line 1885)
10159 * BFD_RELOC_XTENSA_SLOT12_OP:            howto manager.      (line 1865)
10160 * BFD_RELOC_XTENSA_SLOT13_ALT:           howto manager.      (line 1886)
10161 * BFD_RELOC_XTENSA_SLOT13_OP:            howto manager.      (line 1866)
10162 * BFD_RELOC_XTENSA_SLOT14_ALT:           howto manager.      (line 1887)
10163 * BFD_RELOC_XTENSA_SLOT14_OP:            howto manager.      (line 1867)
10164 * BFD_RELOC_XTENSA_SLOT1_ALT:            howto manager.      (line 1874)
10165 * BFD_RELOC_XTENSA_SLOT1_OP:             howto manager.      (line 1854)
10166 * BFD_RELOC_XTENSA_SLOT2_ALT:            howto manager.      (line 1875)
10167 * BFD_RELOC_XTENSA_SLOT2_OP:             howto manager.      (line 1855)
10168 * BFD_RELOC_XTENSA_SLOT3_ALT:            howto manager.      (line 1876)
10169 * BFD_RELOC_XTENSA_SLOT3_OP:             howto manager.      (line 1856)
10170 * BFD_RELOC_XTENSA_SLOT4_ALT:            howto manager.      (line 1877)
10171 * BFD_RELOC_XTENSA_SLOT4_OP:             howto manager.      (line 1857)
10172 * BFD_RELOC_XTENSA_SLOT5_ALT:            howto manager.      (line 1878)
10173 * BFD_RELOC_XTENSA_SLOT5_OP:             howto manager.      (line 1858)
10174 * BFD_RELOC_XTENSA_SLOT6_ALT:            howto manager.      (line 1879)
10175 * BFD_RELOC_XTENSA_SLOT6_OP:             howto manager.      (line 1859)
10176 * BFD_RELOC_XTENSA_SLOT7_ALT:            howto manager.      (line 1880)
10177 * BFD_RELOC_XTENSA_SLOT7_OP:             howto manager.      (line 1860)
10178 * BFD_RELOC_XTENSA_SLOT8_ALT:            howto manager.      (line 1881)
10179 * BFD_RELOC_XTENSA_SLOT8_OP:             howto manager.      (line 1861)
10180 * BFD_RELOC_XTENSA_SLOT9_ALT:            howto manager.      (line 1882)
10181 * BFD_RELOC_XTENSA_SLOT9_OP:             howto manager.      (line 1862)
10182 * BFD_RELOC_Z80_DISP8:                   howto manager.      (line 1907)
10183 * BFD_RELOC_Z8K_CALLR:                   howto manager.      (line 1913)
10184 * BFD_RELOC_Z8K_DISP7:                   howto manager.      (line 1910)
10185 * BFD_RELOC_Z8K_IMM4L:                   howto manager.      (line 1916)
10186 * bfd_scan_arch:                         Architectures.      (line  392)
10187 * bfd_scan_vma:                          BFD front end.      (line  423)
10188 * bfd_seach_for_target:                  bfd_target.         (line  459)
10189 * bfd_section_already_linked:            Writing the symbol table.
10190                                                              (line   55)
10191 * bfd_section_list_clear:                section prototypes. (line    8)
10192 * bfd_sections_find_if:                  section prototypes. (line  176)
10193 * bfd_set_arch_info:                     Architectures.      (line  433)
10194 * bfd_set_archive_head:                  Archives.           (line   69)
10195 * bfd_set_default_target:                bfd_target.         (line  424)
10196 * bfd_set_error:                         BFD front end.      (line  235)
10197 * bfd_set_error_handler:                 BFD front end.      (line  275)
10198 * bfd_set_error_program_name:            BFD front end.      (line  284)
10199 * bfd_set_file_flags:                    BFD front end.      (line  343)
10200 * bfd_set_format:                        Formats.            (line   68)
10201 * bfd_set_gp_size:                       BFD front end.      (line  413)
10202 * bfd_set_private_flags:                 BFD front end.      (line  490)
10203 * bfd_set_reloc:                         BFD front end.      (line  333)
10204 * bfd_set_section_contents:              section prototypes. (line  207)
10205 * bfd_set_section_flags:                 section prototypes. (line  140)
10206 * bfd_set_section_size:                  section prototypes. (line  193)
10207 * bfd_set_start_address:                 BFD front end.      (line  392)
10208 * bfd_set_symtab:                        symbol handling functions.
10209                                                              (line   60)
10210 * bfd_symbol_info:                       symbol handling functions.
10211                                                              (line  130)
10212 * bfd_target_list:                       bfd_target.         (line  450)
10213 * bfd_write_bigendian_4byte_int:         Internal.           (line   13)
10214 * bfd_zalloc:                            Opening and Closing.
10215                                                              (line  221)
10216 * bfd_zalloc2:                           Opening and Closing.
10217                                                              (line  230)
10218 * coff_symbol_type:                      coff.               (line  186)
10219 * core_file_matches_executable_p:        Core Files.         (line   30)
10220 * find_separate_debug_file:              Opening and Closing.
10221                                                              (line  272)
10222 * generic_core_file_matches_executable_p: Core Files.        (line   40)
10223 * get_debug_link_info:                   Opening and Closing.
10224                                                              (line  253)
10225 * Hash tables:                           Hash Tables.        (line    6)
10226 * internal object-file format:           Canonical format.   (line   11)
10227 * Linker:                                Linker Functions.   (line    6)
10228 * Other functions:                       BFD front end.      (line  505)
10229 * separate_debug_file_exists:            Opening and Closing.
10230                                                              (line  263)
10231 * struct bfd_iovec:                      BFD front end.      (line  657)
10232 * target vector (_bfd_final_link):       Performing the Final Link.
10233                                                              (line    6)
10234 * target vector (_bfd_link_add_symbols): Adding Symbols to the Hash Table.
10235                                                              (line    6)
10236 * target vector (_bfd_link_hash_table_create): Creating a Linker Hash Table.
10237                                                              (line    6)
10238 * The HOWTO Macro:                       typedef arelent.    (line  291)
10239 * what is it?:                           Overview.           (line    6)
10240
10241
10242 \1f
10243 Tag Table:
10244 Node: Top\7f844
10245 Node: Overview\7f1176
10246 Node: History\7f2227
10247 Node: How It Works\7f3173
10248 Node: What BFD Version 2 Can Do\7f4715
10249 Node: BFD information loss\7f6030
10250 Node: Canonical format\7f8562
10251 Node: BFD front end\7f12934
10252 Node: Memory Usage\7f38548
10253 Node: Initialization\7f39776
10254 Node: Sections\7f40235
10255 Node: Section Input\7f40718
10256 Node: Section Output\7f42083
10257 Node: typedef asection\7f44569
10258 Node: section prototypes\7f69526
10259 Node: Symbols\7f79206
10260 Node: Reading Symbols\7f80801
10261 Node: Writing Symbols\7f81908
10262 Node: Mini Symbols\7f83617
10263 Node: typedef asymbol\7f84591
10264 Node: symbol handling functions\7f89509
10265 Node: Archives\7f94851
10266 Node: Formats\7f98577
10267 Node: Relocations\7f101525
10268 Node: typedef arelent\7f102252
10269 Node: howto manager\7f118063
10270 Node: Core Files\7f180343
10271 Node: Targets\7f182160
10272 Node: bfd_target\7f184130
10273 Node: Architectures\7f204210
10274 Node: Opening and Closing\7f225642
10275 Node: Internal\7f236644
10276 Node: File Caching\7f242977
10277 Node: Linker Functions\7f244891
10278 Node: Creating a Linker Hash Table\7f246564
10279 Node: Adding Symbols to the Hash Table\7f248302
10280 Node: Differing file formats\7f249202
10281 Node: Adding symbols from an object file\7f250950
10282 Node: Adding symbols from an archive\7f253101
10283 Node: Performing the Final Link\7f255515
10284 Node: Information provided by the linker\7f256757
10285 Node: Relocating the section contents\7f257911
10286 Node: Writing the symbol table\7f259662
10287 Node: Hash Tables\7f262655
10288 Node: Creating and Freeing a Hash Table\7f263853
10289 Node: Looking Up or Entering a String\7f265103
10290 Node: Traversing a Hash Table\7f266356
10291 Node: Deriving a New Hash Table Type\7f267145
10292 Node: Define the Derived Structures\7f268211
10293 Node: Write the Derived Creation Routine\7f269292
10294 Node: Write Other Derived Routines\7f271916
10295 Node: BFD back ends\7f273231
10296 Node: What to Put Where\7f273501
10297 Node: aout\7f273639
10298 Node: coff\7f279957
10299 Node: elf\7f304434
10300 Node: mmo\7f305297
10301 Node: File layout\7f306225
10302 Node: Symbol-table\7f311872
10303 Node: mmo section mapping\7f315641
10304 Node: GNU Free Documentation License\7f319293
10305 Node: Index\7f339018
10306 \1f
10307 End Tag Table