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