OSDN Git Service

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