OSDN Git Service

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