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.2.3 BFD assert handler 714------------------------ 715 716If BFD finds an internal inconsistency, the bfd assert handler is 717called with information on the BFD version, BFD source file and line. 718If this happens, most programs linked against BFD are expected to want 719to exit with an error, or mark the current BFD operation as failed, so 720it is recommended to override the default handler, which just calls 721_bfd_error_handler and continues. 722 723 724 typedef void (*bfd_assert_handler_type) (const char *bfd_formatmsg, 725 const char *bfd_version, 726 const char *bfd_file, 727 int bfd_line); 728 7292.2.3.1 `bfd_set_assert_handler' 730................................ 731 732*Synopsis* 733 bfd_assert_handler_type bfd_set_assert_handler (bfd_assert_handler_type); 734 *Description* 735Set the BFD assert handler function. Returns the previous function. 736 7372.2.3.2 `bfd_get_assert_handler' 738................................ 739 740*Synopsis* 741 bfd_assert_handler_type bfd_get_assert_handler (void); 742 *Description* 743Return the BFD assert handler function. 744 7452.3 Miscellaneous 746================= 747 7482.3.1 Miscellaneous functions 749----------------------------- 750 7512.3.1.1 `bfd_get_reloc_upper_bound' 752................................... 753 754*Synopsis* 755 long bfd_get_reloc_upper_bound (bfd *abfd, asection *sect); 756 *Description* 757Return the number of bytes required to store the relocation information 758associated with section SECT attached to bfd ABFD. If an error occurs, 759return -1. 760 7612.3.1.2 `bfd_canonicalize_reloc' 762................................ 763 764*Synopsis* 765 long bfd_canonicalize_reloc 766 (bfd *abfd, asection *sec, arelent **loc, asymbol **syms); 767 *Description* 768Call the back end associated with the open BFD ABFD and translate the 769external form of the relocation information attached to SEC into the 770internal canonical form. Place the table into memory at LOC, which has 771been preallocated, usually by a call to `bfd_get_reloc_upper_bound'. 772Returns the number of relocs, or -1 on error. 773 774 The SYMS table is also needed for horrible internal magic reasons. 775 7762.3.1.3 `bfd_set_reloc' 777....................... 778 779*Synopsis* 780 void bfd_set_reloc 781 (bfd *abfd, asection *sec, arelent **rel, unsigned int count); 782 *Description* 783Set the relocation pointer and count within section SEC to the values 784REL and COUNT. The argument ABFD is ignored. 785 7862.3.1.4 `bfd_set_file_flags' 787............................ 788 789*Synopsis* 790 bfd_boolean bfd_set_file_flags (bfd *abfd, flagword flags); 791 *Description* 792Set the flag word in the BFD ABFD to the value FLAGS. 793 794 Possible errors are: 795 * `bfd_error_wrong_format' - The target bfd was not of object format. 796 797 * `bfd_error_invalid_operation' - The target bfd was open for 798 reading. 799 800 * `bfd_error_invalid_operation' - The flag word contained a bit 801 which was not applicable to the type of file. E.g., an attempt 802 was made to set the `D_PAGED' bit on a BFD format which does not 803 support demand paging. 804 8052.3.1.5 `bfd_get_arch_size' 806........................... 807 808*Synopsis* 809 int bfd_get_arch_size (bfd *abfd); 810 *Description* 811Returns the architecture address size, in bits, as determined by the 812object file's format. For ELF, this information is included in the 813header. 814 815 *Returns* 816Returns the arch size in bits if known, `-1' otherwise. 817 8182.3.1.6 `bfd_get_sign_extend_vma' 819................................. 820 821*Synopsis* 822 int bfd_get_sign_extend_vma (bfd *abfd); 823 *Description* 824Indicates if the target architecture "naturally" sign extends an 825address. Some architectures implicitly sign extend address values when 826they are converted to types larger than the size of an address. For 827instance, bfd_get_start_address() will return an address sign extended 828to fill a bfd_vma when this is the case. 829 830 *Returns* 831Returns `1' if the target architecture is known to sign extend 832addresses, `0' if the target architecture is known to not sign extend 833addresses, and `-1' otherwise. 834 8352.3.1.7 `bfd_set_start_address' 836............................... 837 838*Synopsis* 839 bfd_boolean bfd_set_start_address (bfd *abfd, bfd_vma vma); 840 *Description* 841Make VMA the entry point of output BFD ABFD. 842 843 *Returns* 844Returns `TRUE' on success, `FALSE' otherwise. 845 8462.3.1.8 `bfd_get_gp_size' 847......................... 848 849*Synopsis* 850 unsigned int bfd_get_gp_size (bfd *abfd); 851 *Description* 852Return the maximum size of objects to be optimized using the GP 853register under MIPS ECOFF. This is typically set by the `-G' argument 854to the compiler, assembler or linker. 855 8562.3.1.9 `bfd_set_gp_size' 857......................... 858 859*Synopsis* 860 void bfd_set_gp_size (bfd *abfd, unsigned int i); 861 *Description* 862Set the maximum size of objects to be optimized using the GP register 863under ECOFF or MIPS ELF. This is typically set by the `-G' argument to 864the compiler, assembler or linker. 865 8662.3.1.10 `bfd_scan_vma' 867....................... 868 869*Synopsis* 870 bfd_vma bfd_scan_vma (const char *string, const char **end, int base); 871 *Description* 872Convert, like `strtoul', a numerical expression STRING into a `bfd_vma' 873integer, and return that integer. (Though without as many bells and 874whistles as `strtoul'.) The expression is assumed to be unsigned 875(i.e., positive). If given a BASE, it is used as the base for 876conversion. A base of 0 causes the function to interpret the string in 877hex if a leading "0x" or "0X" is found, otherwise in octal if a leading 878zero is found, otherwise in decimal. 879 880 If the value would overflow, the maximum `bfd_vma' value is returned. 881 8822.3.1.11 `bfd_copy_private_header_data' 883....................................... 884 885*Synopsis* 886 bfd_boolean bfd_copy_private_header_data (bfd *ibfd, bfd *obfd); 887 *Description* 888Copy private BFD header information from the BFD IBFD to the the BFD 889OBFD. This copies information that may require sections to exist, but 890does not require symbol tables. Return `true' on success, `false' on 891error. Possible error returns are: 892 893 * `bfd_error_no_memory' - Not enough memory exists to create private 894 data for OBFD. 895 896 #define bfd_copy_private_header_data(ibfd, obfd) \ 897 BFD_SEND (obfd, _bfd_copy_private_header_data, \ 898 (ibfd, obfd)) 899 9002.3.1.12 `bfd_copy_private_bfd_data' 901.................................... 902 903*Synopsis* 904 bfd_boolean bfd_copy_private_bfd_data (bfd *ibfd, bfd *obfd); 905 *Description* 906Copy private BFD information from the BFD IBFD to the the BFD OBFD. 907Return `TRUE' on success, `FALSE' on error. Possible error returns are: 908 909 * `bfd_error_no_memory' - Not enough memory exists to create private 910 data for OBFD. 911 912 #define bfd_copy_private_bfd_data(ibfd, obfd) \ 913 BFD_SEND (obfd, _bfd_copy_private_bfd_data, \ 914 (ibfd, obfd)) 915 9162.3.1.13 `bfd_merge_private_bfd_data' 917..................................... 918 919*Synopsis* 920 bfd_boolean bfd_merge_private_bfd_data (bfd *ibfd, bfd *obfd); 921 *Description* 922Merge private BFD information from the BFD IBFD to the the output file 923BFD OBFD when linking. Return `TRUE' on success, `FALSE' on error. 924Possible error returns are: 925 926 * `bfd_error_no_memory' - Not enough memory exists to create private 927 data for OBFD. 928 929 #define bfd_merge_private_bfd_data(ibfd, obfd) \ 930 BFD_SEND (obfd, _bfd_merge_private_bfd_data, \ 931 (ibfd, obfd)) 932 9332.3.1.14 `bfd_set_private_flags' 934................................ 935 936*Synopsis* 937 bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags); 938 *Description* 939Set private BFD flag information in the BFD ABFD. Return `TRUE' on 940success, `FALSE' on error. Possible error returns are: 941 942 * `bfd_error_no_memory' - Not enough memory exists to create private 943 data for OBFD. 944 945 #define bfd_set_private_flags(abfd, flags) \ 946 BFD_SEND (abfd, _bfd_set_private_flags, (abfd, flags)) 947 9482.3.1.15 `Other functions' 949.......................... 950 951*Description* 952The following functions exist but have not yet been documented. 953 #define bfd_sizeof_headers(abfd, info) \ 954 BFD_SEND (abfd, _bfd_sizeof_headers, (abfd, info)) 955 956 #define bfd_find_nearest_line(abfd, sec, syms, off, file, func, line) \ 957 BFD_SEND (abfd, _bfd_find_nearest_line, \ 958 (abfd, sec, syms, off, file, func, line)) 959 960 #define bfd_find_nearest_line_discriminator(abfd, sec, syms, off, file, func, \ 961 line, disc) \ 962 BFD_SEND (abfd, _bfd_find_nearest_line_discriminator, \ 963 (abfd, sec, syms, off, file, func, line, disc)) 964 965 #define bfd_find_line(abfd, syms, sym, file, line) \ 966 BFD_SEND (abfd, _bfd_find_line, \ 967 (abfd, syms, sym, file, line)) 968 969 #define bfd_find_inliner_info(abfd, file, func, line) \ 970 BFD_SEND (abfd, _bfd_find_inliner_info, \ 971 (abfd, file, func, line)) 972 973 #define bfd_debug_info_start(abfd) \ 974 BFD_SEND (abfd, _bfd_debug_info_start, (abfd)) 975 976 #define bfd_debug_info_end(abfd) \ 977 BFD_SEND (abfd, _bfd_debug_info_end, (abfd)) 978 979 #define bfd_debug_info_accumulate(abfd, section) \ 980 BFD_SEND (abfd, _bfd_debug_info_accumulate, (abfd, section)) 981 982 #define bfd_stat_arch_elt(abfd, stat) \ 983 BFD_SEND (abfd, _bfd_stat_arch_elt,(abfd, stat)) 984 985 #define bfd_update_armap_timestamp(abfd) \ 986 BFD_SEND (abfd, _bfd_update_armap_timestamp, (abfd)) 987 988 #define bfd_set_arch_mach(abfd, arch, mach)\ 989 BFD_SEND ( abfd, _bfd_set_arch_mach, (abfd, arch, mach)) 990 991 #define bfd_relax_section(abfd, section, link_info, again) \ 992 BFD_SEND (abfd, _bfd_relax_section, (abfd, section, link_info, again)) 993 994 #define bfd_gc_sections(abfd, link_info) \ 995 BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info)) 996 997 #define bfd_lookup_section_flags(link_info, flag_info, section) \ 998 BFD_SEND (abfd, _bfd_lookup_section_flags, (link_info, flag_info, section)) 999 1000 #define bfd_merge_sections(abfd, link_info) \ 1001 BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info)) 1002 1003 #define bfd_is_group_section(abfd, sec) \ 1004 BFD_SEND (abfd, _bfd_is_group_section, (abfd, sec)) 1005 1006 #define bfd_discard_group(abfd, sec) \ 1007 BFD_SEND (abfd, _bfd_discard_group, (abfd, sec)) 1008 1009 #define bfd_link_hash_table_create(abfd) \ 1010 BFD_SEND (abfd, _bfd_link_hash_table_create, (abfd)) 1011 1012 #define bfd_link_hash_table_free(abfd, hash) \ 1013 BFD_SEND (abfd, _bfd_link_hash_table_free, (hash)) 1014 1015 #define bfd_link_add_symbols(abfd, info) \ 1016 BFD_SEND (abfd, _bfd_link_add_symbols, (abfd, info)) 1017 1018 #define bfd_link_just_syms(abfd, sec, info) \ 1019 BFD_SEND (abfd, _bfd_link_just_syms, (sec, info)) 1020 1021 #define bfd_final_link(abfd, info) \ 1022 BFD_SEND (abfd, _bfd_final_link, (abfd, info)) 1023 1024 #define bfd_free_cached_info(abfd) \ 1025 BFD_SEND (abfd, _bfd_free_cached_info, (abfd)) 1026 1027 #define bfd_get_dynamic_symtab_upper_bound(abfd) \ 1028 BFD_SEND (abfd, _bfd_get_dynamic_symtab_upper_bound, (abfd)) 1029 1030 #define bfd_print_private_bfd_data(abfd, file)\ 1031 BFD_SEND (abfd, _bfd_print_private_bfd_data, (abfd, file)) 1032 1033 #define bfd_canonicalize_dynamic_symtab(abfd, asymbols) \ 1034 BFD_SEND (abfd, _bfd_canonicalize_dynamic_symtab, (abfd, asymbols)) 1035 1036 #define bfd_get_synthetic_symtab(abfd, count, syms, dyncount, dynsyms, ret) \ 1037 BFD_SEND (abfd, _bfd_get_synthetic_symtab, (abfd, count, syms, \ 1038 dyncount, dynsyms, ret)) 1039 1040 #define bfd_get_dynamic_reloc_upper_bound(abfd) \ 1041 BFD_SEND (abfd, _bfd_get_dynamic_reloc_upper_bound, (abfd)) 1042 1043 #define bfd_canonicalize_dynamic_reloc(abfd, arels, asyms) \ 1044 BFD_SEND (abfd, _bfd_canonicalize_dynamic_reloc, (abfd, arels, asyms)) 1045 1046 extern bfd_byte *bfd_get_relocated_section_contents 1047 (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *, 1048 bfd_boolean, asymbol **); 1049 10502.3.1.16 `bfd_alt_mach_code' 1051............................ 1052 1053*Synopsis* 1054 bfd_boolean bfd_alt_mach_code (bfd *abfd, int alternative); 1055 *Description* 1056When more than one machine code number is available for the same 1057machine type, this function can be used to switch between the preferred 1058one (alternative == 0) and any others. Currently, only ELF supports 1059this feature, with up to two alternate machine codes. 1060 1061 struct bfd_preserve 1062 { 1063 void *marker; 1064 void *tdata; 1065 flagword flags; 1066 const struct bfd_arch_info *arch_info; 1067 struct bfd_section *sections; 1068 struct bfd_section *section_last; 1069 unsigned int section_count; 1070 struct bfd_hash_table section_htab; 1071 }; 1072 10732.3.1.17 `bfd_preserve_save' 1074............................ 1075 1076*Synopsis* 1077 bfd_boolean bfd_preserve_save (bfd *, struct bfd_preserve *); 1078 *Description* 1079When testing an object for compatibility with a particular target 1080back-end, the back-end object_p function needs to set up certain fields 1081in the bfd on successfully recognizing the object. This typically 1082happens in a piecemeal fashion, with failures possible at many points. 1083On failure, the bfd is supposed to be restored to its initial state, 1084which is virtually impossible. However, restoring a subset of the bfd 1085state works in practice. This function stores the subset and 1086reinitializes the bfd. 1087 10882.3.1.18 `bfd_preserve_restore' 1089............................... 1090 1091*Synopsis* 1092 void bfd_preserve_restore (bfd *, struct bfd_preserve *); 1093 *Description* 1094This function restores bfd state saved by bfd_preserve_save. If MARKER 1095is non-NULL in struct bfd_preserve then that block and all subsequently 1096bfd_alloc'd memory is freed. 1097 10982.3.1.19 `bfd_preserve_finish' 1099.............................. 1100 1101*Synopsis* 1102 void bfd_preserve_finish (bfd *, struct bfd_preserve *); 1103 *Description* 1104This function should be called when the bfd state saved by 1105bfd_preserve_save is no longer needed. ie. when the back-end object_p 1106function returns with success. 1107 11082.3.1.20 `bfd_emul_get_maxpagesize' 1109................................... 1110 1111*Synopsis* 1112 bfd_vma bfd_emul_get_maxpagesize (const char *); 1113 *Description* 1114Returns the maximum page size, in bytes, as determined by emulation. 1115 1116 *Returns* 1117Returns the maximum page size in bytes for ELF, 0 otherwise. 1118 11192.3.1.21 `bfd_emul_set_maxpagesize' 1120................................... 1121 1122*Synopsis* 1123 void bfd_emul_set_maxpagesize (const char *, bfd_vma); 1124 *Description* 1125For ELF, set the maximum page size for the emulation. It is a no-op 1126for other formats. 1127 11282.3.1.22 `bfd_emul_get_commonpagesize' 1129...................................... 1130 1131*Synopsis* 1132 bfd_vma bfd_emul_get_commonpagesize (const char *); 1133 *Description* 1134Returns the common page size, in bytes, as determined by emulation. 1135 1136 *Returns* 1137Returns the common page size in bytes for ELF, 0 otherwise. 1138 11392.3.1.23 `bfd_emul_set_commonpagesize' 1140...................................... 1141 1142*Synopsis* 1143 void bfd_emul_set_commonpagesize (const char *, bfd_vma); 1144 *Description* 1145For ELF, set the common page size for the emulation. It is a no-op for 1146other formats. 1147 11482.3.1.24 `bfd_demangle' 1149....................... 1150 1151*Synopsis* 1152 char *bfd_demangle (bfd *, const char *, int); 1153 *Description* 1154Wrapper around cplus_demangle. Strips leading underscores and other 1155such chars that would otherwise confuse the demangler. If passed a g++ 1156v3 ABI mangled name, returns a buffer allocated with malloc holding the 1157demangled name. Returns NULL otherwise and on memory alloc failure. 1158 11592.3.1.25 `struct bfd_iovec' 1160........................... 1161 1162*Description* 1163The `struct bfd_iovec' contains the internal file I/O class. Each 1164`BFD' has an instance of this class and all file I/O is routed through 1165it (it is assumed that the instance implements all methods listed 1166below). 1167 struct bfd_iovec 1168 { 1169 /* To avoid problems with macros, a "b" rather than "f" 1170 prefix is prepended to each method name. */ 1171 /* Attempt to read/write NBYTES on ABFD's IOSTREAM storing/fetching 1172 bytes starting at PTR. Return the number of bytes actually 1173 transfered (a read past end-of-file returns less than NBYTES), 1174 or -1 (setting `bfd_error') if an error occurs. */ 1175 file_ptr (*bread) (struct bfd *abfd, void *ptr, file_ptr nbytes); 1176 file_ptr (*bwrite) (struct bfd *abfd, const void *ptr, 1177 file_ptr nbytes); 1178 /* Return the current IOSTREAM file offset, or -1 (setting `bfd_error' 1179 if an error occurs. */ 1180 file_ptr (*btell) (struct bfd *abfd); 1181 /* For the following, on successful completion a value of 0 is returned. 1182 Otherwise, a value of -1 is returned (and `bfd_error' is set). */ 1183 int (*bseek) (struct bfd *abfd, file_ptr offset, int whence); 1184 int (*bclose) (struct bfd *abfd); 1185 int (*bflush) (struct bfd *abfd); 1186 int (*bstat) (struct bfd *abfd, struct stat *sb); 1187 /* Mmap a part of the files. ADDR, LEN, PROT, FLAGS and OFFSET are the usual 1188 mmap parameter, except that LEN and OFFSET do not need to be page 1189 aligned. Returns (void *)-1 on failure, mmapped address on success. 1190 Also write in MAP_ADDR the address of the page aligned buffer and in 1191 MAP_LEN the size mapped (a page multiple). Use unmap with MAP_ADDR and 1192 MAP_LEN to unmap. */ 1193 void *(*bmmap) (struct bfd *abfd, void *addr, bfd_size_type len, 1194 int prot, int flags, file_ptr offset, 1195 void **map_addr, bfd_size_type *map_len); 1196 }; 1197 extern const struct bfd_iovec _bfd_memory_iovec; 1198 11992.3.1.26 `bfd_get_mtime' 1200........................ 1201 1202*Synopsis* 1203 long bfd_get_mtime (bfd *abfd); 1204 *Description* 1205Return the file modification time (as read from the file system, or 1206from the archive header for archive members). 1207 12082.3.1.27 `bfd_get_size' 1209....................... 1210 1211*Synopsis* 1212 file_ptr bfd_get_size (bfd *abfd); 1213 *Description* 1214Return the file size (as read from file system) for the file associated 1215with BFD ABFD. 1216 1217 The initial motivation for, and use of, this routine is not so we 1218can get the exact size of the object the BFD applies to, since that 1219might not be generally possible (archive members for example). It 1220would be ideal if someone could eventually modify it so that such 1221results were guaranteed. 1222 1223 Instead, we want to ask questions like "is this NNN byte sized 1224object I'm about to try read from file offset YYY reasonable?" As as 1225example of where we might do this, some object formats use string 1226tables for which the first `sizeof (long)' bytes of the table contain 1227the size of the table itself, including the size bytes. If an 1228application tries to read what it thinks is one of these string tables, 1229without some way to validate the size, and for some reason the size is 1230wrong (byte swapping error, wrong location for the string table, etc.), 1231the only clue is likely to be a read error when it tries to read the 1232table, or a "virtual memory exhausted" error when it tries to allocate 123315 bazillon bytes of space for the 15 bazillon byte table it is about 1234to read. This function at least allows us to answer the question, "is 1235the size reasonable?". 1236 12372.3.1.28 `bfd_mmap' 1238................... 1239 1240*Synopsis* 1241 void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len, 1242 int prot, int flags, file_ptr offset, 1243 void **map_addr, bfd_size_type *map_len); 1244 *Description* 1245Return mmap()ed region of the file, if possible and implemented. LEN 1246and OFFSET do not need to be page aligned. The page aligned address 1247and length are written to MAP_ADDR and MAP_LEN. 1248 1249* Menu: 1250 1251* Memory Usage:: 1252* Initialization:: 1253* Sections:: 1254* Symbols:: 1255* Archives:: 1256* Formats:: 1257* Relocations:: 1258* Core Files:: 1259* Targets:: 1260* Architectures:: 1261* Opening and Closing:: 1262* Internal:: 1263* File Caching:: 1264* Linker Functions:: 1265* Hash Tables:: 1266 1267 1268File: bfd.info, Node: Memory Usage, Next: Initialization, Prev: BFD front end, Up: BFD front end 1269 12702.4 Memory Usage 1271================ 1272 1273BFD keeps all of its internal structures in obstacks. There is one 1274obstack per open BFD file, into which the current state is stored. When 1275a BFD is closed, the obstack is deleted, and so everything which has 1276been allocated by BFD for the closing file is thrown away. 1277 1278 BFD does not free anything created by an application, but pointers 1279into `bfd' structures become invalid on a `bfd_close'; for example, 1280after a `bfd_close' the vector passed to `bfd_canonicalize_symtab' is 1281still around, since it has been allocated by the application, but the 1282data that it pointed to are lost. 1283 1284 The general rule is to not close a BFD until all operations dependent 1285upon data from the BFD have been completed, or all the data from within 1286the file has been copied. To help with the management of memory, there 1287is a function (`bfd_alloc_size') which returns the number of bytes in 1288obstacks associated with the supplied BFD. This could be used to select 1289the greediest open BFD, close it to reclaim the memory, perform some 1290operation and reopen the BFD again, to get a fresh copy of the data 1291structures. 1292 1293 1294File: bfd.info, Node: Initialization, Next: Sections, Prev: Memory Usage, Up: BFD front end 1295 12962.5 Initialization 1297================== 1298 12992.5.1 Initialization functions 1300------------------------------ 1301 1302These are the functions that handle initializing a BFD. 1303 13042.5.1.1 `bfd_init' 1305.................. 1306 1307*Synopsis* 1308 void bfd_init (void); 1309 *Description* 1310This routine must be called before any other BFD function to initialize 1311magical internal data structures. 1312 1313 1314File: bfd.info, Node: Sections, Next: Symbols, Prev: Initialization, Up: BFD front end 1315 13162.6 Sections 1317============ 1318 1319The raw data contained within a BFD is maintained through the section 1320abstraction. A single BFD may have any number of sections. It keeps 1321hold of them by pointing to the first; each one points to the next in 1322the list. 1323 1324 Sections are supported in BFD in `section.c'. 1325 1326* Menu: 1327 1328* Section Input:: 1329* Section Output:: 1330* typedef asection:: 1331* section prototypes:: 1332 1333 1334File: bfd.info, Node: Section Input, Next: Section Output, Prev: Sections, Up: Sections 1335 13362.6.1 Section input 1337------------------- 1338 1339When a BFD is opened for reading, the section structures are created 1340and attached to the BFD. 1341 1342 Each section has a name which describes the section in the outside 1343world--for example, `a.out' would contain at least three sections, 1344called `.text', `.data' and `.bss'. 1345 1346 Names need not be unique; for example a COFF file may have several 1347sections named `.data'. 1348 1349 Sometimes a BFD will contain more than the "natural" number of 1350sections. A back end may attach other sections containing constructor 1351data, or an application may add a section (using `bfd_make_section') to 1352the sections attached to an already open BFD. For example, the linker 1353creates an extra section `COMMON' for each input file's BFD to hold 1354information about common storage. 1355 1356 The raw data is not necessarily read in when the section descriptor 1357is created. Some targets may leave the data in place until a 1358`bfd_get_section_contents' call is made. Other back ends may read in 1359all the data at once. For example, an S-record file has to be read 1360once to determine the size of the data. An IEEE-695 file doesn't 1361contain raw data in sections, but data and relocation expressions 1362intermixed, so the data area has to be parsed to get out the data and 1363relocations. 1364 1365 1366File: bfd.info, Node: Section Output, Next: typedef asection, Prev: Section Input, Up: Sections 1367 13682.6.2 Section output 1369-------------------- 1370 1371To write a new object style BFD, the various sections to be written 1372have to be created. They are attached to the BFD in the same way as 1373input sections; data is written to the sections using 1374`bfd_set_section_contents'. 1375 1376 Any program that creates or combines sections (e.g., the assembler 1377and linker) must use the `asection' fields `output_section' and 1378`output_offset' to indicate the file sections to which each section 1379must be written. (If the section is being created from scratch, 1380`output_section' should probably point to the section itself and 1381`output_offset' should probably be zero.) 1382 1383 The data to be written comes from input sections attached (via 1384`output_section' pointers) to the output sections. The output section 1385structure can be considered a filter for the input section: the output 1386section determines the vma of the output data and the name, but the 1387input section determines the offset into the output section of the data 1388to be written. 1389 1390 E.g., to create a section "O", starting at 0x100, 0x123 long, 1391containing two subsections, "A" at offset 0x0 (i.e., at vma 0x100) and 1392"B" at offset 0x20 (i.e., at vma 0x120) the `asection' structures would 1393look like: 1394 1395 section name "A" 1396 output_offset 0x00 1397 size 0x20 1398 output_section -----------> section name "O" 1399 | vma 0x100 1400 section name "B" | size 0x123 1401 output_offset 0x20 | 1402 size 0x103 | 1403 output_section --------| 1404 14052.6.3 Link orders 1406----------------- 1407 1408The data within a section is stored in a "link_order". These are much 1409like the fixups in `gas'. The link_order abstraction allows a section 1410to grow and shrink within itself. 1411 1412 A link_order knows how big it is, and which is the next link_order 1413and where the raw data for it is; it also points to a list of 1414relocations which apply to it. 1415 1416 The link_order is used by the linker to perform relaxing on final 1417code. The compiler creates code which is as big as necessary to make 1418it work without relaxing, and the user can select whether to relax. 1419Sometimes relaxing takes a lot of time. The linker runs around the 1420relocations to see if any are attached to data which can be shrunk, if 1421so it does it on a link_order by link_order basis. 1422 1423 1424File: bfd.info, Node: typedef asection, Next: section prototypes, Prev: Section Output, Up: Sections 1425 14262.6.4 typedef asection 1427---------------------- 1428 1429Here is the section structure: 1430 1431 1432 typedef struct bfd_section 1433 { 1434 /* The name of the section; the name isn't a copy, the pointer is 1435 the same as that passed to bfd_make_section. */ 1436 const char *name; 1437 1438 /* A unique sequence number. */ 1439 int id; 1440 1441 /* Which section in the bfd; 0..n-1 as sections are created in a bfd. */ 1442 int index; 1443 1444 /* The next section in the list belonging to the BFD, or NULL. */ 1445 struct bfd_section *next; 1446 1447 /* The previous section in the list belonging to the BFD, or NULL. */ 1448 struct bfd_section *prev; 1449 1450 /* The field flags contains attributes of the section. Some 1451 flags are read in from the object file, and some are 1452 synthesized from other information. */ 1453 flagword flags; 1454 1455 #define SEC_NO_FLAGS 0x000 1456 1457 /* Tells the OS to allocate space for this section when loading. 1458 This is clear for a section containing debug information only. */ 1459 #define SEC_ALLOC 0x001 1460 1461 /* Tells the OS to load the section from the file when loading. 1462 This is clear for a .bss section. */ 1463 #define SEC_LOAD 0x002 1464 1465 /* The section contains data still to be relocated, so there is 1466 some relocation information too. */ 1467 #define SEC_RELOC 0x004 1468 1469 /* A signal to the OS that the section contains read only data. */ 1470 #define SEC_READONLY 0x008 1471 1472 /* The section contains code only. */ 1473 #define SEC_CODE 0x010 1474 1475 /* The section contains data only. */ 1476 #define SEC_DATA 0x020 1477 1478 /* The section will reside in ROM. */ 1479 #define SEC_ROM 0x040 1480 1481 /* The section contains constructor information. This section 1482 type is used by the linker to create lists of constructors and 1483 destructors used by `g++'. When a back end sees a symbol 1484 which should be used in a constructor list, it creates a new 1485 section for the type of name (e.g., `__CTOR_LIST__'), attaches 1486 the symbol to it, and builds a relocation. To build the lists 1487 of constructors, all the linker has to do is catenate all the 1488 sections called `__CTOR_LIST__' and relocate the data 1489 contained within - exactly the operations it would peform on 1490 standard data. */ 1491 #define SEC_CONSTRUCTOR 0x080 1492 1493 /* The section has contents - a data section could be 1494 `SEC_ALLOC' | `SEC_HAS_CONTENTS'; a debug section could be 1495 `SEC_HAS_CONTENTS' */ 1496 #define SEC_HAS_CONTENTS 0x100 1497 1498 /* An instruction to the linker to not output the section 1499 even if it has information which would normally be written. */ 1500 #define SEC_NEVER_LOAD 0x200 1501 1502 /* The section contains thread local data. */ 1503 #define SEC_THREAD_LOCAL 0x400 1504 1505 /* The section has GOT references. This flag is only for the 1506 linker, and is currently only used by the elf32-hppa back end. 1507 It will be set if global offset table references were detected 1508 in this section, which indicate to the linker that the section 1509 contains PIC code, and must be handled specially when doing a 1510 static link. */ 1511 #define SEC_HAS_GOT_REF 0x800 1512 1513 /* The section contains common symbols (symbols may be defined 1514 multiple times, the value of a symbol is the amount of 1515 space it requires, and the largest symbol value is the one 1516 used). Most targets have exactly one of these (which we 1517 translate to bfd_com_section_ptr), but ECOFF has two. */ 1518 #define SEC_IS_COMMON 0x1000 1519 1520 /* The section contains only debugging information. For 1521 example, this is set for ELF .debug and .stab sections. 1522 strip tests this flag to see if a section can be 1523 discarded. */ 1524 #define SEC_DEBUGGING 0x2000 1525 1526 /* The contents of this section are held in memory pointed to 1527 by the contents field. This is checked by bfd_get_section_contents, 1528 and the data is retrieved from memory if appropriate. */ 1529 #define SEC_IN_MEMORY 0x4000 1530 1531 /* The contents of this section are to be excluded by the 1532 linker for executable and shared objects unless those 1533 objects are to be further relocated. */ 1534 #define SEC_EXCLUDE 0x8000 1535 1536 /* The contents of this section are to be sorted based on the sum of 1537 the symbol and addend values specified by the associated relocation 1538 entries. Entries without associated relocation entries will be 1539 appended to the end of the section in an unspecified order. */ 1540 #define SEC_SORT_ENTRIES 0x10000 1541 1542 /* When linking, duplicate sections of the same name should be 1543 discarded, rather than being combined into a single section as 1544 is usually done. This is similar to how common symbols are 1545 handled. See SEC_LINK_DUPLICATES below. */ 1546 #define SEC_LINK_ONCE 0x20000 1547 1548 /* If SEC_LINK_ONCE is set, this bitfield describes how the linker 1549 should handle duplicate sections. */ 1550 #define SEC_LINK_DUPLICATES 0xc0000 1551 1552 /* This value for SEC_LINK_DUPLICATES means that duplicate 1553 sections with the same name should simply be discarded. */ 1554 #define SEC_LINK_DUPLICATES_DISCARD 0x0 1555 1556 /* This value for SEC_LINK_DUPLICATES means that the linker 1557 should warn if there are any duplicate sections, although 1558 it should still only link one copy. */ 1559 #define SEC_LINK_DUPLICATES_ONE_ONLY 0x40000 1560 1561 /* This value for SEC_LINK_DUPLICATES means that the linker 1562 should warn if any duplicate sections are a different size. */ 1563 #define SEC_LINK_DUPLICATES_SAME_SIZE 0x80000 1564 1565 /* This value for SEC_LINK_DUPLICATES means that the linker 1566 should warn if any duplicate sections contain different 1567 contents. */ 1568 #define SEC_LINK_DUPLICATES_SAME_CONTENTS \ 1569 (SEC_LINK_DUPLICATES_ONE_ONLY | SEC_LINK_DUPLICATES_SAME_SIZE) 1570 1571 /* This section was created by the linker as part of dynamic 1572 relocation or other arcane processing. It is skipped when 1573 going through the first-pass output, trusting that someone 1574 else up the line will take care of it later. */ 1575 #define SEC_LINKER_CREATED 0x100000 1576 1577 /* This section should not be subject to garbage collection. 1578 Also set to inform the linker that this section should not be 1579 listed in the link map as discarded. */ 1580 #define SEC_KEEP 0x200000 1581 1582 /* This section contains "short" data, and should be placed 1583 "near" the GP. */ 1584 #define SEC_SMALL_DATA 0x400000 1585 1586 /* Attempt to merge identical entities in the section. 1587 Entity size is given in the entsize field. */ 1588 #define SEC_MERGE 0x800000 1589 1590 /* If given with SEC_MERGE, entities to merge are zero terminated 1591 strings where entsize specifies character size instead of fixed 1592 size entries. */ 1593 #define SEC_STRINGS 0x1000000 1594 1595 /* This section contains data about section groups. */ 1596 #define SEC_GROUP 0x2000000 1597 1598 /* The section is a COFF shared library section. This flag is 1599 only for the linker. If this type of section appears in 1600 the input file, the linker must copy it to the output file 1601 without changing the vma or size. FIXME: Although this 1602 was originally intended to be general, it really is COFF 1603 specific (and the flag was renamed to indicate this). It 1604 might be cleaner to have some more general mechanism to 1605 allow the back end to control what the linker does with 1606 sections. */ 1607 #define SEC_COFF_SHARED_LIBRARY 0x4000000 1608 1609 /* This input section should be copied to output in reverse order 1610 as an array of pointers. This is for ELF linker internal use 1611 only. */ 1612 #define SEC_ELF_REVERSE_COPY 0x4000000 1613 1614 /* This section contains data which may be shared with other 1615 executables or shared objects. This is for COFF only. */ 1616 #define SEC_COFF_SHARED 0x8000000 1617 1618 /* When a section with this flag is being linked, then if the size of 1619 the input section is less than a page, it should not cross a page 1620 boundary. If the size of the input section is one page or more, 1621 it should be aligned on a page boundary. This is for TI 1622 TMS320C54X only. */ 1623 #define SEC_TIC54X_BLOCK 0x10000000 1624 1625 /* Conditionally link this section; do not link if there are no 1626 references found to any symbol in the section. This is for TI 1627 TMS320C54X only. */ 1628 #define SEC_TIC54X_CLINK 0x20000000 1629 1630 /* Indicate that section has the no read flag set. This happens 1631 when memory read flag isn't set. */ 1632 #define SEC_COFF_NOREAD 0x40000000 1633 1634 /* End of section flags. */ 1635 1636 /* Some internal packed boolean fields. */ 1637 1638 /* See the vma field. */ 1639 unsigned int user_set_vma : 1; 1640 1641 /* A mark flag used by some of the linker backends. */ 1642 unsigned int linker_mark : 1; 1643 1644 /* Another mark flag used by some of the linker backends. Set for 1645 output sections that have an input section. */ 1646 unsigned int linker_has_input : 1; 1647 1648 /* Mark flag used by some linker backends for garbage collection. */ 1649 unsigned int gc_mark : 1; 1650 1651 /* Section compression status. */ 1652 unsigned int compress_status : 2; 1653 #define COMPRESS_SECTION_NONE 0 1654 #define COMPRESS_SECTION_DONE 1 1655 #define DECOMPRESS_SECTION_SIZED 2 1656 1657 /* The following flags are used by the ELF linker. */ 1658 1659 /* Mark sections which have been allocated to segments. */ 1660 unsigned int segment_mark : 1; 1661 1662 /* Type of sec_info information. */ 1663 unsigned int sec_info_type:3; 1664 #define SEC_INFO_TYPE_NONE 0 1665 #define SEC_INFO_TYPE_STABS 1 1666 #define SEC_INFO_TYPE_MERGE 2 1667 #define SEC_INFO_TYPE_EH_FRAME 3 1668 #define SEC_INFO_TYPE_JUST_SYMS 4 1669 1670 /* Nonzero if this section uses RELA relocations, rather than REL. */ 1671 unsigned int use_rela_p:1; 1672 1673 /* Bits used by various backends. The generic code doesn't touch 1674 these fields. */ 1675 1676 unsigned int sec_flg0:1; 1677 unsigned int sec_flg1:1; 1678 unsigned int sec_flg2:1; 1679 unsigned int sec_flg3:1; 1680 unsigned int sec_flg4:1; 1681 unsigned int sec_flg5:1; 1682 1683 /* End of internal packed boolean fields. */ 1684 1685 /* The virtual memory address of the section - where it will be 1686 at run time. The symbols are relocated against this. The 1687 user_set_vma flag is maintained by bfd; if it's not set, the 1688 backend can assign addresses (for example, in `a.out', where 1689 the default address for `.data' is dependent on the specific 1690 target and various flags). */ 1691 bfd_vma vma; 1692 1693 /* The load address of the section - where it would be in a 1694 rom image; really only used for writing section header 1695 information. */ 1696 bfd_vma lma; 1697 1698 /* The size of the section in octets, as it will be output. 1699 Contains a value even if the section has no contents (e.g., the 1700 size of `.bss'). */ 1701 bfd_size_type size; 1702 1703 /* For input sections, the original size on disk of the section, in 1704 octets. This field should be set for any section whose size is 1705 changed by linker relaxation. It is required for sections where 1706 the linker relaxation scheme doesn't cache altered section and 1707 reloc contents (stabs, eh_frame, SEC_MERGE, some coff relaxing 1708 targets), and thus the original size needs to be kept to read the 1709 section multiple times. For output sections, rawsize holds the 1710 section size calculated on a previous linker relaxation pass. */ 1711 bfd_size_type rawsize; 1712 1713 /* The compressed size of the section in octets. */ 1714 bfd_size_type compressed_size; 1715 1716 /* Relaxation table. */ 1717 struct relax_table *relax; 1718 1719 /* Count of used relaxation table entries. */ 1720 int relax_count; 1721 1722 1723 /* If this section is going to be output, then this value is the 1724 offset in *bytes* into the output section of the first byte in the 1725 input section (byte ==> smallest addressable unit on the 1726 target). In most cases, if this was going to start at the 1727 100th octet (8-bit quantity) in the output section, this value 1728 would be 100. However, if the target byte size is 16 bits 1729 (bfd_octets_per_byte is "2"), this value would be 50. */ 1730 bfd_vma output_offset; 1731 1732 /* The output section through which to map on output. */ 1733 struct bfd_section *output_section; 1734 1735 /* The alignment requirement of the section, as an exponent of 2 - 1736 e.g., 3 aligns to 2^3 (or 8). */ 1737 unsigned int alignment_power; 1738 1739 /* If an input section, a pointer to a vector of relocation 1740 records for the data in this section. */ 1741 struct reloc_cache_entry *relocation; 1742 1743 /* If an output section, a pointer to a vector of pointers to 1744 relocation records for the data in this section. */ 1745 struct reloc_cache_entry **orelocation; 1746 1747 /* The number of relocation records in one of the above. */ 1748 unsigned reloc_count; 1749 1750 /* Information below is back end specific - and not always used 1751 or updated. */ 1752 1753 /* File position of section data. */ 1754 file_ptr filepos; 1755 1756 /* File position of relocation info. */ 1757 file_ptr rel_filepos; 1758 1759 /* File position of line data. */ 1760 file_ptr line_filepos; 1761 1762 /* Pointer to data for applications. */ 1763 void *userdata; 1764 1765 /* If the SEC_IN_MEMORY flag is set, this points to the actual 1766 contents. */ 1767 unsigned char *contents; 1768 1769 /* Attached line number information. */ 1770 alent *lineno; 1771 1772 /* Number of line number records. */ 1773 unsigned int lineno_count; 1774 1775 /* Entity size for merging purposes. */ 1776 unsigned int entsize; 1777 1778 /* Points to the kept section if this section is a link-once section, 1779 and is discarded. */ 1780 struct bfd_section *kept_section; 1781 1782 /* When a section is being output, this value changes as more 1783 linenumbers are written out. */ 1784 file_ptr moving_line_filepos; 1785 1786 /* What the section number is in the target world. */ 1787 int target_index; 1788 1789 void *used_by_bfd; 1790 1791 /* If this is a constructor section then here is a list of the 1792 relocations created to relocate items within it. */ 1793 struct relent_chain *constructor_chain; 1794 1795 /* The BFD which owns the section. */ 1796 bfd *owner; 1797 1798 /* A symbol which points at this section only. */ 1799 struct bfd_symbol *symbol; 1800 struct bfd_symbol **symbol_ptr_ptr; 1801 1802 /* Early in the link process, map_head and map_tail are used to build 1803 a list of input sections attached to an output section. Later, 1804 output sections use these fields for a list of bfd_link_order 1805 structs. */ 1806 union { 1807 struct bfd_link_order *link_order; 1808 struct bfd_section *s; 1809 } map_head, map_tail; 1810 } asection; 1811 1812 /* Relax table contains information about instructions which can 1813 be removed by relaxation -- replacing a long address with a 1814 short address. */ 1815 struct relax_table { 1816 /* Address where bytes may be deleted. */ 1817 bfd_vma addr; 1818 1819 /* Number of bytes to be deleted. */ 1820 int size; 1821 }; 1822 1823 /* These sections are global, and are managed by BFD. The application 1824 and target back end are not permitted to change the values in 1825 these sections. */ 1826 extern asection std_section[4]; 1827 1828 #define BFD_ABS_SECTION_NAME "*ABS*" 1829 #define BFD_UND_SECTION_NAME "*UND*" 1830 #define BFD_COM_SECTION_NAME "*COM*" 1831 #define BFD_IND_SECTION_NAME "*IND*" 1832 1833 /* Pointer to the common section. */ 1834 #define bfd_com_section_ptr (&std_section[0]) 1835 /* Pointer to the undefined section. */ 1836 #define bfd_und_section_ptr (&std_section[1]) 1837 /* Pointer to the absolute section. */ 1838 #define bfd_abs_section_ptr (&std_section[2]) 1839 /* Pointer to the indirect section. */ 1840 #define bfd_ind_section_ptr (&std_section[3]) 1841 1842 #define bfd_is_und_section(sec) ((sec) == bfd_und_section_ptr) 1843 #define bfd_is_abs_section(sec) ((sec) == bfd_abs_section_ptr) 1844 #define bfd_is_ind_section(sec) ((sec) == bfd_ind_section_ptr) 1845 1846 #define bfd_is_const_section(SEC) \ 1847 ( ((SEC) == bfd_abs_section_ptr) \ 1848 || ((SEC) == bfd_und_section_ptr) \ 1849 || ((SEC) == bfd_com_section_ptr) \ 1850 || ((SEC) == bfd_ind_section_ptr)) 1851 1852 /* Macros to handle insertion and deletion of a bfd's sections. These 1853 only handle the list pointers, ie. do not adjust section_count, 1854 target_index etc. */ 1855 #define bfd_section_list_remove(ABFD, S) \ 1856 do \ 1857 { \ 1858 asection *_s = S; \ 1859 asection *_next = _s->next; \ 1860 asection *_prev = _s->prev; \ 1861 if (_prev) \ 1862 _prev->next = _next; \ 1863 else \ 1864 (ABFD)->sections = _next; \ 1865 if (_next) \ 1866 _next->prev = _prev; \ 1867 else \ 1868 (ABFD)->section_last = _prev; \ 1869 } \ 1870 while (0) 1871 #define bfd_section_list_append(ABFD, S) \ 1872 do \ 1873 { \ 1874 asection *_s = S; \ 1875 bfd *_abfd = ABFD; \ 1876 _s->next = NULL; \ 1877 if (_abfd->section_last) \ 1878 { \ 1879 _s->prev = _abfd->section_last; \ 1880 _abfd->section_last->next = _s; \ 1881 } \ 1882 else \ 1883 { \ 1884 _s->prev = NULL; \ 1885 _abfd->sections = _s; \ 1886 } \ 1887 _abfd->section_last = _s; \ 1888 } \ 1889 while (0) 1890 #define bfd_section_list_prepend(ABFD, S) \ 1891 do \ 1892 { \ 1893 asection *_s = S; \ 1894 bfd *_abfd = ABFD; \ 1895 _s->prev = NULL; \ 1896 if (_abfd->sections) \ 1897 { \ 1898 _s->next = _abfd->sections; \ 1899 _abfd->sections->prev = _s; \ 1900 } \ 1901 else \ 1902 { \ 1903 _s->next = NULL; \ 1904 _abfd->section_last = _s; \ 1905 } \ 1906 _abfd->sections = _s; \ 1907 } \ 1908 while (0) 1909 #define bfd_section_list_insert_after(ABFD, A, S) \ 1910 do \ 1911 { \ 1912 asection *_a = A; \ 1913 asection *_s = S; \ 1914 asection *_next = _a->next; \ 1915 _s->next = _next; \ 1916 _s->prev = _a; \ 1917 _a->next = _s; \ 1918 if (_next) \ 1919 _next->prev = _s; \ 1920 else \ 1921 (ABFD)->section_last = _s; \ 1922 } \ 1923 while (0) 1924 #define bfd_section_list_insert_before(ABFD, B, S) \ 1925 do \ 1926 { \ 1927 asection *_b = B; \ 1928 asection *_s = S; \ 1929 asection *_prev = _b->prev; \ 1930 _s->prev = _prev; \ 1931 _s->next = _b; \ 1932 _b->prev = _s; \ 1933 if (_prev) \ 1934 _prev->next = _s; \ 1935 else \ 1936 (ABFD)->sections = _s; \ 1937 } \ 1938 while (0) 1939 #define bfd_section_removed_from_list(ABFD, S) \ 1940 ((S)->next == NULL ? (ABFD)->section_last != (S) : (S)->next->prev != (S)) 1941 1942 #define BFD_FAKE_SECTION(SEC, FLAGS, SYM, NAME, IDX) \ 1943 /* name, id, index, next, prev, flags, user_set_vma, */ \ 1944 { NAME, IDX, 0, NULL, NULL, FLAGS, 0, \ 1945 \ 1946 /* linker_mark, linker_has_input, gc_mark, decompress_status, */ \ 1947 0, 0, 1, 0, \ 1948 \ 1949 /* segment_mark, sec_info_type, use_rela_p, */ \ 1950 0, 0, 0, \ 1951 \ 1952 /* sec_flg0, sec_flg1, sec_flg2, sec_flg3, sec_flg4, sec_flg5, */ \ 1953 0, 0, 0, 0, 0, 0, \ 1954 \ 1955 /* vma, lma, size, rawsize, compressed_size, relax, relax_count, */ \ 1956 0, 0, 0, 0, 0, 0, 0, \ 1957 \ 1958 /* output_offset, output_section, alignment_power, */ \ 1959 0, &SEC, 0, \ 1960 \ 1961 /* relocation, orelocation, reloc_count, filepos, rel_filepos, */ \ 1962 NULL, NULL, 0, 0, 0, \ 1963 \ 1964 /* line_filepos, userdata, contents, lineno, lineno_count, */ \ 1965 0, NULL, NULL, NULL, 0, \ 1966 \ 1967 /* entsize, kept_section, moving_line_filepos, */ \ 1968 0, NULL, 0, \ 1969 \ 1970 /* target_index, used_by_bfd, constructor_chain, owner, */ \ 1971 0, NULL, NULL, NULL, \ 1972 \ 1973 /* symbol, symbol_ptr_ptr, */ \ 1974 (struct bfd_symbol *) SYM, &SEC.symbol, \ 1975 \ 1976 /* map_head, map_tail */ \ 1977 { NULL }, { NULL } \ 1978 } 1979 1980 1981File: bfd.info, Node: section prototypes, Prev: typedef asection, Up: Sections 1982 19832.6.5 Section prototypes 1984------------------------ 1985 1986These are the functions exported by the section handling part of BFD. 1987 19882.6.5.1 `bfd_section_list_clear' 1989................................ 1990 1991*Synopsis* 1992 void bfd_section_list_clear (bfd *); 1993 *Description* 1994Clears the section list, and also resets the section count and hash 1995table entries. 1996 19972.6.5.2 `bfd_get_section_by_name' 1998................................. 1999 2000*Synopsis* 2001 asection *bfd_get_section_by_name (bfd *abfd, const char *name); 2002 *Description* 2003Return the most recently created section attached to ABFD named NAME. 2004Return NULL if no such section exists. 2005 20062.6.5.3 `bfd_get_next_section_by_name' 2007...................................... 2008 2009*Synopsis* 2010 asection *bfd_get_next_section_by_name (asection *sec); 2011 *Description* 2012Given SEC is a section returned by `bfd_get_section_by_name', return 2013the next most recently created section attached to the same BFD with 2014the same name. Return NULL if no such section exists. 2015 20162.6.5.4 `bfd_get_linker_section' 2017................................ 2018 2019*Synopsis* 2020 asection *bfd_get_linker_section (bfd *abfd, const char *name); 2021 *Description* 2022Return the linker created section attached to ABFD named NAME. Return 2023NULL if no such section exists. 2024 20252.6.5.5 `bfd_get_section_by_name_if' 2026.................................... 2027 2028*Synopsis* 2029 asection *bfd_get_section_by_name_if 2030 (bfd *abfd, 2031 const char *name, 2032 bfd_boolean (*func) (bfd *abfd, asection *sect, void *obj), 2033 void *obj); 2034 *Description* 2035Call the provided function FUNC for each section attached to the BFD 2036ABFD whose name matches NAME, passing OBJ as an argument. The function 2037will be called as if by 2038 2039 func (abfd, the_section, obj); 2040 2041 It returns the first section for which FUNC returns true, otherwise 2042`NULL'. 2043 20442.6.5.6 `bfd_get_unique_section_name' 2045..................................... 2046 2047*Synopsis* 2048 char *bfd_get_unique_section_name 2049 (bfd *abfd, const char *templat, int *count); 2050 *Description* 2051Invent a section name that is unique in ABFD by tacking a dot and a 2052digit suffix onto the original TEMPLAT. If COUNT is non-NULL, then it 2053specifies the first number tried as a suffix to generate a unique name. 2054The value pointed to by COUNT will be incremented in this case. 2055 20562.6.5.7 `bfd_make_section_old_way' 2057.................................. 2058 2059*Synopsis* 2060 asection *bfd_make_section_old_way (bfd *abfd, const char *name); 2061 *Description* 2062Create a new empty section called NAME and attach it to the end of the 2063chain of sections for the BFD ABFD. An attempt to create a section with 2064a name which is already in use returns its pointer without changing the 2065section chain. 2066 2067 It has the funny name since this is the way it used to be before it 2068was rewritten.... 2069 2070 Possible errors are: 2071 * `bfd_error_invalid_operation' - If output has already started for 2072 this BFD. 2073 2074 * `bfd_error_no_memory' - If memory allocation fails. 2075 20762.6.5.8 `bfd_make_section_anyway_with_flags' 2077............................................ 2078 2079*Synopsis* 2080 asection *bfd_make_section_anyway_with_flags 2081 (bfd *abfd, const char *name, flagword flags); 2082 *Description* 2083Create a new empty section called NAME and attach it to the end of the 2084chain of sections for ABFD. Create a new section even if there is 2085already a section with that name. Also set the attributes of the new 2086section to the value FLAGS. 2087 2088 Return `NULL' and set `bfd_error' on error; possible errors are: 2089 * `bfd_error_invalid_operation' - If output has already started for 2090 ABFD. 2091 2092 * `bfd_error_no_memory' - If memory allocation fails. 2093 20942.6.5.9 `bfd_make_section_anyway' 2095................................. 2096 2097*Synopsis* 2098 asection *bfd_make_section_anyway (bfd *abfd, const char *name); 2099 *Description* 2100Create a new empty section called NAME and attach it to the end of the 2101chain of sections for ABFD. Create a new section even if there is 2102already a section with that name. 2103 2104 Return `NULL' and set `bfd_error' on error; possible errors are: 2105 * `bfd_error_invalid_operation' - If output has already started for 2106 ABFD. 2107 2108 * `bfd_error_no_memory' - If memory allocation fails. 2109 21102.6.5.10 `bfd_make_section_with_flags' 2111...................................... 2112 2113*Synopsis* 2114 asection *bfd_make_section_with_flags 2115 (bfd *, const char *name, flagword flags); 2116 *Description* 2117Like `bfd_make_section_anyway', but return `NULL' (without calling 2118bfd_set_error ()) without changing the section chain if there is 2119already a section named NAME. Also set the attributes of the new 2120section to the value FLAGS. If there is an error, return `NULL' and set 2121`bfd_error'. 2122 21232.6.5.11 `bfd_make_section' 2124........................... 2125 2126*Synopsis* 2127 asection *bfd_make_section (bfd *, const char *name); 2128 *Description* 2129Like `bfd_make_section_anyway', but return `NULL' (without calling 2130bfd_set_error ()) without changing the section chain if there is 2131already a section named NAME. If there is an error, return `NULL' and 2132set `bfd_error'. 2133 21342.6.5.12 `bfd_set_section_flags' 2135................................ 2136 2137*Synopsis* 2138 bfd_boolean bfd_set_section_flags 2139 (bfd *abfd, asection *sec, flagword flags); 2140 *Description* 2141Set the attributes of the section SEC in the BFD ABFD to the value 2142FLAGS. Return `TRUE' on success, `FALSE' on error. Possible error 2143returns are: 2144 2145 * `bfd_error_invalid_operation' - The section cannot have one or 2146 more of the attributes requested. For example, a .bss section in 2147 `a.out' may not have the `SEC_HAS_CONTENTS' field set. 2148 21492.6.5.13 `bfd_rename_section' 2150............................. 2151 2152*Synopsis* 2153 void bfd_rename_section 2154 (bfd *abfd, asection *sec, const char *newname); 2155 *Description* 2156Rename section SEC in ABFD to NEWNAME. 2157 21582.6.5.14 `bfd_map_over_sections' 2159................................ 2160 2161*Synopsis* 2162 void bfd_map_over_sections 2163 (bfd *abfd, 2164 void (*func) (bfd *abfd, asection *sect, void *obj), 2165 void *obj); 2166 *Description* 2167Call the provided function FUNC for each section attached to the BFD 2168ABFD, passing OBJ as an argument. The function will be called as if by 2169 2170 func (abfd, the_section, obj); 2171 2172 This is the preferred method for iterating over sections; an 2173alternative would be to use a loop: 2174 2175 asection *p; 2176 for (p = abfd->sections; p != NULL; p = p->next) 2177 func (abfd, p, ...) 2178 21792.6.5.15 `bfd_sections_find_if' 2180............................... 2181 2182*Synopsis* 2183 asection *bfd_sections_find_if 2184 (bfd *abfd, 2185 bfd_boolean (*operation) (bfd *abfd, asection *sect, void *obj), 2186 void *obj); 2187 *Description* 2188Call the provided function OPERATION for each section attached to the 2189BFD ABFD, passing OBJ as an argument. The function will be called as if 2190by 2191 2192 operation (abfd, the_section, obj); 2193 2194 It returns the first section for which OPERATION returns true. 2195 21962.6.5.16 `bfd_set_section_size' 2197............................... 2198 2199*Synopsis* 2200 bfd_boolean bfd_set_section_size 2201 (bfd *abfd, asection *sec, bfd_size_type val); 2202 *Description* 2203Set SEC to the size VAL. If the operation is ok, then `TRUE' is 2204returned, else `FALSE'. 2205 2206 Possible error returns: 2207 * `bfd_error_invalid_operation' - Writing has started to the BFD, so 2208 setting the size is invalid. 2209 22102.6.5.17 `bfd_set_section_contents' 2211................................... 2212 2213*Synopsis* 2214 bfd_boolean bfd_set_section_contents 2215 (bfd *abfd, asection *section, const void *data, 2216 file_ptr offset, bfd_size_type count); 2217 *Description* 2218Sets the contents of the section SECTION in BFD ABFD to the data 2219starting in memory at DATA. The data is written to the output section 2220starting at offset OFFSET for COUNT octets. 2221 2222 Normally `TRUE' is returned, else `FALSE'. Possible error returns 2223are: 2224 * `bfd_error_no_contents' - The output section does not have the 2225 `SEC_HAS_CONTENTS' attribute, so nothing can be written to it. 2226 2227 * and some more too 2228 This routine is front end to the back end function 2229`_bfd_set_section_contents'. 2230 22312.6.5.18 `bfd_get_section_contents' 2232................................... 2233 2234*Synopsis* 2235 bfd_boolean bfd_get_section_contents 2236 (bfd *abfd, asection *section, void *location, file_ptr offset, 2237 bfd_size_type count); 2238 *Description* 2239Read data from SECTION in BFD ABFD into memory starting at LOCATION. 2240The data is read at an offset of OFFSET from the start of the input 2241section, and is read for COUNT bytes. 2242 2243 If the contents of a constructor with the `SEC_CONSTRUCTOR' flag set 2244are requested or if the section does not have the `SEC_HAS_CONTENTS' 2245flag set, then the LOCATION is filled with zeroes. If no errors occur, 2246`TRUE' is returned, else `FALSE'. 2247 22482.6.5.19 `bfd_malloc_and_get_section' 2249..................................... 2250 2251*Synopsis* 2252 bfd_boolean bfd_malloc_and_get_section 2253 (bfd *abfd, asection *section, bfd_byte **buf); 2254 *Description* 2255Read all data from SECTION in BFD ABFD into a buffer, *BUF, malloc'd by 2256this function. 2257 22582.6.5.20 `bfd_copy_private_section_data' 2259........................................ 2260 2261*Synopsis* 2262 bfd_boolean bfd_copy_private_section_data 2263 (bfd *ibfd, asection *isec, bfd *obfd, asection *osec); 2264 *Description* 2265Copy private section information from ISEC in the BFD IBFD to the 2266section OSEC in the BFD OBFD. Return `TRUE' on success, `FALSE' on 2267error. Possible error returns are: 2268 2269 * `bfd_error_no_memory' - Not enough memory exists to create private 2270 data for OSEC. 2271 2272 #define bfd_copy_private_section_data(ibfd, isection, obfd, osection) \ 2273 BFD_SEND (obfd, _bfd_copy_private_section_data, \ 2274 (ibfd, isection, obfd, osection)) 2275 22762.6.5.21 `bfd_generic_is_group_section' 2277....................................... 2278 2279*Synopsis* 2280 bfd_boolean bfd_generic_is_group_section (bfd *, const asection *sec); 2281 *Description* 2282Returns TRUE if SEC is a member of a group. 2283 22842.6.5.22 `bfd_generic_discard_group' 2285.................................... 2286 2287*Synopsis* 2288 bfd_boolean bfd_generic_discard_group (bfd *abfd, asection *group); 2289 *Description* 2290Remove all members of GROUP from the output. 2291 2292 2293File: bfd.info, Node: Symbols, Next: Archives, Prev: Sections, Up: BFD front end 2294 22952.7 Symbols 2296=========== 2297 2298BFD tries to maintain as much symbol information as it can when it 2299moves information from file to file. BFD passes information to 2300applications though the `asymbol' structure. When the application 2301requests the symbol table, BFD reads the table in the native form and 2302translates parts of it into the internal format. To maintain more than 2303the information passed to applications, some targets keep some 2304information "behind the scenes" in a structure only the particular back 2305end knows about. For example, the coff back end keeps the original 2306symbol table structure as well as the canonical structure when a BFD is 2307read in. On output, the coff back end can reconstruct the output symbol 2308table so that no information is lost, even information unique to coff 2309which BFD doesn't know or understand. If a coff symbol table were read, 2310but were written through an a.out back end, all the coff specific 2311information would be lost. The symbol table of a BFD is not necessarily 2312read in until a canonicalize request is made. Then the BFD back end 2313fills in a table provided by the application with pointers to the 2314canonical information. To output symbols, the application provides BFD 2315with a table of pointers to pointers to `asymbol's. This allows 2316applications like the linker to output a symbol as it was read, since 2317the "behind the scenes" information will be still available. 2318 2319* Menu: 2320 2321* Reading Symbols:: 2322* Writing Symbols:: 2323* Mini Symbols:: 2324* typedef asymbol:: 2325* symbol handling functions:: 2326 2327 2328File: bfd.info, Node: Reading Symbols, Next: Writing Symbols, Prev: Symbols, Up: Symbols 2329 23302.7.1 Reading symbols 2331--------------------- 2332 2333There are two stages to reading a symbol table from a BFD: allocating 2334storage, and the actual reading process. This is an excerpt from an 2335application which reads the symbol table: 2336 2337 long storage_needed; 2338 asymbol **symbol_table; 2339 long number_of_symbols; 2340 long i; 2341 2342 storage_needed = bfd_get_symtab_upper_bound (abfd); 2343 2344 if (storage_needed < 0) 2345 FAIL 2346 2347 if (storage_needed == 0) 2348 return; 2349 2350 symbol_table = xmalloc (storage_needed); 2351 ... 2352 number_of_symbols = 2353 bfd_canonicalize_symtab (abfd, symbol_table); 2354 2355 if (number_of_symbols < 0) 2356 FAIL 2357 2358 for (i = 0; i < number_of_symbols; i++) 2359 process_symbol (symbol_table[i]); 2360 2361 All storage for the symbols themselves is in an objalloc connected 2362to the BFD; it is freed when the BFD is closed. 2363 2364 2365File: bfd.info, Node: Writing Symbols, Next: Mini Symbols, Prev: Reading Symbols, Up: Symbols 2366 23672.7.2 Writing symbols 2368--------------------- 2369 2370Writing of a symbol table is automatic when a BFD open for writing is 2371closed. The application attaches a vector of pointers to pointers to 2372symbols to the BFD being written, and fills in the symbol count. The 2373close and cleanup code reads through the table provided and performs 2374all the necessary operations. The BFD output code must always be 2375provided with an "owned" symbol: one which has come from another BFD, 2376or one which has been created using `bfd_make_empty_symbol'. Here is an 2377example showing the creation of a symbol table with only one element: 2378 2379 #include "sysdep.h" 2380 #include "bfd.h" 2381 int main (void) 2382 { 2383 bfd *abfd; 2384 asymbol *ptrs[2]; 2385 asymbol *new; 2386 2387 abfd = bfd_openw ("foo","a.out-sunos-big"); 2388 bfd_set_format (abfd, bfd_object); 2389 new = bfd_make_empty_symbol (abfd); 2390 new->name = "dummy_symbol"; 2391 new->section = bfd_make_section_old_way (abfd, ".text"); 2392 new->flags = BSF_GLOBAL; 2393 new->value = 0x12345; 2394 2395 ptrs[0] = new; 2396 ptrs[1] = 0; 2397 2398 bfd_set_symtab (abfd, ptrs, 1); 2399 bfd_close (abfd); 2400 return 0; 2401 } 2402 2403 ./makesym 2404 nm foo 2405 00012345 A dummy_symbol 2406 2407 Many formats cannot represent arbitrary symbol information; for 2408instance, the `a.out' object format does not allow an arbitrary number 2409of sections. A symbol pointing to a section which is not one of 2410`.text', `.data' or `.bss' cannot be described. 2411 2412 2413File: bfd.info, Node: Mini Symbols, Next: typedef asymbol, Prev: Writing Symbols, Up: Symbols 2414 24152.7.3 Mini Symbols 2416------------------ 2417 2418Mini symbols provide read-only access to the symbol table. They use 2419less memory space, but require more time to access. They can be useful 2420for tools like nm or objdump, which may have to handle symbol tables of 2421extremely large executables. 2422 2423 The `bfd_read_minisymbols' function will read the symbols into 2424memory in an internal form. It will return a `void *' pointer to a 2425block of memory, a symbol count, and the size of each symbol. The 2426pointer is allocated using `malloc', and should be freed by the caller 2427when it is no longer needed. 2428 2429 The function `bfd_minisymbol_to_symbol' will take a pointer to a 2430minisymbol, and a pointer to a structure returned by 2431`bfd_make_empty_symbol', and return a `asymbol' structure. The return 2432value may or may not be the same as the value from 2433`bfd_make_empty_symbol' which was passed in. 2434 2435 2436File: bfd.info, Node: typedef asymbol, Next: symbol handling functions, Prev: Mini Symbols, Up: Symbols 2437 24382.7.4 typedef asymbol 2439--------------------- 2440 2441An `asymbol' has the form: 2442 2443 2444 typedef struct bfd_symbol 2445 { 2446 /* A pointer to the BFD which owns the symbol. This information 2447 is necessary so that a back end can work out what additional 2448 information (invisible to the application writer) is carried 2449 with the symbol. 2450 2451 This field is *almost* redundant, since you can use section->owner 2452 instead, except that some symbols point to the global sections 2453 bfd_{abs,com,und}_section. This could be fixed by making 2454 these globals be per-bfd (or per-target-flavor). FIXME. */ 2455 struct bfd *the_bfd; /* Use bfd_asymbol_bfd(sym) to access this field. */ 2456 2457 /* The text of the symbol. The name is left alone, and not copied; the 2458 application may not alter it. */ 2459 const char *name; 2460 2461 /* The value of the symbol. This really should be a union of a 2462 numeric value with a pointer, since some flags indicate that 2463 a pointer to another symbol is stored here. */ 2464 symvalue value; 2465 2466 /* Attributes of a symbol. */ 2467 #define BSF_NO_FLAGS 0x00 2468 2469 /* The symbol has local scope; `static' in `C'. The value 2470 is the offset into the section of the data. */ 2471 #define BSF_LOCAL (1 << 0) 2472 2473 /* The symbol has global scope; initialized data in `C'. The 2474 value is the offset into the section of the data. */ 2475 #define BSF_GLOBAL (1 << 1) 2476 2477 /* The symbol has global scope and is exported. The value is 2478 the offset into the section of the data. */ 2479 #define BSF_EXPORT BSF_GLOBAL /* No real difference. */ 2480 2481 /* A normal C symbol would be one of: 2482 `BSF_LOCAL', `BSF_COMMON', `BSF_UNDEFINED' or 2483 `BSF_GLOBAL'. */ 2484 2485 /* The symbol is a debugging record. The value has an arbitrary 2486 meaning, unless BSF_DEBUGGING_RELOC is also set. */ 2487 #define BSF_DEBUGGING (1 << 2) 2488 2489 /* The symbol denotes a function entry point. Used in ELF, 2490 perhaps others someday. */ 2491 #define BSF_FUNCTION (1 << 3) 2492 2493 /* Used by the linker. */ 2494 #define BSF_KEEP (1 << 5) 2495 #define BSF_KEEP_G (1 << 6) 2496 2497 /* A weak global symbol, overridable without warnings by 2498 a regular global symbol of the same name. */ 2499 #define BSF_WEAK (1 << 7) 2500 2501 /* This symbol was created to point to a section, e.g. ELF's 2502 STT_SECTION symbols. */ 2503 #define BSF_SECTION_SYM (1 << 8) 2504 2505 /* The symbol used to be a common symbol, but now it is 2506 allocated. */ 2507 #define BSF_OLD_COMMON (1 << 9) 2508 2509 /* In some files the type of a symbol sometimes alters its 2510 location in an output file - ie in coff a `ISFCN' symbol 2511 which is also `C_EXT' symbol appears where it was 2512 declared and not at the end of a section. This bit is set 2513 by the target BFD part to convey this information. */ 2514 #define BSF_NOT_AT_END (1 << 10) 2515 2516 /* Signal that the symbol is the label of constructor section. */ 2517 #define BSF_CONSTRUCTOR (1 << 11) 2518 2519 /* Signal that the symbol is a warning symbol. The name is a 2520 warning. The name of the next symbol is the one to warn about; 2521 if a reference is made to a symbol with the same name as the next 2522 symbol, a warning is issued by the linker. */ 2523 #define BSF_WARNING (1 << 12) 2524 2525 /* Signal that the symbol is indirect. This symbol is an indirect 2526 pointer to the symbol with the same name as the next symbol. */ 2527 #define BSF_INDIRECT (1 << 13) 2528 2529 /* BSF_FILE marks symbols that contain a file name. This is used 2530 for ELF STT_FILE symbols. */ 2531 #define BSF_FILE (1 << 14) 2532 2533 /* Symbol is from dynamic linking information. */ 2534 #define BSF_DYNAMIC (1 << 15) 2535 2536 /* The symbol denotes a data object. Used in ELF, and perhaps 2537 others someday. */ 2538 #define BSF_OBJECT (1 << 16) 2539 2540 /* This symbol is a debugging symbol. The value is the offset 2541 into the section of the data. BSF_DEBUGGING should be set 2542 as well. */ 2543 #define BSF_DEBUGGING_RELOC (1 << 17) 2544 2545 /* This symbol is thread local. Used in ELF. */ 2546 #define BSF_THREAD_LOCAL (1 << 18) 2547 2548 /* This symbol represents a complex relocation expression, 2549 with the expression tree serialized in the symbol name. */ 2550 #define BSF_RELC (1 << 19) 2551 2552 /* This symbol represents a signed complex relocation expression, 2553 with the expression tree serialized in the symbol name. */ 2554 #define BSF_SRELC (1 << 20) 2555 2556 /* This symbol was created by bfd_get_synthetic_symtab. */ 2557 #define BSF_SYNTHETIC (1 << 21) 2558 2559 /* This symbol is an indirect code object. Unrelated to BSF_INDIRECT. 2560 The dynamic linker will compute the value of this symbol by 2561 calling the function that it points to. BSF_FUNCTION must 2562 also be also set. */ 2563 #define BSF_GNU_INDIRECT_FUNCTION (1 << 22) 2564 /* This symbol is a globally unique data object. The dynamic linker 2565 will make sure that in the entire process there is just one symbol 2566 with this name and type in use. BSF_OBJECT must also be set. */ 2567 #define BSF_GNU_UNIQUE (1 << 23) 2568 2569 flagword flags; 2570 2571 /* A pointer to the section to which this symbol is 2572 relative. This will always be non NULL, there are special 2573 sections for undefined and absolute symbols. */ 2574 struct bfd_section *section; 2575 2576 /* Back end special data. */ 2577 union 2578 { 2579 void *p; 2580 bfd_vma i; 2581 } 2582 udata; 2583 } 2584 asymbol; 2585 2586 2587File: bfd.info, Node: symbol handling functions, Prev: typedef asymbol, Up: Symbols 2588 25892.7.5 Symbol handling functions 2590------------------------------- 2591 25922.7.5.1 `bfd_get_symtab_upper_bound' 2593.................................... 2594 2595*Description* 2596Return the number of bytes required to store a vector of pointers to 2597`asymbols' for all the symbols in the BFD ABFD, including a terminal 2598NULL pointer. If there are no symbols in the BFD, then return 0. If an 2599error occurs, return -1. 2600 #define bfd_get_symtab_upper_bound(abfd) \ 2601 BFD_SEND (abfd, _bfd_get_symtab_upper_bound, (abfd)) 2602 26032.7.5.2 `bfd_is_local_label' 2604............................ 2605 2606*Synopsis* 2607 bfd_boolean bfd_is_local_label (bfd *abfd, asymbol *sym); 2608 *Description* 2609Return TRUE if the given symbol SYM in the BFD ABFD is a compiler 2610generated local label, else return FALSE. 2611 26122.7.5.3 `bfd_is_local_label_name' 2613................................. 2614 2615*Synopsis* 2616 bfd_boolean bfd_is_local_label_name (bfd *abfd, const char *name); 2617 *Description* 2618Return TRUE if a symbol with the name NAME in the BFD ABFD is a 2619compiler generated local label, else return FALSE. This just checks 2620whether the name has the form of a local label. 2621 #define bfd_is_local_label_name(abfd, name) \ 2622 BFD_SEND (abfd, _bfd_is_local_label_name, (abfd, name)) 2623 26242.7.5.4 `bfd_is_target_special_symbol' 2625...................................... 2626 2627*Synopsis* 2628 bfd_boolean bfd_is_target_special_symbol (bfd *abfd, asymbol *sym); 2629 *Description* 2630Return TRUE iff a symbol SYM in the BFD ABFD is something special to 2631the particular target represented by the BFD. Such symbols should 2632normally not be mentioned to the user. 2633 #define bfd_is_target_special_symbol(abfd, sym) \ 2634 BFD_SEND (abfd, _bfd_is_target_special_symbol, (abfd, sym)) 2635 26362.7.5.5 `bfd_canonicalize_symtab' 2637................................. 2638 2639*Description* 2640Read the symbols from the BFD ABFD, and fills in the vector LOCATION 2641with pointers to the symbols and a trailing NULL. Return the actual 2642number of symbol pointers, not including the NULL. 2643 #define bfd_canonicalize_symtab(abfd, location) \ 2644 BFD_SEND (abfd, _bfd_canonicalize_symtab, (abfd, location)) 2645 26462.7.5.6 `bfd_set_symtab' 2647........................ 2648 2649*Synopsis* 2650 bfd_boolean bfd_set_symtab 2651 (bfd *abfd, asymbol **location, unsigned int count); 2652 *Description* 2653Arrange that when the output BFD ABFD is closed, the table LOCATION of 2654COUNT pointers to symbols will be written. 2655 26562.7.5.7 `bfd_print_symbol_vandf' 2657................................ 2658 2659*Synopsis* 2660 void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol); 2661 *Description* 2662Print the value and flags of the SYMBOL supplied to the stream FILE. 2663 26642.7.5.8 `bfd_make_empty_symbol' 2665............................... 2666 2667*Description* 2668Create a new `asymbol' structure for the BFD ABFD and return a pointer 2669to it. 2670 2671 This routine is necessary because each back end has private 2672information surrounding the `asymbol'. Building your own `asymbol' and 2673pointing to it will not create the private information, and will cause 2674problems later on. 2675 #define bfd_make_empty_symbol(abfd) \ 2676 BFD_SEND (abfd, _bfd_make_empty_symbol, (abfd)) 2677 26782.7.5.9 `_bfd_generic_make_empty_symbol' 2679........................................ 2680 2681*Synopsis* 2682 asymbol *_bfd_generic_make_empty_symbol (bfd *); 2683 *Description* 2684Create a new `asymbol' structure for the BFD ABFD and return a pointer 2685to it. Used by core file routines, binary back-end and anywhere else 2686where no private info is needed. 2687 26882.7.5.10 `bfd_make_debug_symbol' 2689................................ 2690 2691*Description* 2692Create a new `asymbol' structure for the BFD ABFD, to be used as a 2693debugging symbol. Further details of its use have yet to be worked out. 2694 #define bfd_make_debug_symbol(abfd,ptr,size) \ 2695 BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size)) 2696 26972.7.5.11 `bfd_decode_symclass' 2698.............................. 2699 2700*Description* 2701Return a character corresponding to the symbol class of SYMBOL, or '?' 2702for an unknown class. 2703 2704 *Synopsis* 2705 int bfd_decode_symclass (asymbol *symbol); 2706 27072.7.5.12 `bfd_is_undefined_symclass' 2708.................................... 2709 2710*Description* 2711Returns non-zero if the class symbol returned by bfd_decode_symclass 2712represents an undefined symbol. Returns zero otherwise. 2713 2714 *Synopsis* 2715 bfd_boolean bfd_is_undefined_symclass (int symclass); 2716 27172.7.5.13 `bfd_symbol_info' 2718.......................... 2719 2720*Description* 2721Fill in the basic info about symbol that nm needs. Additional info may 2722be added by the back-ends after calling this function. 2723 2724 *Synopsis* 2725 void bfd_symbol_info (asymbol *symbol, symbol_info *ret); 2726 27272.7.5.14 `bfd_copy_private_symbol_data' 2728....................................... 2729 2730*Synopsis* 2731 bfd_boolean bfd_copy_private_symbol_data 2732 (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym); 2733 *Description* 2734Copy private symbol information from ISYM in the BFD IBFD to the symbol 2735OSYM in the BFD OBFD. Return `TRUE' on success, `FALSE' on error. 2736Possible error returns are: 2737 2738 * `bfd_error_no_memory' - Not enough memory exists to create private 2739 data for OSEC. 2740 2741 #define bfd_copy_private_symbol_data(ibfd, isymbol, obfd, osymbol) \ 2742 BFD_SEND (obfd, _bfd_copy_private_symbol_data, \ 2743 (ibfd, isymbol, obfd, osymbol)) 2744 2745 2746File: bfd.info, Node: Archives, Next: Formats, Prev: Symbols, Up: BFD front end 2747 27482.8 Archives 2749============ 2750 2751*Description* 2752An archive (or library) is just another BFD. It has a symbol table, 2753although there's not much a user program will do with it. 2754 2755 The big difference between an archive BFD and an ordinary BFD is 2756that the archive doesn't have sections. Instead it has a chain of BFDs 2757that are considered its contents. These BFDs can be manipulated like 2758any other. The BFDs contained in an archive opened for reading will 2759all be opened for reading. You may put either input or output BFDs 2760into an archive opened for output; they will be handled correctly when 2761the archive is closed. 2762 2763 Use `bfd_openr_next_archived_file' to step through the contents of 2764an archive opened for input. You don't have to read the entire archive 2765if you don't want to! Read it until you find what you want. 2766 2767 Archive contents of output BFDs are chained through the `next' 2768pointer in a BFD. The first one is findable through the `archive_head' 2769slot of the archive. Set it with `bfd_set_archive_head' (q.v.). A 2770given BFD may be in only one open output archive at a time. 2771 2772 As expected, the BFD archive code is more general than the archive 2773code of any given environment. BFD archives may contain files of 2774different formats (e.g., a.out and coff) and even different 2775architectures. You may even place archives recursively into archives! 2776 2777 This can cause unexpected confusion, since some archive formats are 2778more expressive than others. For instance, Intel COFF archives can 2779preserve long filenames; SunOS a.out archives cannot. If you move a 2780file from the first to the second format and back again, the filename 2781may be truncated. Likewise, different a.out environments have different 2782conventions as to how they truncate filenames, whether they preserve 2783directory names in filenames, etc. When interoperating with native 2784tools, be sure your files are homogeneous. 2785 2786 Beware: most of these formats do not react well to the presence of 2787spaces in filenames. We do the best we can, but can't always handle 2788this case due to restrictions in the format of archives. Many Unix 2789utilities are braindead in regards to spaces and such in filenames 2790anyway, so this shouldn't be much of a restriction. 2791 2792 Archives are supported in BFD in `archive.c'. 2793 27942.8.1 Archive functions 2795----------------------- 2796 27972.8.1.1 `bfd_get_next_mapent' 2798............................. 2799 2800*Synopsis* 2801 symindex bfd_get_next_mapent 2802 (bfd *abfd, symindex previous, carsym **sym); 2803 *Description* 2804Step through archive ABFD's symbol table (if it has one). Successively 2805update SYM with the next symbol's information, returning that symbol's 2806(internal) index into the symbol table. 2807 2808 Supply `BFD_NO_MORE_SYMBOLS' as the PREVIOUS entry to get the first 2809one; returns `BFD_NO_MORE_SYMBOLS' when you've already got the last one. 2810 2811 A `carsym' is a canonical archive symbol. The only user-visible 2812element is its name, a null-terminated string. 2813 28142.8.1.2 `bfd_set_archive_head' 2815.............................. 2816 2817*Synopsis* 2818 bfd_boolean bfd_set_archive_head (bfd *output, bfd *new_head); 2819 *Description* 2820Set the head of the chain of BFDs contained in the archive OUTPUT to 2821NEW_HEAD. 2822 28232.8.1.3 `bfd_openr_next_archived_file' 2824...................................... 2825 2826*Synopsis* 2827 bfd *bfd_openr_next_archived_file (bfd *archive, bfd *previous); 2828 *Description* 2829Provided a BFD, ARCHIVE, containing an archive and NULL, open an input 2830BFD on the first contained element and returns that. Subsequent calls 2831should pass the archive and the previous return value to return a 2832created BFD to the next contained element. NULL is returned when there 2833are no more. 2834 2835 2836File: bfd.info, Node: Formats, Next: Relocations, Prev: Archives, Up: BFD front end 2837 28382.9 File formats 2839================ 2840 2841A format is a BFD concept of high level file contents type. The formats 2842supported by BFD are: 2843 2844 * `bfd_object' 2845 The BFD may contain data, symbols, relocations and debug info. 2846 2847 * `bfd_archive' 2848 The BFD contains other BFDs and an optional index. 2849 2850 * `bfd_core' 2851 The BFD contains the result of an executable core dump. 2852 28532.9.1 File format functions 2854--------------------------- 2855 28562.9.1.1 `bfd_check_format' 2857.......................... 2858 2859*Synopsis* 2860 bfd_boolean bfd_check_format (bfd *abfd, bfd_format format); 2861 *Description* 2862Verify if the file attached to the BFD ABFD is compatible with the 2863format FORMAT (i.e., one of `bfd_object', `bfd_archive' or `bfd_core'). 2864 2865 If the BFD has been set to a specific target before the call, only 2866the named target and format combination is checked. If the target has 2867not been set, or has been set to `default', then all the known target 2868backends is interrogated to determine a match. If the default target 2869matches, it is used. If not, exactly one target must recognize the 2870file, or an error results. 2871 2872 The function returns `TRUE' on success, otherwise `FALSE' with one 2873of the following error codes: 2874 2875 * `bfd_error_invalid_operation' - if `format' is not one of 2876 `bfd_object', `bfd_archive' or `bfd_core'. 2877 2878 * `bfd_error_system_call' - if an error occured during a read - even 2879 some file mismatches can cause bfd_error_system_calls. 2880 2881 * `file_not_recognised' - none of the backends recognised the file 2882 format. 2883 2884 * `bfd_error_file_ambiguously_recognized' - more than one backend 2885 recognised the file format. 2886 28872.9.1.2 `bfd_check_format_matches' 2888.................................. 2889 2890*Synopsis* 2891 bfd_boolean bfd_check_format_matches 2892 (bfd *abfd, bfd_format format, char ***matching); 2893 *Description* 2894Like `bfd_check_format', except when it returns FALSE with `bfd_errno' 2895set to `bfd_error_file_ambiguously_recognized'. In that case, if 2896MATCHING is not NULL, it will be filled in with a NULL-terminated list 2897of the names of the formats that matched, allocated with `malloc'. 2898Then the user may choose a format and try again. 2899 2900 When done with the list that MATCHING points to, the caller should 2901free it. 2902 29032.9.1.3 `bfd_set_format' 2904........................ 2905 2906*Synopsis* 2907 bfd_boolean bfd_set_format (bfd *abfd, bfd_format format); 2908 *Description* 2909This function sets the file format of the BFD ABFD to the format 2910FORMAT. If the target set in the BFD does not support the format 2911requested, the format is invalid, or the BFD is not open for writing, 2912then an error occurs. 2913 29142.9.1.4 `bfd_format_string' 2915........................... 2916 2917*Synopsis* 2918 const char *bfd_format_string (bfd_format format); 2919 *Description* 2920Return a pointer to a const string `invalid', `object', `archive', 2921`core', or `unknown', depending upon the value of FORMAT. 2922 2923 2924File: bfd.info, Node: Relocations, Next: Core Files, Prev: Formats, Up: BFD front end 2925 29262.10 Relocations 2927================ 2928 2929BFD maintains relocations in much the same way it maintains symbols: 2930they are left alone until required, then read in en-masse and 2931translated into an internal form. A common routine 2932`bfd_perform_relocation' acts upon the canonical form to do the fixup. 2933 2934 Relocations are maintained on a per section basis, while symbols are 2935maintained on a per BFD basis. 2936 2937 All that a back end has to do to fit the BFD interface is to create 2938a `struct reloc_cache_entry' for each relocation in a particular 2939section, and fill in the right bits of the structures. 2940 2941* Menu: 2942 2943* typedef arelent:: 2944* howto manager:: 2945 2946 2947File: bfd.info, Node: typedef arelent, Next: howto manager, Prev: Relocations, Up: Relocations 2948 29492.10.1 typedef arelent 2950---------------------- 2951 2952This is the structure of a relocation entry: 2953 2954 2955 typedef enum bfd_reloc_status 2956 { 2957 /* No errors detected. */ 2958 bfd_reloc_ok, 2959 2960 /* The relocation was performed, but there was an overflow. */ 2961 bfd_reloc_overflow, 2962 2963 /* The address to relocate was not within the section supplied. */ 2964 bfd_reloc_outofrange, 2965 2966 /* Used by special functions. */ 2967 bfd_reloc_continue, 2968 2969 /* Unsupported relocation size requested. */ 2970 bfd_reloc_notsupported, 2971 2972 /* Unused. */ 2973 bfd_reloc_other, 2974 2975 /* The symbol to relocate against was undefined. */ 2976 bfd_reloc_undefined, 2977 2978 /* The relocation was performed, but may not be ok - presently 2979 generated only when linking i960 coff files with i960 b.out 2980 symbols. If this type is returned, the error_message argument 2981 to bfd_perform_relocation will be set. */ 2982 bfd_reloc_dangerous 2983 } 2984 bfd_reloc_status_type; 2985 2986 2987 typedef struct reloc_cache_entry 2988 { 2989 /* A pointer into the canonical table of pointers. */ 2990 struct bfd_symbol **sym_ptr_ptr; 2991 2992 /* offset in section. */ 2993 bfd_size_type address; 2994 2995 /* addend for relocation value. */ 2996 bfd_vma addend; 2997 2998 /* Pointer to how to perform the required relocation. */ 2999 reloc_howto_type *howto; 3000 3001 } 3002 arelent; 3003 *Description* 3004Here is a description of each of the fields within an `arelent': 3005 3006 * `sym_ptr_ptr' 3007 The symbol table pointer points to a pointer to the symbol 3008associated with the relocation request. It is the pointer into the 3009table returned by the back end's `canonicalize_symtab' action. *Note 3010Symbols::. The symbol is referenced through a pointer to a pointer so 3011that tools like the linker can fix up all the symbols of the same name 3012by modifying only one pointer. The relocation routine looks in the 3013symbol and uses the base of the section the symbol is attached to and 3014the value of the symbol as the initial relocation offset. If the symbol 3015pointer is zero, then the section provided is looked up. 3016 3017 * `address' 3018 The `address' field gives the offset in bytes from the base of the 3019section data which owns the relocation record to the first byte of 3020relocatable information. The actual data relocated will be relative to 3021this point; for example, a relocation type which modifies the bottom 3022two bytes of a four byte word would not touch the first byte pointed to 3023in a big endian world. 3024 3025 * `addend' 3026 The `addend' is a value provided by the back end to be added (!) to 3027the relocation offset. Its interpretation is dependent upon the howto. 3028For example, on the 68k the code: 3029 3030 char foo[]; 3031 main() 3032 { 3033 return foo[0x12345678]; 3034 } 3035 3036 Could be compiled into: 3037 3038 linkw fp,#-4 3039 moveb @#12345678,d0 3040 extbl d0 3041 unlk fp 3042 rts 3043 3044 This could create a reloc pointing to `foo', but leave the offset in 3045the data, something like: 3046 3047 RELOCATION RECORDS FOR [.text]: 3048 offset type value 3049 00000006 32 _foo 3050 3051 00000000 4e56 fffc ; linkw fp,#-4 3052 00000004 1039 1234 5678 ; moveb @#12345678,d0 3053 0000000a 49c0 ; extbl d0 3054 0000000c 4e5e ; unlk fp 3055 0000000e 4e75 ; rts 3056 3057 Using coff and an 88k, some instructions don't have enough space in 3058them to represent the full address range, and pointers have to be 3059loaded in two parts. So you'd get something like: 3060 3061 or.u r13,r0,hi16(_foo+0x12345678) 3062 ld.b r2,r13,lo16(_foo+0x12345678) 3063 jmp r1 3064 3065 This should create two relocs, both pointing to `_foo', and with 30660x12340000 in their addend field. The data would consist of: 3067 3068 RELOCATION RECORDS FOR [.text]: 3069 offset type value 3070 00000002 HVRT16 _foo+0x12340000 3071 00000006 LVRT16 _foo+0x12340000 3072 3073 00000000 5da05678 ; or.u r13,r0,0x5678 3074 00000004 1c4d5678 ; ld.b r2,r13,0x5678 3075 00000008 f400c001 ; jmp r1 3076 3077 The relocation routine digs out the value from the data, adds it to 3078the addend to get the original offset, and then adds the value of 3079`_foo'. Note that all 32 bits have to be kept around somewhere, to cope 3080with carry from bit 15 to bit 16. 3081 3082 One further example is the sparc and the a.out format. The sparc has 3083a similar problem to the 88k, in that some instructions don't have room 3084for an entire offset, but on the sparc the parts are created in odd 3085sized lumps. The designers of the a.out format chose to not use the 3086data within the section for storing part of the offset; all the offset 3087is kept within the reloc. Anything in the data should be ignored. 3088 3089 save %sp,-112,%sp 3090 sethi %hi(_foo+0x12345678),%g2 3091 ldsb [%g2+%lo(_foo+0x12345678)],%i0 3092 ret 3093 restore 3094 3095 Both relocs contain a pointer to `foo', and the offsets contain junk. 3096 3097 RELOCATION RECORDS FOR [.text]: 3098 offset type value 3099 00000004 HI22 _foo+0x12345678 3100 00000008 LO10 _foo+0x12345678 3101 3102 00000000 9de3bf90 ; save %sp,-112,%sp 3103 00000004 05000000 ; sethi %hi(_foo+0),%g2 3104 00000008 f048a000 ; ldsb [%g2+%lo(_foo+0)],%i0 3105 0000000c 81c7e008 ; ret 3106 00000010 81e80000 ; restore 3107 3108 * `howto' 3109 The `howto' field can be imagined as a relocation instruction. It is 3110a pointer to a structure which contains information on what to do with 3111all of the other information in the reloc record and data section. A 3112back end would normally have a relocation instruction set and turn 3113relocations into pointers to the correct structure on input - but it 3114would be possible to create each howto field on demand. 3115 31162.10.1.1 `enum complain_overflow' 3117................................. 3118 3119Indicates what sort of overflow checking should be done when performing 3120a relocation. 3121 3122 3123 enum complain_overflow 3124 { 3125 /* Do not complain on overflow. */ 3126 complain_overflow_dont, 3127 3128 /* Complain if the value overflows when considered as a signed 3129 number one bit larger than the field. ie. A bitfield of N bits 3130 is allowed to represent -2**n to 2**n-1. */ 3131 complain_overflow_bitfield, 3132 3133 /* Complain if the value overflows when considered as a signed 3134 number. */ 3135 complain_overflow_signed, 3136 3137 /* Complain if the value overflows when considered as an 3138 unsigned number. */ 3139 complain_overflow_unsigned 3140 }; 3141 31422.10.1.2 `reloc_howto_type' 3143........................... 3144 3145The `reloc_howto_type' is a structure which contains all the 3146information that libbfd needs to know to tie up a back end's data. 3147 3148 struct bfd_symbol; /* Forward declaration. */ 3149 3150 struct reloc_howto_struct 3151 { 3152 /* The type field has mainly a documentary use - the back end can 3153 do what it wants with it, though normally the back end's 3154 external idea of what a reloc number is stored 3155 in this field. For example, a PC relative word relocation 3156 in a coff environment has the type 023 - because that's 3157 what the outside world calls a R_PCRWORD reloc. */ 3158 unsigned int type; 3159 3160 /* The value the final relocation is shifted right by. This drops 3161 unwanted data from the relocation. */ 3162 unsigned int rightshift; 3163 3164 /* The size of the item to be relocated. This is *not* a 3165 power-of-two measure. To get the number of bytes operated 3166 on by a type of relocation, use bfd_get_reloc_size. */ 3167 int size; 3168 3169 /* The number of bits in the item to be relocated. This is used 3170 when doing overflow checking. */ 3171 unsigned int bitsize; 3172 3173 /* The relocation is relative to the field being relocated. */ 3174 bfd_boolean pc_relative; 3175 3176 /* The bit position of the reloc value in the destination. 3177 The relocated value is left shifted by this amount. */ 3178 unsigned int bitpos; 3179 3180 /* What type of overflow error should be checked for when 3181 relocating. */ 3182 enum complain_overflow complain_on_overflow; 3183 3184 /* If this field is non null, then the supplied function is 3185 called rather than the normal function. This allows really 3186 strange relocation methods to be accommodated (e.g., i960 callj 3187 instructions). */ 3188 bfd_reloc_status_type (*special_function) 3189 (bfd *, arelent *, struct bfd_symbol *, void *, asection *, 3190 bfd *, char **); 3191 3192 /* The textual name of the relocation type. */ 3193 char *name; 3194 3195 /* Some formats record a relocation addend in the section contents 3196 rather than with the relocation. For ELF formats this is the 3197 distinction between USE_REL and USE_RELA (though the code checks 3198 for USE_REL == 1/0). The value of this field is TRUE if the 3199 addend is recorded with the section contents; when performing a 3200 partial link (ld -r) the section contents (the data) will be 3201 modified. The value of this field is FALSE if addends are 3202 recorded with the relocation (in arelent.addend); when performing 3203 a partial link the relocation will be modified. 3204 All relocations for all ELF USE_RELA targets should set this field 3205 to FALSE (values of TRUE should be looked on with suspicion). 3206 However, the converse is not true: not all relocations of all ELF 3207 USE_REL targets set this field to TRUE. Why this is so is peculiar 3208 to each particular target. For relocs that aren't used in partial 3209 links (e.g. GOT stuff) it doesn't matter what this is set to. */ 3210 bfd_boolean partial_inplace; 3211 3212 /* src_mask selects the part of the instruction (or data) to be used 3213 in the relocation sum. If the target relocations don't have an 3214 addend in the reloc, eg. ELF USE_REL, src_mask will normally equal 3215 dst_mask to extract the addend from the section contents. If 3216 relocations do have an addend in the reloc, eg. ELF USE_RELA, this 3217 field should be zero. Non-zero values for ELF USE_RELA targets are 3218 bogus as in those cases the value in the dst_mask part of the 3219 section contents should be treated as garbage. */ 3220 bfd_vma src_mask; 3221 3222 /* dst_mask selects which parts of the instruction (or data) are 3223 replaced with a relocated value. */ 3224 bfd_vma dst_mask; 3225 3226 /* When some formats create PC relative instructions, they leave 3227 the value of the pc of the place being relocated in the offset 3228 slot of the instruction, so that a PC relative relocation can 3229 be made just by adding in an ordinary offset (e.g., sun3 a.out). 3230 Some formats leave the displacement part of an instruction 3231 empty (e.g., m88k bcs); this flag signals the fact. */ 3232 bfd_boolean pcrel_offset; 3233 }; 3234 32352.10.1.3 `The HOWTO Macro' 3236.......................... 3237 3238*Description* 3239The HOWTO define is horrible and will go away. 3240 #define HOWTO(C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC) \ 3241 { (unsigned) C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC } 3242 3243 *Description* 3244And will be replaced with the totally magic way. But for the moment, we 3245are compatible, so do it this way. 3246 #define NEWHOWTO(FUNCTION, NAME, SIZE, REL, IN) \ 3247 HOWTO (0, 0, SIZE, 0, REL, 0, complain_overflow_dont, FUNCTION, \ 3248 NAME, FALSE, 0, 0, IN) 3249 3250 *Description* 3251This is used to fill in an empty howto entry in an array. 3252 #define EMPTY_HOWTO(C) \ 3253 HOWTO ((C), 0, 0, 0, FALSE, 0, complain_overflow_dont, NULL, \ 3254 NULL, FALSE, 0, 0, FALSE) 3255 3256 *Description* 3257Helper routine to turn a symbol into a relocation value. 3258 #define HOWTO_PREPARE(relocation, symbol) \ 3259 { \ 3260 if (symbol != NULL) \ 3261 { \ 3262 if (bfd_is_com_section (symbol->section)) \ 3263 { \ 3264 relocation = 0; \ 3265 } \ 3266 else \ 3267 { \ 3268 relocation = symbol->value; \ 3269 } \ 3270 } \ 3271 } 3272 32732.10.1.4 `bfd_get_reloc_size' 3274............................. 3275 3276*Synopsis* 3277 unsigned int bfd_get_reloc_size (reloc_howto_type *); 3278 *Description* 3279For a reloc_howto_type that operates on a fixed number of bytes, this 3280returns the number of bytes operated on. 3281 32822.10.1.5 `arelent_chain' 3283........................ 3284 3285*Description* 3286How relocs are tied together in an `asection': 3287 typedef struct relent_chain 3288 { 3289 arelent relent; 3290 struct relent_chain *next; 3291 } 3292 arelent_chain; 3293 32942.10.1.6 `bfd_check_overflow' 3295............................. 3296 3297*Synopsis* 3298 bfd_reloc_status_type bfd_check_overflow 3299 (enum complain_overflow how, 3300 unsigned int bitsize, 3301 unsigned int rightshift, 3302 unsigned int addrsize, 3303 bfd_vma relocation); 3304 *Description* 3305Perform overflow checking on RELOCATION which has BITSIZE significant 3306bits and will be shifted right by RIGHTSHIFT bits, on a machine with 3307addresses containing ADDRSIZE significant bits. The result is either of 3308`bfd_reloc_ok' or `bfd_reloc_overflow'. 3309 33102.10.1.7 `bfd_perform_relocation' 3311................................. 3312 3313*Synopsis* 3314 bfd_reloc_status_type bfd_perform_relocation 3315 (bfd *abfd, 3316 arelent *reloc_entry, 3317 void *data, 3318 asection *input_section, 3319 bfd *output_bfd, 3320 char **error_message); 3321 *Description* 3322If OUTPUT_BFD is supplied to this function, the generated image will be 3323relocatable; the relocations are copied to the output file after they 3324have been changed to reflect the new state of the world. There are two 3325ways of reflecting the results of partial linkage in an output file: by 3326modifying the output data in place, and by modifying the relocation 3327record. Some native formats (e.g., basic a.out and basic coff) have no 3328way of specifying an addend in the relocation type, so the addend has 3329to go in the output data. This is no big deal since in these formats 3330the output data slot will always be big enough for the addend. Complex 3331reloc types with addends were invented to solve just this problem. The 3332ERROR_MESSAGE argument is set to an error message if this return 3333`bfd_reloc_dangerous'. 3334 33352.10.1.8 `bfd_install_relocation' 3336................................. 3337 3338*Synopsis* 3339 bfd_reloc_status_type bfd_install_relocation 3340 (bfd *abfd, 3341 arelent *reloc_entry, 3342 void *data, bfd_vma data_start, 3343 asection *input_section, 3344 char **error_message); 3345 *Description* 3346This looks remarkably like `bfd_perform_relocation', except it does not 3347expect that the section contents have been filled in. I.e., it's 3348suitable for use when creating, rather than applying a relocation. 3349 3350 For now, this function should be considered reserved for the 3351assembler. 3352 3353 3354File: bfd.info, Node: howto manager, Prev: typedef arelent, Up: Relocations 3355 33562.10.2 The howto manager 3357------------------------ 3358 3359When an application wants to create a relocation, but doesn't know what 3360the target machine might call it, it can find out by using this bit of 3361code. 3362 33632.10.2.1 `bfd_reloc_code_type' 3364.............................. 3365 3366*Description* 3367The insides of a reloc code. The idea is that, eventually, there will 3368be one enumerator for every type of relocation we ever do. Pass one of 3369these values to `bfd_reloc_type_lookup', and it'll return a howto 3370pointer. 3371 3372 This does mean that the application must determine the correct 3373enumerator value; you can't get a howto pointer from a random set of 3374attributes. 3375 3376 Here are the possible values for `enum bfd_reloc_code_real': 3377 3378 -- : BFD_RELOC_64 3379 -- : BFD_RELOC_32 3380 -- : BFD_RELOC_26 3381 -- : BFD_RELOC_24 3382 -- : BFD_RELOC_16 3383 -- : BFD_RELOC_14 3384 -- : BFD_RELOC_8 3385 Basic absolute relocations of N bits. 3386 3387 -- : BFD_RELOC_64_PCREL 3388 -- : BFD_RELOC_32_PCREL 3389 -- : BFD_RELOC_24_PCREL 3390 -- : BFD_RELOC_16_PCREL 3391 -- : BFD_RELOC_12_PCREL 3392 -- : BFD_RELOC_8_PCREL 3393 PC-relative relocations. Sometimes these are relative to the 3394 address of the relocation itself; sometimes they are relative to 3395 the start of the section containing the relocation. It depends on 3396 the specific target. 3397 3398 The 24-bit relocation is used in some Intel 960 configurations. 3399 3400 -- : BFD_RELOC_32_SECREL 3401 Section relative relocations. Some targets need this for DWARF2. 3402 3403 -- : BFD_RELOC_32_GOT_PCREL 3404 -- : BFD_RELOC_16_GOT_PCREL 3405 -- : BFD_RELOC_8_GOT_PCREL 3406 -- : BFD_RELOC_32_GOTOFF 3407 -- : BFD_RELOC_16_GOTOFF 3408 -- : BFD_RELOC_LO16_GOTOFF 3409 -- : BFD_RELOC_HI16_GOTOFF 3410 -- : BFD_RELOC_HI16_S_GOTOFF 3411 -- : BFD_RELOC_8_GOTOFF 3412 -- : BFD_RELOC_64_PLT_PCREL 3413 -- : BFD_RELOC_32_PLT_PCREL 3414 -- : BFD_RELOC_24_PLT_PCREL 3415 -- : BFD_RELOC_16_PLT_PCREL 3416 -- : BFD_RELOC_8_PLT_PCREL 3417 -- : BFD_RELOC_64_PLTOFF 3418 -- : BFD_RELOC_32_PLTOFF 3419 -- : BFD_RELOC_16_PLTOFF 3420 -- : BFD_RELOC_LO16_PLTOFF 3421 -- : BFD_RELOC_HI16_PLTOFF 3422 -- : BFD_RELOC_HI16_S_PLTOFF 3423 -- : BFD_RELOC_8_PLTOFF 3424 For ELF. 3425 3426 -- : BFD_RELOC_68K_GLOB_DAT 3427 -- : BFD_RELOC_68K_JMP_SLOT 3428 -- : BFD_RELOC_68K_RELATIVE 3429 -- : BFD_RELOC_68K_TLS_GD32 3430 -- : BFD_RELOC_68K_TLS_GD16 3431 -- : BFD_RELOC_68K_TLS_GD8 3432 -- : BFD_RELOC_68K_TLS_LDM32 3433 -- : BFD_RELOC_68K_TLS_LDM16 3434 -- : BFD_RELOC_68K_TLS_LDM8 3435 -- : BFD_RELOC_68K_TLS_LDO32 3436 -- : BFD_RELOC_68K_TLS_LDO16 3437 -- : BFD_RELOC_68K_TLS_LDO8 3438 -- : BFD_RELOC_68K_TLS_IE32 3439 -- : BFD_RELOC_68K_TLS_IE16 3440 -- : BFD_RELOC_68K_TLS_IE8 3441 -- : BFD_RELOC_68K_TLS_LE32 3442 -- : BFD_RELOC_68K_TLS_LE16 3443 -- : BFD_RELOC_68K_TLS_LE8 3444 Relocations used by 68K ELF. 3445 3446 -- : BFD_RELOC_32_BASEREL 3447 -- : BFD_RELOC_16_BASEREL 3448 -- : BFD_RELOC_LO16_BASEREL 3449 -- : BFD_RELOC_HI16_BASEREL 3450 -- : BFD_RELOC_HI16_S_BASEREL 3451 -- : BFD_RELOC_8_BASEREL 3452 -- : BFD_RELOC_RVA 3453 Linkage-table relative. 3454 3455 -- : BFD_RELOC_8_FFnn 3456 Absolute 8-bit relocation, but used to form an address like 0xFFnn. 3457 3458 -- : BFD_RELOC_32_PCREL_S2 3459 -- : BFD_RELOC_16_PCREL_S2 3460 -- : BFD_RELOC_23_PCREL_S2 3461 These PC-relative relocations are stored as word displacements - 3462 i.e., byte displacements shifted right two bits. The 30-bit word 3463 displacement (<<32_PCREL_S2>> - 32 bits, shifted 2) is used on the 3464 SPARC. (SPARC tools generally refer to this as <<WDISP30>>.) The 3465 signed 16-bit displacement is used on the MIPS, and the 23-bit 3466 displacement is used on the Alpha. 3467 3468 -- : BFD_RELOC_HI22 3469 -- : BFD_RELOC_LO10 3470 High 22 bits and low 10 bits of 32-bit value, placed into lower 3471 bits of the target word. These are used on the SPARC. 3472 3473 -- : BFD_RELOC_GPREL16 3474 -- : BFD_RELOC_GPREL32 3475 For systems that allocate a Global Pointer register, these are 3476 displacements off that register. These relocation types are 3477 handled specially, because the value the register will have is 3478 decided relatively late. 3479 3480 -- : BFD_RELOC_I960_CALLJ 3481 Reloc types used for i960/b.out. 3482 3483 -- : BFD_RELOC_NONE 3484 -- : BFD_RELOC_SPARC_WDISP22 3485 -- : BFD_RELOC_SPARC22 3486 -- : BFD_RELOC_SPARC13 3487 -- : BFD_RELOC_SPARC_GOT10 3488 -- : BFD_RELOC_SPARC_GOT13 3489 -- : BFD_RELOC_SPARC_GOT22 3490 -- : BFD_RELOC_SPARC_PC10 3491 -- : BFD_RELOC_SPARC_PC22 3492 -- : BFD_RELOC_SPARC_WPLT30 3493 -- : BFD_RELOC_SPARC_COPY 3494 -- : BFD_RELOC_SPARC_GLOB_DAT 3495 -- : BFD_RELOC_SPARC_JMP_SLOT 3496 -- : BFD_RELOC_SPARC_RELATIVE 3497 -- : BFD_RELOC_SPARC_UA16 3498 -- : BFD_RELOC_SPARC_UA32 3499 -- : BFD_RELOC_SPARC_UA64 3500 -- : BFD_RELOC_SPARC_GOTDATA_HIX22 3501 -- : BFD_RELOC_SPARC_GOTDATA_LOX10 3502 -- : BFD_RELOC_SPARC_GOTDATA_OP_HIX22 3503 -- : BFD_RELOC_SPARC_GOTDATA_OP_LOX10 3504 -- : BFD_RELOC_SPARC_GOTDATA_OP 3505 -- : BFD_RELOC_SPARC_JMP_IREL 3506 -- : BFD_RELOC_SPARC_IRELATIVE 3507 SPARC ELF relocations. There is probably some overlap with other 3508 relocation types already defined. 3509 3510 -- : BFD_RELOC_SPARC_BASE13 3511 -- : BFD_RELOC_SPARC_BASE22 3512 I think these are specific to SPARC a.out (e.g., Sun 4). 3513 3514 -- : BFD_RELOC_SPARC_64 3515 -- : BFD_RELOC_SPARC_10 3516 -- : BFD_RELOC_SPARC_11 3517 -- : BFD_RELOC_SPARC_OLO10 3518 -- : BFD_RELOC_SPARC_HH22 3519 -- : BFD_RELOC_SPARC_HM10 3520 -- : BFD_RELOC_SPARC_LM22 3521 -- : BFD_RELOC_SPARC_PC_HH22 3522 -- : BFD_RELOC_SPARC_PC_HM10 3523 -- : BFD_RELOC_SPARC_PC_LM22 3524 -- : BFD_RELOC_SPARC_WDISP16 3525 -- : BFD_RELOC_SPARC_WDISP19 3526 -- : BFD_RELOC_SPARC_7 3527 -- : BFD_RELOC_SPARC_6 3528 -- : BFD_RELOC_SPARC_5 3529 -- : BFD_RELOC_SPARC_DISP64 3530 -- : BFD_RELOC_SPARC_PLT32 3531 -- : BFD_RELOC_SPARC_PLT64 3532 -- : BFD_RELOC_SPARC_HIX22 3533 -- : BFD_RELOC_SPARC_LOX10 3534 -- : BFD_RELOC_SPARC_H44 3535 -- : BFD_RELOC_SPARC_M44 3536 -- : BFD_RELOC_SPARC_L44 3537 -- : BFD_RELOC_SPARC_REGISTER 3538 -- : BFD_RELOC_SPARC_H34 3539 -- : BFD_RELOC_SPARC_SIZE32 3540 -- : BFD_RELOC_SPARC_SIZE64 3541 -- : BFD_RELOC_SPARC_WDISP10 3542 SPARC64 relocations 3543 3544 -- : BFD_RELOC_SPARC_REV32 3545 SPARC little endian relocation 3546 3547 -- : BFD_RELOC_SPARC_TLS_GD_HI22 3548 -- : BFD_RELOC_SPARC_TLS_GD_LO10 3549 -- : BFD_RELOC_SPARC_TLS_GD_ADD 3550 -- : BFD_RELOC_SPARC_TLS_GD_CALL 3551 -- : BFD_RELOC_SPARC_TLS_LDM_HI22 3552 -- : BFD_RELOC_SPARC_TLS_LDM_LO10 3553 -- : BFD_RELOC_SPARC_TLS_LDM_ADD 3554 -- : BFD_RELOC_SPARC_TLS_LDM_CALL 3555 -- : BFD_RELOC_SPARC_TLS_LDO_HIX22 3556 -- : BFD_RELOC_SPARC_TLS_LDO_LOX10 3557 -- : BFD_RELOC_SPARC_TLS_LDO_ADD 3558 -- : BFD_RELOC_SPARC_TLS_IE_HI22 3559 -- : BFD_RELOC_SPARC_TLS_IE_LO10 3560 -- : BFD_RELOC_SPARC_TLS_IE_LD 3561 -- : BFD_RELOC_SPARC_TLS_IE_LDX 3562 -- : BFD_RELOC_SPARC_TLS_IE_ADD 3563 -- : BFD_RELOC_SPARC_TLS_LE_HIX22 3564 -- : BFD_RELOC_SPARC_TLS_LE_LOX10 3565 -- : BFD_RELOC_SPARC_TLS_DTPMOD32 3566 -- : BFD_RELOC_SPARC_TLS_DTPMOD64 3567 -- : BFD_RELOC_SPARC_TLS_DTPOFF32 3568 -- : BFD_RELOC_SPARC_TLS_DTPOFF64 3569 -- : BFD_RELOC_SPARC_TLS_TPOFF32 3570 -- : BFD_RELOC_SPARC_TLS_TPOFF64 3571 SPARC TLS relocations 3572 3573 -- : BFD_RELOC_SPU_IMM7 3574 -- : BFD_RELOC_SPU_IMM8 3575 -- : BFD_RELOC_SPU_IMM10 3576 -- : BFD_RELOC_SPU_IMM10W 3577 -- : BFD_RELOC_SPU_IMM16 3578 -- : BFD_RELOC_SPU_IMM16W 3579 -- : BFD_RELOC_SPU_IMM18 3580 -- : BFD_RELOC_SPU_PCREL9a 3581 -- : BFD_RELOC_SPU_PCREL9b 3582 -- : BFD_RELOC_SPU_PCREL16 3583 -- : BFD_RELOC_SPU_LO16 3584 -- : BFD_RELOC_SPU_HI16 3585 -- : BFD_RELOC_SPU_PPU32 3586 -- : BFD_RELOC_SPU_PPU64 3587 -- : BFD_RELOC_SPU_ADD_PIC 3588 SPU Relocations. 3589 3590 -- : BFD_RELOC_ALPHA_GPDISP_HI16 3591 Alpha ECOFF and ELF relocations. Some of these treat the symbol or 3592 "addend" in some special way. For GPDISP_HI16 ("gpdisp") 3593 relocations, the symbol is ignored when writing; when reading, it 3594 will be the absolute section symbol. The addend is the 3595 displacement in bytes of the "lda" instruction from the "ldah" 3596 instruction (which is at the address of this reloc). 3597 3598 -- : BFD_RELOC_ALPHA_GPDISP_LO16 3599 For GPDISP_LO16 ("ignore") relocations, the symbol is handled as 3600 with GPDISP_HI16 relocs. The addend is ignored when writing the 3601 relocations out, and is filled in with the file's GP value on 3602 reading, for convenience. 3603 3604 -- : BFD_RELOC_ALPHA_GPDISP 3605 The ELF GPDISP relocation is exactly the same as the GPDISP_HI16 3606 relocation except that there is no accompanying GPDISP_LO16 3607 relocation. 3608 3609 -- : BFD_RELOC_ALPHA_LITERAL 3610 -- : BFD_RELOC_ALPHA_ELF_LITERAL 3611 -- : BFD_RELOC_ALPHA_LITUSE 3612 The Alpha LITERAL/LITUSE relocs are produced by a symbol reference; 3613 the assembler turns it into a LDQ instruction to load the address 3614 of the symbol, and then fills in a register in the real 3615 instruction. 3616 3617 The LITERAL reloc, at the LDQ instruction, refers to the .lita 3618 section symbol. The addend is ignored when writing, but is filled 3619 in with the file's GP value on reading, for convenience, as with 3620 the GPDISP_LO16 reloc. 3621 3622 The ELF_LITERAL reloc is somewhere between 16_GOTOFF and 3623 GPDISP_LO16. It should refer to the symbol to be referenced, as 3624 with 16_GOTOFF, but it generates output not based on the position 3625 within the .got section, but relative to the GP value chosen for 3626 the file during the final link stage. 3627 3628 The LITUSE reloc, on the instruction using the loaded address, 3629 gives information to the linker that it might be able to use to 3630 optimize away some literal section references. The symbol is 3631 ignored (read as the absolute section symbol), and the "addend" 3632 indicates the type of instruction using the register: 1 - "memory" 3633 fmt insn 2 - byte-manipulation (byte offset reg) 3 - jsr (target 3634 of branch) 3635 3636 -- : BFD_RELOC_ALPHA_HINT 3637 The HINT relocation indicates a value that should be filled into 3638 the "hint" field of a jmp/jsr/ret instruction, for possible branch- 3639 prediction logic which may be provided on some processors. 3640 3641 -- : BFD_RELOC_ALPHA_LINKAGE 3642 The LINKAGE relocation outputs a linkage pair in the object file, 3643 which is filled by the linker. 3644 3645 -- : BFD_RELOC_ALPHA_CODEADDR 3646 The CODEADDR relocation outputs a STO_CA in the object file, which 3647 is filled by the linker. 3648 3649 -- : BFD_RELOC_ALPHA_GPREL_HI16 3650 -- : BFD_RELOC_ALPHA_GPREL_LO16 3651 The GPREL_HI/LO relocations together form a 32-bit offset from the 3652 GP register. 3653 3654 -- : BFD_RELOC_ALPHA_BRSGP 3655 Like BFD_RELOC_23_PCREL_S2, except that the source and target must 3656 share a common GP, and the target address is adjusted for 3657 STO_ALPHA_STD_GPLOAD. 3658 3659 -- : BFD_RELOC_ALPHA_NOP 3660 The NOP relocation outputs a NOP if the longword displacement 3661 between two procedure entry points is < 2^21. 3662 3663 -- : BFD_RELOC_ALPHA_BSR 3664 The BSR relocation outputs a BSR if the longword displacement 3665 between two procedure entry points is < 2^21. 3666 3667 -- : BFD_RELOC_ALPHA_LDA 3668 The LDA relocation outputs a LDA if the longword displacement 3669 between two procedure entry points is < 2^16. 3670 3671 -- : BFD_RELOC_ALPHA_BOH 3672 The BOH relocation outputs a BSR if the longword displacement 3673 between two procedure entry points is < 2^21, or else a hint. 3674 3675 -- : BFD_RELOC_ALPHA_TLSGD 3676 -- : BFD_RELOC_ALPHA_TLSLDM 3677 -- : BFD_RELOC_ALPHA_DTPMOD64 3678 -- : BFD_RELOC_ALPHA_GOTDTPREL16 3679 -- : BFD_RELOC_ALPHA_DTPREL64 3680 -- : BFD_RELOC_ALPHA_DTPREL_HI16 3681 -- : BFD_RELOC_ALPHA_DTPREL_LO16 3682 -- : BFD_RELOC_ALPHA_DTPREL16 3683 -- : BFD_RELOC_ALPHA_GOTTPREL16 3684 -- : BFD_RELOC_ALPHA_TPREL64 3685 -- : BFD_RELOC_ALPHA_TPREL_HI16 3686 -- : BFD_RELOC_ALPHA_TPREL_LO16 3687 -- : BFD_RELOC_ALPHA_TPREL16 3688 Alpha thread-local storage relocations. 3689 3690 -- : BFD_RELOC_MIPS_JMP 3691 -- : BFD_RELOC_MICROMIPS_JMP 3692 The MIPS jump instruction. 3693 3694 -- : BFD_RELOC_MIPS16_JMP 3695 The MIPS16 jump instruction. 3696 3697 -- : BFD_RELOC_MIPS16_GPREL 3698 MIPS16 GP relative reloc. 3699 3700 -- : BFD_RELOC_HI16 3701 High 16 bits of 32-bit value; simple reloc. 3702 3703 -- : BFD_RELOC_HI16_S 3704 High 16 bits of 32-bit value but the low 16 bits will be sign 3705 extended and added to form the final result. If the low 16 bits 3706 form a negative number, we need to add one to the high value to 3707 compensate for the borrow when the low bits are added. 3708 3709 -- : BFD_RELOC_LO16 3710 Low 16 bits. 3711 3712 -- : BFD_RELOC_HI16_PCREL 3713 High 16 bits of 32-bit pc-relative value 3714 3715 -- : BFD_RELOC_HI16_S_PCREL 3716 High 16 bits of 32-bit pc-relative value, adjusted 3717 3718 -- : BFD_RELOC_LO16_PCREL 3719 Low 16 bits of pc-relative value 3720 3721 -- : BFD_RELOC_MIPS16_GOT16 3722 -- : BFD_RELOC_MIPS16_CALL16 3723 Equivalent of BFD_RELOC_MIPS_*, but with the MIPS16 layout of 3724 16-bit immediate fields 3725 3726 -- : BFD_RELOC_MIPS16_HI16 3727 MIPS16 high 16 bits of 32-bit value. 3728 3729 -- : BFD_RELOC_MIPS16_HI16_S 3730 MIPS16 high 16 bits of 32-bit value but the low 16 bits will be 3731 sign extended and added to form the final result. If the low 16 3732 bits form a negative number, we need to add one to the high value 3733 to compensate for the borrow when the low bits are added. 3734 3735 -- : BFD_RELOC_MIPS16_LO16 3736 MIPS16 low 16 bits. 3737 3738 -- : BFD_RELOC_MIPS16_TLS_GD 3739 -- : BFD_RELOC_MIPS16_TLS_LDM 3740 -- : BFD_RELOC_MIPS16_TLS_DTPREL_HI16 3741 -- : BFD_RELOC_MIPS16_TLS_DTPREL_LO16 3742 -- : BFD_RELOC_MIPS16_TLS_GOTTPREL 3743 -- : BFD_RELOC_MIPS16_TLS_TPREL_HI16 3744 -- : BFD_RELOC_MIPS16_TLS_TPREL_LO16 3745 MIPS16 TLS relocations 3746 3747 -- : BFD_RELOC_MIPS_LITERAL 3748 -- : BFD_RELOC_MICROMIPS_LITERAL 3749 Relocation against a MIPS literal section. 3750 3751 -- : BFD_RELOC_MICROMIPS_7_PCREL_S1 3752 -- : BFD_RELOC_MICROMIPS_10_PCREL_S1 3753 -- : BFD_RELOC_MICROMIPS_16_PCREL_S1 3754 microMIPS PC-relative relocations. 3755 3756 -- : BFD_RELOC_MICROMIPS_GPREL16 3757 -- : BFD_RELOC_MICROMIPS_HI16 3758 -- : BFD_RELOC_MICROMIPS_HI16_S 3759 -- : BFD_RELOC_MICROMIPS_LO16 3760 microMIPS versions of generic BFD relocs. 3761 3762 -- : BFD_RELOC_MIPS_GOT16 3763 -- : BFD_RELOC_MICROMIPS_GOT16 3764 -- : BFD_RELOC_MIPS_CALL16 3765 -- : BFD_RELOC_MICROMIPS_CALL16 3766 -- : BFD_RELOC_MIPS_GOT_HI16 3767 -- : BFD_RELOC_MICROMIPS_GOT_HI16 3768 -- : BFD_RELOC_MIPS_GOT_LO16 3769 -- : BFD_RELOC_MICROMIPS_GOT_LO16 3770 -- : BFD_RELOC_MIPS_CALL_HI16 3771 -- : BFD_RELOC_MICROMIPS_CALL_HI16 3772 -- : BFD_RELOC_MIPS_CALL_LO16 3773 -- : BFD_RELOC_MICROMIPS_CALL_LO16 3774 -- : BFD_RELOC_MIPS_SUB 3775 -- : BFD_RELOC_MICROMIPS_SUB 3776 -- : BFD_RELOC_MIPS_GOT_PAGE 3777 -- : BFD_RELOC_MICROMIPS_GOT_PAGE 3778 -- : BFD_RELOC_MIPS_GOT_OFST 3779 -- : BFD_RELOC_MICROMIPS_GOT_OFST 3780 -- : BFD_RELOC_MIPS_GOT_DISP 3781 -- : BFD_RELOC_MICROMIPS_GOT_DISP 3782 -- : BFD_RELOC_MIPS_SHIFT5 3783 -- : BFD_RELOC_MIPS_SHIFT6 3784 -- : BFD_RELOC_MIPS_INSERT_A 3785 -- : BFD_RELOC_MIPS_INSERT_B 3786 -- : BFD_RELOC_MIPS_DELETE 3787 -- : BFD_RELOC_MIPS_HIGHEST 3788 -- : BFD_RELOC_MICROMIPS_HIGHEST 3789 -- : BFD_RELOC_MIPS_HIGHER 3790 -- : BFD_RELOC_MICROMIPS_HIGHER 3791 -- : BFD_RELOC_MIPS_SCN_DISP 3792 -- : BFD_RELOC_MICROMIPS_SCN_DISP 3793 -- : BFD_RELOC_MIPS_REL16 3794 -- : BFD_RELOC_MIPS_RELGOT 3795 -- : BFD_RELOC_MIPS_JALR 3796 -- : BFD_RELOC_MICROMIPS_JALR 3797 -- : BFD_RELOC_MIPS_TLS_DTPMOD32 3798 -- : BFD_RELOC_MIPS_TLS_DTPREL32 3799 -- : BFD_RELOC_MIPS_TLS_DTPMOD64 3800 -- : BFD_RELOC_MIPS_TLS_DTPREL64 3801 -- : BFD_RELOC_MIPS_TLS_GD 3802 -- : BFD_RELOC_MICROMIPS_TLS_GD 3803 -- : BFD_RELOC_MIPS_TLS_LDM 3804 -- : BFD_RELOC_MICROMIPS_TLS_LDM 3805 -- : BFD_RELOC_MIPS_TLS_DTPREL_HI16 3806 -- : BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16 3807 -- : BFD_RELOC_MIPS_TLS_DTPREL_LO16 3808 -- : BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16 3809 -- : BFD_RELOC_MIPS_TLS_GOTTPREL 3810 -- : BFD_RELOC_MICROMIPS_TLS_GOTTPREL 3811 -- : BFD_RELOC_MIPS_TLS_TPREL32 3812 -- : BFD_RELOC_MIPS_TLS_TPREL64 3813 -- : BFD_RELOC_MIPS_TLS_TPREL_HI16 3814 -- : BFD_RELOC_MICROMIPS_TLS_TPREL_HI16 3815 -- : BFD_RELOC_MIPS_TLS_TPREL_LO16 3816 -- : BFD_RELOC_MICROMIPS_TLS_TPREL_LO16 3817 MIPS ELF relocations. 3818 3819 -- : BFD_RELOC_MIPS_COPY 3820 -- : BFD_RELOC_MIPS_JUMP_SLOT 3821 MIPS ELF relocations (VxWorks and PLT extensions). 3822 3823 -- : BFD_RELOC_MOXIE_10_PCREL 3824 Moxie ELF relocations. 3825 3826 -- : BFD_RELOC_FRV_LABEL16 3827 -- : BFD_RELOC_FRV_LABEL24 3828 -- : BFD_RELOC_FRV_LO16 3829 -- : BFD_RELOC_FRV_HI16 3830 -- : BFD_RELOC_FRV_GPREL12 3831 -- : BFD_RELOC_FRV_GPRELU12 3832 -- : BFD_RELOC_FRV_GPREL32 3833 -- : BFD_RELOC_FRV_GPRELHI 3834 -- : BFD_RELOC_FRV_GPRELLO 3835 -- : BFD_RELOC_FRV_GOT12 3836 -- : BFD_RELOC_FRV_GOTHI 3837 -- : BFD_RELOC_FRV_GOTLO 3838 -- : BFD_RELOC_FRV_FUNCDESC 3839 -- : BFD_RELOC_FRV_FUNCDESC_GOT12 3840 -- : BFD_RELOC_FRV_FUNCDESC_GOTHI 3841 -- : BFD_RELOC_FRV_FUNCDESC_GOTLO 3842 -- : BFD_RELOC_FRV_FUNCDESC_VALUE 3843 -- : BFD_RELOC_FRV_FUNCDESC_GOTOFF12 3844 -- : BFD_RELOC_FRV_FUNCDESC_GOTOFFHI 3845 -- : BFD_RELOC_FRV_FUNCDESC_GOTOFFLO 3846 -- : BFD_RELOC_FRV_GOTOFF12 3847 -- : BFD_RELOC_FRV_GOTOFFHI 3848 -- : BFD_RELOC_FRV_GOTOFFLO 3849 -- : BFD_RELOC_FRV_GETTLSOFF 3850 -- : BFD_RELOC_FRV_TLSDESC_VALUE 3851 -- : BFD_RELOC_FRV_GOTTLSDESC12 3852 -- : BFD_RELOC_FRV_GOTTLSDESCHI 3853 -- : BFD_RELOC_FRV_GOTTLSDESCLO 3854 -- : BFD_RELOC_FRV_TLSMOFF12 3855 -- : BFD_RELOC_FRV_TLSMOFFHI 3856 -- : BFD_RELOC_FRV_TLSMOFFLO 3857 -- : BFD_RELOC_FRV_GOTTLSOFF12 3858 -- : BFD_RELOC_FRV_GOTTLSOFFHI 3859 -- : BFD_RELOC_FRV_GOTTLSOFFLO 3860 -- : BFD_RELOC_FRV_TLSOFF 3861 -- : BFD_RELOC_FRV_TLSDESC_RELAX 3862 -- : BFD_RELOC_FRV_GETTLSOFF_RELAX 3863 -- : BFD_RELOC_FRV_TLSOFF_RELAX 3864 -- : BFD_RELOC_FRV_TLSMOFF 3865 Fujitsu Frv Relocations. 3866 3867 -- : BFD_RELOC_MN10300_GOTOFF24 3868 This is a 24bit GOT-relative reloc for the mn10300. 3869 3870 -- : BFD_RELOC_MN10300_GOT32 3871 This is a 32bit GOT-relative reloc for the mn10300, offset by two 3872 bytes in the instruction. 3873 3874 -- : BFD_RELOC_MN10300_GOT24 3875 This is a 24bit GOT-relative reloc for the mn10300, offset by two 3876 bytes in the instruction. 3877 3878 -- : BFD_RELOC_MN10300_GOT16 3879 This is a 16bit GOT-relative reloc for the mn10300, offset by two 3880 bytes in the instruction. 3881 3882 -- : BFD_RELOC_MN10300_COPY 3883 Copy symbol at runtime. 3884 3885 -- : BFD_RELOC_MN10300_GLOB_DAT 3886 Create GOT entry. 3887 3888 -- : BFD_RELOC_MN10300_JMP_SLOT 3889 Create PLT entry. 3890 3891 -- : BFD_RELOC_MN10300_RELATIVE 3892 Adjust by program base. 3893 3894 -- : BFD_RELOC_MN10300_SYM_DIFF 3895 Together with another reloc targeted at the same location, allows 3896 for a value that is the difference of two symbols in the same 3897 section. 3898 3899 -- : BFD_RELOC_MN10300_ALIGN 3900 The addend of this reloc is an alignment power that must be 3901 honoured at the offset's location, regardless of linker relaxation. 3902 3903 -- : BFD_RELOC_MN10300_TLS_GD 3904 -- : BFD_RELOC_MN10300_TLS_LD 3905 -- : BFD_RELOC_MN10300_TLS_LDO 3906 -- : BFD_RELOC_MN10300_TLS_GOTIE 3907 -- : BFD_RELOC_MN10300_TLS_IE 3908 -- : BFD_RELOC_MN10300_TLS_LE 3909 -- : BFD_RELOC_MN10300_TLS_DTPMOD 3910 -- : BFD_RELOC_MN10300_TLS_DTPOFF 3911 -- : BFD_RELOC_MN10300_TLS_TPOFF 3912 Various TLS-related relocations. 3913 3914 -- : BFD_RELOC_MN10300_32_PCREL 3915 This is a 32bit pcrel reloc for the mn10300, offset by two bytes 3916 in the instruction. 3917 3918 -- : BFD_RELOC_MN10300_16_PCREL 3919 This is a 16bit pcrel reloc for the mn10300, offset by two bytes 3920 in the instruction. 3921 3922 -- : BFD_RELOC_386_GOT32 3923 -- : BFD_RELOC_386_PLT32 3924 -- : BFD_RELOC_386_COPY 3925 -- : BFD_RELOC_386_GLOB_DAT 3926 -- : BFD_RELOC_386_JUMP_SLOT 3927 -- : BFD_RELOC_386_RELATIVE 3928 -- : BFD_RELOC_386_GOTOFF 3929 -- : BFD_RELOC_386_GOTPC 3930 -- : BFD_RELOC_386_TLS_TPOFF 3931 -- : BFD_RELOC_386_TLS_IE 3932 -- : BFD_RELOC_386_TLS_GOTIE 3933 -- : BFD_RELOC_386_TLS_LE 3934 -- : BFD_RELOC_386_TLS_GD 3935 -- : BFD_RELOC_386_TLS_LDM 3936 -- : BFD_RELOC_386_TLS_LDO_32 3937 -- : BFD_RELOC_386_TLS_IE_32 3938 -- : BFD_RELOC_386_TLS_LE_32 3939 -- : BFD_RELOC_386_TLS_DTPMOD32 3940 -- : BFD_RELOC_386_TLS_DTPOFF32 3941 -- : BFD_RELOC_386_TLS_TPOFF32 3942 -- : BFD_RELOC_386_TLS_GOTDESC 3943 -- : BFD_RELOC_386_TLS_DESC_CALL 3944 -- : BFD_RELOC_386_TLS_DESC 3945 -- : BFD_RELOC_386_IRELATIVE 3946 i386/elf relocations 3947 3948 -- : BFD_RELOC_X86_64_GOT32 3949 -- : BFD_RELOC_X86_64_PLT32 3950 -- : BFD_RELOC_X86_64_COPY 3951 -- : BFD_RELOC_X86_64_GLOB_DAT 3952 -- : BFD_RELOC_X86_64_JUMP_SLOT 3953 -- : BFD_RELOC_X86_64_RELATIVE 3954 -- : BFD_RELOC_X86_64_GOTPCREL 3955 -- : BFD_RELOC_X86_64_32S 3956 -- : BFD_RELOC_X86_64_DTPMOD64 3957 -- : BFD_RELOC_X86_64_DTPOFF64 3958 -- : BFD_RELOC_X86_64_TPOFF64 3959 -- : BFD_RELOC_X86_64_TLSGD 3960 -- : BFD_RELOC_X86_64_TLSLD 3961 -- : BFD_RELOC_X86_64_DTPOFF32 3962 -- : BFD_RELOC_X86_64_GOTTPOFF 3963 -- : BFD_RELOC_X86_64_TPOFF32 3964 -- : BFD_RELOC_X86_64_GOTOFF64 3965 -- : BFD_RELOC_X86_64_GOTPC32 3966 -- : BFD_RELOC_X86_64_GOT64 3967 -- : BFD_RELOC_X86_64_GOTPCREL64 3968 -- : BFD_RELOC_X86_64_GOTPC64 3969 -- : BFD_RELOC_X86_64_GOTPLT64 3970 -- : BFD_RELOC_X86_64_PLTOFF64 3971 -- : BFD_RELOC_X86_64_GOTPC32_TLSDESC 3972 -- : BFD_RELOC_X86_64_TLSDESC_CALL 3973 -- : BFD_RELOC_X86_64_TLSDESC 3974 -- : BFD_RELOC_X86_64_IRELATIVE 3975 x86-64/elf relocations 3976 3977 -- : BFD_RELOC_NS32K_IMM_8 3978 -- : BFD_RELOC_NS32K_IMM_16 3979 -- : BFD_RELOC_NS32K_IMM_32 3980 -- : BFD_RELOC_NS32K_IMM_8_PCREL 3981 -- : BFD_RELOC_NS32K_IMM_16_PCREL 3982 -- : BFD_RELOC_NS32K_IMM_32_PCREL 3983 -- : BFD_RELOC_NS32K_DISP_8 3984 -- : BFD_RELOC_NS32K_DISP_16 3985 -- : BFD_RELOC_NS32K_DISP_32 3986 -- : BFD_RELOC_NS32K_DISP_8_PCREL 3987 -- : BFD_RELOC_NS32K_DISP_16_PCREL 3988 -- : BFD_RELOC_NS32K_DISP_32_PCREL 3989 ns32k relocations 3990 3991 -- : BFD_RELOC_PDP11_DISP_8_PCREL 3992 -- : BFD_RELOC_PDP11_DISP_6_PCREL 3993 PDP11 relocations 3994 3995 -- : BFD_RELOC_PJ_CODE_HI16 3996 -- : BFD_RELOC_PJ_CODE_LO16 3997 -- : BFD_RELOC_PJ_CODE_DIR16 3998 -- : BFD_RELOC_PJ_CODE_DIR32 3999 -- : BFD_RELOC_PJ_CODE_REL16 4000 -- : BFD_RELOC_PJ_CODE_REL32 4001 Picojava relocs. Not all of these appear in object files. 4002 4003 -- : BFD_RELOC_PPC_B26 4004 -- : BFD_RELOC_PPC_BA26 4005 -- : BFD_RELOC_PPC_TOC16 4006 -- : BFD_RELOC_PPC_B16 4007 -- : BFD_RELOC_PPC_B16_BRTAKEN 4008 -- : BFD_RELOC_PPC_B16_BRNTAKEN 4009 -- : BFD_RELOC_PPC_BA16 4010 -- : BFD_RELOC_PPC_BA16_BRTAKEN 4011 -- : BFD_RELOC_PPC_BA16_BRNTAKEN 4012 -- : BFD_RELOC_PPC_COPY 4013 -- : BFD_RELOC_PPC_GLOB_DAT 4014 -- : BFD_RELOC_PPC_JMP_SLOT 4015 -- : BFD_RELOC_PPC_RELATIVE 4016 -- : BFD_RELOC_PPC_LOCAL24PC 4017 -- : BFD_RELOC_PPC_EMB_NADDR32 4018 -- : BFD_RELOC_PPC_EMB_NADDR16 4019 -- : BFD_RELOC_PPC_EMB_NADDR16_LO 4020 -- : BFD_RELOC_PPC_EMB_NADDR16_HI 4021 -- : BFD_RELOC_PPC_EMB_NADDR16_HA 4022 -- : BFD_RELOC_PPC_EMB_SDAI16 4023 -- : BFD_RELOC_PPC_EMB_SDA2I16 4024 -- : BFD_RELOC_PPC_EMB_SDA2REL 4025 -- : BFD_RELOC_PPC_EMB_SDA21 4026 -- : BFD_RELOC_PPC_EMB_MRKREF 4027 -- : BFD_RELOC_PPC_EMB_RELSEC16 4028 -- : BFD_RELOC_PPC_EMB_RELST_LO 4029 -- : BFD_RELOC_PPC_EMB_RELST_HI 4030 -- : BFD_RELOC_PPC_EMB_RELST_HA 4031 -- : BFD_RELOC_PPC_EMB_BIT_FLD 4032 -- : BFD_RELOC_PPC_EMB_RELSDA 4033 -- : BFD_RELOC_PPC_VLE_REL8 4034 -- : BFD_RELOC_PPC_VLE_REL15 4035 -- : BFD_RELOC_PPC_VLE_REL24 4036 -- : BFD_RELOC_PPC_VLE_LO16A 4037 -- : BFD_RELOC_PPC_VLE_LO16D 4038 -- : BFD_RELOC_PPC_VLE_HI16A 4039 -- : BFD_RELOC_PPC_VLE_HI16D 4040 -- : BFD_RELOC_PPC_VLE_HA16A 4041 -- : BFD_RELOC_PPC_VLE_HA16D 4042 -- : BFD_RELOC_PPC_VLE_SDA21 4043 -- : BFD_RELOC_PPC_VLE_SDA21_LO 4044 -- : BFD_RELOC_PPC_VLE_SDAREL_LO16A 4045 -- : BFD_RELOC_PPC_VLE_SDAREL_LO16D 4046 -- : BFD_RELOC_PPC_VLE_SDAREL_HI16A 4047 -- : BFD_RELOC_PPC_VLE_SDAREL_HI16D 4048 -- : BFD_RELOC_PPC_VLE_SDAREL_HA16A 4049 -- : BFD_RELOC_PPC_VLE_SDAREL_HA16D 4050 -- : BFD_RELOC_PPC64_HIGHER 4051 -- : BFD_RELOC_PPC64_HIGHER_S 4052 -- : BFD_RELOC_PPC64_HIGHEST 4053 -- : BFD_RELOC_PPC64_HIGHEST_S 4054 -- : BFD_RELOC_PPC64_TOC16_LO 4055 -- : BFD_RELOC_PPC64_TOC16_HI 4056 -- : BFD_RELOC_PPC64_TOC16_HA 4057 -- : BFD_RELOC_PPC64_TOC 4058 -- : BFD_RELOC_PPC64_PLTGOT16 4059 -- : BFD_RELOC_PPC64_PLTGOT16_LO 4060 -- : BFD_RELOC_PPC64_PLTGOT16_HI 4061 -- : BFD_RELOC_PPC64_PLTGOT16_HA 4062 -- : BFD_RELOC_PPC64_ADDR16_DS 4063 -- : BFD_RELOC_PPC64_ADDR16_LO_DS 4064 -- : BFD_RELOC_PPC64_GOT16_DS 4065 -- : BFD_RELOC_PPC64_GOT16_LO_DS 4066 -- : BFD_RELOC_PPC64_PLT16_LO_DS 4067 -- : BFD_RELOC_PPC64_SECTOFF_DS 4068 -- : BFD_RELOC_PPC64_SECTOFF_LO_DS 4069 -- : BFD_RELOC_PPC64_TOC16_DS 4070 -- : BFD_RELOC_PPC64_TOC16_LO_DS 4071 -- : BFD_RELOC_PPC64_PLTGOT16_DS 4072 -- : BFD_RELOC_PPC64_PLTGOT16_LO_DS 4073 Power(rs6000) and PowerPC relocations. 4074 4075 -- : BFD_RELOC_PPC_TLS 4076 -- : BFD_RELOC_PPC_TLSGD 4077 -- : BFD_RELOC_PPC_TLSLD 4078 -- : BFD_RELOC_PPC_DTPMOD 4079 -- : BFD_RELOC_PPC_TPREL16 4080 -- : BFD_RELOC_PPC_TPREL16_LO 4081 -- : BFD_RELOC_PPC_TPREL16_HI 4082 -- : BFD_RELOC_PPC_TPREL16_HA 4083 -- : BFD_RELOC_PPC_TPREL 4084 -- : BFD_RELOC_PPC_DTPREL16 4085 -- : BFD_RELOC_PPC_DTPREL16_LO 4086 -- : BFD_RELOC_PPC_DTPREL16_HI 4087 -- : BFD_RELOC_PPC_DTPREL16_HA 4088 -- : BFD_RELOC_PPC_DTPREL 4089 -- : BFD_RELOC_PPC_GOT_TLSGD16 4090 -- : BFD_RELOC_PPC_GOT_TLSGD16_LO 4091 -- : BFD_RELOC_PPC_GOT_TLSGD16_HI 4092 -- : BFD_RELOC_PPC_GOT_TLSGD16_HA 4093 -- : BFD_RELOC_PPC_GOT_TLSLD16 4094 -- : BFD_RELOC_PPC_GOT_TLSLD16_LO 4095 -- : BFD_RELOC_PPC_GOT_TLSLD16_HI 4096 -- : BFD_RELOC_PPC_GOT_TLSLD16_HA 4097 -- : BFD_RELOC_PPC_GOT_TPREL16 4098 -- : BFD_RELOC_PPC_GOT_TPREL16_LO 4099 -- : BFD_RELOC_PPC_GOT_TPREL16_HI 4100 -- : BFD_RELOC_PPC_GOT_TPREL16_HA 4101 -- : BFD_RELOC_PPC_GOT_DTPREL16 4102 -- : BFD_RELOC_PPC_GOT_DTPREL16_LO 4103 -- : BFD_RELOC_PPC_GOT_DTPREL16_HI 4104 -- : BFD_RELOC_PPC_GOT_DTPREL16_HA 4105 -- : BFD_RELOC_PPC64_TPREL16_DS 4106 -- : BFD_RELOC_PPC64_TPREL16_LO_DS 4107 -- : BFD_RELOC_PPC64_TPREL16_HIGHER 4108 -- : BFD_RELOC_PPC64_TPREL16_HIGHERA 4109 -- : BFD_RELOC_PPC64_TPREL16_HIGHEST 4110 -- : BFD_RELOC_PPC64_TPREL16_HIGHESTA 4111 -- : BFD_RELOC_PPC64_DTPREL16_DS 4112 -- : BFD_RELOC_PPC64_DTPREL16_LO_DS 4113 -- : BFD_RELOC_PPC64_DTPREL16_HIGHER 4114 -- : BFD_RELOC_PPC64_DTPREL16_HIGHERA 4115 -- : BFD_RELOC_PPC64_DTPREL16_HIGHEST 4116 -- : BFD_RELOC_PPC64_DTPREL16_HIGHESTA 4117 PowerPC and PowerPC64 thread-local storage relocations. 4118 4119 -- : BFD_RELOC_I370_D12 4120 IBM 370/390 relocations 4121 4122 -- : BFD_RELOC_CTOR 4123 The type of reloc used to build a constructor table - at the moment 4124 probably a 32 bit wide absolute relocation, but the target can 4125 choose. It generally does map to one of the other relocation 4126 types. 4127 4128 -- : BFD_RELOC_ARM_PCREL_BRANCH 4129 ARM 26 bit pc-relative branch. The lowest two bits must be zero 4130 and are not stored in the instruction. 4131 4132 -- : BFD_RELOC_ARM_PCREL_BLX 4133 ARM 26 bit pc-relative branch. The lowest bit must be zero and is 4134 not stored in the instruction. The 2nd lowest bit comes from a 1 4135 bit field in the instruction. 4136 4137 -- : BFD_RELOC_THUMB_PCREL_BLX 4138 Thumb 22 bit pc-relative branch. The lowest bit must be zero and 4139 is not stored in the instruction. The 2nd lowest bit comes from a 4140 1 bit field in the instruction. 4141 4142 -- : BFD_RELOC_ARM_PCREL_CALL 4143 ARM 26-bit pc-relative branch for an unconditional BL or BLX 4144 instruction. 4145 4146 -- : BFD_RELOC_ARM_PCREL_JUMP 4147 ARM 26-bit pc-relative branch for B or conditional BL instruction. 4148 4149 -- : BFD_RELOC_THUMB_PCREL_BRANCH7 4150 -- : BFD_RELOC_THUMB_PCREL_BRANCH9 4151 -- : BFD_RELOC_THUMB_PCREL_BRANCH12 4152 -- : BFD_RELOC_THUMB_PCREL_BRANCH20 4153 -- : BFD_RELOC_THUMB_PCREL_BRANCH23 4154 -- : BFD_RELOC_THUMB_PCREL_BRANCH25 4155 Thumb 7-, 9-, 12-, 20-, 23-, and 25-bit pc-relative branches. The 4156 lowest bit must be zero and is not stored in the instruction. 4157 Note that the corresponding ELF R_ARM_THM_JUMPnn constant has an 4158 "nn" one smaller in all cases. Note further that BRANCH23 4159 corresponds to R_ARM_THM_CALL. 4160 4161 -- : BFD_RELOC_ARM_OFFSET_IMM 4162 12-bit immediate offset, used in ARM-format ldr and str 4163 instructions. 4164 4165 -- : BFD_RELOC_ARM_THUMB_OFFSET 4166 5-bit immediate offset, used in Thumb-format ldr and str 4167 instructions. 4168 4169 -- : BFD_RELOC_ARM_TARGET1 4170 Pc-relative or absolute relocation depending on target. Used for 4171 entries in .init_array sections. 4172 4173 -- : BFD_RELOC_ARM_ROSEGREL32 4174 Read-only segment base relative address. 4175 4176 -- : BFD_RELOC_ARM_SBREL32 4177 Data segment base relative address. 4178 4179 -- : BFD_RELOC_ARM_TARGET2 4180 This reloc is used for references to RTTI data from exception 4181 handling tables. The actual definition depends on the target. It 4182 may be a pc-relative or some form of GOT-indirect relocation. 4183 4184 -- : BFD_RELOC_ARM_PREL31 4185 31-bit PC relative address. 4186 4187 -- : BFD_RELOC_ARM_MOVW 4188 -- : BFD_RELOC_ARM_MOVT 4189 -- : BFD_RELOC_ARM_MOVW_PCREL 4190 -- : BFD_RELOC_ARM_MOVT_PCREL 4191 -- : BFD_RELOC_ARM_THUMB_MOVW 4192 -- : BFD_RELOC_ARM_THUMB_MOVT 4193 -- : BFD_RELOC_ARM_THUMB_MOVW_PCREL 4194 -- : BFD_RELOC_ARM_THUMB_MOVT_PCREL 4195 Low and High halfword relocations for MOVW and MOVT instructions. 4196 4197 -- : BFD_RELOC_ARM_JUMP_SLOT 4198 -- : BFD_RELOC_ARM_GLOB_DAT 4199 -- : BFD_RELOC_ARM_GOT32 4200 -- : BFD_RELOC_ARM_PLT32 4201 -- : BFD_RELOC_ARM_RELATIVE 4202 -- : BFD_RELOC_ARM_GOTOFF 4203 -- : BFD_RELOC_ARM_GOTPC 4204 -- : BFD_RELOC_ARM_GOT_PREL 4205 Relocations for setting up GOTs and PLTs for shared libraries. 4206 4207 -- : BFD_RELOC_ARM_TLS_GD32 4208 -- : BFD_RELOC_ARM_TLS_LDO32 4209 -- : BFD_RELOC_ARM_TLS_LDM32 4210 -- : BFD_RELOC_ARM_TLS_DTPOFF32 4211 -- : BFD_RELOC_ARM_TLS_DTPMOD32 4212 -- : BFD_RELOC_ARM_TLS_TPOFF32 4213 -- : BFD_RELOC_ARM_TLS_IE32 4214 -- : BFD_RELOC_ARM_TLS_LE32 4215 -- : BFD_RELOC_ARM_TLS_GOTDESC 4216 -- : BFD_RELOC_ARM_TLS_CALL 4217 -- : BFD_RELOC_ARM_THM_TLS_CALL 4218 -- : BFD_RELOC_ARM_TLS_DESCSEQ 4219 -- : BFD_RELOC_ARM_THM_TLS_DESCSEQ 4220 -- : BFD_RELOC_ARM_TLS_DESC 4221 ARM thread-local storage relocations. 4222 4223 -- : BFD_RELOC_ARM_ALU_PC_G0_NC 4224 -- : BFD_RELOC_ARM_ALU_PC_G0 4225 -- : BFD_RELOC_ARM_ALU_PC_G1_NC 4226 -- : BFD_RELOC_ARM_ALU_PC_G1 4227 -- : BFD_RELOC_ARM_ALU_PC_G2 4228 -- : BFD_RELOC_ARM_LDR_PC_G0 4229 -- : BFD_RELOC_ARM_LDR_PC_G1 4230 -- : BFD_RELOC_ARM_LDR_PC_G2 4231 -- : BFD_RELOC_ARM_LDRS_PC_G0 4232 -- : BFD_RELOC_ARM_LDRS_PC_G1 4233 -- : BFD_RELOC_ARM_LDRS_PC_G2 4234 -- : BFD_RELOC_ARM_LDC_PC_G0 4235 -- : BFD_RELOC_ARM_LDC_PC_G1 4236 -- : BFD_RELOC_ARM_LDC_PC_G2 4237 -- : BFD_RELOC_ARM_ALU_SB_G0_NC 4238 -- : BFD_RELOC_ARM_ALU_SB_G0 4239 -- : BFD_RELOC_ARM_ALU_SB_G1_NC 4240 -- : BFD_RELOC_ARM_ALU_SB_G1 4241 -- : BFD_RELOC_ARM_ALU_SB_G2 4242 -- : BFD_RELOC_ARM_LDR_SB_G0 4243 -- : BFD_RELOC_ARM_LDR_SB_G1 4244 -- : BFD_RELOC_ARM_LDR_SB_G2 4245 -- : BFD_RELOC_ARM_LDRS_SB_G0 4246 -- : BFD_RELOC_ARM_LDRS_SB_G1 4247 -- : BFD_RELOC_ARM_LDRS_SB_G2 4248 -- : BFD_RELOC_ARM_LDC_SB_G0 4249 -- : BFD_RELOC_ARM_LDC_SB_G1 4250 -- : BFD_RELOC_ARM_LDC_SB_G2 4251 ARM group relocations. 4252 4253 -- : BFD_RELOC_ARM_V4BX 4254 Annotation of BX instructions. 4255 4256 -- : BFD_RELOC_ARM_IRELATIVE 4257 ARM support for STT_GNU_IFUNC. 4258 4259 -- : BFD_RELOC_ARM_IMMEDIATE 4260 -- : BFD_RELOC_ARM_ADRL_IMMEDIATE 4261 -- : BFD_RELOC_ARM_T32_IMMEDIATE 4262 -- : BFD_RELOC_ARM_T32_ADD_IMM 4263 -- : BFD_RELOC_ARM_T32_IMM12 4264 -- : BFD_RELOC_ARM_T32_ADD_PC12 4265 -- : BFD_RELOC_ARM_SHIFT_IMM 4266 -- : BFD_RELOC_ARM_SMC 4267 -- : BFD_RELOC_ARM_HVC 4268 -- : BFD_RELOC_ARM_SWI 4269 -- : BFD_RELOC_ARM_MULTI 4270 -- : BFD_RELOC_ARM_CP_OFF_IMM 4271 -- : BFD_RELOC_ARM_CP_OFF_IMM_S2 4272 -- : BFD_RELOC_ARM_T32_CP_OFF_IMM 4273 -- : BFD_RELOC_ARM_T32_CP_OFF_IMM_S2 4274 -- : BFD_RELOC_ARM_ADR_IMM 4275 -- : BFD_RELOC_ARM_LDR_IMM 4276 -- : BFD_RELOC_ARM_LITERAL 4277 -- : BFD_RELOC_ARM_IN_POOL 4278 -- : BFD_RELOC_ARM_OFFSET_IMM8 4279 -- : BFD_RELOC_ARM_T32_OFFSET_U8 4280 -- : BFD_RELOC_ARM_T32_OFFSET_IMM 4281 -- : BFD_RELOC_ARM_HWLITERAL 4282 -- : BFD_RELOC_ARM_THUMB_ADD 4283 -- : BFD_RELOC_ARM_THUMB_IMM 4284 -- : BFD_RELOC_ARM_THUMB_SHIFT 4285 These relocs are only used within the ARM assembler. They are not 4286 (at present) written to any object files. 4287 4288 -- : BFD_RELOC_SH_PCDISP8BY2 4289 -- : BFD_RELOC_SH_PCDISP12BY2 4290 -- : BFD_RELOC_SH_IMM3 4291 -- : BFD_RELOC_SH_IMM3U 4292 -- : BFD_RELOC_SH_DISP12 4293 -- : BFD_RELOC_SH_DISP12BY2 4294 -- : BFD_RELOC_SH_DISP12BY4 4295 -- : BFD_RELOC_SH_DISP12BY8 4296 -- : BFD_RELOC_SH_DISP20 4297 -- : BFD_RELOC_SH_DISP20BY8 4298 -- : BFD_RELOC_SH_IMM4 4299 -- : BFD_RELOC_SH_IMM4BY2 4300 -- : BFD_RELOC_SH_IMM4BY4 4301 -- : BFD_RELOC_SH_IMM8 4302 -- : BFD_RELOC_SH_IMM8BY2 4303 -- : BFD_RELOC_SH_IMM8BY4 4304 -- : BFD_RELOC_SH_PCRELIMM8BY2 4305 -- : BFD_RELOC_SH_PCRELIMM8BY4 4306 -- : BFD_RELOC_SH_SWITCH16 4307 -- : BFD_RELOC_SH_SWITCH32 4308 -- : BFD_RELOC_SH_USES 4309 -- : BFD_RELOC_SH_COUNT 4310 -- : BFD_RELOC_SH_ALIGN 4311 -- : BFD_RELOC_SH_CODE 4312 -- : BFD_RELOC_SH_DATA 4313 -- : BFD_RELOC_SH_LABEL 4314 -- : BFD_RELOC_SH_LOOP_START 4315 -- : BFD_RELOC_SH_LOOP_END 4316 -- : BFD_RELOC_SH_COPY 4317 -- : BFD_RELOC_SH_GLOB_DAT 4318 -- : BFD_RELOC_SH_JMP_SLOT 4319 -- : BFD_RELOC_SH_RELATIVE 4320 -- : BFD_RELOC_SH_GOTPC 4321 -- : BFD_RELOC_SH_GOT_LOW16 4322 -- : BFD_RELOC_SH_GOT_MEDLOW16 4323 -- : BFD_RELOC_SH_GOT_MEDHI16 4324 -- : BFD_RELOC_SH_GOT_HI16 4325 -- : BFD_RELOC_SH_GOTPLT_LOW16 4326 -- : BFD_RELOC_SH_GOTPLT_MEDLOW16 4327 -- : BFD_RELOC_SH_GOTPLT_MEDHI16 4328 -- : BFD_RELOC_SH_GOTPLT_HI16 4329 -- : BFD_RELOC_SH_PLT_LOW16 4330 -- : BFD_RELOC_SH_PLT_MEDLOW16 4331 -- : BFD_RELOC_SH_PLT_MEDHI16 4332 -- : BFD_RELOC_SH_PLT_HI16 4333 -- : BFD_RELOC_SH_GOTOFF_LOW16 4334 -- : BFD_RELOC_SH_GOTOFF_MEDLOW16 4335 -- : BFD_RELOC_SH_GOTOFF_MEDHI16 4336 -- : BFD_RELOC_SH_GOTOFF_HI16 4337 -- : BFD_RELOC_SH_GOTPC_LOW16 4338 -- : BFD_RELOC_SH_GOTPC_MEDLOW16 4339 -- : BFD_RELOC_SH_GOTPC_MEDHI16 4340 -- : BFD_RELOC_SH_GOTPC_HI16 4341 -- : BFD_RELOC_SH_COPY64 4342 -- : BFD_RELOC_SH_GLOB_DAT64 4343 -- : BFD_RELOC_SH_JMP_SLOT64 4344 -- : BFD_RELOC_SH_RELATIVE64 4345 -- : BFD_RELOC_SH_GOT10BY4 4346 -- : BFD_RELOC_SH_GOT10BY8 4347 -- : BFD_RELOC_SH_GOTPLT10BY4 4348 -- : BFD_RELOC_SH_GOTPLT10BY8 4349 -- : BFD_RELOC_SH_GOTPLT32 4350 -- : BFD_RELOC_SH_SHMEDIA_CODE 4351 -- : BFD_RELOC_SH_IMMU5 4352 -- : BFD_RELOC_SH_IMMS6 4353 -- : BFD_RELOC_SH_IMMS6BY32 4354 -- : BFD_RELOC_SH_IMMU6 4355 -- : BFD_RELOC_SH_IMMS10 4356 -- : BFD_RELOC_SH_IMMS10BY2 4357 -- : BFD_RELOC_SH_IMMS10BY4 4358 -- : BFD_RELOC_SH_IMMS10BY8 4359 -- : BFD_RELOC_SH_IMMS16 4360 -- : BFD_RELOC_SH_IMMU16 4361 -- : BFD_RELOC_SH_IMM_LOW16 4362 -- : BFD_RELOC_SH_IMM_LOW16_PCREL 4363 -- : BFD_RELOC_SH_IMM_MEDLOW16 4364 -- : BFD_RELOC_SH_IMM_MEDLOW16_PCREL 4365 -- : BFD_RELOC_SH_IMM_MEDHI16 4366 -- : BFD_RELOC_SH_IMM_MEDHI16_PCREL 4367 -- : BFD_RELOC_SH_IMM_HI16 4368 -- : BFD_RELOC_SH_IMM_HI16_PCREL 4369 -- : BFD_RELOC_SH_PT_16 4370 -- : BFD_RELOC_SH_TLS_GD_32 4371 -- : BFD_RELOC_SH_TLS_LD_32 4372 -- : BFD_RELOC_SH_TLS_LDO_32 4373 -- : BFD_RELOC_SH_TLS_IE_32 4374 -- : BFD_RELOC_SH_TLS_LE_32 4375 -- : BFD_RELOC_SH_TLS_DTPMOD32 4376 -- : BFD_RELOC_SH_TLS_DTPOFF32 4377 -- : BFD_RELOC_SH_TLS_TPOFF32 4378 -- : BFD_RELOC_SH_GOT20 4379 -- : BFD_RELOC_SH_GOTOFF20 4380 -- : BFD_RELOC_SH_GOTFUNCDESC 4381 -- : BFD_RELOC_SH_GOTFUNCDESC20 4382 -- : BFD_RELOC_SH_GOTOFFFUNCDESC 4383 -- : BFD_RELOC_SH_GOTOFFFUNCDESC20 4384 -- : BFD_RELOC_SH_FUNCDESC 4385 Renesas / SuperH SH relocs. Not all of these appear in object 4386 files. 4387 4388 -- : BFD_RELOC_ARC_B22_PCREL 4389 ARC Cores relocs. ARC 22 bit pc-relative branch. The lowest two 4390 bits must be zero and are not stored in the instruction. The high 4391 20 bits are installed in bits 26 through 7 of the instruction. 4392 4393 -- : BFD_RELOC_ARC_B26 4394 ARC 26 bit absolute branch. The lowest two bits must be zero and 4395 are not stored in the instruction. The high 24 bits are installed 4396 in bits 23 through 0. 4397 4398 -- : BFD_RELOC_BFIN_16_IMM 4399 ADI Blackfin 16 bit immediate absolute reloc. 4400 4401 -- : BFD_RELOC_BFIN_16_HIGH 4402 ADI Blackfin 16 bit immediate absolute reloc higher 16 bits. 4403 4404 -- : BFD_RELOC_BFIN_4_PCREL 4405 ADI Blackfin 'a' part of LSETUP. 4406 4407 -- : BFD_RELOC_BFIN_5_PCREL 4408 ADI Blackfin. 4409 4410 -- : BFD_RELOC_BFIN_16_LOW 4411 ADI Blackfin 16 bit immediate absolute reloc lower 16 bits. 4412 4413 -- : BFD_RELOC_BFIN_10_PCREL 4414 ADI Blackfin. 4415 4416 -- : BFD_RELOC_BFIN_11_PCREL 4417 ADI Blackfin 'b' part of LSETUP. 4418 4419 -- : BFD_RELOC_BFIN_12_PCREL_JUMP 4420 ADI Blackfin. 4421 4422 -- : BFD_RELOC_BFIN_12_PCREL_JUMP_S 4423 ADI Blackfin Short jump, pcrel. 4424 4425 -- : BFD_RELOC_BFIN_24_PCREL_CALL_X 4426 ADI Blackfin Call.x not implemented. 4427 4428 -- : BFD_RELOC_BFIN_24_PCREL_JUMP_L 4429 ADI Blackfin Long Jump pcrel. 4430 4431 -- : BFD_RELOC_BFIN_GOT17M4 4432 -- : BFD_RELOC_BFIN_GOTHI 4433 -- : BFD_RELOC_BFIN_GOTLO 4434 -- : BFD_RELOC_BFIN_FUNCDESC 4435 -- : BFD_RELOC_BFIN_FUNCDESC_GOT17M4 4436 -- : BFD_RELOC_BFIN_FUNCDESC_GOTHI 4437 -- : BFD_RELOC_BFIN_FUNCDESC_GOTLO 4438 -- : BFD_RELOC_BFIN_FUNCDESC_VALUE 4439 -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4 4440 -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI 4441 -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO 4442 -- : BFD_RELOC_BFIN_GOTOFF17M4 4443 -- : BFD_RELOC_BFIN_GOTOFFHI 4444 -- : BFD_RELOC_BFIN_GOTOFFLO 4445 ADI Blackfin FD-PIC relocations. 4446 4447 -- : BFD_RELOC_BFIN_GOT 4448 ADI Blackfin GOT relocation. 4449 4450 -- : BFD_RELOC_BFIN_PLTPC 4451 ADI Blackfin PLTPC relocation. 4452 4453 -- : BFD_ARELOC_BFIN_PUSH 4454 ADI Blackfin arithmetic relocation. 4455 4456 -- : BFD_ARELOC_BFIN_CONST 4457 ADI Blackfin arithmetic relocation. 4458 4459 -- : BFD_ARELOC_BFIN_ADD 4460 ADI Blackfin arithmetic relocation. 4461 4462 -- : BFD_ARELOC_BFIN_SUB 4463 ADI Blackfin arithmetic relocation. 4464 4465 -- : BFD_ARELOC_BFIN_MULT 4466 ADI Blackfin arithmetic relocation. 4467 4468 -- : BFD_ARELOC_BFIN_DIV 4469 ADI Blackfin arithmetic relocation. 4470 4471 -- : BFD_ARELOC_BFIN_MOD 4472 ADI Blackfin arithmetic relocation. 4473 4474 -- : BFD_ARELOC_BFIN_LSHIFT 4475 ADI Blackfin arithmetic relocation. 4476 4477 -- : BFD_ARELOC_BFIN_RSHIFT 4478 ADI Blackfin arithmetic relocation. 4479 4480 -- : BFD_ARELOC_BFIN_AND 4481 ADI Blackfin arithmetic relocation. 4482 4483 -- : BFD_ARELOC_BFIN_OR 4484 ADI Blackfin arithmetic relocation. 4485 4486 -- : BFD_ARELOC_BFIN_XOR 4487 ADI Blackfin arithmetic relocation. 4488 4489 -- : BFD_ARELOC_BFIN_LAND 4490 ADI Blackfin arithmetic relocation. 4491 4492 -- : BFD_ARELOC_BFIN_LOR 4493 ADI Blackfin arithmetic relocation. 4494 4495 -- : BFD_ARELOC_BFIN_LEN 4496 ADI Blackfin arithmetic relocation. 4497 4498 -- : BFD_ARELOC_BFIN_NEG 4499 ADI Blackfin arithmetic relocation. 4500 4501 -- : BFD_ARELOC_BFIN_COMP 4502 ADI Blackfin arithmetic relocation. 4503 4504 -- : BFD_ARELOC_BFIN_PAGE 4505 ADI Blackfin arithmetic relocation. 4506 4507 -- : BFD_ARELOC_BFIN_HWPAGE 4508 ADI Blackfin arithmetic relocation. 4509 4510 -- : BFD_ARELOC_BFIN_ADDR 4511 ADI Blackfin arithmetic relocation. 4512 4513 -- : BFD_RELOC_D10V_10_PCREL_R 4514 Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2 4515 bits assumed to be 0. 4516 4517 -- : BFD_RELOC_D10V_10_PCREL_L 4518 Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2 4519 bits assumed to be 0. This is the same as the previous reloc 4520 except it is in the left container, i.e., shifted left 15 bits. 4521 4522 -- : BFD_RELOC_D10V_18 4523 This is an 18-bit reloc with the right 2 bits assumed to be 0. 4524 4525 -- : BFD_RELOC_D10V_18_PCREL 4526 This is an 18-bit reloc with the right 2 bits assumed to be 0. 4527 4528 -- : BFD_RELOC_D30V_6 4529 Mitsubishi D30V relocs. This is a 6-bit absolute reloc. 4530 4531 -- : BFD_RELOC_D30V_9_PCREL 4532 This is a 6-bit pc-relative reloc with the right 3 bits assumed to 4533 be 0. 4534 4535 -- : BFD_RELOC_D30V_9_PCREL_R 4536 This is a 6-bit pc-relative reloc with the right 3 bits assumed to 4537 be 0. Same as the previous reloc but on the right side of the 4538 container. 4539 4540 -- : BFD_RELOC_D30V_15 4541 This is a 12-bit absolute reloc with the right 3 bitsassumed to be 4542 0. 4543 4544 -- : BFD_RELOC_D30V_15_PCREL 4545 This is a 12-bit pc-relative reloc with the right 3 bits assumed 4546 to be 0. 4547 4548 -- : BFD_RELOC_D30V_15_PCREL_R 4549 This is a 12-bit pc-relative reloc with the right 3 bits assumed 4550 to be 0. Same as the previous reloc but on the right side of the 4551 container. 4552 4553 -- : BFD_RELOC_D30V_21 4554 This is an 18-bit absolute reloc with the right 3 bits assumed to 4555 be 0. 4556 4557 -- : BFD_RELOC_D30V_21_PCREL 4558 This is an 18-bit pc-relative reloc with the right 3 bits assumed 4559 to be 0. 4560 4561 -- : BFD_RELOC_D30V_21_PCREL_R 4562 This is an 18-bit pc-relative reloc with the right 3 bits assumed 4563 to be 0. Same as the previous reloc but on the right side of the 4564 container. 4565 4566 -- : BFD_RELOC_D30V_32 4567 This is a 32-bit absolute reloc. 4568 4569 -- : BFD_RELOC_D30V_32_PCREL 4570 This is a 32-bit pc-relative reloc. 4571 4572 -- : BFD_RELOC_DLX_HI16_S 4573 DLX relocs 4574 4575 -- : BFD_RELOC_DLX_LO16 4576 DLX relocs 4577 4578 -- : BFD_RELOC_DLX_JMP26 4579 DLX relocs 4580 4581 -- : BFD_RELOC_M32C_HI8 4582 -- : BFD_RELOC_M32C_RL_JUMP 4583 -- : BFD_RELOC_M32C_RL_1ADDR 4584 -- : BFD_RELOC_M32C_RL_2ADDR 4585 Renesas M16C/M32C Relocations. 4586 4587 -- : BFD_RELOC_M32R_24 4588 Renesas M32R (formerly Mitsubishi M32R) relocs. This is a 24 bit 4589 absolute address. 4590 4591 -- : BFD_RELOC_M32R_10_PCREL 4592 This is a 10-bit pc-relative reloc with the right 2 bits assumed 4593 to be 0. 4594 4595 -- : BFD_RELOC_M32R_18_PCREL 4596 This is an 18-bit reloc with the right 2 bits assumed to be 0. 4597 4598 -- : BFD_RELOC_M32R_26_PCREL 4599 This is a 26-bit reloc with the right 2 bits assumed to be 0. 4600 4601 -- : BFD_RELOC_M32R_HI16_ULO 4602 This is a 16-bit reloc containing the high 16 bits of an address 4603 used when the lower 16 bits are treated as unsigned. 4604 4605 -- : BFD_RELOC_M32R_HI16_SLO 4606 This is a 16-bit reloc containing the high 16 bits of an address 4607 used when the lower 16 bits are treated as signed. 4608 4609 -- : BFD_RELOC_M32R_LO16 4610 This is a 16-bit reloc containing the lower 16 bits of an address. 4611 4612 -- : BFD_RELOC_M32R_SDA16 4613 This is a 16-bit reloc containing the small data area offset for 4614 use in add3, load, and store instructions. 4615 4616 -- : BFD_RELOC_M32R_GOT24 4617 -- : BFD_RELOC_M32R_26_PLTREL 4618 -- : BFD_RELOC_M32R_COPY 4619 -- : BFD_RELOC_M32R_GLOB_DAT 4620 -- : BFD_RELOC_M32R_JMP_SLOT 4621 -- : BFD_RELOC_M32R_RELATIVE 4622 -- : BFD_RELOC_M32R_GOTOFF 4623 -- : BFD_RELOC_M32R_GOTOFF_HI_ULO 4624 -- : BFD_RELOC_M32R_GOTOFF_HI_SLO 4625 -- : BFD_RELOC_M32R_GOTOFF_LO 4626 -- : BFD_RELOC_M32R_GOTPC24 4627 -- : BFD_RELOC_M32R_GOT16_HI_ULO 4628 -- : BFD_RELOC_M32R_GOT16_HI_SLO 4629 -- : BFD_RELOC_M32R_GOT16_LO 4630 -- : BFD_RELOC_M32R_GOTPC_HI_ULO 4631 -- : BFD_RELOC_M32R_GOTPC_HI_SLO 4632 -- : BFD_RELOC_M32R_GOTPC_LO 4633 For PIC. 4634 4635 -- : BFD_RELOC_V850_9_PCREL 4636 This is a 9-bit reloc 4637 4638 -- : BFD_RELOC_V850_22_PCREL 4639 This is a 22-bit reloc 4640 4641 -- : BFD_RELOC_V850_SDA_16_16_OFFSET 4642 This is a 16 bit offset from the short data area pointer. 4643 4644 -- : BFD_RELOC_V850_SDA_15_16_OFFSET 4645 This is a 16 bit offset (of which only 15 bits are used) from the 4646 short data area pointer. 4647 4648 -- : BFD_RELOC_V850_ZDA_16_16_OFFSET 4649 This is a 16 bit offset from the zero data area pointer. 4650 4651 -- : BFD_RELOC_V850_ZDA_15_16_OFFSET 4652 This is a 16 bit offset (of which only 15 bits are used) from the 4653 zero data area pointer. 4654 4655 -- : BFD_RELOC_V850_TDA_6_8_OFFSET 4656 This is an 8 bit offset (of which only 6 bits are used) from the 4657 tiny data area pointer. 4658 4659 -- : BFD_RELOC_V850_TDA_7_8_OFFSET 4660 This is an 8bit offset (of which only 7 bits are used) from the 4661 tiny data area pointer. 4662 4663 -- : BFD_RELOC_V850_TDA_7_7_OFFSET 4664 This is a 7 bit offset from the tiny data area pointer. 4665 4666 -- : BFD_RELOC_V850_TDA_16_16_OFFSET 4667 This is a 16 bit offset from the tiny data area pointer. 4668 4669 -- : BFD_RELOC_V850_TDA_4_5_OFFSET 4670 This is a 5 bit offset (of which only 4 bits are used) from the 4671 tiny data area pointer. 4672 4673 -- : BFD_RELOC_V850_TDA_4_4_OFFSET 4674 This is a 4 bit offset from the tiny data area pointer. 4675 4676 -- : BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET 4677 This is a 16 bit offset from the short data area pointer, with the 4678 bits placed non-contiguously in the instruction. 4679 4680 -- : BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET 4681 This is a 16 bit offset from the zero data area pointer, with the 4682 bits placed non-contiguously in the instruction. 4683 4684 -- : BFD_RELOC_V850_CALLT_6_7_OFFSET 4685 This is a 6 bit offset from the call table base pointer. 4686 4687 -- : BFD_RELOC_V850_CALLT_16_16_OFFSET 4688 This is a 16 bit offset from the call table base pointer. 4689 4690 -- : BFD_RELOC_V850_LONGCALL 4691 Used for relaxing indirect function calls. 4692 4693 -- : BFD_RELOC_V850_LONGJUMP 4694 Used for relaxing indirect jumps. 4695 4696 -- : BFD_RELOC_V850_ALIGN 4697 Used to maintain alignment whilst relaxing. 4698 4699 -- : BFD_RELOC_V850_LO16_SPLIT_OFFSET 4700 This is a variation of BFD_RELOC_LO16 that can be used in v850e 4701 ld.bu instructions. 4702 4703 -- : BFD_RELOC_V850_16_PCREL 4704 This is a 16-bit reloc. 4705 4706 -- : BFD_RELOC_V850_17_PCREL 4707 This is a 17-bit reloc. 4708 4709 -- : BFD_RELOC_V850_23 4710 This is a 23-bit reloc. 4711 4712 -- : BFD_RELOC_V850_32_PCREL 4713 This is a 32-bit reloc. 4714 4715 -- : BFD_RELOC_V850_32_ABS 4716 This is a 32-bit reloc. 4717 4718 -- : BFD_RELOC_V850_16_SPLIT_OFFSET 4719 This is a 16-bit reloc. 4720 4721 -- : BFD_RELOC_V850_16_S1 4722 This is a 16-bit reloc. 4723 4724 -- : BFD_RELOC_V850_LO16_S1 4725 Low 16 bits. 16 bit shifted by 1. 4726 4727 -- : BFD_RELOC_V850_CALLT_15_16_OFFSET 4728 This is a 16 bit offset from the call table base pointer. 4729 4730 -- : BFD_RELOC_V850_32_GOTPCREL 4731 DSO relocations. 4732 4733 -- : BFD_RELOC_V850_16_GOT 4734 DSO relocations. 4735 4736 -- : BFD_RELOC_V850_32_GOT 4737 DSO relocations. 4738 4739 -- : BFD_RELOC_V850_22_PLT_PCREL 4740 DSO relocations. 4741 4742 -- : BFD_RELOC_V850_32_PLT_PCREL 4743 DSO relocations. 4744 4745 -- : BFD_RELOC_V850_COPY 4746 DSO relocations. 4747 4748 -- : BFD_RELOC_V850_GLOB_DAT 4749 DSO relocations. 4750 4751 -- : BFD_RELOC_V850_JMP_SLOT 4752 DSO relocations. 4753 4754 -- : BFD_RELOC_V850_RELATIVE 4755 DSO relocations. 4756 4757 -- : BFD_RELOC_V850_16_GOTOFF 4758 DSO relocations. 4759 4760 -- : BFD_RELOC_V850_32_GOTOFF 4761 DSO relocations. 4762 4763 -- : BFD_RELOC_V850_CODE 4764 start code. 4765 4766 -- : BFD_RELOC_V850_DATA 4767 start data in text. 4768 4769 -- : BFD_RELOC_TIC30_LDP 4770 This is a 8bit DP reloc for the tms320c30, where the most 4771 significant 8 bits of a 24 bit word are placed into the least 4772 significant 8 bits of the opcode. 4773 4774 -- : BFD_RELOC_TIC54X_PARTLS7 4775 This is a 7bit reloc for the tms320c54x, where the least 4776 significant 7 bits of a 16 bit word are placed into the least 4777 significant 7 bits of the opcode. 4778 4779 -- : BFD_RELOC_TIC54X_PARTMS9 4780 This is a 9bit DP reloc for the tms320c54x, where the most 4781 significant 9 bits of a 16 bit word are placed into the least 4782 significant 9 bits of the opcode. 4783 4784 -- : BFD_RELOC_TIC54X_23 4785 This is an extended address 23-bit reloc for the tms320c54x. 4786 4787 -- : BFD_RELOC_TIC54X_16_OF_23 4788 This is a 16-bit reloc for the tms320c54x, where the least 4789 significant 16 bits of a 23-bit extended address are placed into 4790 the opcode. 4791 4792 -- : BFD_RELOC_TIC54X_MS7_OF_23 4793 This is a reloc for the tms320c54x, where the most significant 7 4794 bits of a 23-bit extended address are placed into the opcode. 4795 4796 -- : BFD_RELOC_C6000_PCR_S21 4797 -- : BFD_RELOC_C6000_PCR_S12 4798 -- : BFD_RELOC_C6000_PCR_S10 4799 -- : BFD_RELOC_C6000_PCR_S7 4800 -- : BFD_RELOC_C6000_ABS_S16 4801 -- : BFD_RELOC_C6000_ABS_L16 4802 -- : BFD_RELOC_C6000_ABS_H16 4803 -- : BFD_RELOC_C6000_SBR_U15_B 4804 -- : BFD_RELOC_C6000_SBR_U15_H 4805 -- : BFD_RELOC_C6000_SBR_U15_W 4806 -- : BFD_RELOC_C6000_SBR_S16 4807 -- : BFD_RELOC_C6000_SBR_L16_B 4808 -- : BFD_RELOC_C6000_SBR_L16_H 4809 -- : BFD_RELOC_C6000_SBR_L16_W 4810 -- : BFD_RELOC_C6000_SBR_H16_B 4811 -- : BFD_RELOC_C6000_SBR_H16_H 4812 -- : BFD_RELOC_C6000_SBR_H16_W 4813 -- : BFD_RELOC_C6000_SBR_GOT_U15_W 4814 -- : BFD_RELOC_C6000_SBR_GOT_L16_W 4815 -- : BFD_RELOC_C6000_SBR_GOT_H16_W 4816 -- : BFD_RELOC_C6000_DSBT_INDEX 4817 -- : BFD_RELOC_C6000_PREL31 4818 -- : BFD_RELOC_C6000_COPY 4819 -- : BFD_RELOC_C6000_JUMP_SLOT 4820 -- : BFD_RELOC_C6000_EHTYPE 4821 -- : BFD_RELOC_C6000_PCR_H16 4822 -- : BFD_RELOC_C6000_PCR_L16 4823 -- : BFD_RELOC_C6000_ALIGN 4824 -- : BFD_RELOC_C6000_FPHEAD 4825 -- : BFD_RELOC_C6000_NOCMP 4826 TMS320C6000 relocations. 4827 4828 -- : BFD_RELOC_FR30_48 4829 This is a 48 bit reloc for the FR30 that stores 32 bits. 4830 4831 -- : BFD_RELOC_FR30_20 4832 This is a 32 bit reloc for the FR30 that stores 20 bits split up 4833 into two sections. 4834 4835 -- : BFD_RELOC_FR30_6_IN_4 4836 This is a 16 bit reloc for the FR30 that stores a 6 bit word 4837 offset in 4 bits. 4838 4839 -- : BFD_RELOC_FR30_8_IN_8 4840 This is a 16 bit reloc for the FR30 that stores an 8 bit byte 4841 offset into 8 bits. 4842 4843 -- : BFD_RELOC_FR30_9_IN_8 4844 This is a 16 bit reloc for the FR30 that stores a 9 bit short 4845 offset into 8 bits. 4846 4847 -- : BFD_RELOC_FR30_10_IN_8 4848 This is a 16 bit reloc for the FR30 that stores a 10 bit word 4849 offset into 8 bits. 4850 4851 -- : BFD_RELOC_FR30_9_PCREL 4852 This is a 16 bit reloc for the FR30 that stores a 9 bit pc relative 4853 short offset into 8 bits. 4854 4855 -- : BFD_RELOC_FR30_12_PCREL 4856 This is a 16 bit reloc for the FR30 that stores a 12 bit pc 4857 relative short offset into 11 bits. 4858 4859 -- : BFD_RELOC_MCORE_PCREL_IMM8BY4 4860 -- : BFD_RELOC_MCORE_PCREL_IMM11BY2 4861 -- : BFD_RELOC_MCORE_PCREL_IMM4BY2 4862 -- : BFD_RELOC_MCORE_PCREL_32 4863 -- : BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2 4864 -- : BFD_RELOC_MCORE_RVA 4865 Motorola Mcore relocations. 4866 4867 -- : BFD_RELOC_MEP_8 4868 -- : BFD_RELOC_MEP_16 4869 -- : BFD_RELOC_MEP_32 4870 -- : BFD_RELOC_MEP_PCREL8A2 4871 -- : BFD_RELOC_MEP_PCREL12A2 4872 -- : BFD_RELOC_MEP_PCREL17A2 4873 -- : BFD_RELOC_MEP_PCREL24A2 4874 -- : BFD_RELOC_MEP_PCABS24A2 4875 -- : BFD_RELOC_MEP_LOW16 4876 -- : BFD_RELOC_MEP_HI16U 4877 -- : BFD_RELOC_MEP_HI16S 4878 -- : BFD_RELOC_MEP_GPREL 4879 -- : BFD_RELOC_MEP_TPREL 4880 -- : BFD_RELOC_MEP_TPREL7 4881 -- : BFD_RELOC_MEP_TPREL7A2 4882 -- : BFD_RELOC_MEP_TPREL7A4 4883 -- : BFD_RELOC_MEP_UIMM24 4884 -- : BFD_RELOC_MEP_ADDR24A4 4885 -- : BFD_RELOC_MEP_GNU_VTINHERIT 4886 -- : BFD_RELOC_MEP_GNU_VTENTRY 4887 Toshiba Media Processor Relocations. 4888 4889 -- : BFD_RELOC_MMIX_GETA 4890 -- : BFD_RELOC_MMIX_GETA_1 4891 -- : BFD_RELOC_MMIX_GETA_2 4892 -- : BFD_RELOC_MMIX_GETA_3 4893 These are relocations for the GETA instruction. 4894 4895 -- : BFD_RELOC_MMIX_CBRANCH 4896 -- : BFD_RELOC_MMIX_CBRANCH_J 4897 -- : BFD_RELOC_MMIX_CBRANCH_1 4898 -- : BFD_RELOC_MMIX_CBRANCH_2 4899 -- : BFD_RELOC_MMIX_CBRANCH_3 4900 These are relocations for a conditional branch instruction. 4901 4902 -- : BFD_RELOC_MMIX_PUSHJ 4903 -- : BFD_RELOC_MMIX_PUSHJ_1 4904 -- : BFD_RELOC_MMIX_PUSHJ_2 4905 -- : BFD_RELOC_MMIX_PUSHJ_3 4906 -- : BFD_RELOC_MMIX_PUSHJ_STUBBABLE 4907 These are relocations for the PUSHJ instruction. 4908 4909 -- : BFD_RELOC_MMIX_JMP 4910 -- : BFD_RELOC_MMIX_JMP_1 4911 -- : BFD_RELOC_MMIX_JMP_2 4912 -- : BFD_RELOC_MMIX_JMP_3 4913 These are relocations for the JMP instruction. 4914 4915 -- : BFD_RELOC_MMIX_ADDR19 4916 This is a relocation for a relative address as in a GETA 4917 instruction or a branch. 4918 4919 -- : BFD_RELOC_MMIX_ADDR27 4920 This is a relocation for a relative address as in a JMP 4921 instruction. 4922 4923 -- : BFD_RELOC_MMIX_REG_OR_BYTE 4924 This is a relocation for an instruction field that may be a general 4925 register or a value 0..255. 4926 4927 -- : BFD_RELOC_MMIX_REG 4928 This is a relocation for an instruction field that may be a general 4929 register. 4930 4931 -- : BFD_RELOC_MMIX_BASE_PLUS_OFFSET 4932 This is a relocation for two instruction fields holding a register 4933 and an offset, the equivalent of the relocation. 4934 4935 -- : BFD_RELOC_MMIX_LOCAL 4936 This relocation is an assertion that the expression is not 4937 allocated as a global register. It does not modify contents. 4938 4939 -- : BFD_RELOC_AVR_7_PCREL 4940 This is a 16 bit reloc for the AVR that stores 8 bit pc relative 4941 short offset into 7 bits. 4942 4943 -- : BFD_RELOC_AVR_13_PCREL 4944 This is a 16 bit reloc for the AVR that stores 13 bit pc relative 4945 short offset into 12 bits. 4946 4947 -- : BFD_RELOC_AVR_16_PM 4948 This is a 16 bit reloc for the AVR that stores 17 bit value 4949 (usually program memory address) into 16 bits. 4950 4951 -- : BFD_RELOC_AVR_LO8_LDI 4952 This is a 16 bit reloc for the AVR that stores 8 bit value (usually 4953 data memory address) into 8 bit immediate value of LDI insn. 4954 4955 -- : BFD_RELOC_AVR_HI8_LDI 4956 This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 4957 bit of data memory address) into 8 bit immediate value of LDI insn. 4958 4959 -- : BFD_RELOC_AVR_HH8_LDI 4960 This is a 16 bit reloc for the AVR that stores 8 bit value (most 4961 high 8 bit of program memory address) into 8 bit immediate value 4962 of LDI insn. 4963 4964 -- : BFD_RELOC_AVR_MS8_LDI 4965 This is a 16 bit reloc for the AVR that stores 8 bit value (most 4966 high 8 bit of 32 bit value) into 8 bit immediate value of LDI insn. 4967 4968 -- : BFD_RELOC_AVR_LO8_LDI_NEG 4969 This is a 16 bit reloc for the AVR that stores negated 8 bit value 4970 (usually data memory address) into 8 bit immediate value of SUBI 4971 insn. 4972 4973 -- : BFD_RELOC_AVR_HI8_LDI_NEG 4974 This is a 16 bit reloc for the AVR that stores negated 8 bit value 4975 (high 8 bit of data memory address) into 8 bit immediate value of 4976 SUBI insn. 4977 4978 -- : BFD_RELOC_AVR_HH8_LDI_NEG 4979 This is a 16 bit reloc for the AVR that stores negated 8 bit value 4980 (most high 8 bit of program memory address) into 8 bit immediate 4981 value of LDI or SUBI insn. 4982 4983 -- : BFD_RELOC_AVR_MS8_LDI_NEG 4984 This is a 16 bit reloc for the AVR that stores negated 8 bit value 4985 (msb of 32 bit value) into 8 bit immediate value of LDI insn. 4986 4987 -- : BFD_RELOC_AVR_LO8_LDI_PM 4988 This is a 16 bit reloc for the AVR that stores 8 bit value (usually 4989 command address) into 8 bit immediate value of LDI insn. 4990 4991 -- : BFD_RELOC_AVR_LO8_LDI_GS 4992 This is a 16 bit reloc for the AVR that stores 8 bit value 4993 (command address) into 8 bit immediate value of LDI insn. If the 4994 address is beyond the 128k boundary, the linker inserts a jump 4995 stub for this reloc in the lower 128k. 4996 4997 -- : BFD_RELOC_AVR_HI8_LDI_PM 4998 This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 4999 bit of command address) into 8 bit immediate value of LDI insn. 5000 5001 -- : BFD_RELOC_AVR_HI8_LDI_GS 5002 This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 5003 bit of command address) into 8 bit immediate value of LDI insn. 5004 If the address is beyond the 128k boundary, the linker inserts a 5005 jump stub for this reloc below 128k. 5006 5007 -- : BFD_RELOC_AVR_HH8_LDI_PM 5008 This is a 16 bit reloc for the AVR that stores 8 bit value (most 5009 high 8 bit of command address) into 8 bit immediate value of LDI 5010 insn. 5011 5012 -- : BFD_RELOC_AVR_LO8_LDI_PM_NEG 5013 This is a 16 bit reloc for the AVR that stores negated 8 bit value 5014 (usually command address) into 8 bit immediate value of SUBI insn. 5015 5016 -- : BFD_RELOC_AVR_HI8_LDI_PM_NEG 5017 This is a 16 bit reloc for the AVR that stores negated 8 bit value 5018 (high 8 bit of 16 bit command address) into 8 bit immediate value 5019 of SUBI insn. 5020 5021 -- : BFD_RELOC_AVR_HH8_LDI_PM_NEG 5022 This is a 16 bit reloc for the AVR that stores negated 8 bit value 5023 (high 6 bit of 22 bit command address) into 8 bit immediate value 5024 of SUBI insn. 5025 5026 -- : BFD_RELOC_AVR_CALL 5027 This is a 32 bit reloc for the AVR that stores 23 bit value into 5028 22 bits. 5029 5030 -- : BFD_RELOC_AVR_LDI 5031 This is a 16 bit reloc for the AVR that stores all needed bits for 5032 absolute addressing with ldi with overflow check to linktime 5033 5034 -- : BFD_RELOC_AVR_6 5035 This is a 6 bit reloc for the AVR that stores offset for ldd/std 5036 instructions 5037 5038 -- : BFD_RELOC_AVR_6_ADIW 5039 This is a 6 bit reloc for the AVR that stores offset for adiw/sbiw 5040 instructions 5041 5042 -- : BFD_RELOC_AVR_8_LO 5043 This is a 8 bit reloc for the AVR that stores bits 0..7 of a symbol 5044 in .byte lo8(symbol) 5045 5046 -- : BFD_RELOC_AVR_8_HI 5047 This is a 8 bit reloc for the AVR that stores bits 8..15 of a 5048 symbol in .byte hi8(symbol) 5049 5050 -- : BFD_RELOC_AVR_8_HLO 5051 This is a 8 bit reloc for the AVR that stores bits 16..23 of a 5052 symbol in .byte hlo8(symbol) 5053 5054 -- : BFD_RELOC_RL78_NEG8 5055 -- : BFD_RELOC_RL78_NEG16 5056 -- : BFD_RELOC_RL78_NEG24 5057 -- : BFD_RELOC_RL78_NEG32 5058 -- : BFD_RELOC_RL78_16_OP 5059 -- : BFD_RELOC_RL78_24_OP 5060 -- : BFD_RELOC_RL78_32_OP 5061 -- : BFD_RELOC_RL78_8U 5062 -- : BFD_RELOC_RL78_16U 5063 -- : BFD_RELOC_RL78_24U 5064 -- : BFD_RELOC_RL78_DIR3U_PCREL 5065 -- : BFD_RELOC_RL78_DIFF 5066 -- : BFD_RELOC_RL78_GPRELB 5067 -- : BFD_RELOC_RL78_GPRELW 5068 -- : BFD_RELOC_RL78_GPRELL 5069 -- : BFD_RELOC_RL78_SYM 5070 -- : BFD_RELOC_RL78_OP_SUBTRACT 5071 -- : BFD_RELOC_RL78_OP_NEG 5072 -- : BFD_RELOC_RL78_OP_AND 5073 -- : BFD_RELOC_RL78_OP_SHRA 5074 -- : BFD_RELOC_RL78_ABS8 5075 -- : BFD_RELOC_RL78_ABS16 5076 -- : BFD_RELOC_RL78_ABS16_REV 5077 -- : BFD_RELOC_RL78_ABS32 5078 -- : BFD_RELOC_RL78_ABS32_REV 5079 -- : BFD_RELOC_RL78_ABS16U 5080 -- : BFD_RELOC_RL78_ABS16UW 5081 -- : BFD_RELOC_RL78_ABS16UL 5082 -- : BFD_RELOC_RL78_RELAX 5083 -- : BFD_RELOC_RL78_HI16 5084 -- : BFD_RELOC_RL78_HI8 5085 -- : BFD_RELOC_RL78_LO16 5086 Renesas RL78 Relocations. 5087 5088 -- : BFD_RELOC_RX_NEG8 5089 -- : BFD_RELOC_RX_NEG16 5090 -- : BFD_RELOC_RX_NEG24 5091 -- : BFD_RELOC_RX_NEG32 5092 -- : BFD_RELOC_RX_16_OP 5093 -- : BFD_RELOC_RX_24_OP 5094 -- : BFD_RELOC_RX_32_OP 5095 -- : BFD_RELOC_RX_8U 5096 -- : BFD_RELOC_RX_16U 5097 -- : BFD_RELOC_RX_24U 5098 -- : BFD_RELOC_RX_DIR3U_PCREL 5099 -- : BFD_RELOC_RX_DIFF 5100 -- : BFD_RELOC_RX_GPRELB 5101 -- : BFD_RELOC_RX_GPRELW 5102 -- : BFD_RELOC_RX_GPRELL 5103 -- : BFD_RELOC_RX_SYM 5104 -- : BFD_RELOC_RX_OP_SUBTRACT 5105 -- : BFD_RELOC_RX_OP_NEG 5106 -- : BFD_RELOC_RX_ABS8 5107 -- : BFD_RELOC_RX_ABS16 5108 -- : BFD_RELOC_RX_ABS16_REV 5109 -- : BFD_RELOC_RX_ABS32 5110 -- : BFD_RELOC_RX_ABS32_REV 5111 -- : BFD_RELOC_RX_ABS16U 5112 -- : BFD_RELOC_RX_ABS16UW 5113 -- : BFD_RELOC_RX_ABS16UL 5114 -- : BFD_RELOC_RX_RELAX 5115 Renesas RX Relocations. 5116 5117 -- : BFD_RELOC_390_12 5118 Direct 12 bit. 5119 5120 -- : BFD_RELOC_390_GOT12 5121 12 bit GOT offset. 5122 5123 -- : BFD_RELOC_390_PLT32 5124 32 bit PC relative PLT address. 5125 5126 -- : BFD_RELOC_390_COPY 5127 Copy symbol at runtime. 5128 5129 -- : BFD_RELOC_390_GLOB_DAT 5130 Create GOT entry. 5131 5132 -- : BFD_RELOC_390_JMP_SLOT 5133 Create PLT entry. 5134 5135 -- : BFD_RELOC_390_RELATIVE 5136 Adjust by program base. 5137 5138 -- : BFD_RELOC_390_GOTPC 5139 32 bit PC relative offset to GOT. 5140 5141 -- : BFD_RELOC_390_GOT16 5142 16 bit GOT offset. 5143 5144 -- : BFD_RELOC_390_PC16DBL 5145 PC relative 16 bit shifted by 1. 5146 5147 -- : BFD_RELOC_390_PLT16DBL 5148 16 bit PC rel. PLT shifted by 1. 5149 5150 -- : BFD_RELOC_390_PC32DBL 5151 PC relative 32 bit shifted by 1. 5152 5153 -- : BFD_RELOC_390_PLT32DBL 5154 32 bit PC rel. PLT shifted by 1. 5155 5156 -- : BFD_RELOC_390_GOTPCDBL 5157 32 bit PC rel. GOT shifted by 1. 5158 5159 -- : BFD_RELOC_390_GOT64 5160 64 bit GOT offset. 5161 5162 -- : BFD_RELOC_390_PLT64 5163 64 bit PC relative PLT address. 5164 5165 -- : BFD_RELOC_390_GOTENT 5166 32 bit rel. offset to GOT entry. 5167 5168 -- : BFD_RELOC_390_GOTOFF64 5169 64 bit offset to GOT. 5170 5171 -- : BFD_RELOC_390_GOTPLT12 5172 12-bit offset to symbol-entry within GOT, with PLT handling. 5173 5174 -- : BFD_RELOC_390_GOTPLT16 5175 16-bit offset to symbol-entry within GOT, with PLT handling. 5176 5177 -- : BFD_RELOC_390_GOTPLT32 5178 32-bit offset to symbol-entry within GOT, with PLT handling. 5179 5180 -- : BFD_RELOC_390_GOTPLT64 5181 64-bit offset to symbol-entry within GOT, with PLT handling. 5182 5183 -- : BFD_RELOC_390_GOTPLTENT 5184 32-bit rel. offset to symbol-entry within GOT, with PLT handling. 5185 5186 -- : BFD_RELOC_390_PLTOFF16 5187 16-bit rel. offset from the GOT to a PLT entry. 5188 5189 -- : BFD_RELOC_390_PLTOFF32 5190 32-bit rel. offset from the GOT to a PLT entry. 5191 5192 -- : BFD_RELOC_390_PLTOFF64 5193 64-bit rel. offset from the GOT to a PLT entry. 5194 5195 -- : BFD_RELOC_390_TLS_LOAD 5196 -- : BFD_RELOC_390_TLS_GDCALL 5197 -- : BFD_RELOC_390_TLS_LDCALL 5198 -- : BFD_RELOC_390_TLS_GD32 5199 -- : BFD_RELOC_390_TLS_GD64 5200 -- : BFD_RELOC_390_TLS_GOTIE12 5201 -- : BFD_RELOC_390_TLS_GOTIE32 5202 -- : BFD_RELOC_390_TLS_GOTIE64 5203 -- : BFD_RELOC_390_TLS_LDM32 5204 -- : BFD_RELOC_390_TLS_LDM64 5205 -- : BFD_RELOC_390_TLS_IE32 5206 -- : BFD_RELOC_390_TLS_IE64 5207 -- : BFD_RELOC_390_TLS_IEENT 5208 -- : BFD_RELOC_390_TLS_LE32 5209 -- : BFD_RELOC_390_TLS_LE64 5210 -- : BFD_RELOC_390_TLS_LDO32 5211 -- : BFD_RELOC_390_TLS_LDO64 5212 -- : BFD_RELOC_390_TLS_DTPMOD 5213 -- : BFD_RELOC_390_TLS_DTPOFF 5214 -- : BFD_RELOC_390_TLS_TPOFF 5215 s390 tls relocations. 5216 5217 -- : BFD_RELOC_390_20 5218 -- : BFD_RELOC_390_GOT20 5219 -- : BFD_RELOC_390_GOTPLT20 5220 -- : BFD_RELOC_390_TLS_GOTIE20 5221 Long displacement extension. 5222 5223 -- : BFD_RELOC_390_IRELATIVE 5224 STT_GNU_IFUNC relocation. 5225 5226 -- : BFD_RELOC_SCORE_GPREL15 5227 Score relocations Low 16 bit for load/store 5228 5229 -- : BFD_RELOC_SCORE_DUMMY2 5230 -- : BFD_RELOC_SCORE_JMP 5231 This is a 24-bit reloc with the right 1 bit assumed to be 0 5232 5233 -- : BFD_RELOC_SCORE_BRANCH 5234 This is a 19-bit reloc with the right 1 bit assumed to be 0 5235 5236 -- : BFD_RELOC_SCORE_IMM30 5237 This is a 32-bit reloc for 48-bit instructions. 5238 5239 -- : BFD_RELOC_SCORE_IMM32 5240 This is a 32-bit reloc for 48-bit instructions. 5241 5242 -- : BFD_RELOC_SCORE16_JMP 5243 This is a 11-bit reloc with the right 1 bit assumed to be 0 5244 5245 -- : BFD_RELOC_SCORE16_BRANCH 5246 This is a 8-bit reloc with the right 1 bit assumed to be 0 5247 5248 -- : BFD_RELOC_SCORE_BCMP 5249 This is a 9-bit reloc with the right 1 bit assumed to be 0 5250 5251 -- : BFD_RELOC_SCORE_GOT15 5252 -- : BFD_RELOC_SCORE_GOT_LO16 5253 -- : BFD_RELOC_SCORE_CALL15 5254 -- : BFD_RELOC_SCORE_DUMMY_HI16 5255 Undocumented Score relocs 5256 5257 -- : BFD_RELOC_IP2K_FR9 5258 Scenix IP2K - 9-bit register number / data address 5259 5260 -- : BFD_RELOC_IP2K_BANK 5261 Scenix IP2K - 4-bit register/data bank number 5262 5263 -- : BFD_RELOC_IP2K_ADDR16CJP 5264 Scenix IP2K - low 13 bits of instruction word address 5265 5266 -- : BFD_RELOC_IP2K_PAGE3 5267 Scenix IP2K - high 3 bits of instruction word address 5268 5269 -- : BFD_RELOC_IP2K_LO8DATA 5270 -- : BFD_RELOC_IP2K_HI8DATA 5271 -- : BFD_RELOC_IP2K_EX8DATA 5272 Scenix IP2K - ext/low/high 8 bits of data address 5273 5274 -- : BFD_RELOC_IP2K_LO8INSN 5275 -- : BFD_RELOC_IP2K_HI8INSN 5276 Scenix IP2K - low/high 8 bits of instruction word address 5277 5278 -- : BFD_RELOC_IP2K_PC_SKIP 5279 Scenix IP2K - even/odd PC modifier to modify snb pcl.0 5280 5281 -- : BFD_RELOC_IP2K_TEXT 5282 Scenix IP2K - 16 bit word address in text section. 5283 5284 -- : BFD_RELOC_IP2K_FR_OFFSET 5285 Scenix IP2K - 7-bit sp or dp offset 5286 5287 -- : BFD_RELOC_VPE4KMATH_DATA 5288 -- : BFD_RELOC_VPE4KMATH_INSN 5289 Scenix VPE4K coprocessor - data/insn-space addressing 5290 5291 -- : BFD_RELOC_VTABLE_INHERIT 5292 -- : BFD_RELOC_VTABLE_ENTRY 5293 These two relocations are used by the linker to determine which of 5294 the entries in a C++ virtual function table are actually used. 5295 When the -gc-sections option is given, the linker will zero out 5296 the entries that are not used, so that the code for those 5297 functions need not be included in the output. 5298 5299 VTABLE_INHERIT is a zero-space relocation used to describe to the 5300 linker the inheritance tree of a C++ virtual function table. The 5301 relocation's symbol should be the parent class' vtable, and the 5302 relocation should be located at the child vtable. 5303 5304 VTABLE_ENTRY is a zero-space relocation that describes the use of a 5305 virtual function table entry. The reloc's symbol should refer to 5306 the table of the class mentioned in the code. Off of that base, 5307 an offset describes the entry that is being used. For Rela hosts, 5308 this offset is stored in the reloc's addend. For Rel hosts, we 5309 are forced to put this offset in the reloc's section offset. 5310 5311 -- : BFD_RELOC_IA64_IMM14 5312 -- : BFD_RELOC_IA64_IMM22 5313 -- : BFD_RELOC_IA64_IMM64 5314 -- : BFD_RELOC_IA64_DIR32MSB 5315 -- : BFD_RELOC_IA64_DIR32LSB 5316 -- : BFD_RELOC_IA64_DIR64MSB 5317 -- : BFD_RELOC_IA64_DIR64LSB 5318 -- : BFD_RELOC_IA64_GPREL22 5319 -- : BFD_RELOC_IA64_GPREL64I 5320 -- : BFD_RELOC_IA64_GPREL32MSB 5321 -- : BFD_RELOC_IA64_GPREL32LSB 5322 -- : BFD_RELOC_IA64_GPREL64MSB 5323 -- : BFD_RELOC_IA64_GPREL64LSB 5324 -- : BFD_RELOC_IA64_LTOFF22 5325 -- : BFD_RELOC_IA64_LTOFF64I 5326 -- : BFD_RELOC_IA64_PLTOFF22 5327 -- : BFD_RELOC_IA64_PLTOFF64I 5328 -- : BFD_RELOC_IA64_PLTOFF64MSB 5329 -- : BFD_RELOC_IA64_PLTOFF64LSB 5330 -- : BFD_RELOC_IA64_FPTR64I 5331 -- : BFD_RELOC_IA64_FPTR32MSB 5332 -- : BFD_RELOC_IA64_FPTR32LSB 5333 -- : BFD_RELOC_IA64_FPTR64MSB 5334 -- : BFD_RELOC_IA64_FPTR64LSB 5335 -- : BFD_RELOC_IA64_PCREL21B 5336 -- : BFD_RELOC_IA64_PCREL21BI 5337 -- : BFD_RELOC_IA64_PCREL21M 5338 -- : BFD_RELOC_IA64_PCREL21F 5339 -- : BFD_RELOC_IA64_PCREL22 5340 -- : BFD_RELOC_IA64_PCREL60B 5341 -- : BFD_RELOC_IA64_PCREL64I 5342 -- : BFD_RELOC_IA64_PCREL32MSB 5343 -- : BFD_RELOC_IA64_PCREL32LSB 5344 -- : BFD_RELOC_IA64_PCREL64MSB 5345 -- : BFD_RELOC_IA64_PCREL64LSB 5346 -- : BFD_RELOC_IA64_LTOFF_FPTR22 5347 -- : BFD_RELOC_IA64_LTOFF_FPTR64I 5348 -- : BFD_RELOC_IA64_LTOFF_FPTR32MSB 5349 -- : BFD_RELOC_IA64_LTOFF_FPTR32LSB 5350 -- : BFD_RELOC_IA64_LTOFF_FPTR64MSB 5351 -- : BFD_RELOC_IA64_LTOFF_FPTR64LSB 5352 -- : BFD_RELOC_IA64_SEGREL32MSB 5353 -- : BFD_RELOC_IA64_SEGREL32LSB 5354 -- : BFD_RELOC_IA64_SEGREL64MSB 5355 -- : BFD_RELOC_IA64_SEGREL64LSB 5356 -- : BFD_RELOC_IA64_SECREL32MSB 5357 -- : BFD_RELOC_IA64_SECREL32LSB 5358 -- : BFD_RELOC_IA64_SECREL64MSB 5359 -- : BFD_RELOC_IA64_SECREL64LSB 5360 -- : BFD_RELOC_IA64_REL32MSB 5361 -- : BFD_RELOC_IA64_REL32LSB 5362 -- : BFD_RELOC_IA64_REL64MSB 5363 -- : BFD_RELOC_IA64_REL64LSB 5364 -- : BFD_RELOC_IA64_LTV32MSB 5365 -- : BFD_RELOC_IA64_LTV32LSB 5366 -- : BFD_RELOC_IA64_LTV64MSB 5367 -- : BFD_RELOC_IA64_LTV64LSB 5368 -- : BFD_RELOC_IA64_IPLTMSB 5369 -- : BFD_RELOC_IA64_IPLTLSB 5370 -- : BFD_RELOC_IA64_COPY 5371 -- : BFD_RELOC_IA64_LTOFF22X 5372 -- : BFD_RELOC_IA64_LDXMOV 5373 -- : BFD_RELOC_IA64_TPREL14 5374 -- : BFD_RELOC_IA64_TPREL22 5375 -- : BFD_RELOC_IA64_TPREL64I 5376 -- : BFD_RELOC_IA64_TPREL64MSB 5377 -- : BFD_RELOC_IA64_TPREL64LSB 5378 -- : BFD_RELOC_IA64_LTOFF_TPREL22 5379 -- : BFD_RELOC_IA64_DTPMOD64MSB 5380 -- : BFD_RELOC_IA64_DTPMOD64LSB 5381 -- : BFD_RELOC_IA64_LTOFF_DTPMOD22 5382 -- : BFD_RELOC_IA64_DTPREL14 5383 -- : BFD_RELOC_IA64_DTPREL22 5384 -- : BFD_RELOC_IA64_DTPREL64I 5385 -- : BFD_RELOC_IA64_DTPREL32MSB 5386 -- : BFD_RELOC_IA64_DTPREL32LSB 5387 -- : BFD_RELOC_IA64_DTPREL64MSB 5388 -- : BFD_RELOC_IA64_DTPREL64LSB 5389 -- : BFD_RELOC_IA64_LTOFF_DTPREL22 5390 Intel IA64 Relocations. 5391 5392 -- : BFD_RELOC_M68HC11_HI8 5393 Motorola 68HC11 reloc. This is the 8 bit high part of an absolute 5394 address. 5395 5396 -- : BFD_RELOC_M68HC11_LO8 5397 Motorola 68HC11 reloc. This is the 8 bit low part of an absolute 5398 address. 5399 5400 -- : BFD_RELOC_M68HC11_3B 5401 Motorola 68HC11 reloc. This is the 3 bit of a value. 5402 5403 -- : BFD_RELOC_M68HC11_RL_JUMP 5404 Motorola 68HC11 reloc. This reloc marks the beginning of a 5405 jump/call instruction. It is used for linker relaxation to 5406 correctly identify beginning of instruction and change some 5407 branches to use PC-relative addressing mode. 5408 5409 -- : BFD_RELOC_M68HC11_RL_GROUP 5410 Motorola 68HC11 reloc. This reloc marks a group of several 5411 instructions that gcc generates and for which the linker 5412 relaxation pass can modify and/or remove some of them. 5413 5414 -- : BFD_RELOC_M68HC11_LO16 5415 Motorola 68HC11 reloc. This is the 16-bit lower part of an 5416 address. It is used for 'call' instruction to specify the symbol 5417 address without any special transformation (due to memory bank 5418 window). 5419 5420 -- : BFD_RELOC_M68HC11_PAGE 5421 Motorola 68HC11 reloc. This is a 8-bit reloc that specifies the 5422 page number of an address. It is used by 'call' instruction to 5423 specify the page number of the symbol. 5424 5425 -- : BFD_RELOC_M68HC11_24 5426 Motorola 68HC11 reloc. This is a 24-bit reloc that represents the 5427 address with a 16-bit value and a 8-bit page number. The symbol 5428 address is transformed to follow the 16K memory bank of 68HC12 5429 (seen as mapped in the window). 5430 5431 -- : BFD_RELOC_M68HC12_5B 5432 Motorola 68HC12 reloc. This is the 5 bits of a value. 5433 5434 -- : BFD_RELOC_XGATE_RL_JUMP 5435 Freescale XGATE reloc. This reloc marks the beginning of a 5436 bra/jal instruction. 5437 5438 -- : BFD_RELOC_XGATE_RL_GROUP 5439 Freescale XGATE reloc. This reloc marks a group of several 5440 instructions that gcc generates and for which the linker 5441 relaxation pass can modify and/or remove some of them. 5442 5443 -- : BFD_RELOC_XGATE_LO16 5444 Freescale XGATE reloc. This is the 16-bit lower part of an 5445 address. It is used for the '16-bit' instructions. 5446 5447 -- : BFD_RELOC_XGATE_GPAGE 5448 Freescale XGATE reloc. 5449 5450 -- : BFD_RELOC_XGATE_24 5451 Freescale XGATE reloc. 5452 5453 -- : BFD_RELOC_XGATE_PCREL_9 5454 Freescale XGATE reloc. This is a 9-bit pc-relative reloc. 5455 5456 -- : BFD_RELOC_XGATE_PCREL_10 5457 Freescale XGATE reloc. This is a 10-bit pc-relative reloc. 5458 5459 -- : BFD_RELOC_XGATE_IMM8_LO 5460 Freescale XGATE reloc. This is the 16-bit lower part of an 5461 address. It is used for the '16-bit' instructions. 5462 5463 -- : BFD_RELOC_XGATE_IMM8_HI 5464 Freescale XGATE reloc. This is the 16-bit higher part of an 5465 address. It is used for the '16-bit' instructions. 5466 5467 -- : BFD_RELOC_XGATE_IMM3 5468 Freescale XGATE reloc. This is a 3-bit pc-relative reloc. 5469 5470 -- : BFD_RELOC_XGATE_IMM4 5471 Freescale XGATE reloc. This is a 4-bit pc-relative reloc. 5472 5473 -- : BFD_RELOC_XGATE_IMM5 5474 Freescale XGATE reloc. This is a 5-bit pc-relative reloc. 5475 5476 -- : BFD_RELOC_M68HC12_9B 5477 Motorola 68HC12 reloc. This is the 9 bits of a value. 5478 5479 -- : BFD_RELOC_M68HC12_16B 5480 Motorola 68HC12 reloc. This is the 16 bits of a value. 5481 5482 -- : BFD_RELOC_M68HC12_9_PCREL 5483 Motorola 68HC12/XGATE reloc. This is a PCREL9 branch. 5484 5485 -- : BFD_RELOC_M68HC12_10_PCREL 5486 Motorola 68HC12/XGATE reloc. This is a PCREL10 branch. 5487 5488 -- : BFD_RELOC_M68HC12_LO8XG 5489 Motorola 68HC12/XGATE reloc. This is the 8 bit low part of an 5490 absolute address and immediately precedes a matching HI8XG part. 5491 5492 -- : BFD_RELOC_M68HC12_HI8XG 5493 Motorola 68HC12/XGATE reloc. This is the 8 bit high part of an 5494 absolute address and immediately follows a matching LO8XG part. 5495 5496 -- : BFD_RELOC_16C_NUM08 5497 -- : BFD_RELOC_16C_NUM08_C 5498 -- : BFD_RELOC_16C_NUM16 5499 -- : BFD_RELOC_16C_NUM16_C 5500 -- : BFD_RELOC_16C_NUM32 5501 -- : BFD_RELOC_16C_NUM32_C 5502 -- : BFD_RELOC_16C_DISP04 5503 -- : BFD_RELOC_16C_DISP04_C 5504 -- : BFD_RELOC_16C_DISP08 5505 -- : BFD_RELOC_16C_DISP08_C 5506 -- : BFD_RELOC_16C_DISP16 5507 -- : BFD_RELOC_16C_DISP16_C 5508 -- : BFD_RELOC_16C_DISP24 5509 -- : BFD_RELOC_16C_DISP24_C 5510 -- : BFD_RELOC_16C_DISP24a 5511 -- : BFD_RELOC_16C_DISP24a_C 5512 -- : BFD_RELOC_16C_REG04 5513 -- : BFD_RELOC_16C_REG04_C 5514 -- : BFD_RELOC_16C_REG04a 5515 -- : BFD_RELOC_16C_REG04a_C 5516 -- : BFD_RELOC_16C_REG14 5517 -- : BFD_RELOC_16C_REG14_C 5518 -- : BFD_RELOC_16C_REG16 5519 -- : BFD_RELOC_16C_REG16_C 5520 -- : BFD_RELOC_16C_REG20 5521 -- : BFD_RELOC_16C_REG20_C 5522 -- : BFD_RELOC_16C_ABS20 5523 -- : BFD_RELOC_16C_ABS20_C 5524 -- : BFD_RELOC_16C_ABS24 5525 -- : BFD_RELOC_16C_ABS24_C 5526 -- : BFD_RELOC_16C_IMM04 5527 -- : BFD_RELOC_16C_IMM04_C 5528 -- : BFD_RELOC_16C_IMM16 5529 -- : BFD_RELOC_16C_IMM16_C 5530 -- : BFD_RELOC_16C_IMM20 5531 -- : BFD_RELOC_16C_IMM20_C 5532 -- : BFD_RELOC_16C_IMM24 5533 -- : BFD_RELOC_16C_IMM24_C 5534 -- : BFD_RELOC_16C_IMM32 5535 -- : BFD_RELOC_16C_IMM32_C 5536 NS CR16C Relocations. 5537 5538 -- : BFD_RELOC_CR16_NUM8 5539 -- : BFD_RELOC_CR16_NUM16 5540 -- : BFD_RELOC_CR16_NUM32 5541 -- : BFD_RELOC_CR16_NUM32a 5542 -- : BFD_RELOC_CR16_REGREL0 5543 -- : BFD_RELOC_CR16_REGREL4 5544 -- : BFD_RELOC_CR16_REGREL4a 5545 -- : BFD_RELOC_CR16_REGREL14 5546 -- : BFD_RELOC_CR16_REGREL14a 5547 -- : BFD_RELOC_CR16_REGREL16 5548 -- : BFD_RELOC_CR16_REGREL20 5549 -- : BFD_RELOC_CR16_REGREL20a 5550 -- : BFD_RELOC_CR16_ABS20 5551 -- : BFD_RELOC_CR16_ABS24 5552 -- : BFD_RELOC_CR16_IMM4 5553 -- : BFD_RELOC_CR16_IMM8 5554 -- : BFD_RELOC_CR16_IMM16 5555 -- : BFD_RELOC_CR16_IMM20 5556 -- : BFD_RELOC_CR16_IMM24 5557 -- : BFD_RELOC_CR16_IMM32 5558 -- : BFD_RELOC_CR16_IMM32a 5559 -- : BFD_RELOC_CR16_DISP4 5560 -- : BFD_RELOC_CR16_DISP8 5561 -- : BFD_RELOC_CR16_DISP16 5562 -- : BFD_RELOC_CR16_DISP20 5563 -- : BFD_RELOC_CR16_DISP24 5564 -- : BFD_RELOC_CR16_DISP24a 5565 -- : BFD_RELOC_CR16_SWITCH8 5566 -- : BFD_RELOC_CR16_SWITCH16 5567 -- : BFD_RELOC_CR16_SWITCH32 5568 -- : BFD_RELOC_CR16_GOT_REGREL20 5569 -- : BFD_RELOC_CR16_GOTC_REGREL20 5570 -- : BFD_RELOC_CR16_GLOB_DAT 5571 NS CR16 Relocations. 5572 5573 -- : BFD_RELOC_CRX_REL4 5574 -- : BFD_RELOC_CRX_REL8 5575 -- : BFD_RELOC_CRX_REL8_CMP 5576 -- : BFD_RELOC_CRX_REL16 5577 -- : BFD_RELOC_CRX_REL24 5578 -- : BFD_RELOC_CRX_REL32 5579 -- : BFD_RELOC_CRX_REGREL12 5580 -- : BFD_RELOC_CRX_REGREL22 5581 -- : BFD_RELOC_CRX_REGREL28 5582 -- : BFD_RELOC_CRX_REGREL32 5583 -- : BFD_RELOC_CRX_ABS16 5584 -- : BFD_RELOC_CRX_ABS32 5585 -- : BFD_RELOC_CRX_NUM8 5586 -- : BFD_RELOC_CRX_NUM16 5587 -- : BFD_RELOC_CRX_NUM32 5588 -- : BFD_RELOC_CRX_IMM16 5589 -- : BFD_RELOC_CRX_IMM32 5590 -- : BFD_RELOC_CRX_SWITCH8 5591 -- : BFD_RELOC_CRX_SWITCH16 5592 -- : BFD_RELOC_CRX_SWITCH32 5593 NS CRX Relocations. 5594 5595 -- : BFD_RELOC_CRIS_BDISP8 5596 -- : BFD_RELOC_CRIS_UNSIGNED_5 5597 -- : BFD_RELOC_CRIS_SIGNED_6 5598 -- : BFD_RELOC_CRIS_UNSIGNED_6 5599 -- : BFD_RELOC_CRIS_SIGNED_8 5600 -- : BFD_RELOC_CRIS_UNSIGNED_8 5601 -- : BFD_RELOC_CRIS_SIGNED_16 5602 -- : BFD_RELOC_CRIS_UNSIGNED_16 5603 -- : BFD_RELOC_CRIS_LAPCQ_OFFSET 5604 -- : BFD_RELOC_CRIS_UNSIGNED_4 5605 These relocs are only used within the CRIS assembler. They are not 5606 (at present) written to any object files. 5607 5608 -- : BFD_RELOC_CRIS_COPY 5609 -- : BFD_RELOC_CRIS_GLOB_DAT 5610 -- : BFD_RELOC_CRIS_JUMP_SLOT 5611 -- : BFD_RELOC_CRIS_RELATIVE 5612 Relocs used in ELF shared libraries for CRIS. 5613 5614 -- : BFD_RELOC_CRIS_32_GOT 5615 32-bit offset to symbol-entry within GOT. 5616 5617 -- : BFD_RELOC_CRIS_16_GOT 5618 16-bit offset to symbol-entry within GOT. 5619 5620 -- : BFD_RELOC_CRIS_32_GOTPLT 5621 32-bit offset to symbol-entry within GOT, with PLT handling. 5622 5623 -- : BFD_RELOC_CRIS_16_GOTPLT 5624 16-bit offset to symbol-entry within GOT, with PLT handling. 5625 5626 -- : BFD_RELOC_CRIS_32_GOTREL 5627 32-bit offset to symbol, relative to GOT. 5628 5629 -- : BFD_RELOC_CRIS_32_PLT_GOTREL 5630 32-bit offset to symbol with PLT entry, relative to GOT. 5631 5632 -- : BFD_RELOC_CRIS_32_PLT_PCREL 5633 32-bit offset to symbol with PLT entry, relative to this 5634 relocation. 5635 5636 -- : BFD_RELOC_CRIS_32_GOT_GD 5637 -- : BFD_RELOC_CRIS_16_GOT_GD 5638 -- : BFD_RELOC_CRIS_32_GD 5639 -- : BFD_RELOC_CRIS_DTP 5640 -- : BFD_RELOC_CRIS_32_DTPREL 5641 -- : BFD_RELOC_CRIS_16_DTPREL 5642 -- : BFD_RELOC_CRIS_32_GOT_TPREL 5643 -- : BFD_RELOC_CRIS_16_GOT_TPREL 5644 -- : BFD_RELOC_CRIS_32_TPREL 5645 -- : BFD_RELOC_CRIS_16_TPREL 5646 -- : BFD_RELOC_CRIS_DTPMOD 5647 -- : BFD_RELOC_CRIS_32_IE 5648 Relocs used in TLS code for CRIS. 5649 5650 -- : BFD_RELOC_860_COPY 5651 -- : BFD_RELOC_860_GLOB_DAT 5652 -- : BFD_RELOC_860_JUMP_SLOT 5653 -- : BFD_RELOC_860_RELATIVE 5654 -- : BFD_RELOC_860_PC26 5655 -- : BFD_RELOC_860_PLT26 5656 -- : BFD_RELOC_860_PC16 5657 -- : BFD_RELOC_860_LOW0 5658 -- : BFD_RELOC_860_SPLIT0 5659 -- : BFD_RELOC_860_LOW1 5660 -- : BFD_RELOC_860_SPLIT1 5661 -- : BFD_RELOC_860_LOW2 5662 -- : BFD_RELOC_860_SPLIT2 5663 -- : BFD_RELOC_860_LOW3 5664 -- : BFD_RELOC_860_LOGOT0 5665 -- : BFD_RELOC_860_SPGOT0 5666 -- : BFD_RELOC_860_LOGOT1 5667 -- : BFD_RELOC_860_SPGOT1 5668 -- : BFD_RELOC_860_LOGOTOFF0 5669 -- : BFD_RELOC_860_SPGOTOFF0 5670 -- : BFD_RELOC_860_LOGOTOFF1 5671 -- : BFD_RELOC_860_SPGOTOFF1 5672 -- : BFD_RELOC_860_LOGOTOFF2 5673 -- : BFD_RELOC_860_LOGOTOFF3 5674 -- : BFD_RELOC_860_LOPC 5675 -- : BFD_RELOC_860_HIGHADJ 5676 -- : BFD_RELOC_860_HAGOT 5677 -- : BFD_RELOC_860_HAGOTOFF 5678 -- : BFD_RELOC_860_HAPC 5679 -- : BFD_RELOC_860_HIGH 5680 -- : BFD_RELOC_860_HIGOT 5681 -- : BFD_RELOC_860_HIGOTOFF 5682 Intel i860 Relocations. 5683 5684 -- : BFD_RELOC_OPENRISC_ABS_26 5685 -- : BFD_RELOC_OPENRISC_REL_26 5686 OpenRISC Relocations. 5687 5688 -- : BFD_RELOC_H8_DIR16A8 5689 -- : BFD_RELOC_H8_DIR16R8 5690 -- : BFD_RELOC_H8_DIR24A8 5691 -- : BFD_RELOC_H8_DIR24R8 5692 -- : BFD_RELOC_H8_DIR32A16 5693 H8 elf Relocations. 5694 5695 -- : BFD_RELOC_XSTORMY16_REL_12 5696 -- : BFD_RELOC_XSTORMY16_12 5697 -- : BFD_RELOC_XSTORMY16_24 5698 -- : BFD_RELOC_XSTORMY16_FPTR16 5699 Sony Xstormy16 Relocations. 5700 5701 -- : BFD_RELOC_RELC 5702 Self-describing complex relocations. 5703 5704 -- : BFD_RELOC_XC16X_PAG 5705 -- : BFD_RELOC_XC16X_POF 5706 -- : BFD_RELOC_XC16X_SEG 5707 -- : BFD_RELOC_XC16X_SOF 5708 Infineon Relocations. 5709 5710 -- : BFD_RELOC_VAX_GLOB_DAT 5711 -- : BFD_RELOC_VAX_JMP_SLOT 5712 -- : BFD_RELOC_VAX_RELATIVE 5713 Relocations used by VAX ELF. 5714 5715 -- : BFD_RELOC_MT_PC16 5716 Morpho MT - 16 bit immediate relocation. 5717 5718 -- : BFD_RELOC_MT_HI16 5719 Morpho MT - Hi 16 bits of an address. 5720 5721 -- : BFD_RELOC_MT_LO16 5722 Morpho MT - Low 16 bits of an address. 5723 5724 -- : BFD_RELOC_MT_GNU_VTINHERIT 5725 Morpho MT - Used to tell the linker which vtable entries are used. 5726 5727 -- : BFD_RELOC_MT_GNU_VTENTRY 5728 Morpho MT - Used to tell the linker which vtable entries are used. 5729 5730 -- : BFD_RELOC_MT_PCINSN8 5731 Morpho MT - 8 bit immediate relocation. 5732 5733 -- : BFD_RELOC_MSP430_10_PCREL 5734 -- : BFD_RELOC_MSP430_16_PCREL 5735 -- : BFD_RELOC_MSP430_16 5736 -- : BFD_RELOC_MSP430_16_PCREL_BYTE 5737 -- : BFD_RELOC_MSP430_16_BYTE 5738 -- : BFD_RELOC_MSP430_2X_PCREL 5739 -- : BFD_RELOC_MSP430_RL_PCREL 5740 msp430 specific relocation codes 5741 5742 -- : BFD_RELOC_IQ2000_OFFSET_16 5743 -- : BFD_RELOC_IQ2000_OFFSET_21 5744 -- : BFD_RELOC_IQ2000_UHI16 5745 IQ2000 Relocations. 5746 5747 -- : BFD_RELOC_XTENSA_RTLD 5748 Special Xtensa relocation used only by PLT entries in ELF shared 5749 objects to indicate that the runtime linker should set the value 5750 to one of its own internal functions or data structures. 5751 5752 -- : BFD_RELOC_XTENSA_GLOB_DAT 5753 -- : BFD_RELOC_XTENSA_JMP_SLOT 5754 -- : BFD_RELOC_XTENSA_RELATIVE 5755 Xtensa relocations for ELF shared objects. 5756 5757 -- : BFD_RELOC_XTENSA_PLT 5758 Xtensa relocation used in ELF object files for symbols that may 5759 require PLT entries. Otherwise, this is just a generic 32-bit 5760 relocation. 5761 5762 -- : BFD_RELOC_XTENSA_DIFF8 5763 -- : BFD_RELOC_XTENSA_DIFF16 5764 -- : BFD_RELOC_XTENSA_DIFF32 5765 Xtensa relocations to mark the difference of two local symbols. 5766 These are only needed to support linker relaxation and can be 5767 ignored when not relaxing. The field is set to the value of the 5768 difference assuming no relaxation. The relocation encodes the 5769 position of the first symbol so the linker can determine whether 5770 to adjust the field value. 5771 5772 -- : BFD_RELOC_XTENSA_SLOT0_OP 5773 -- : BFD_RELOC_XTENSA_SLOT1_OP 5774 -- : BFD_RELOC_XTENSA_SLOT2_OP 5775 -- : BFD_RELOC_XTENSA_SLOT3_OP 5776 -- : BFD_RELOC_XTENSA_SLOT4_OP 5777 -- : BFD_RELOC_XTENSA_SLOT5_OP 5778 -- : BFD_RELOC_XTENSA_SLOT6_OP 5779 -- : BFD_RELOC_XTENSA_SLOT7_OP 5780 -- : BFD_RELOC_XTENSA_SLOT8_OP 5781 -- : BFD_RELOC_XTENSA_SLOT9_OP 5782 -- : BFD_RELOC_XTENSA_SLOT10_OP 5783 -- : BFD_RELOC_XTENSA_SLOT11_OP 5784 -- : BFD_RELOC_XTENSA_SLOT12_OP 5785 -- : BFD_RELOC_XTENSA_SLOT13_OP 5786 -- : BFD_RELOC_XTENSA_SLOT14_OP 5787 Generic Xtensa relocations for instruction operands. Only the slot 5788 number is encoded in the relocation. The relocation applies to the 5789 last PC-relative immediate operand, or if there are no PC-relative 5790 immediates, to the last immediate operand. 5791 5792 -- : BFD_RELOC_XTENSA_SLOT0_ALT 5793 -- : BFD_RELOC_XTENSA_SLOT1_ALT 5794 -- : BFD_RELOC_XTENSA_SLOT2_ALT 5795 -- : BFD_RELOC_XTENSA_SLOT3_ALT 5796 -- : BFD_RELOC_XTENSA_SLOT4_ALT 5797 -- : BFD_RELOC_XTENSA_SLOT5_ALT 5798 -- : BFD_RELOC_XTENSA_SLOT6_ALT 5799 -- : BFD_RELOC_XTENSA_SLOT7_ALT 5800 -- : BFD_RELOC_XTENSA_SLOT8_ALT 5801 -- : BFD_RELOC_XTENSA_SLOT9_ALT 5802 -- : BFD_RELOC_XTENSA_SLOT10_ALT 5803 -- : BFD_RELOC_XTENSA_SLOT11_ALT 5804 -- : BFD_RELOC_XTENSA_SLOT12_ALT 5805 -- : BFD_RELOC_XTENSA_SLOT13_ALT 5806 -- : BFD_RELOC_XTENSA_SLOT14_ALT 5807 Alternate Xtensa relocations. Only the slot is encoded in the 5808 relocation. The meaning of these relocations is opcode-specific. 5809 5810 -- : BFD_RELOC_XTENSA_OP0 5811 -- : BFD_RELOC_XTENSA_OP1 5812 -- : BFD_RELOC_XTENSA_OP2 5813 Xtensa relocations for backward compatibility. These have all been 5814 replaced by BFD_RELOC_XTENSA_SLOT0_OP. 5815 5816 -- : BFD_RELOC_XTENSA_ASM_EXPAND 5817 Xtensa relocation to mark that the assembler expanded the 5818 instructions from an original target. The expansion size is 5819 encoded in the reloc size. 5820 5821 -- : BFD_RELOC_XTENSA_ASM_SIMPLIFY 5822 Xtensa relocation to mark that the linker should simplify 5823 assembler-expanded instructions. This is commonly used internally 5824 by the linker after analysis of a BFD_RELOC_XTENSA_ASM_EXPAND. 5825 5826 -- : BFD_RELOC_XTENSA_TLSDESC_FN 5827 -- : BFD_RELOC_XTENSA_TLSDESC_ARG 5828 -- : BFD_RELOC_XTENSA_TLS_DTPOFF 5829 -- : BFD_RELOC_XTENSA_TLS_TPOFF 5830 -- : BFD_RELOC_XTENSA_TLS_FUNC 5831 -- : BFD_RELOC_XTENSA_TLS_ARG 5832 -- : BFD_RELOC_XTENSA_TLS_CALL 5833 Xtensa TLS relocations. 5834 5835 -- : BFD_RELOC_Z80_DISP8 5836 8 bit signed offset in (ix+d) or (iy+d). 5837 5838 -- : BFD_RELOC_Z8K_DISP7 5839 DJNZ offset. 5840 5841 -- : BFD_RELOC_Z8K_CALLR 5842 CALR offset. 5843 5844 -- : BFD_RELOC_Z8K_IMM4L 5845 4 bit value. 5846 5847 -- : BFD_RELOC_LM32_CALL 5848 -- : BFD_RELOC_LM32_BRANCH 5849 -- : BFD_RELOC_LM32_16_GOT 5850 -- : BFD_RELOC_LM32_GOTOFF_HI16 5851 -- : BFD_RELOC_LM32_GOTOFF_LO16 5852 -- : BFD_RELOC_LM32_COPY 5853 -- : BFD_RELOC_LM32_GLOB_DAT 5854 -- : BFD_RELOC_LM32_JMP_SLOT 5855 -- : BFD_RELOC_LM32_RELATIVE 5856 Lattice Mico32 relocations. 5857 5858 -- : BFD_RELOC_MACH_O_SECTDIFF 5859 Difference between two section addreses. Must be followed by a 5860 BFD_RELOC_MACH_O_PAIR. 5861 5862 -- : BFD_RELOC_MACH_O_LOCAL_SECTDIFF 5863 Like BFD_RELOC_MACH_O_SECTDIFF but with a local symbol. 5864 5865 -- : BFD_RELOC_MACH_O_PAIR 5866 Pair of relocation. Contains the first symbol. 5867 5868 -- : BFD_RELOC_MACH_O_X86_64_BRANCH32 5869 -- : BFD_RELOC_MACH_O_X86_64_BRANCH8 5870 PCREL relocations. They are marked as branch to create PLT entry 5871 if required. 5872 5873 -- : BFD_RELOC_MACH_O_X86_64_GOT 5874 Used when referencing a GOT entry. 5875 5876 -- : BFD_RELOC_MACH_O_X86_64_GOT_LOAD 5877 Used when loading a GOT entry with movq. It is specially marked 5878 so that the linker could optimize the movq to a leaq if possible. 5879 5880 -- : BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32 5881 Symbol will be substracted. Must be followed by a BFD_RELOC_64. 5882 5883 -- : BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64 5884 Symbol will be substracted. Must be followed by a BFD_RELOC_64. 5885 5886 -- : BFD_RELOC_MACH_O_X86_64_PCREL32_1 5887 Same as BFD_RELOC_32_PCREL but with an implicit -1 addend. 5888 5889 -- : BFD_RELOC_MACH_O_X86_64_PCREL32_2 5890 Same as BFD_RELOC_32_PCREL but with an implicit -2 addend. 5891 5892 -- : BFD_RELOC_MACH_O_X86_64_PCREL32_4 5893 Same as BFD_RELOC_32_PCREL but with an implicit -4 addend. 5894 5895 -- : BFD_RELOC_MICROBLAZE_32_LO 5896 This is a 32 bit reloc for the microblaze that stores the low 16 5897 bits of a value 5898 5899 -- : BFD_RELOC_MICROBLAZE_32_LO_PCREL 5900 This is a 32 bit pc-relative reloc for the microblaze that stores 5901 the low 16 bits of a value 5902 5903 -- : BFD_RELOC_MICROBLAZE_32_ROSDA 5904 This is a 32 bit reloc for the microblaze that stores a value 5905 relative to the read-only small data area anchor 5906 5907 -- : BFD_RELOC_MICROBLAZE_32_RWSDA 5908 This is a 32 bit reloc for the microblaze that stores a value 5909 relative to the read-write small data area anchor 5910 5911 -- : BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM 5912 This is a 32 bit reloc for the microblaze to handle expressions of 5913 the form "Symbol Op Symbol" 5914 5915 -- : BFD_RELOC_MICROBLAZE_64_NONE 5916 This is a 64 bit reloc that stores the 32 bit pc relative value in 5917 two words (with an imm instruction). No relocation is done here - 5918 only used for relaxing 5919 5920 -- : BFD_RELOC_MICROBLAZE_64_GOTPC 5921 This is a 64 bit reloc that stores the 32 bit pc relative value in 5922 two words (with an imm instruction). The relocation is 5923 PC-relative GOT offset 5924 5925 -- : BFD_RELOC_MICROBLAZE_64_GOT 5926 This is a 64 bit reloc that stores the 32 bit pc relative value in 5927 two words (with an imm instruction). The relocation is GOT offset 5928 5929 -- : BFD_RELOC_MICROBLAZE_64_PLT 5930 This is a 64 bit reloc that stores the 32 bit pc relative value in 5931 two words (with an imm instruction). The relocation is 5932 PC-relative offset into PLT 5933 5934 -- : BFD_RELOC_MICROBLAZE_64_GOTOFF 5935 This is a 64 bit reloc that stores the 32 bit GOT relative value 5936 in two words (with an imm instruction). The relocation is 5937 relative offset from _GLOBAL_OFFSET_TABLE_ 5938 5939 -- : BFD_RELOC_MICROBLAZE_32_GOTOFF 5940 This is a 32 bit reloc that stores the 32 bit GOT relative value 5941 in a word. The relocation is relative offset from 5942 5943 -- : BFD_RELOC_MICROBLAZE_COPY 5944 This is used to tell the dynamic linker to copy the value out of 5945 the dynamic object into the runtime process image. 5946 5947 -- : BFD_RELOC_AARCH64_ADD_LO12 5948 AArch64 ADD immediate instruction, holding bits 0 to 11 of the 5949 address. Used in conjunction with 5950 BFD_RELOC_AARCH64_ADR_HI21_PCREL. 5951 5952 -- : BFD_RELOC_AARCH64_ADR_GOT_PAGE 5953 Get to the page base of the global offset table entry for a symbol 5954 as part of an ADRP instruction using a 21 bit PC relative 5955 value.Used in conjunction with BFD_RELOC_AARCH64_LD64_GOT_LO12_NC. 5956 5957 -- : BFD_RELOC_AARCH64_ADR_HI21_PCREL 5958 AArch64 ADRP instruction, with bits 12 to 32 of a pc-relative page 5959 offset, giving a 4KB aligned page base address. 5960 5961 -- : BFD_RELOC_AARCH64_ADR_HI21_NC_PCREL 5962 AArch64 ADRP instruction, with bits 12 to 32 of a pc-relative page 5963 offset, giving a 4KB aligned page base address, but with no 5964 overflow checking. 5965 5966 -- : BFD_RELOC_AARCH64_ADR_LO21_PCREL 5967 AArch64 ADR instruction, holding a simple 21 bit pc-relative byte 5968 offset. 5969 5970 -- : BFD_RELOC_AARCH64_BRANCH19 5971 AArch64 19 bit pc-relative conditional branch and compare & branch. 5972 The lowest two bits must be zero and are not stored in the 5973 instruction, giving a 21 bit signed byte offset. 5974 5975 -- : BFD_RELOC_AARCH64_CALL26 5976 AArch64 26 bit pc-relative unconditional branch and link. The 5977 lowest two bits must be zero and are not stored in the instruction, 5978 giving a 28 bit signed byte offset. 5979 5980 -- : BFD_RELOC_AARCH64_GAS_INTERNAL_FIXUP 5981 AArch64 pseudo relocation code to be used internally by the AArch64 5982 assembler and not (currently) written to any object files. 5983 5984 -- : BFD_RELOC_AARCH64_JUMP26 5985 AArch64 26 bit pc-relative unconditional branch. The lowest two 5986 bits must be zero and are not stored in the instruction, giving a 5987 28 bit signed byte offset. 5988 5989 -- : BFD_RELOC_AARCH64_LD_LO19_PCREL 5990 AArch64 Load Literal instruction, holding a 19 bit pc-relative word 5991 offset. The lowest two bits must be zero and are not stored in the 5992 instruction, giving a 21 bit signed byte offset. 5993 5994 -- : BFD_RELOC_AARCH64_LD64_GOT_LO12_NC 5995 Unsigned 12 bit byte offset for 64 bit load/store from the page of 5996 the GOT entry for this symbol. Used in conjunction with 5997 BFD_RELOC_AARCH64_ADR_GOTPAGE. 5998 5999 -- : BFD_RELOC_AARCH64_LDST_LO12 6000 AArch64 unspecified load/store instruction, holding bits 0 to 11 6001 of the address. Used in conjunction with 6002 BFD_RELOC_AARCH64_ADR_HI21_PCREL. 6003 6004 -- : BFD_RELOC_AARCH64_LDST8_LO12 6005 AArch64 8-bit load/store instruction, holding bits 0 to 11 of the 6006 address. Used in conjunction with 6007 BFD_RELOC_AARCH64_ADR_HI21_PCREL. 6008 6009 -- : BFD_RELOC_AARCH64_LDST16_LO12 6010 AArch64 16-bit load/store instruction, holding bits 0 to 11 of the 6011 address. Used in conjunction with 6012 BFD_RELOC_AARCH64_ADR_HI21_PCREL. 6013 6014 -- : BFD_RELOC_AARCH64_LDST32_LO12 6015 AArch64 32-bit load/store instruction, holding bits 0 to 11 of the 6016 address. Used in conjunction with 6017 BFD_RELOC_AARCH64_ADR_HI21_PCREL. 6018 6019 -- : BFD_RELOC_AARCH64_LDST64_LO12 6020 AArch64 64-bit load/store instruction, holding bits 0 to 11 of the 6021 address. Used in conjunction with 6022 BFD_RELOC_AARCH64_ADR_HI21_PCREL. 6023 6024 -- : BFD_RELOC_AARCH64_LDST128_LO12 6025 AArch64 128-bit load/store instruction, holding bits 0 to 11 of the 6026 address. Used in conjunction with 6027 BFD_RELOC_AARCH64_ADR_HI21_PCREL. 6028 6029 -- : BFD_RELOC_AARCH64_MOVW_G0 6030 AArch64 MOV[NZK] instruction with most significant bits 0 to 15 of 6031 an unsigned address/value. 6032 6033 -- : BFD_RELOC_AARCH64_MOVW_G0_S 6034 AArch64 MOV[NZ] instruction with most significant bits 0 to 15 of 6035 a signed value. Changes instruction to MOVZ or MOVN depending on 6036 the value's sign. 6037 6038 -- : BFD_RELOC_AARCH64_MOVW_G0_NC 6039 AArch64 MOV[NZK] instruction with less significant bits 0 to 15 of 6040 an address/value. No overflow checking. 6041 6042 -- : BFD_RELOC_AARCH64_MOVW_G1 6043 AArch64 MOV[NZK] instruction with most significant bits 16 to 31 6044 of an unsigned address/value. 6045 6046 -- : BFD_RELOC_AARCH64_MOVW_G1_NC 6047 AArch64 MOV[NZK] instruction with less significant bits 16 to 31 6048 of an address/value. No overflow checking. 6049 6050 -- : BFD_RELOC_AARCH64_MOVW_G1_S 6051 AArch64 MOV[NZ] instruction with most significant bits 16 to 31 of 6052 a signed value. Changes instruction to MOVZ or MOVN depending on 6053 the value's sign. 6054 6055 -- : BFD_RELOC_AARCH64_MOVW_G2 6056 AArch64 MOV[NZK] instruction with most significant bits 32 to 47 6057 of an unsigned address/value. 6058 6059 -- : BFD_RELOC_AARCH64_MOVW_G2_NC 6060 AArch64 MOV[NZK] instruction with less significant bits 32 to 47 6061 of an address/value. No overflow checking. 6062 6063 -- : BFD_RELOC_AARCH64_MOVW_G2_S 6064 AArch64 MOV[NZ] instruction with most significant bits 32 to 47 of 6065 a signed value. Changes instruction to MOVZ or MOVN depending on 6066 the value's sign. 6067 6068 -- : BFD_RELOC_AARCH64_MOVW_G3 6069 AArch64 MOV[NZK] instruction with most signficant bits 48 to 64 of 6070 a signed or unsigned address/value. 6071 6072 -- : BFD_RELOC_AARCH64_TLSDESC 6073 AArch64 TLS relocation. 6074 6075 -- : BFD_RELOC_AARCH64_TLSDESC_ADD 6076 AArch64 TLS DESC relocation. 6077 6078 -- : BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC 6079 AArch64 TLS DESC relocation. 6080 6081 -- : BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE 6082 AArch64 TLS DESC relocation. 6083 6084 -- : BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21 6085 AArch64 TLS DESC relocation. 6086 6087 -- : BFD_RELOC_AARCH64_TLSDESC_CALL 6088 AArch64 TLS DESC relocation. 6089 6090 -- : BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC 6091 AArch64 TLS DESC relocation. 6092 6093 -- : BFD_RELOC_AARCH64_TLSDESC_LD64_PREL19 6094 AArch64 TLS DESC relocation. 6095 6096 -- : BFD_RELOC_AARCH64_TLSDESC_LDR 6097 AArch64 TLS DESC relocation. 6098 6099 -- : BFD_RELOC_AARCH64_TLSDESC_OFF_G0_NC 6100 AArch64 TLS DESC relocation. 6101 6102 -- : BFD_RELOC_AARCH64_TLSDESC_OFF_G1 6103 AArch64 TLS DESC relocation. 6104 6105 -- : BFD_RELOC_AARCH64_TLSGD_ADD_LO12_NC 6106 Unsigned 12 bit byte offset to global offset table entry for a 6107 symbols tls_index structure. Used in conjunction with 6108 BFD_RELOC_AARCH64_TLSGD_ADR_PAGE21. 6109 6110 -- : BFD_RELOC_AARCH64_TLSGD_ADR_PAGE21 6111 Get to the page base of the global offset table entry for a symbols 6112 tls_index structure as part of an adrp instruction using a 21 bit 6113 PC relative value. Used in conjunction with 6114 BFD_RELOC_AARCH64_TLSGD_ADD_LO12_NC. 6115 6116 -- : BFD_RELOC_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 6117 AArch64 TLS INITIAL EXEC relocation. 6118 6119 -- : BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19 6120 AArch64 TLS INITIAL EXEC relocation. 6121 6122 -- : BFD_RELOC_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC 6123 AArch64 TLS INITIAL EXEC relocation. 6124 6125 -- : BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC 6126 AArch64 TLS INITIAL EXEC relocation. 6127 6128 -- : BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G1 6129 AArch64 TLS INITIAL EXEC relocation. 6130 6131 -- : BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_HI12 6132 AArch64 TLS LOCAL EXEC relocation. 6133 6134 -- : BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12 6135 AArch64 TLS LOCAL EXEC relocation. 6136 6137 -- : BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12_NC 6138 AArch64 TLS LOCAL EXEC relocation. 6139 6140 -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0 6141 AArch64 TLS LOCAL EXEC relocation. 6142 6143 -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0_NC 6144 AArch64 TLS LOCAL EXEC relocation. 6145 6146 -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1 6147 AArch64 TLS LOCAL EXEC relocation. 6148 6149 -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1_NC 6150 AArch64 TLS LOCAL EXEC relocation. 6151 6152 -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G2 6153 AArch64 TLS LOCAL EXEC relocation. 6154 6155 -- : BFD_RELOC_AARCH64_TLS_DTPMOD64 6156 AArch64 TLS relocation. 6157 6158 -- : BFD_RELOC_AARCH64_TLS_DTPREL64 6159 AArch64 TLS relocation. 6160 6161 -- : BFD_RELOC_AARCH64_TLS_TPREL64 6162 AArch64 TLS relocation. 6163 6164 -- : BFD_RELOC_AARCH64_TSTBR14 6165 AArch64 14 bit pc-relative test bit and branch. The lowest two 6166 bits must be zero and are not stored in the instruction, giving a 6167 16 bit signed byte offset. 6168 6169 -- : BFD_RELOC_TILEPRO_COPY 6170 -- : BFD_RELOC_TILEPRO_GLOB_DAT 6171 -- : BFD_RELOC_TILEPRO_JMP_SLOT 6172 -- : BFD_RELOC_TILEPRO_RELATIVE 6173 -- : BFD_RELOC_TILEPRO_BROFF_X1 6174 -- : BFD_RELOC_TILEPRO_JOFFLONG_X1 6175 -- : BFD_RELOC_TILEPRO_JOFFLONG_X1_PLT 6176 -- : BFD_RELOC_TILEPRO_IMM8_X0 6177 -- : BFD_RELOC_TILEPRO_IMM8_Y0 6178 -- : BFD_RELOC_TILEPRO_IMM8_X1 6179 -- : BFD_RELOC_TILEPRO_IMM8_Y1 6180 -- : BFD_RELOC_TILEPRO_DEST_IMM8_X1 6181 -- : BFD_RELOC_TILEPRO_MT_IMM15_X1 6182 -- : BFD_RELOC_TILEPRO_MF_IMM15_X1 6183 -- : BFD_RELOC_TILEPRO_IMM16_X0 6184 -- : BFD_RELOC_TILEPRO_IMM16_X1 6185 -- : BFD_RELOC_TILEPRO_IMM16_X0_LO 6186 -- : BFD_RELOC_TILEPRO_IMM16_X1_LO 6187 -- : BFD_RELOC_TILEPRO_IMM16_X0_HI 6188 -- : BFD_RELOC_TILEPRO_IMM16_X1_HI 6189 -- : BFD_RELOC_TILEPRO_IMM16_X0_HA 6190 -- : BFD_RELOC_TILEPRO_IMM16_X1_HA 6191 -- : BFD_RELOC_TILEPRO_IMM16_X0_PCREL 6192 -- : BFD_RELOC_TILEPRO_IMM16_X1_PCREL 6193 -- : BFD_RELOC_TILEPRO_IMM16_X0_LO_PCREL 6194 -- : BFD_RELOC_TILEPRO_IMM16_X1_LO_PCREL 6195 -- : BFD_RELOC_TILEPRO_IMM16_X0_HI_PCREL 6196 -- : BFD_RELOC_TILEPRO_IMM16_X1_HI_PCREL 6197 -- : BFD_RELOC_TILEPRO_IMM16_X0_HA_PCREL 6198 -- : BFD_RELOC_TILEPRO_IMM16_X1_HA_PCREL 6199 -- : BFD_RELOC_TILEPRO_IMM16_X0_GOT 6200 -- : BFD_RELOC_TILEPRO_IMM16_X1_GOT 6201 -- : BFD_RELOC_TILEPRO_IMM16_X0_GOT_LO 6202 -- : BFD_RELOC_TILEPRO_IMM16_X1_GOT_LO 6203 -- : BFD_RELOC_TILEPRO_IMM16_X0_GOT_HI 6204 -- : BFD_RELOC_TILEPRO_IMM16_X1_GOT_HI 6205 -- : BFD_RELOC_TILEPRO_IMM16_X0_GOT_HA 6206 -- : BFD_RELOC_TILEPRO_IMM16_X1_GOT_HA 6207 -- : BFD_RELOC_TILEPRO_MMSTART_X0 6208 -- : BFD_RELOC_TILEPRO_MMEND_X0 6209 -- : BFD_RELOC_TILEPRO_MMSTART_X1 6210 -- : BFD_RELOC_TILEPRO_MMEND_X1 6211 -- : BFD_RELOC_TILEPRO_SHAMT_X0 6212 -- : BFD_RELOC_TILEPRO_SHAMT_X1 6213 -- : BFD_RELOC_TILEPRO_SHAMT_Y0 6214 -- : BFD_RELOC_TILEPRO_SHAMT_Y1 6215 -- : BFD_RELOC_TILEPRO_TLS_GD_CALL 6216 -- : BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD 6217 -- : BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD 6218 -- : BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD 6219 -- : BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD 6220 -- : BFD_RELOC_TILEPRO_TLS_IE_LOAD 6221 -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD 6222 -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD 6223 -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_LO 6224 -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_LO 6225 -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HI 6226 -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HI 6227 -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HA 6228 -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HA 6229 -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE 6230 -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE 6231 -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_LO 6232 -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_LO 6233 -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HI 6234 -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HI 6235 -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HA 6236 -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HA 6237 -- : BFD_RELOC_TILEPRO_TLS_DTPMOD32 6238 -- : BFD_RELOC_TILEPRO_TLS_DTPOFF32 6239 -- : BFD_RELOC_TILEPRO_TLS_TPOFF32 6240 -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE 6241 -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE 6242 -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO 6243 -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO 6244 -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI 6245 -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI 6246 -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA 6247 -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA 6248 Tilera TILEPro Relocations. 6249 6250 -- : BFD_RELOC_TILEGX_HW0 6251 -- : BFD_RELOC_TILEGX_HW1 6252 -- : BFD_RELOC_TILEGX_HW2 6253 -- : BFD_RELOC_TILEGX_HW3 6254 -- : BFD_RELOC_TILEGX_HW0_LAST 6255 -- : BFD_RELOC_TILEGX_HW1_LAST 6256 -- : BFD_RELOC_TILEGX_HW2_LAST 6257 -- : BFD_RELOC_TILEGX_COPY 6258 -- : BFD_RELOC_TILEGX_GLOB_DAT 6259 -- : BFD_RELOC_TILEGX_JMP_SLOT 6260 -- : BFD_RELOC_TILEGX_RELATIVE 6261 -- : BFD_RELOC_TILEGX_BROFF_X1 6262 -- : BFD_RELOC_TILEGX_JUMPOFF_X1 6263 -- : BFD_RELOC_TILEGX_JUMPOFF_X1_PLT 6264 -- : BFD_RELOC_TILEGX_IMM8_X0 6265 -- : BFD_RELOC_TILEGX_IMM8_Y0 6266 -- : BFD_RELOC_TILEGX_IMM8_X1 6267 -- : BFD_RELOC_TILEGX_IMM8_Y1 6268 -- : BFD_RELOC_TILEGX_DEST_IMM8_X1 6269 -- : BFD_RELOC_TILEGX_MT_IMM14_X1 6270 -- : BFD_RELOC_TILEGX_MF_IMM14_X1 6271 -- : BFD_RELOC_TILEGX_MMSTART_X0 6272 -- : BFD_RELOC_TILEGX_MMEND_X0 6273 -- : BFD_RELOC_TILEGX_SHAMT_X0 6274 -- : BFD_RELOC_TILEGX_SHAMT_X1 6275 -- : BFD_RELOC_TILEGX_SHAMT_Y0 6276 -- : BFD_RELOC_TILEGX_SHAMT_Y1 6277 -- : BFD_RELOC_TILEGX_IMM16_X0_HW0 6278 -- : BFD_RELOC_TILEGX_IMM16_X1_HW0 6279 -- : BFD_RELOC_TILEGX_IMM16_X0_HW1 6280 -- : BFD_RELOC_TILEGX_IMM16_X1_HW1 6281 -- : BFD_RELOC_TILEGX_IMM16_X0_HW2 6282 -- : BFD_RELOC_TILEGX_IMM16_X1_HW2 6283 -- : BFD_RELOC_TILEGX_IMM16_X0_HW3 6284 -- : BFD_RELOC_TILEGX_IMM16_X1_HW3 6285 -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST 6286 -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST 6287 -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST 6288 -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST 6289 -- : BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST 6290 -- : BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST 6291 -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_PCREL 6292 -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_PCREL 6293 -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_PCREL 6294 -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_PCREL 6295 -- : BFD_RELOC_TILEGX_IMM16_X0_HW2_PCREL 6296 -- : BFD_RELOC_TILEGX_IMM16_X1_HW2_PCREL 6297 -- : BFD_RELOC_TILEGX_IMM16_X0_HW3_PCREL 6298 -- : BFD_RELOC_TILEGX_IMM16_X1_HW3_PCREL 6299 -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PCREL 6300 -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PCREL 6301 -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PCREL 6302 -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PCREL 6303 -- : BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PCREL 6304 -- : BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PCREL 6305 -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_GOT 6306 -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_GOT 6307 -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_GOT 6308 -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_GOT 6309 -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_GOT 6310 -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_GOT 6311 -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_GD 6312 -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_GD 6313 -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE 6314 -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE 6315 -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE 6316 -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE 6317 -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE 6318 -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE 6319 -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_GD 6320 -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_GD 6321 -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_GD 6322 -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_GD 6323 -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_IE 6324 -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_IE 6325 -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_IE 6326 -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_IE 6327 -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_IE 6328 -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_IE 6329 -- : BFD_RELOC_TILEGX_TLS_DTPMOD64 6330 -- : BFD_RELOC_TILEGX_TLS_DTPOFF64 6331 -- : BFD_RELOC_TILEGX_TLS_TPOFF64 6332 -- : BFD_RELOC_TILEGX_TLS_DTPMOD32 6333 -- : BFD_RELOC_TILEGX_TLS_DTPOFF32 6334 -- : BFD_RELOC_TILEGX_TLS_TPOFF32 6335 -- : BFD_RELOC_TILEGX_TLS_GD_CALL 6336 -- : BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD 6337 -- : BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD 6338 -- : BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD 6339 -- : BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD 6340 -- : BFD_RELOC_TILEGX_TLS_IE_LOAD 6341 -- : BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD 6342 -- : BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD 6343 -- : BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD 6344 -- : BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD 6345 Tilera TILE-Gx Relocations. 6346 6347 -- : BFD_RELOC_EPIPHANY_SIMM8 6348 Adapteva EPIPHANY - 8 bit signed pc-relative displacement 6349 6350 -- : BFD_RELOC_EPIPHANY_SIMM24 6351 Adapteva EPIPHANY - 24 bit signed pc-relative displacement 6352 6353 -- : BFD_RELOC_EPIPHANY_HIGH 6354 Adapteva EPIPHANY - 16 most-significant bits of absolute address 6355 6356 -- : BFD_RELOC_EPIPHANY_LOW 6357 Adapteva EPIPHANY - 16 least-significant bits of absolute address 6358 6359 -- : BFD_RELOC_EPIPHANY_SIMM11 6360 Adapteva EPIPHANY - 11 bit signed number - add/sub immediate 6361 6362 -- : BFD_RELOC_EPIPHANY_IMM11 6363 Adapteva EPIPHANY - 11 bit sign-magnitude number (ld/st 6364 displacement) 6365 6366 -- : BFD_RELOC_EPIPHANY_IMM8 6367 Adapteva EPIPHANY - 8 bit immediate for 16 bit mov instruction. 6368 6369 6370 typedef enum bfd_reloc_code_real bfd_reloc_code_real_type; 6371 63722.10.2.2 `bfd_reloc_type_lookup' 6373................................ 6374 6375*Synopsis* 6376 reloc_howto_type *bfd_reloc_type_lookup 6377 (bfd *abfd, bfd_reloc_code_real_type code); 6378 reloc_howto_type *bfd_reloc_name_lookup 6379 (bfd *abfd, const char *reloc_name); 6380 *Description* 6381Return a pointer to a howto structure which, when invoked, will perform 6382the relocation CODE on data from the architecture noted. 6383 63842.10.2.3 `bfd_default_reloc_type_lookup' 6385........................................ 6386 6387*Synopsis* 6388 reloc_howto_type *bfd_default_reloc_type_lookup 6389 (bfd *abfd, bfd_reloc_code_real_type code); 6390 *Description* 6391Provides a default relocation lookup routine for any architecture. 6392 63932.10.2.4 `bfd_get_reloc_code_name' 6394.................................. 6395 6396*Synopsis* 6397 const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code); 6398 *Description* 6399Provides a printable name for the supplied relocation code. Useful 6400mainly for printing error messages. 6401 64022.10.2.5 `bfd_generic_relax_section' 6403.................................... 6404 6405*Synopsis* 6406 bfd_boolean bfd_generic_relax_section 6407 (bfd *abfd, 6408 asection *section, 6409 struct bfd_link_info *, 6410 bfd_boolean *); 6411 *Description* 6412Provides default handling for relaxing for back ends which don't do 6413relaxing. 6414 64152.10.2.6 `bfd_generic_gc_sections' 6416.................................. 6417 6418*Synopsis* 6419 bfd_boolean bfd_generic_gc_sections 6420 (bfd *, struct bfd_link_info *); 6421 *Description* 6422Provides default handling for relaxing for back ends which don't do 6423section gc - i.e., does nothing. 6424 64252.10.2.7 `bfd_generic_lookup_section_flags' 6426........................................... 6427 6428*Synopsis* 6429 bfd_boolean bfd_generic_lookup_section_flags 6430 (struct bfd_link_info *, struct flag_info *, asection *); 6431 *Description* 6432Provides default handling for section flags lookup - i.e., does nothing. 6433Returns FALSE if the section should be omitted, otherwise TRUE. 6434 64352.10.2.8 `bfd_generic_merge_sections' 6436..................................... 6437 6438*Synopsis* 6439 bfd_boolean bfd_generic_merge_sections 6440 (bfd *, struct bfd_link_info *); 6441 *Description* 6442Provides default handling for SEC_MERGE section merging for back ends 6443which don't have SEC_MERGE support - i.e., does nothing. 6444 64452.10.2.9 `bfd_generic_get_relocated_section_contents' 6446..................................................... 6447 6448*Synopsis* 6449 bfd_byte *bfd_generic_get_relocated_section_contents 6450 (bfd *abfd, 6451 struct bfd_link_info *link_info, 6452 struct bfd_link_order *link_order, 6453 bfd_byte *data, 6454 bfd_boolean relocatable, 6455 asymbol **symbols); 6456 *Description* 6457Provides default handling of relocation effort for back ends which 6458can't be bothered to do it efficiently. 6459 6460 6461File: bfd.info, Node: Core Files, Next: Targets, Prev: Relocations, Up: BFD front end 6462 64632.11 Core files 6464=============== 6465 64662.11.1 Core file functions 6467-------------------------- 6468 6469*Description* 6470These are functions pertaining to core files. 6471 64722.11.1.1 `bfd_core_file_failing_command' 6473........................................ 6474 6475*Synopsis* 6476 const char *bfd_core_file_failing_command (bfd *abfd); 6477 *Description* 6478Return a read-only string explaining which program was running when it 6479failed and produced the core file ABFD. 6480 64812.11.1.2 `bfd_core_file_failing_signal' 6482....................................... 6483 6484*Synopsis* 6485 int bfd_core_file_failing_signal (bfd *abfd); 6486 *Description* 6487Returns the signal number which caused the core dump which generated 6488the file the BFD ABFD is attached to. 6489 64902.11.1.3 `bfd_core_file_pid' 6491............................ 6492 6493*Synopsis* 6494 int bfd_core_file_pid (bfd *abfd); 6495 *Description* 6496Returns the PID of the process the core dump the BFD ABFD is attached 6497to was generated from. 6498 64992.11.1.4 `core_file_matches_executable_p' 6500......................................... 6501 6502*Synopsis* 6503 bfd_boolean core_file_matches_executable_p 6504 (bfd *core_bfd, bfd *exec_bfd); 6505 *Description* 6506Return `TRUE' if the core file attached to CORE_BFD was generated by a 6507run of the executable file attached to EXEC_BFD, `FALSE' otherwise. 6508 65092.11.1.5 `generic_core_file_matches_executable_p' 6510................................................. 6511 6512*Synopsis* 6513 bfd_boolean generic_core_file_matches_executable_p 6514 (bfd *core_bfd, bfd *exec_bfd); 6515 *Description* 6516Return TRUE if the core file attached to CORE_BFD was generated by a 6517run of the executable file attached to EXEC_BFD. The match is based on 6518executable basenames only. 6519 6520 Note: When not able to determine the core file failing command or 6521the executable name, we still return TRUE even though we're not sure 6522that core file and executable match. This is to avoid generating a 6523false warning in situations where we really don't know whether they 6524match or not. 6525 6526 6527File: bfd.info, Node: Targets, Next: Architectures, Prev: Core Files, Up: BFD front end 6528 65292.12 Targets 6530============ 6531 6532*Description* 6533Each port of BFD to a different machine requires the creation of a 6534target back end. All the back end provides to the root part of BFD is a 6535structure containing pointers to functions which perform certain low 6536level operations on files. BFD translates the applications's requests 6537through a pointer into calls to the back end routines. 6538 6539 When a file is opened with `bfd_openr', its format and target are 6540unknown. BFD uses various mechanisms to determine how to interpret the 6541file. The operations performed are: 6542 6543 * Create a BFD by calling the internal routine `_bfd_new_bfd', then 6544 call `bfd_find_target' with the target string supplied to 6545 `bfd_openr' and the new BFD pointer. 6546 6547 * If a null target string was provided to `bfd_find_target', look up 6548 the environment variable `GNUTARGET' and use that as the target 6549 string. 6550 6551 * If the target string is still `NULL', or the target string is 6552 `default', then use the first item in the target vector as the 6553 target type, and set `target_defaulted' in the BFD to cause 6554 `bfd_check_format' to loop through all the targets. *Note 6555 bfd_target::. *Note Formats::. 6556 6557 * Otherwise, inspect the elements in the target vector one by one, 6558 until a match on target name is found. When found, use it. 6559 6560 * Otherwise return the error `bfd_error_invalid_target' to 6561 `bfd_openr'. 6562 6563 * `bfd_openr' attempts to open the file using `bfd_open_file', and 6564 returns the BFD. 6565 Once the BFD has been opened and the target selected, the file 6566format may be determined. This is done by calling `bfd_check_format' on 6567the BFD with a suggested format. If `target_defaulted' has been set, 6568each possible target type is tried to see if it recognizes the 6569specified format. `bfd_check_format' returns `TRUE' when the caller 6570guesses right. 6571 6572* Menu: 6573 6574* bfd_target:: 6575 6576 6577File: bfd.info, Node: bfd_target, Prev: Targets, Up: Targets 6578 65792.12.1 bfd_target 6580----------------- 6581 6582*Description* 6583This structure contains everything that BFD knows about a target. It 6584includes things like its byte order, name, and which routines to call 6585to do various operations. 6586 6587 Every BFD points to a target structure with its `xvec' member. 6588 6589 The macros below are used to dispatch to functions through the 6590`bfd_target' vector. They are used in a number of macros further down 6591in `bfd.h', and are also used when calling various routines by hand 6592inside the BFD implementation. The ARGLIST argument must be 6593parenthesized; it contains all the arguments to the called function. 6594 6595 They make the documentation (more) unpleasant to read, so if someone 6596wants to fix this and not break the above, please do. 6597 #define BFD_SEND(bfd, message, arglist) \ 6598 ((*((bfd)->xvec->message)) arglist) 6599 6600 #ifdef DEBUG_BFD_SEND 6601 #undef BFD_SEND 6602 #define BFD_SEND(bfd, message, arglist) \ 6603 (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \ 6604 ((*((bfd)->xvec->message)) arglist) : \ 6605 (bfd_assert (__FILE__,__LINE__), NULL)) 6606 #endif 6607 For operations which index on the BFD format: 6608 #define BFD_SEND_FMT(bfd, message, arglist) \ 6609 (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist) 6610 6611 #ifdef DEBUG_BFD_SEND 6612 #undef BFD_SEND_FMT 6613 #define BFD_SEND_FMT(bfd, message, arglist) \ 6614 (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \ 6615 (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist) : \ 6616 (bfd_assert (__FILE__,__LINE__), NULL)) 6617 #endif 6618 This is the structure which defines the type of BFD this is. The 6619`xvec' member of the struct `bfd' itself points here. Each module that 6620implements access to a different target under BFD, defines one of these. 6621 6622 FIXME, these names should be rationalised with the names of the 6623entry points which call them. Too bad we can't have one macro to define 6624them both! 6625 enum bfd_flavour 6626 { 6627 bfd_target_unknown_flavour, 6628 bfd_target_aout_flavour, 6629 bfd_target_coff_flavour, 6630 bfd_target_ecoff_flavour, 6631 bfd_target_xcoff_flavour, 6632 bfd_target_elf_flavour, 6633 bfd_target_ieee_flavour, 6634 bfd_target_nlm_flavour, 6635 bfd_target_oasys_flavour, 6636 bfd_target_tekhex_flavour, 6637 bfd_target_srec_flavour, 6638 bfd_target_verilog_flavour, 6639 bfd_target_ihex_flavour, 6640 bfd_target_som_flavour, 6641 bfd_target_os9k_flavour, 6642 bfd_target_versados_flavour, 6643 bfd_target_msdos_flavour, 6644 bfd_target_ovax_flavour, 6645 bfd_target_evax_flavour, 6646 bfd_target_mmo_flavour, 6647 bfd_target_mach_o_flavour, 6648 bfd_target_pef_flavour, 6649 bfd_target_pef_xlib_flavour, 6650 bfd_target_sym_flavour 6651 }; 6652 6653 enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN }; 6654 6655 /* Forward declaration. */ 6656 typedef struct bfd_link_info _bfd_link_info; 6657 6658 /* Forward declaration. */ 6659 typedef struct flag_info flag_info; 6660 6661 typedef struct bfd_target 6662 { 6663 /* Identifies the kind of target, e.g., SunOS4, Ultrix, etc. */ 6664 char *name; 6665 6666 /* The "flavour" of a back end is a general indication about 6667 the contents of a file. */ 6668 enum bfd_flavour flavour; 6669 6670 /* The order of bytes within the data area of a file. */ 6671 enum bfd_endian byteorder; 6672 6673 /* The order of bytes within the header parts of a file. */ 6674 enum bfd_endian header_byteorder; 6675 6676 /* A mask of all the flags which an executable may have set - 6677 from the set `BFD_NO_FLAGS', `HAS_RELOC', ...`D_PAGED'. */ 6678 flagword object_flags; 6679 6680 /* A mask of all the flags which a section may have set - from 6681 the set `SEC_NO_FLAGS', `SEC_ALLOC', ...`SET_NEVER_LOAD'. */ 6682 flagword section_flags; 6683 6684 /* The character normally found at the front of a symbol. 6685 (if any), perhaps `_'. */ 6686 char symbol_leading_char; 6687 6688 /* The pad character for file names within an archive header. */ 6689 char ar_pad_char; 6690 6691 /* The maximum number of characters in an archive header. */ 6692 unsigned char ar_max_namelen; 6693 6694 /* How well this target matches, used to select between various 6695 possible targets when more than one target matches. */ 6696 unsigned char match_priority; 6697 6698 /* Entries for byte swapping for data. These are different from the 6699 other entry points, since they don't take a BFD as the first argument. 6700 Certain other handlers could do the same. */ 6701 bfd_uint64_t (*bfd_getx64) (const void *); 6702 bfd_int64_t (*bfd_getx_signed_64) (const void *); 6703 void (*bfd_putx64) (bfd_uint64_t, void *); 6704 bfd_vma (*bfd_getx32) (const void *); 6705 bfd_signed_vma (*bfd_getx_signed_32) (const void *); 6706 void (*bfd_putx32) (bfd_vma, void *); 6707 bfd_vma (*bfd_getx16) (const void *); 6708 bfd_signed_vma (*bfd_getx_signed_16) (const void *); 6709 void (*bfd_putx16) (bfd_vma, void *); 6710 6711 /* Byte swapping for the headers. */ 6712 bfd_uint64_t (*bfd_h_getx64) (const void *); 6713 bfd_int64_t (*bfd_h_getx_signed_64) (const void *); 6714 void (*bfd_h_putx64) (bfd_uint64_t, void *); 6715 bfd_vma (*bfd_h_getx32) (const void *); 6716 bfd_signed_vma (*bfd_h_getx_signed_32) (const void *); 6717 void (*bfd_h_putx32) (bfd_vma, void *); 6718 bfd_vma (*bfd_h_getx16) (const void *); 6719 bfd_signed_vma (*bfd_h_getx_signed_16) (const void *); 6720 void (*bfd_h_putx16) (bfd_vma, void *); 6721 6722 /* Format dependent routines: these are vectors of entry points 6723 within the target vector structure, one for each format to check. */ 6724 6725 /* Check the format of a file being read. Return a `bfd_target *' or zero. */ 6726 const struct bfd_target *(*_bfd_check_format[bfd_type_end]) (bfd *); 6727 6728 /* Set the format of a file being written. */ 6729 bfd_boolean (*_bfd_set_format[bfd_type_end]) (bfd *); 6730 6731 /* Write cached information into a file being written, at `bfd_close'. */ 6732 bfd_boolean (*_bfd_write_contents[bfd_type_end]) (bfd *); 6733 The general target vector. These vectors are initialized using the 6734BFD_JUMP_TABLE macros. 6735 6736 /* Generic entry points. */ 6737 #define BFD_JUMP_TABLE_GENERIC(NAME) \ 6738 NAME##_close_and_cleanup, \ 6739 NAME##_bfd_free_cached_info, \ 6740 NAME##_new_section_hook, \ 6741 NAME##_get_section_contents, \ 6742 NAME##_get_section_contents_in_window 6743 6744 /* Called when the BFD is being closed to do any necessary cleanup. */ 6745 bfd_boolean (*_close_and_cleanup) (bfd *); 6746 /* Ask the BFD to free all cached information. */ 6747 bfd_boolean (*_bfd_free_cached_info) (bfd *); 6748 /* Called when a new section is created. */ 6749 bfd_boolean (*_new_section_hook) (bfd *, sec_ptr); 6750 /* Read the contents of a section. */ 6751 bfd_boolean (*_bfd_get_section_contents) 6752 (bfd *, sec_ptr, void *, file_ptr, bfd_size_type); 6753 bfd_boolean (*_bfd_get_section_contents_in_window) 6754 (bfd *, sec_ptr, bfd_window *, file_ptr, bfd_size_type); 6755 6756 /* Entry points to copy private data. */ 6757 #define BFD_JUMP_TABLE_COPY(NAME) \ 6758 NAME##_bfd_copy_private_bfd_data, \ 6759 NAME##_bfd_merge_private_bfd_data, \ 6760 _bfd_generic_init_private_section_data, \ 6761 NAME##_bfd_copy_private_section_data, \ 6762 NAME##_bfd_copy_private_symbol_data, \ 6763 NAME##_bfd_copy_private_header_data, \ 6764 NAME##_bfd_set_private_flags, \ 6765 NAME##_bfd_print_private_bfd_data 6766 6767 /* Called to copy BFD general private data from one object file 6768 to another. */ 6769 bfd_boolean (*_bfd_copy_private_bfd_data) (bfd *, bfd *); 6770 /* Called to merge BFD general private data from one object file 6771 to a common output file when linking. */ 6772 bfd_boolean (*_bfd_merge_private_bfd_data) (bfd *, bfd *); 6773 /* Called to initialize BFD private section data from one object file 6774 to another. */ 6775 #define bfd_init_private_section_data(ibfd, isec, obfd, osec, link_info) \ 6776 BFD_SEND (obfd, _bfd_init_private_section_data, (ibfd, isec, obfd, osec, link_info)) 6777 bfd_boolean (*_bfd_init_private_section_data) 6778 (bfd *, sec_ptr, bfd *, sec_ptr, struct bfd_link_info *); 6779 /* Called to copy BFD private section data from one object file 6780 to another. */ 6781 bfd_boolean (*_bfd_copy_private_section_data) 6782 (bfd *, sec_ptr, bfd *, sec_ptr); 6783 /* Called to copy BFD private symbol data from one symbol 6784 to another. */ 6785 bfd_boolean (*_bfd_copy_private_symbol_data) 6786 (bfd *, asymbol *, bfd *, asymbol *); 6787 /* Called to copy BFD private header data from one object file 6788 to another. */ 6789 bfd_boolean (*_bfd_copy_private_header_data) 6790 (bfd *, bfd *); 6791 /* Called to set private backend flags. */ 6792 bfd_boolean (*_bfd_set_private_flags) (bfd *, flagword); 6793 6794 /* Called to print private BFD data. */ 6795 bfd_boolean (*_bfd_print_private_bfd_data) (bfd *, void *); 6796 6797 /* Core file entry points. */ 6798 #define BFD_JUMP_TABLE_CORE(NAME) \ 6799 NAME##_core_file_failing_command, \ 6800 NAME##_core_file_failing_signal, \ 6801 NAME##_core_file_matches_executable_p, \ 6802 NAME##_core_file_pid 6803 6804 char * (*_core_file_failing_command) (bfd *); 6805 int (*_core_file_failing_signal) (bfd *); 6806 bfd_boolean (*_core_file_matches_executable_p) (bfd *, bfd *); 6807 int (*_core_file_pid) (bfd *); 6808 6809 /* Archive entry points. */ 6810 #define BFD_JUMP_TABLE_ARCHIVE(NAME) \ 6811 NAME##_slurp_armap, \ 6812 NAME##_slurp_extended_name_table, \ 6813 NAME##_construct_extended_name_table, \ 6814 NAME##_truncate_arname, \ 6815 NAME##_write_armap, \ 6816 NAME##_read_ar_hdr, \ 6817 NAME##_write_ar_hdr, \ 6818 NAME##_openr_next_archived_file, \ 6819 NAME##_get_elt_at_index, \ 6820 NAME##_generic_stat_arch_elt, \ 6821 NAME##_update_armap_timestamp 6822 6823 bfd_boolean (*_bfd_slurp_armap) (bfd *); 6824 bfd_boolean (*_bfd_slurp_extended_name_table) (bfd *); 6825 bfd_boolean (*_bfd_construct_extended_name_table) 6826 (bfd *, char **, bfd_size_type *, const char **); 6827 void (*_bfd_truncate_arname) (bfd *, const char *, char *); 6828 bfd_boolean (*write_armap) 6829 (bfd *, unsigned int, struct orl *, unsigned int, int); 6830 void * (*_bfd_read_ar_hdr_fn) (bfd *); 6831 bfd_boolean (*_bfd_write_ar_hdr_fn) (bfd *, bfd *); 6832 bfd * (*openr_next_archived_file) (bfd *, bfd *); 6833 #define bfd_get_elt_at_index(b,i) BFD_SEND (b, _bfd_get_elt_at_index, (b,i)) 6834 bfd * (*_bfd_get_elt_at_index) (bfd *, symindex); 6835 int (*_bfd_stat_arch_elt) (bfd *, struct stat *); 6836 bfd_boolean (*_bfd_update_armap_timestamp) (bfd *); 6837 6838 /* Entry points used for symbols. */ 6839 #define BFD_JUMP_TABLE_SYMBOLS(NAME) \ 6840 NAME##_get_symtab_upper_bound, \ 6841 NAME##_canonicalize_symtab, \ 6842 NAME##_make_empty_symbol, \ 6843 NAME##_print_symbol, \ 6844 NAME##_get_symbol_info, \ 6845 NAME##_bfd_is_local_label_name, \ 6846 NAME##_bfd_is_target_special_symbol, \ 6847 NAME##_get_lineno, \ 6848 NAME##_find_nearest_line, \ 6849 _bfd_generic_find_nearest_line_discriminator, \ 6850 _bfd_generic_find_line, \ 6851 NAME##_find_inliner_info, \ 6852 NAME##_bfd_make_debug_symbol, \ 6853 NAME##_read_minisymbols, \ 6854 NAME##_minisymbol_to_symbol 6855 6856 long (*_bfd_get_symtab_upper_bound) (bfd *); 6857 long (*_bfd_canonicalize_symtab) 6858 (bfd *, struct bfd_symbol **); 6859 struct bfd_symbol * 6860 (*_bfd_make_empty_symbol) (bfd *); 6861 void (*_bfd_print_symbol) 6862 (bfd *, void *, struct bfd_symbol *, bfd_print_symbol_type); 6863 #define bfd_print_symbol(b,p,s,e) BFD_SEND (b, _bfd_print_symbol, (b,p,s,e)) 6864 void (*_bfd_get_symbol_info) 6865 (bfd *, struct bfd_symbol *, symbol_info *); 6866 #define bfd_get_symbol_info(b,p,e) BFD_SEND (b, _bfd_get_symbol_info, (b,p,e)) 6867 bfd_boolean (*_bfd_is_local_label_name) (bfd *, const char *); 6868 bfd_boolean (*_bfd_is_target_special_symbol) (bfd *, asymbol *); 6869 alent * (*_get_lineno) (bfd *, struct bfd_symbol *); 6870 bfd_boolean (*_bfd_find_nearest_line) 6871 (bfd *, struct bfd_section *, struct bfd_symbol **, bfd_vma, 6872 const char **, const char **, unsigned int *); 6873 bfd_boolean (*_bfd_find_nearest_line_discriminator) 6874 (bfd *, struct bfd_section *, struct bfd_symbol **, bfd_vma, 6875 const char **, const char **, unsigned int *, unsigned int *); 6876 bfd_boolean (*_bfd_find_line) 6877 (bfd *, struct bfd_symbol **, struct bfd_symbol *, 6878 const char **, unsigned int *); 6879 bfd_boolean (*_bfd_find_inliner_info) 6880 (bfd *, const char **, const char **, unsigned int *); 6881 /* Back-door to allow format-aware applications to create debug symbols 6882 while using BFD for everything else. Currently used by the assembler 6883 when creating COFF files. */ 6884 asymbol * (*_bfd_make_debug_symbol) 6885 (bfd *, void *, unsigned long size); 6886 #define bfd_read_minisymbols(b, d, m, s) \ 6887 BFD_SEND (b, _read_minisymbols, (b, d, m, s)) 6888 long (*_read_minisymbols) 6889 (bfd *, bfd_boolean, void **, unsigned int *); 6890 #define bfd_minisymbol_to_symbol(b, d, m, f) \ 6891 BFD_SEND (b, _minisymbol_to_symbol, (b, d, m, f)) 6892 asymbol * (*_minisymbol_to_symbol) 6893 (bfd *, bfd_boolean, const void *, asymbol *); 6894 6895 /* Routines for relocs. */ 6896 #define BFD_JUMP_TABLE_RELOCS(NAME) \ 6897 NAME##_get_reloc_upper_bound, \ 6898 NAME##_canonicalize_reloc, \ 6899 NAME##_bfd_reloc_type_lookup, \ 6900 NAME##_bfd_reloc_name_lookup 6901 6902 long (*_get_reloc_upper_bound) (bfd *, sec_ptr); 6903 long (*_bfd_canonicalize_reloc) 6904 (bfd *, sec_ptr, arelent **, struct bfd_symbol **); 6905 /* See documentation on reloc types. */ 6906 reloc_howto_type * 6907 (*reloc_type_lookup) (bfd *, bfd_reloc_code_real_type); 6908 reloc_howto_type * 6909 (*reloc_name_lookup) (bfd *, const char *); 6910 6911 6912 /* Routines used when writing an object file. */ 6913 #define BFD_JUMP_TABLE_WRITE(NAME) \ 6914 NAME##_set_arch_mach, \ 6915 NAME##_set_section_contents 6916 6917 bfd_boolean (*_bfd_set_arch_mach) 6918 (bfd *, enum bfd_architecture, unsigned long); 6919 bfd_boolean (*_bfd_set_section_contents) 6920 (bfd *, sec_ptr, const void *, file_ptr, bfd_size_type); 6921 6922 /* Routines used by the linker. */ 6923 #define BFD_JUMP_TABLE_LINK(NAME) \ 6924 NAME##_sizeof_headers, \ 6925 NAME##_bfd_get_relocated_section_contents, \ 6926 NAME##_bfd_relax_section, \ 6927 NAME##_bfd_link_hash_table_create, \ 6928 NAME##_bfd_link_hash_table_free, \ 6929 NAME##_bfd_link_add_symbols, \ 6930 NAME##_bfd_link_just_syms, \ 6931 NAME##_bfd_copy_link_hash_symbol_type, \ 6932 NAME##_bfd_final_link, \ 6933 NAME##_bfd_link_split_section, \ 6934 NAME##_bfd_gc_sections, \ 6935 NAME##_bfd_lookup_section_flags, \ 6936 NAME##_bfd_merge_sections, \ 6937 NAME##_bfd_is_group_section, \ 6938 NAME##_bfd_discard_group, \ 6939 NAME##_section_already_linked, \ 6940 NAME##_bfd_define_common_symbol 6941 6942 int (*_bfd_sizeof_headers) (bfd *, struct bfd_link_info *); 6943 bfd_byte * (*_bfd_get_relocated_section_contents) 6944 (bfd *, struct bfd_link_info *, struct bfd_link_order *, 6945 bfd_byte *, bfd_boolean, struct bfd_symbol **); 6946 6947 bfd_boolean (*_bfd_relax_section) 6948 (bfd *, struct bfd_section *, struct bfd_link_info *, bfd_boolean *); 6949 6950 /* Create a hash table for the linker. Different backends store 6951 different information in this table. */ 6952 struct bfd_link_hash_table * 6953 (*_bfd_link_hash_table_create) (bfd *); 6954 6955 /* Release the memory associated with the linker hash table. */ 6956 void (*_bfd_link_hash_table_free) (struct bfd_link_hash_table *); 6957 6958 /* Add symbols from this object file into the hash table. */ 6959 bfd_boolean (*_bfd_link_add_symbols) (bfd *, struct bfd_link_info *); 6960 6961 /* Indicate that we are only retrieving symbol values from this section. */ 6962 void (*_bfd_link_just_syms) (asection *, struct bfd_link_info *); 6963 6964 /* Copy the symbol type of a linker hash table entry. */ 6965 #define bfd_copy_link_hash_symbol_type(b, t, f) \ 6966 BFD_SEND (b, _bfd_copy_link_hash_symbol_type, (b, t, f)) 6967 void (*_bfd_copy_link_hash_symbol_type) 6968 (bfd *, struct bfd_link_hash_entry *, struct bfd_link_hash_entry *); 6969 6970 /* Do a link based on the link_order structures attached to each 6971 section of the BFD. */ 6972 bfd_boolean (*_bfd_final_link) (bfd *, struct bfd_link_info *); 6973 6974 /* Should this section be split up into smaller pieces during linking. */ 6975 bfd_boolean (*_bfd_link_split_section) (bfd *, struct bfd_section *); 6976 6977 /* Remove sections that are not referenced from the output. */ 6978 bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *); 6979 6980 /* Sets the bitmask of allowed and disallowed section flags. */ 6981 bfd_boolean (*_bfd_lookup_section_flags) (struct bfd_link_info *, 6982 struct flag_info *, 6983 asection *); 6984 6985 /* Attempt to merge SEC_MERGE sections. */ 6986 bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *); 6987 6988 /* Is this section a member of a group? */ 6989 bfd_boolean (*_bfd_is_group_section) (bfd *, const struct bfd_section *); 6990 6991 /* Discard members of a group. */ 6992 bfd_boolean (*_bfd_discard_group) (bfd *, struct bfd_section *); 6993 6994 /* Check if SEC has been already linked during a reloceatable or 6995 final link. */ 6996 bfd_boolean (*_section_already_linked) (bfd *, asection *, 6997 struct bfd_link_info *); 6998 6999 /* Define a common symbol. */ 7000 bfd_boolean (*_bfd_define_common_symbol) (bfd *, struct bfd_link_info *, 7001 struct bfd_link_hash_entry *); 7002 7003 /* Routines to handle dynamic symbols and relocs. */ 7004 #define BFD_JUMP_TABLE_DYNAMIC(NAME) \ 7005 NAME##_get_dynamic_symtab_upper_bound, \ 7006 NAME##_canonicalize_dynamic_symtab, \ 7007 NAME##_get_synthetic_symtab, \ 7008 NAME##_get_dynamic_reloc_upper_bound, \ 7009 NAME##_canonicalize_dynamic_reloc 7010 7011 /* Get the amount of memory required to hold the dynamic symbols. */ 7012 long (*_bfd_get_dynamic_symtab_upper_bound) (bfd *); 7013 /* Read in the dynamic symbols. */ 7014 long (*_bfd_canonicalize_dynamic_symtab) 7015 (bfd *, struct bfd_symbol **); 7016 /* Create synthetized symbols. */ 7017 long (*_bfd_get_synthetic_symtab) 7018 (bfd *, long, struct bfd_symbol **, long, struct bfd_symbol **, 7019 struct bfd_symbol **); 7020 /* Get the amount of memory required to hold the dynamic relocs. */ 7021 long (*_bfd_get_dynamic_reloc_upper_bound) (bfd *); 7022 /* Read in the dynamic relocs. */ 7023 long (*_bfd_canonicalize_dynamic_reloc) 7024 (bfd *, arelent **, struct bfd_symbol **); 7025 A pointer to an alternative bfd_target in case the current one is not 7026satisfactory. This can happen when the target cpu supports both big 7027and little endian code, and target chosen by the linker has the wrong 7028endianness. The function open_output() in ld/ldlang.c uses this field 7029to find an alternative output format that is suitable. 7030 /* Opposite endian version of this target. */ 7031 const struct bfd_target * alternative_target; 7032 7033 /* Data for use by back-end routines, which isn't 7034 generic enough to belong in this structure. */ 7035 const void *backend_data; 7036 7037 } bfd_target; 7038 70392.12.1.1 `bfd_set_default_target' 7040................................. 7041 7042*Synopsis* 7043 bfd_boolean bfd_set_default_target (const char *name); 7044 *Description* 7045Set the default target vector to use when recognizing a BFD. This 7046takes the name of the target, which may be a BFD target name or a 7047configuration triplet. 7048 70492.12.1.2 `bfd_find_target' 7050.......................... 7051 7052*Synopsis* 7053 const bfd_target *bfd_find_target (const char *target_name, bfd *abfd); 7054 *Description* 7055Return a pointer to the transfer vector for the object target named 7056TARGET_NAME. If TARGET_NAME is `NULL', choose the one in the 7057environment variable `GNUTARGET'; if that is null or not defined, then 7058choose the first entry in the target list. Passing in the string 7059"default" or setting the environment variable to "default" will cause 7060the first entry in the target list to be returned, and 7061"target_defaulted" will be set in the BFD if ABFD isn't `NULL'. This 7062causes `bfd_check_format' to loop over all the targets to find the one 7063that matches the file being read. 7064 70652.12.1.3 `bfd_get_target_info' 7066.............................. 7067 7068*Synopsis* 7069 const bfd_target *bfd_get_target_info (const char *target_name, 7070 bfd *abfd, 7071 bfd_boolean *is_bigendian, 7072 int *underscoring, 7073 const char **def_target_arch); 7074 *Description* 7075Return a pointer to the transfer vector for the object target named 7076TARGET_NAME. If TARGET_NAME is `NULL', choose the one in the 7077environment variable `GNUTARGET'; if that is null or not defined, then 7078choose the first entry in the target list. Passing in the string 7079"default" or setting the environment variable to "default" will cause 7080the first entry in the target list to be returned, and 7081"target_defaulted" will be set in the BFD if ABFD isn't `NULL'. This 7082causes `bfd_check_format' to loop over all the targets to find the one 7083that matches the file being read. If IS_BIGENDIAN is not `NULL', then 7084set this value to target's endian mode. True for big-endian, FALSE for 7085little-endian or for invalid target. If UNDERSCORING is not `NULL', 7086then set this value to target's underscoring mode. Zero for 7087none-underscoring, -1 for invalid target, else the value of target 7088vector's symbol underscoring. If DEF_TARGET_ARCH is not `NULL', then 7089set it to the architecture string specified by the target_name. 7090 70912.12.1.4 `bfd_target_list' 7092.......................... 7093 7094*Synopsis* 7095 const char ** bfd_target_list (void); 7096 *Description* 7097Return a freshly malloced NULL-terminated vector of the names of all 7098the valid BFD targets. Do not modify the names. 7099 71002.12.1.5 `bfd_seach_for_target' 7101............................... 7102 7103*Synopsis* 7104 const bfd_target *bfd_search_for_target 7105 (int (*search_func) (const bfd_target *, void *), 7106 void *); 7107 *Description* 7108Return a pointer to the first transfer vector in the list of transfer 7109vectors maintained by BFD that produces a non-zero result when passed 7110to the function SEARCH_FUNC. The parameter DATA is passed, unexamined, 7111to the search function. 7112 7113 7114File: bfd.info, Node: Architectures, Next: Opening and Closing, Prev: Targets, Up: BFD front end 7115 71162.13 Architectures 7117================== 7118 7119BFD keeps one atom in a BFD describing the architecture of the data 7120attached to the BFD: a pointer to a `bfd_arch_info_type'. 7121 7122 Pointers to structures can be requested independently of a BFD so 7123that an architecture's information can be interrogated without access 7124to an open BFD. 7125 7126 The architecture information is provided by each architecture 7127package. The set of default architectures is selected by the macro 7128`SELECT_ARCHITECTURES'. This is normally set up in the 7129`config/TARGET.mt' file of your choice. If the name is not defined, 7130then all the architectures supported are included. 7131 7132 When BFD starts up, all the architectures are called with an 7133initialize method. It is up to the architecture back end to insert as 7134many items into the list of architectures as it wants to; generally 7135this would be one for each machine and one for the default case (an 7136item with a machine field of 0). 7137 7138 BFD's idea of an architecture is implemented in `archures.c'. 7139 71402.13.1 bfd_architecture 7141----------------------- 7142 7143*Description* 7144This enum gives the object file's CPU architecture, in a global 7145sense--i.e., what processor family does it belong to? Another field 7146indicates which processor within the family is in use. The machine 7147gives a number which distinguishes different versions of the 7148architecture, containing, for example, 2 and 3 for Intel i960 KA and 7149i960 KB, and 68020 and 68030 for Motorola 68020 and 68030. 7150 enum bfd_architecture 7151 { 7152 bfd_arch_unknown, /* File arch not known. */ 7153 bfd_arch_obscure, /* Arch known, not one of these. */ 7154 bfd_arch_m68k, /* Motorola 68xxx */ 7155 #define bfd_mach_m68000 1 7156 #define bfd_mach_m68008 2 7157 #define bfd_mach_m68010 3 7158 #define bfd_mach_m68020 4 7159 #define bfd_mach_m68030 5 7160 #define bfd_mach_m68040 6 7161 #define bfd_mach_m68060 7 7162 #define bfd_mach_cpu32 8 7163 #define bfd_mach_fido 9 7164 #define bfd_mach_mcf_isa_a_nodiv 10 7165 #define bfd_mach_mcf_isa_a 11 7166 #define bfd_mach_mcf_isa_a_mac 12 7167 #define bfd_mach_mcf_isa_a_emac 13 7168 #define bfd_mach_mcf_isa_aplus 14 7169 #define bfd_mach_mcf_isa_aplus_mac 15 7170 #define bfd_mach_mcf_isa_aplus_emac 16 7171 #define bfd_mach_mcf_isa_b_nousp 17 7172 #define bfd_mach_mcf_isa_b_nousp_mac 18 7173 #define bfd_mach_mcf_isa_b_nousp_emac 19 7174 #define bfd_mach_mcf_isa_b 20 7175 #define bfd_mach_mcf_isa_b_mac 21 7176 #define bfd_mach_mcf_isa_b_emac 22 7177 #define bfd_mach_mcf_isa_b_float 23 7178 #define bfd_mach_mcf_isa_b_float_mac 24 7179 #define bfd_mach_mcf_isa_b_float_emac 25 7180 #define bfd_mach_mcf_isa_c 26 7181 #define bfd_mach_mcf_isa_c_mac 27 7182 #define bfd_mach_mcf_isa_c_emac 28 7183 #define bfd_mach_mcf_isa_c_nodiv 29 7184 #define bfd_mach_mcf_isa_c_nodiv_mac 30 7185 #define bfd_mach_mcf_isa_c_nodiv_emac 31 7186 bfd_arch_vax, /* DEC Vax */ 7187 bfd_arch_i960, /* Intel 960 */ 7188 /* The order of the following is important. 7189 lower number indicates a machine type that 7190 only accepts a subset of the instructions 7191 available to machines with higher numbers. 7192 The exception is the "ca", which is 7193 incompatible with all other machines except 7194 "core". */ 7195 7196 #define bfd_mach_i960_core 1 7197 #define bfd_mach_i960_ka_sa 2 7198 #define bfd_mach_i960_kb_sb 3 7199 #define bfd_mach_i960_mc 4 7200 #define bfd_mach_i960_xa 5 7201 #define bfd_mach_i960_ca 6 7202 #define bfd_mach_i960_jx 7 7203 #define bfd_mach_i960_hx 8 7204 7205 bfd_arch_or32, /* OpenRISC 32 */ 7206 7207 bfd_arch_sparc, /* SPARC */ 7208 #define bfd_mach_sparc 1 7209 /* The difference between v8plus and v9 is that v9 is a true 64 bit env. */ 7210 #define bfd_mach_sparc_sparclet 2 7211 #define bfd_mach_sparc_sparclite 3 7212 #define bfd_mach_sparc_v8plus 4 7213 #define bfd_mach_sparc_v8plusa 5 /* with ultrasparc add'ns. */ 7214 #define bfd_mach_sparc_sparclite_le 6 7215 #define bfd_mach_sparc_v9 7 7216 #define bfd_mach_sparc_v9a 8 /* with ultrasparc add'ns. */ 7217 #define bfd_mach_sparc_v8plusb 9 /* with cheetah add'ns. */ 7218 #define bfd_mach_sparc_v9b 10 /* with cheetah add'ns. */ 7219 /* Nonzero if MACH has the v9 instruction set. */ 7220 #define bfd_mach_sparc_v9_p(mach) \ 7221 ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9b \ 7222 && (mach) != bfd_mach_sparc_sparclite_le) 7223 /* Nonzero if MACH is a 64 bit sparc architecture. */ 7224 #define bfd_mach_sparc_64bit_p(mach) \ 7225 ((mach) >= bfd_mach_sparc_v9 && (mach) != bfd_mach_sparc_v8plusb) 7226 bfd_arch_spu, /* PowerPC SPU */ 7227 #define bfd_mach_spu 256 7228 bfd_arch_mips, /* MIPS Rxxxx */ 7229 #define bfd_mach_mips3000 3000 7230 #define bfd_mach_mips3900 3900 7231 #define bfd_mach_mips4000 4000 7232 #define bfd_mach_mips4010 4010 7233 #define bfd_mach_mips4100 4100 7234 #define bfd_mach_mips4111 4111 7235 #define bfd_mach_mips4120 4120 7236 #define bfd_mach_mips4300 4300 7237 #define bfd_mach_mips4400 4400 7238 #define bfd_mach_mips4600 4600 7239 #define bfd_mach_mips4650 4650 7240 #define bfd_mach_mips5000 5000 7241 #define bfd_mach_mips5400 5400 7242 #define bfd_mach_mips5500 5500 7243 #define bfd_mach_mips6000 6000 7244 #define bfd_mach_mips7000 7000 7245 #define bfd_mach_mips8000 8000 7246 #define bfd_mach_mips9000 9000 7247 #define bfd_mach_mips10000 10000 7248 #define bfd_mach_mips12000 12000 7249 #define bfd_mach_mips14000 14000 7250 #define bfd_mach_mips16000 16000 7251 #define bfd_mach_mips16 16 7252 #define bfd_mach_mips5 5 7253 #define bfd_mach_mips_loongson_2e 3001 7254 #define bfd_mach_mips_loongson_2f 3002 7255 #define bfd_mach_mips_loongson_3a 3003 7256 #define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01 */ 7257 #define bfd_mach_mips_octeon 6501 7258 #define bfd_mach_mips_octeonp 6601 7259 #define bfd_mach_mips_octeon2 6502 7260 #define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */ 7261 #define bfd_mach_mipsisa32 32 7262 #define bfd_mach_mipsisa32r2 33 7263 #define bfd_mach_mipsisa64 64 7264 #define bfd_mach_mipsisa64r2 65 7265 #define bfd_mach_mips_micromips 96 7266 bfd_arch_i386, /* Intel 386 */ 7267 #define bfd_mach_i386_intel_syntax (1 << 0) 7268 #define bfd_mach_i386_i8086 (1 << 1) 7269 #define bfd_mach_i386_i386 (1 << 2) 7270 #define bfd_mach_x86_64 (1 << 3) 7271 #define bfd_mach_x64_32 (1 << 4) 7272 #define bfd_mach_i386_i386_intel_syntax (bfd_mach_i386_i386 | bfd_mach_i386_intel_syntax) 7273 #define bfd_mach_x86_64_intel_syntax (bfd_mach_x86_64 | bfd_mach_i386_intel_syntax) 7274 #define bfd_mach_x64_32_intel_syntax (bfd_mach_x64_32 | bfd_mach_i386_intel_syntax) 7275 bfd_arch_l1om, /* Intel L1OM */ 7276 #define bfd_mach_l1om (1 << 5) 7277 #define bfd_mach_l1om_intel_syntax (bfd_mach_l1om | bfd_mach_i386_intel_syntax) 7278 bfd_arch_k1om, /* Intel K1OM */ 7279 #define bfd_mach_k1om (1 << 6) 7280 #define bfd_mach_k1om_intel_syntax (bfd_mach_k1om | bfd_mach_i386_intel_syntax) 7281 bfd_arch_we32k, /* AT&T WE32xxx */ 7282 bfd_arch_tahoe, /* CCI/Harris Tahoe */ 7283 bfd_arch_i860, /* Intel 860 */ 7284 bfd_arch_i370, /* IBM 360/370 Mainframes */ 7285 bfd_arch_romp, /* IBM ROMP PC/RT */ 7286 bfd_arch_convex, /* Convex */ 7287 bfd_arch_m88k, /* Motorola 88xxx */ 7288 bfd_arch_m98k, /* Motorola 98xxx */ 7289 bfd_arch_pyramid, /* Pyramid Technology */ 7290 bfd_arch_h8300, /* Renesas H8/300 (formerly Hitachi H8/300) */ 7291 #define bfd_mach_h8300 1 7292 #define bfd_mach_h8300h 2 7293 #define bfd_mach_h8300s 3 7294 #define bfd_mach_h8300hn 4 7295 #define bfd_mach_h8300sn 5 7296 #define bfd_mach_h8300sx 6 7297 #define bfd_mach_h8300sxn 7 7298 bfd_arch_pdp11, /* DEC PDP-11 */ 7299 bfd_arch_plugin, 7300 bfd_arch_powerpc, /* PowerPC */ 7301 #define bfd_mach_ppc 32 7302 #define bfd_mach_ppc64 64 7303 #define bfd_mach_ppc_403 403 7304 #define bfd_mach_ppc_403gc 4030 7305 #define bfd_mach_ppc_405 405 7306 #define bfd_mach_ppc_505 505 7307 #define bfd_mach_ppc_601 601 7308 #define bfd_mach_ppc_602 602 7309 #define bfd_mach_ppc_603 603 7310 #define bfd_mach_ppc_ec603e 6031 7311 #define bfd_mach_ppc_604 604 7312 #define bfd_mach_ppc_620 620 7313 #define bfd_mach_ppc_630 630 7314 #define bfd_mach_ppc_750 750 7315 #define bfd_mach_ppc_860 860 7316 #define bfd_mach_ppc_a35 35 7317 #define bfd_mach_ppc_rs64ii 642 7318 #define bfd_mach_ppc_rs64iii 643 7319 #define bfd_mach_ppc_7400 7400 7320 #define bfd_mach_ppc_e500 500 7321 #define bfd_mach_ppc_e500mc 5001 7322 #define bfd_mach_ppc_e500mc64 5005 7323 #define bfd_mach_ppc_e5500 5006 7324 #define bfd_mach_ppc_e6500 5007 7325 #define bfd_mach_ppc_titan 83 7326 #define bfd_mach_ppc_vle 84 7327 bfd_arch_rs6000, /* IBM RS/6000 */ 7328 #define bfd_mach_rs6k 6000 7329 #define bfd_mach_rs6k_rs1 6001 7330 #define bfd_mach_rs6k_rsc 6003 7331 #define bfd_mach_rs6k_rs2 6002 7332 bfd_arch_hppa, /* HP PA RISC */ 7333 #define bfd_mach_hppa10 10 7334 #define bfd_mach_hppa11 11 7335 #define bfd_mach_hppa20 20 7336 #define bfd_mach_hppa20w 25 7337 bfd_arch_d10v, /* Mitsubishi D10V */ 7338 #define bfd_mach_d10v 1 7339 #define bfd_mach_d10v_ts2 2 7340 #define bfd_mach_d10v_ts3 3 7341 bfd_arch_d30v, /* Mitsubishi D30V */ 7342 bfd_arch_dlx, /* DLX */ 7343 bfd_arch_m68hc11, /* Motorola 68HC11 */ 7344 bfd_arch_m68hc12, /* Motorola 68HC12 */ 7345 #define bfd_mach_m6812_default 0 7346 #define bfd_mach_m6812 1 7347 #define bfd_mach_m6812s 2 7348 bfd_arch_m9s12x, /* Freescale S12X */ 7349 bfd_arch_m9s12xg, /* Freescale XGATE */ 7350 bfd_arch_z8k, /* Zilog Z8000 */ 7351 #define bfd_mach_z8001 1 7352 #define bfd_mach_z8002 2 7353 bfd_arch_h8500, /* Renesas H8/500 (formerly Hitachi H8/500) */ 7354 bfd_arch_sh, /* Renesas / SuperH SH (formerly Hitachi SH) */ 7355 #define bfd_mach_sh 1 7356 #define bfd_mach_sh2 0x20 7357 #define bfd_mach_sh_dsp 0x2d 7358 #define bfd_mach_sh2a 0x2a 7359 #define bfd_mach_sh2a_nofpu 0x2b 7360 #define bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu 0x2a1 7361 #define bfd_mach_sh2a_nofpu_or_sh3_nommu 0x2a2 7362 #define bfd_mach_sh2a_or_sh4 0x2a3 7363 #define bfd_mach_sh2a_or_sh3e 0x2a4 7364 #define bfd_mach_sh2e 0x2e 7365 #define bfd_mach_sh3 0x30 7366 #define bfd_mach_sh3_nommu 0x31 7367 #define bfd_mach_sh3_dsp 0x3d 7368 #define bfd_mach_sh3e 0x3e 7369 #define bfd_mach_sh4 0x40 7370 #define bfd_mach_sh4_nofpu 0x41 7371 #define bfd_mach_sh4_nommu_nofpu 0x42 7372 #define bfd_mach_sh4a 0x4a 7373 #define bfd_mach_sh4a_nofpu 0x4b 7374 #define bfd_mach_sh4al_dsp 0x4d 7375 #define bfd_mach_sh5 0x50 7376 bfd_arch_alpha, /* Dec Alpha */ 7377 #define bfd_mach_alpha_ev4 0x10 7378 #define bfd_mach_alpha_ev5 0x20 7379 #define bfd_mach_alpha_ev6 0x30 7380 bfd_arch_arm, /* Advanced Risc Machines ARM. */ 7381 #define bfd_mach_arm_unknown 0 7382 #define bfd_mach_arm_2 1 7383 #define bfd_mach_arm_2a 2 7384 #define bfd_mach_arm_3 3 7385 #define bfd_mach_arm_3M 4 7386 #define bfd_mach_arm_4 5 7387 #define bfd_mach_arm_4T 6 7388 #define bfd_mach_arm_5 7 7389 #define bfd_mach_arm_5T 8 7390 #define bfd_mach_arm_5TE 9 7391 #define bfd_mach_arm_XScale 10 7392 #define bfd_mach_arm_ep9312 11 7393 #define bfd_mach_arm_iWMMXt 12 7394 #define bfd_mach_arm_iWMMXt2 13 7395 bfd_arch_ns32k, /* National Semiconductors ns32000 */ 7396 bfd_arch_w65, /* WDC 65816 */ 7397 bfd_arch_tic30, /* Texas Instruments TMS320C30 */ 7398 bfd_arch_tic4x, /* Texas Instruments TMS320C3X/4X */ 7399 #define bfd_mach_tic3x 30 7400 #define bfd_mach_tic4x 40 7401 bfd_arch_tic54x, /* Texas Instruments TMS320C54X */ 7402 bfd_arch_tic6x, /* Texas Instruments TMS320C6X */ 7403 bfd_arch_tic80, /* TI TMS320c80 (MVP) */ 7404 bfd_arch_v850, /* NEC V850 */ 7405 #define bfd_mach_v850 1 7406 #define bfd_mach_v850e 'E' 7407 #define bfd_mach_v850e1 '1' 7408 #define bfd_mach_v850e2 0x4532 7409 #define bfd_mach_v850e2v3 0x45325633 7410 bfd_arch_arc, /* ARC Cores */ 7411 #define bfd_mach_arc_5 5 7412 #define bfd_mach_arc_6 6 7413 #define bfd_mach_arc_7 7 7414 #define bfd_mach_arc_8 8 7415 bfd_arch_m32c, /* Renesas M16C/M32C. */ 7416 #define bfd_mach_m16c 0x75 7417 #define bfd_mach_m32c 0x78 7418 bfd_arch_m32r, /* Renesas M32R (formerly Mitsubishi M32R/D) */ 7419 #define bfd_mach_m32r 1 /* For backwards compatibility. */ 7420 #define bfd_mach_m32rx 'x' 7421 #define bfd_mach_m32r2 '2' 7422 bfd_arch_mn10200, /* Matsushita MN10200 */ 7423 bfd_arch_mn10300, /* Matsushita MN10300 */ 7424 #define bfd_mach_mn10300 300 7425 #define bfd_mach_am33 330 7426 #define bfd_mach_am33_2 332 7427 bfd_arch_fr30, 7428 #define bfd_mach_fr30 0x46523330 7429 bfd_arch_frv, 7430 #define bfd_mach_frv 1 7431 #define bfd_mach_frvsimple 2 7432 #define bfd_mach_fr300 300 7433 #define bfd_mach_fr400 400 7434 #define bfd_mach_fr450 450 7435 #define bfd_mach_frvtomcat 499 /* fr500 prototype */ 7436 #define bfd_mach_fr500 500 7437 #define bfd_mach_fr550 550 7438 bfd_arch_moxie, /* The moxie processor */ 7439 #define bfd_mach_moxie 1 7440 bfd_arch_mcore, 7441 bfd_arch_mep, 7442 #define bfd_mach_mep 1 7443 #define bfd_mach_mep_h1 0x6831 7444 #define bfd_mach_mep_c5 0x6335 7445 bfd_arch_ia64, /* HP/Intel ia64 */ 7446 #define bfd_mach_ia64_elf64 64 7447 #define bfd_mach_ia64_elf32 32 7448 bfd_arch_ip2k, /* Ubicom IP2K microcontrollers. */ 7449 #define bfd_mach_ip2022 1 7450 #define bfd_mach_ip2022ext 2 7451 bfd_arch_iq2000, /* Vitesse IQ2000. */ 7452 #define bfd_mach_iq2000 1 7453 #define bfd_mach_iq10 2 7454 bfd_arch_epiphany, /* Adapteva EPIPHANY */ 7455 #define bfd_mach_epiphany16 1 7456 #define bfd_mach_epiphany32 2 7457 bfd_arch_mt, 7458 #define bfd_mach_ms1 1 7459 #define bfd_mach_mrisc2 2 7460 #define bfd_mach_ms2 3 7461 bfd_arch_pj, 7462 bfd_arch_avr, /* Atmel AVR microcontrollers. */ 7463 #define bfd_mach_avr1 1 7464 #define bfd_mach_avr2 2 7465 #define bfd_mach_avr25 25 7466 #define bfd_mach_avr3 3 7467 #define bfd_mach_avr31 31 7468 #define bfd_mach_avr35 35 7469 #define bfd_mach_avr4 4 7470 #define bfd_mach_avr5 5 7471 #define bfd_mach_avr51 51 7472 #define bfd_mach_avr6 6 7473 #define bfd_mach_avrxmega1 101 7474 #define bfd_mach_avrxmega2 102 7475 #define bfd_mach_avrxmega3 103 7476 #define bfd_mach_avrxmega4 104 7477 #define bfd_mach_avrxmega5 105 7478 #define bfd_mach_avrxmega6 106 7479 #define bfd_mach_avrxmega7 107 7480 bfd_arch_bfin, /* ADI Blackfin */ 7481 #define bfd_mach_bfin 1 7482 bfd_arch_cr16, /* National Semiconductor CompactRISC (ie CR16). */ 7483 #define bfd_mach_cr16 1 7484 bfd_arch_cr16c, /* National Semiconductor CompactRISC. */ 7485 #define bfd_mach_cr16c 1 7486 bfd_arch_crx, /* National Semiconductor CRX. */ 7487 #define bfd_mach_crx 1 7488 bfd_arch_cris, /* Axis CRIS */ 7489 #define bfd_mach_cris_v0_v10 255 7490 #define bfd_mach_cris_v32 32 7491 #define bfd_mach_cris_v10_v32 1032 7492 bfd_arch_rl78, 7493 #define bfd_mach_rl78 0x75 7494 bfd_arch_rx, /* Renesas RX. */ 7495 #define bfd_mach_rx 0x75 7496 bfd_arch_s390, /* IBM s390 */ 7497 #define bfd_mach_s390_31 31 7498 #define bfd_mach_s390_64 64 7499 bfd_arch_score, /* Sunplus score */ 7500 #define bfd_mach_score3 3 7501 #define bfd_mach_score7 7 7502 bfd_arch_openrisc, /* OpenRISC */ 7503 bfd_arch_mmix, /* Donald Knuth's educational processor. */ 7504 bfd_arch_xstormy16, 7505 #define bfd_mach_xstormy16 1 7506 bfd_arch_msp430, /* Texas Instruments MSP430 architecture. */ 7507 #define bfd_mach_msp11 11 7508 #define bfd_mach_msp110 110 7509 #define bfd_mach_msp12 12 7510 #define bfd_mach_msp13 13 7511 #define bfd_mach_msp14 14 7512 #define bfd_mach_msp15 15 7513 #define bfd_mach_msp16 16 7514 #define bfd_mach_msp21 21 7515 #define bfd_mach_msp31 31 7516 #define bfd_mach_msp32 32 7517 #define bfd_mach_msp33 33 7518 #define bfd_mach_msp41 41 7519 #define bfd_mach_msp42 42 7520 #define bfd_mach_msp43 43 7521 #define bfd_mach_msp44 44 7522 bfd_arch_xc16x, /* Infineon's XC16X Series. */ 7523 #define bfd_mach_xc16x 1 7524 #define bfd_mach_xc16xl 2 7525 #define bfd_mach_xc16xs 3 7526 bfd_arch_xgate, /* Freescale XGATE */ 7527 #define bfd_mach_xgate 1 7528 bfd_arch_xtensa, /* Tensilica's Xtensa cores. */ 7529 #define bfd_mach_xtensa 1 7530 bfd_arch_z80, 7531 #define bfd_mach_z80strict 1 /* No undocumented opcodes. */ 7532 #define bfd_mach_z80 3 /* With ixl, ixh, iyl, and iyh. */ 7533 #define bfd_mach_z80full 7 /* All undocumented instructions. */ 7534 #define bfd_mach_r800 11 /* R800: successor with multiplication. */ 7535 bfd_arch_lm32, /* Lattice Mico32 */ 7536 #define bfd_mach_lm32 1 7537 bfd_arch_microblaze,/* Xilinx MicroBlaze. */ 7538 bfd_arch_tilepro, /* Tilera TILEPro */ 7539 bfd_arch_tilegx, /* Tilera TILE-Gx */ 7540 #define bfd_mach_tilepro 1 7541 #define bfd_mach_tilegx 1 7542 #define bfd_mach_tilegx32 2 7543 bfd_arch_aarch64, /* AArch64 */ 7544 #define bfd_mach_aarch64 0 7545 bfd_arch_last 7546 }; 7547 75482.13.2 bfd_arch_info 7549-------------------- 7550 7551*Description* 7552This structure contains information on architectures for use within BFD. 7553 7554 typedef struct bfd_arch_info 7555 { 7556 int bits_per_word; 7557 int bits_per_address; 7558 int bits_per_byte; 7559 enum bfd_architecture arch; 7560 unsigned long mach; 7561 const char *arch_name; 7562 const char *printable_name; 7563 unsigned int section_align_power; 7564 /* TRUE if this is the default machine for the architecture. 7565 The default arch should be the first entry for an arch so that 7566 all the entries for that arch can be accessed via `next'. */ 7567 bfd_boolean the_default; 7568 const struct bfd_arch_info * (*compatible) 7569 (const struct bfd_arch_info *a, const struct bfd_arch_info *b); 7570 7571 bfd_boolean (*scan) (const struct bfd_arch_info *, const char *); 7572 7573 /* Allocate via bfd_malloc and return a fill buffer of size COUNT. If 7574 IS_BIGENDIAN is TRUE, the order of bytes is big endian. If CODE is 7575 TRUE, the buffer contains code. */ 7576 void *(*fill) (bfd_size_type count, bfd_boolean is_bigendian, 7577 bfd_boolean code); 7578 7579 const struct bfd_arch_info *next; 7580 } 7581 bfd_arch_info_type; 7582 75832.13.2.1 `bfd_printable_name' 7584............................. 7585 7586*Synopsis* 7587 const char *bfd_printable_name (bfd *abfd); 7588 *Description* 7589Return a printable string representing the architecture and machine 7590from the pointer to the architecture info structure. 7591 75922.13.2.2 `bfd_scan_arch' 7593........................ 7594 7595*Synopsis* 7596 const bfd_arch_info_type *bfd_scan_arch (const char *string); 7597 *Description* 7598Figure out if BFD supports any cpu which could be described with the 7599name STRING. Return a pointer to an `arch_info' structure if a machine 7600is found, otherwise NULL. 7601 76022.13.2.3 `bfd_arch_list' 7603........................ 7604 7605*Synopsis* 7606 const char **bfd_arch_list (void); 7607 *Description* 7608Return a freshly malloced NULL-terminated vector of the names of all 7609the valid BFD architectures. Do not modify the names. 7610 76112.13.2.4 `bfd_arch_get_compatible' 7612.................................. 7613 7614*Synopsis* 7615 const bfd_arch_info_type *bfd_arch_get_compatible 7616 (const bfd *abfd, const bfd *bbfd, bfd_boolean accept_unknowns); 7617 *Description* 7618Determine whether two BFDs' architectures and machine types are 7619compatible. Calculates the lowest common denominator between the two 7620architectures and machine types implied by the BFDs and returns a 7621pointer to an `arch_info' structure describing the compatible machine. 7622 76232.13.2.5 `bfd_default_arch_struct' 7624.................................. 7625 7626*Description* 7627The `bfd_default_arch_struct' is an item of `bfd_arch_info_type' which 7628has been initialized to a fairly generic state. A BFD starts life by 7629pointing to this structure, until the correct back end has determined 7630the real architecture of the file. 7631 extern const bfd_arch_info_type bfd_default_arch_struct; 7632 76332.13.2.6 `bfd_set_arch_info' 7634............................ 7635 7636*Synopsis* 7637 void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg); 7638 *Description* 7639Set the architecture info of ABFD to ARG. 7640 76412.13.2.7 `bfd_default_set_arch_mach' 7642.................................... 7643 7644*Synopsis* 7645 bfd_boolean bfd_default_set_arch_mach 7646 (bfd *abfd, enum bfd_architecture arch, unsigned long mach); 7647 *Description* 7648Set the architecture and machine type in BFD ABFD to ARCH and MACH. 7649Find the correct pointer to a structure and insert it into the 7650`arch_info' pointer. 7651 76522.13.2.8 `bfd_get_arch' 7653....................... 7654 7655*Synopsis* 7656 enum bfd_architecture bfd_get_arch (bfd *abfd); 7657 *Description* 7658Return the enumerated type which describes the BFD ABFD's architecture. 7659 76602.13.2.9 `bfd_get_mach' 7661....................... 7662 7663*Synopsis* 7664 unsigned long bfd_get_mach (bfd *abfd); 7665 *Description* 7666Return the long type which describes the BFD ABFD's machine. 7667 76682.13.2.10 `bfd_arch_bits_per_byte' 7669.................................. 7670 7671*Synopsis* 7672 unsigned int bfd_arch_bits_per_byte (bfd *abfd); 7673 *Description* 7674Return the number of bits in one of the BFD ABFD's architecture's bytes. 7675 76762.13.2.11 `bfd_arch_bits_per_address' 7677..................................... 7678 7679*Synopsis* 7680 unsigned int bfd_arch_bits_per_address (bfd *abfd); 7681 *Description* 7682Return the number of bits in one of the BFD ABFD's architecture's 7683addresses. 7684 76852.13.2.12 `bfd_default_compatible' 7686.................................. 7687 7688*Synopsis* 7689 const bfd_arch_info_type *bfd_default_compatible 7690 (const bfd_arch_info_type *a, const bfd_arch_info_type *b); 7691 *Description* 7692The default function for testing for compatibility. 7693 76942.13.2.13 `bfd_default_scan' 7695............................ 7696 7697*Synopsis* 7698 bfd_boolean bfd_default_scan 7699 (const struct bfd_arch_info *info, const char *string); 7700 *Description* 7701The default function for working out whether this is an architecture 7702hit and a machine hit. 7703 77042.13.2.14 `bfd_get_arch_info' 7705............................. 7706 7707*Synopsis* 7708 const bfd_arch_info_type *bfd_get_arch_info (bfd *abfd); 7709 *Description* 7710Return the architecture info struct in ABFD. 7711 77122.13.2.15 `bfd_lookup_arch' 7713........................... 7714 7715*Synopsis* 7716 const bfd_arch_info_type *bfd_lookup_arch 7717 (enum bfd_architecture arch, unsigned long machine); 7718 *Description* 7719Look for the architecture info structure which matches the arguments 7720ARCH and MACHINE. A machine of 0 matches the machine/architecture 7721structure which marks itself as the default. 7722 77232.13.2.16 `bfd_printable_arch_mach' 7724................................... 7725 7726*Synopsis* 7727 const char *bfd_printable_arch_mach 7728 (enum bfd_architecture arch, unsigned long machine); 7729 *Description* 7730Return a printable string representing the architecture and machine 7731type. 7732 7733 This routine is depreciated. 7734 77352.13.2.17 `bfd_octets_per_byte' 7736............................... 7737 7738*Synopsis* 7739 unsigned int bfd_octets_per_byte (bfd *abfd); 7740 *Description* 7741Return the number of octets (8-bit quantities) per target byte (minimum 7742addressable unit). In most cases, this will be one, but some DSP 7743targets have 16, 32, or even 48 bits per byte. 7744 77452.13.2.18 `bfd_arch_mach_octets_per_byte' 7746......................................... 7747 7748*Synopsis* 7749 unsigned int bfd_arch_mach_octets_per_byte 7750 (enum bfd_architecture arch, unsigned long machine); 7751 *Description* 7752See bfd_octets_per_byte. 7753 7754 This routine is provided for those cases where a bfd * is not 7755available 7756 77572.13.2.19 `bfd_arch_default_fill' 7758................................. 7759 7760*Synopsis* 7761 void *bfd_arch_default_fill (bfd_size_type count, 7762 bfd_boolean is_bigendian, 7763 bfd_boolean code); 7764 *Description* 7765Allocate via bfd_malloc and return a fill buffer of size COUNT. If 7766IS_BIGENDIAN is TRUE, the order of bytes is big endian. If CODE is 7767TRUE, the buffer contains code. 7768 7769 7770File: bfd.info, Node: Opening and Closing, Next: Internal, Prev: Architectures, Up: BFD front end 7771 7772 /* Set to N to open the next N BFDs using an alternate id space. */ 7773 extern unsigned int bfd_use_reserved_id; 7774 77752.14 Opening and closing BFDs 7776============================= 7777 77782.14.1 Functions for opening and closing 7779---------------------------------------- 7780 77812.14.1.1 `bfd_fopen' 7782.................... 7783 7784*Synopsis* 7785 bfd *bfd_fopen (const char *filename, const char *target, 7786 const char *mode, int fd); 7787 *Description* 7788Open the file FILENAME with the target TARGET. Return a pointer to the 7789created BFD. If FD is not -1, then `fdopen' is used to open the file; 7790otherwise, `fopen' is used. MODE is passed directly to `fopen' or 7791`fdopen'. 7792 7793 Calls `bfd_find_target', so TARGET is interpreted as by that 7794function. 7795 7796 The new BFD is marked as cacheable iff FD is -1. 7797 7798 If `NULL' is returned then an error has occured. Possible errors 7799are `bfd_error_no_memory', `bfd_error_invalid_target' or `system_call' 7800error. 7801 7802 On error, FD is always closed. 7803 78042.14.1.2 `bfd_openr' 7805.................... 7806 7807*Synopsis* 7808 bfd *bfd_openr (const char *filename, const char *target); 7809 *Description* 7810Open the file FILENAME (using `fopen') with the target TARGET. Return 7811a pointer to the created BFD. 7812 7813 Calls `bfd_find_target', so TARGET is interpreted as by that 7814function. 7815 7816 If `NULL' is returned then an error has occured. Possible errors 7817are `bfd_error_no_memory', `bfd_error_invalid_target' or `system_call' 7818error. 7819 78202.14.1.3 `bfd_fdopenr' 7821...................... 7822 7823*Synopsis* 7824 bfd *bfd_fdopenr (const char *filename, const char *target, int fd); 7825 *Description* 7826`bfd_fdopenr' is to `bfd_fopenr' much like `fdopen' is to `fopen'. It 7827opens a BFD on a file already described by the FD supplied. 7828 7829 When the file is later `bfd_close'd, the file descriptor will be 7830closed. If the caller desires that this file descriptor be cached by 7831BFD (opened as needed, closed as needed to free descriptors for other 7832opens), with the supplied FD used as an initial file descriptor (but 7833subject to closure at any time), call bfd_set_cacheable(bfd, 1) on the 7834returned BFD. The default is to assume no caching; the file descriptor 7835will remain open until `bfd_close', and will not be affected by BFD 7836operations on other files. 7837 7838 Possible errors are `bfd_error_no_memory', 7839`bfd_error_invalid_target' and `bfd_error_system_call'. 7840 7841 On error, FD is closed. 7842 78432.14.1.4 `bfd_openstreamr' 7844.......................... 7845 7846*Synopsis* 7847 bfd *bfd_openstreamr (const char *, const char *, void *); 7848 *Description* 7849Open a BFD for read access on an existing stdio stream. When the BFD 7850is passed to `bfd_close', the stream will be closed. 7851 78522.14.1.5 `bfd_openr_iovec' 7853.......................... 7854 7855*Synopsis* 7856 bfd *bfd_openr_iovec (const char *filename, const char *target, 7857 void *(*open_func) (struct bfd *nbfd, 7858 void *open_closure), 7859 void *open_closure, 7860 file_ptr (*pread_func) (struct bfd *nbfd, 7861 void *stream, 7862 void *buf, 7863 file_ptr nbytes, 7864 file_ptr offset), 7865 int (*close_func) (struct bfd *nbfd, 7866 void *stream), 7867 int (*stat_func) (struct bfd *abfd, 7868 void *stream, 7869 struct stat *sb)); 7870 *Description* 7871Create and return a BFD backed by a read-only STREAM. The STREAM is 7872created using OPEN_FUNC, accessed using PREAD_FUNC and destroyed using 7873CLOSE_FUNC. 7874 7875 Calls `bfd_find_target', so TARGET is interpreted as by that 7876function. 7877 7878 Calls OPEN_FUNC (which can call `bfd_zalloc' and `bfd_get_filename') 7879to obtain the read-only stream backing the BFD. OPEN_FUNC either 7880succeeds returning the non-`NULL' STREAM, or fails returning `NULL' 7881(setting `bfd_error'). 7882 7883 Calls PREAD_FUNC to request NBYTES of data from STREAM starting at 7884OFFSET (e.g., via a call to `bfd_read'). PREAD_FUNC either succeeds 7885returning the number of bytes read (which can be less than NBYTES when 7886end-of-file), or fails returning -1 (setting `bfd_error'). 7887 7888 Calls CLOSE_FUNC when the BFD is later closed using `bfd_close'. 7889CLOSE_FUNC either succeeds returning 0, or fails returning -1 (setting 7890`bfd_error'). 7891 7892 Calls STAT_FUNC to fill in a stat structure for bfd_stat, 7893bfd_get_size, and bfd_get_mtime calls. STAT_FUNC returns 0 on success, 7894or returns -1 on failure (setting `bfd_error'). 7895 7896 If `bfd_openr_iovec' returns `NULL' then an error has occurred. 7897Possible errors are `bfd_error_no_memory', `bfd_error_invalid_target' 7898and `bfd_error_system_call'. 7899 79002.14.1.6 `bfd_openw' 7901.................... 7902 7903*Synopsis* 7904 bfd *bfd_openw (const char *filename, const char *target); 7905 *Description* 7906Create a BFD, associated with file FILENAME, using the file format 7907TARGET, and return a pointer to it. 7908 7909 Possible errors are `bfd_error_system_call', `bfd_error_no_memory', 7910`bfd_error_invalid_target'. 7911 79122.14.1.7 `bfd_close' 7913.................... 7914 7915*Synopsis* 7916 bfd_boolean bfd_close (bfd *abfd); 7917 *Description* 7918Close a BFD. If the BFD was open for writing, then pending operations 7919are completed and the file written out and closed. If the created file 7920is executable, then `chmod' is called to mark it as such. 7921 7922 All memory attached to the BFD is released. 7923 7924 The file descriptor associated with the BFD is closed (even if it 7925was passed in to BFD by `bfd_fdopenr'). 7926 7927 *Returns* 7928`TRUE' is returned if all is ok, otherwise `FALSE'. 7929 79302.14.1.8 `bfd_close_all_done' 7931............................. 7932 7933*Synopsis* 7934 bfd_boolean bfd_close_all_done (bfd *); 7935 *Description* 7936Close a BFD. Differs from `bfd_close' since it does not complete any 7937pending operations. This routine would be used if the application had 7938just used BFD for swapping and didn't want to use any of the writing 7939code. 7940 7941 If the created file is executable, then `chmod' is called to mark it 7942as such. 7943 7944 All memory attached to the BFD is released. 7945 7946 *Returns* 7947`TRUE' is returned if all is ok, otherwise `FALSE'. 7948 79492.14.1.9 `bfd_create' 7950..................... 7951 7952*Synopsis* 7953 bfd *bfd_create (const char *filename, bfd *templ); 7954 *Description* 7955Create a new BFD in the manner of `bfd_openw', but without opening a 7956file. The new BFD takes the target from the target used by TEMPL. The 7957format is always set to `bfd_object'. 7958 79592.14.1.10 `bfd_make_writable' 7960............................. 7961 7962*Synopsis* 7963 bfd_boolean bfd_make_writable (bfd *abfd); 7964 *Description* 7965Takes a BFD as created by `bfd_create' and converts it into one like as 7966returned by `bfd_openw'. It does this by converting the BFD to 7967BFD_IN_MEMORY. It's assumed that you will call `bfd_make_readable' on 7968this bfd later. 7969 7970 *Returns* 7971`TRUE' is returned if all is ok, otherwise `FALSE'. 7972 79732.14.1.11 `bfd_make_readable' 7974............................. 7975 7976*Synopsis* 7977 bfd_boolean bfd_make_readable (bfd *abfd); 7978 *Description* 7979Takes a BFD as created by `bfd_create' and `bfd_make_writable' and 7980converts it into one like as returned by `bfd_openr'. It does this by 7981writing the contents out to the memory buffer, then reversing the 7982direction. 7983 7984 *Returns* 7985`TRUE' is returned if all is ok, otherwise `FALSE'. 7986 79872.14.1.12 `bfd_alloc' 7988..................... 7989 7990*Synopsis* 7991 void *bfd_alloc (bfd *abfd, bfd_size_type wanted); 7992 *Description* 7993Allocate a block of WANTED bytes of memory attached to `abfd' and 7994return a pointer to it. 7995 79962.14.1.13 `bfd_alloc2' 7997...................... 7998 7999*Synopsis* 8000 void *bfd_alloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size); 8001 *Description* 8002Allocate a block of NMEMB elements of SIZE bytes each of memory 8003attached to `abfd' and return a pointer to it. 8004 80052.14.1.14 `bfd_zalloc' 8006...................... 8007 8008*Synopsis* 8009 void *bfd_zalloc (bfd *abfd, bfd_size_type wanted); 8010 *Description* 8011Allocate a block of WANTED bytes of zeroed memory attached to `abfd' 8012and return a pointer to it. 8013 80142.14.1.15 `bfd_zalloc2' 8015....................... 8016 8017*Synopsis* 8018 void *bfd_zalloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size); 8019 *Description* 8020Allocate a block of NMEMB elements of SIZE bytes each of zeroed memory 8021attached to `abfd' and return a pointer to it. 8022 80232.14.1.16 `bfd_calc_gnu_debuglink_crc32' 8024........................................ 8025 8026*Synopsis* 8027 unsigned long bfd_calc_gnu_debuglink_crc32 8028 (unsigned long crc, const unsigned char *buf, bfd_size_type len); 8029 *Description* 8030Computes a CRC value as used in the .gnu_debuglink section. Advances 8031the previously computed CRC value by computing and adding in the crc32 8032for LEN bytes of BUF. 8033 8034 *Returns* 8035Return the updated CRC32 value. 8036 80372.14.1.17 `get_debug_link_info' 8038............................... 8039 8040*Synopsis* 8041 char *get_debug_link_info (bfd *abfd, unsigned long *crc32_out); 8042 *Description* 8043fetch the filename and CRC32 value for any separate debuginfo 8044associated with ABFD. Return NULL if no such info found, otherwise 8045return filename and update CRC32_OUT. 8046 80472.14.1.18 `separate_debug_file_exists' 8048...................................... 8049 8050*Synopsis* 8051 bfd_boolean separate_debug_file_exists 8052 (char *name, unsigned long crc32); 8053 *Description* 8054Checks to see if NAME is a file and if its contents match CRC32. 8055 80562.14.1.19 `find_separate_debug_file' 8057.................................... 8058 8059*Synopsis* 8060 char *find_separate_debug_file (bfd *abfd); 8061 *Description* 8062Searches ABFD for a reference to separate debugging information, scans 8063various locations in the filesystem, including the file tree rooted at 8064DEBUG_FILE_DIRECTORY, and returns a filename of such debugging 8065information if the file is found and has matching CRC32. Returns NULL 8066if no reference to debugging file exists, or file cannot be found. 8067 80682.14.1.20 `bfd_follow_gnu_debuglink' 8069.................................... 8070 8071*Synopsis* 8072 char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir); 8073 *Description* 8074Takes a BFD and searches it for a .gnu_debuglink section. If this 8075section is found, it examines the section for the name and checksum of 8076a '.debug' file containing auxiliary debugging information. It then 8077searches the filesystem for this .debug file in some standard 8078locations, including the directory tree rooted at DIR, and if found 8079returns the full filename. 8080 8081 If DIR is NULL, it will search a default path configured into libbfd 8082at build time. [XXX this feature is not currently implemented]. 8083 8084 *Returns* 8085`NULL' on any errors or failure to locate the .debug file, otherwise a 8086pointer to a heap-allocated string containing the filename. The caller 8087is responsible for freeing this string. 8088 80892.14.1.21 `bfd_create_gnu_debuglink_section' 8090............................................ 8091 8092*Synopsis* 8093 struct bfd_section *bfd_create_gnu_debuglink_section 8094 (bfd *abfd, const char *filename); 8095 *Description* 8096Takes a BFD and adds a .gnu_debuglink section to it. The section is 8097sized to be big enough to contain a link to the specified FILENAME. 8098 8099 *Returns* 8100A pointer to the new section is returned if all is ok. Otherwise 8101`NULL' is returned and bfd_error is set. 8102 81032.14.1.22 `bfd_fill_in_gnu_debuglink_section' 8104............................................. 8105 8106*Synopsis* 8107 bfd_boolean bfd_fill_in_gnu_debuglink_section 8108 (bfd *abfd, struct bfd_section *sect, const char *filename); 8109 *Description* 8110Takes a BFD and containing a .gnu_debuglink section SECT and fills in 8111the contents of the section to contain a link to the specified 8112FILENAME. The filename should be relative to the current directory. 8113 8114 *Returns* 8115`TRUE' is returned if all is ok. Otherwise `FALSE' is returned and 8116bfd_error is set. 8117 8118 8119File: bfd.info, Node: Internal, Next: File Caching, Prev: Opening and Closing, Up: BFD front end 8120 81212.15 Implementation details 8122=========================== 8123 81242.15.1 Internal functions 8125------------------------- 8126 8127*Description* 8128These routines are used within BFD. They are not intended for export, 8129but are documented here for completeness. 8130 81312.15.1.1 `bfd_write_bigendian_4byte_int' 8132........................................ 8133 8134*Synopsis* 8135 bfd_boolean bfd_write_bigendian_4byte_int (bfd *, unsigned int); 8136 *Description* 8137Write a 4 byte integer I to the output BFD ABFD, in big endian order 8138regardless of what else is going on. This is useful in archives. 8139 81402.15.1.2 `bfd_put_size' 8141....................... 8142 81432.15.1.3 `bfd_get_size' 8144....................... 8145 8146*Description* 8147These macros as used for reading and writing raw data in sections; each 8148access (except for bytes) is vectored through the target format of the 8149BFD and mangled accordingly. The mangling performs any necessary endian 8150translations and removes alignment restrictions. Note that types 8151accepted and returned by these macros are identical so they can be 8152swapped around in macros--for example, `libaout.h' defines `GET_WORD' 8153to either `bfd_get_32' or `bfd_get_64'. 8154 8155 In the put routines, VAL must be a `bfd_vma'. If we are on a system 8156without prototypes, the caller is responsible for making sure that is 8157true, with a cast if necessary. We don't cast them in the macro 8158definitions because that would prevent `lint' or `gcc -Wall' from 8159detecting sins such as passing a pointer. To detect calling these with 8160less than a `bfd_vma', use `gcc -Wconversion' on a host with 64 bit 8161`bfd_vma''s. 8162 8163 /* Byte swapping macros for user section data. */ 8164 8165 #define bfd_put_8(abfd, val, ptr) \ 8166 ((void) (*((unsigned char *) (ptr)) = (val) & 0xff)) 8167 #define bfd_put_signed_8 \ 8168 bfd_put_8 8169 #define bfd_get_8(abfd, ptr) \ 8170 (*(const unsigned char *) (ptr) & 0xff) 8171 #define bfd_get_signed_8(abfd, ptr) \ 8172 (((*(const unsigned char *) (ptr) & 0xff) ^ 0x80) - 0x80) 8173 8174 #define bfd_put_16(abfd, val, ptr) \ 8175 BFD_SEND (abfd, bfd_putx16, ((val),(ptr))) 8176 #define bfd_put_signed_16 \ 8177 bfd_put_16 8178 #define bfd_get_16(abfd, ptr) \ 8179 BFD_SEND (abfd, bfd_getx16, (ptr)) 8180 #define bfd_get_signed_16(abfd, ptr) \ 8181 BFD_SEND (abfd, bfd_getx_signed_16, (ptr)) 8182 8183 #define bfd_put_32(abfd, val, ptr) \ 8184 BFD_SEND (abfd, bfd_putx32, ((val),(ptr))) 8185 #define bfd_put_signed_32 \ 8186 bfd_put_32 8187 #define bfd_get_32(abfd, ptr) \ 8188 BFD_SEND (abfd, bfd_getx32, (ptr)) 8189 #define bfd_get_signed_32(abfd, ptr) \ 8190 BFD_SEND (abfd, bfd_getx_signed_32, (ptr)) 8191 8192 #define bfd_put_64(abfd, val, ptr) \ 8193 BFD_SEND (abfd, bfd_putx64, ((val), (ptr))) 8194 #define bfd_put_signed_64 \ 8195 bfd_put_64 8196 #define bfd_get_64(abfd, ptr) \ 8197 BFD_SEND (abfd, bfd_getx64, (ptr)) 8198 #define bfd_get_signed_64(abfd, ptr) \ 8199 BFD_SEND (abfd, bfd_getx_signed_64, (ptr)) 8200 8201 #define bfd_get(bits, abfd, ptr) \ 8202 ((bits) == 8 ? (bfd_vma) bfd_get_8 (abfd, ptr) \ 8203 : (bits) == 16 ? bfd_get_16 (abfd, ptr) \ 8204 : (bits) == 32 ? bfd_get_32 (abfd, ptr) \ 8205 : (bits) == 64 ? bfd_get_64 (abfd, ptr) \ 8206 : (abort (), (bfd_vma) - 1)) 8207 8208 #define bfd_put(bits, abfd, val, ptr) \ 8209 ((bits) == 8 ? bfd_put_8 (abfd, val, ptr) \ 8210 : (bits) == 16 ? bfd_put_16 (abfd, val, ptr) \ 8211 : (bits) == 32 ? bfd_put_32 (abfd, val, ptr) \ 8212 : (bits) == 64 ? bfd_put_64 (abfd, val, ptr) \ 8213 : (abort (), (void) 0)) 8214 82152.15.1.4 `bfd_h_put_size' 8216......................... 8217 8218*Description* 8219These macros have the same function as their `bfd_get_x' brethren, 8220except that they are used for removing information for the header 8221records of object files. Believe it or not, some object files keep 8222their header records in big endian order and their data in little 8223endian order. 8224 8225 /* Byte swapping macros for file header data. */ 8226 8227 #define bfd_h_put_8(abfd, val, ptr) \ 8228 bfd_put_8 (abfd, val, ptr) 8229 #define bfd_h_put_signed_8(abfd, val, ptr) \ 8230 bfd_put_8 (abfd, val, ptr) 8231 #define bfd_h_get_8(abfd, ptr) \ 8232 bfd_get_8 (abfd, ptr) 8233 #define bfd_h_get_signed_8(abfd, ptr) \ 8234 bfd_get_signed_8 (abfd, ptr) 8235 8236 #define bfd_h_put_16(abfd, val, ptr) \ 8237 BFD_SEND (abfd, bfd_h_putx16, (val, ptr)) 8238 #define bfd_h_put_signed_16 \ 8239 bfd_h_put_16 8240 #define bfd_h_get_16(abfd, ptr) \ 8241 BFD_SEND (abfd, bfd_h_getx16, (ptr)) 8242 #define bfd_h_get_signed_16(abfd, ptr) \ 8243 BFD_SEND (abfd, bfd_h_getx_signed_16, (ptr)) 8244 8245 #define bfd_h_put_32(abfd, val, ptr) \ 8246 BFD_SEND (abfd, bfd_h_putx32, (val, ptr)) 8247 #define bfd_h_put_signed_32 \ 8248 bfd_h_put_32 8249 #define bfd_h_get_32(abfd, ptr) \ 8250 BFD_SEND (abfd, bfd_h_getx32, (ptr)) 8251 #define bfd_h_get_signed_32(abfd, ptr) \ 8252 BFD_SEND (abfd, bfd_h_getx_signed_32, (ptr)) 8253 8254 #define bfd_h_put_64(abfd, val, ptr) \ 8255 BFD_SEND (abfd, bfd_h_putx64, (val, ptr)) 8256 #define bfd_h_put_signed_64 \ 8257 bfd_h_put_64 8258 #define bfd_h_get_64(abfd, ptr) \ 8259 BFD_SEND (abfd, bfd_h_getx64, (ptr)) 8260 #define bfd_h_get_signed_64(abfd, ptr) \ 8261 BFD_SEND (abfd, bfd_h_getx_signed_64, (ptr)) 8262 8263 /* Aliases for the above, which should eventually go away. */ 8264 8265 #define H_PUT_64 bfd_h_put_64 8266 #define H_PUT_32 bfd_h_put_32 8267 #define H_PUT_16 bfd_h_put_16 8268 #define H_PUT_8 bfd_h_put_8 8269 #define H_PUT_S64 bfd_h_put_signed_64 8270 #define H_PUT_S32 bfd_h_put_signed_32 8271 #define H_PUT_S16 bfd_h_put_signed_16 8272 #define H_PUT_S8 bfd_h_put_signed_8 8273 #define H_GET_64 bfd_h_get_64 8274 #define H_GET_32 bfd_h_get_32 8275 #define H_GET_16 bfd_h_get_16 8276 #define H_GET_8 bfd_h_get_8 8277 #define H_GET_S64 bfd_h_get_signed_64 8278 #define H_GET_S32 bfd_h_get_signed_32 8279 #define H_GET_S16 bfd_h_get_signed_16 8280 #define H_GET_S8 bfd_h_get_signed_8 8281 82822.15.1.5 `bfd_log2' 8283................... 8284 8285*Synopsis* 8286 unsigned int bfd_log2 (bfd_vma x); 8287 *Description* 8288Return the log base 2 of the value supplied, rounded up. E.g., an X of 82891025 returns 11. A X of 0 returns 0. 8290 8291 8292File: bfd.info, Node: File Caching, Next: Linker Functions, Prev: Internal, Up: BFD front end 8293 82942.16 File caching 8295================= 8296 8297The file caching mechanism is embedded within BFD and allows the 8298application to open as many BFDs as it wants without regard to the 8299underlying operating system's file descriptor limit (often as low as 20 8300open files). The module in `cache.c' maintains a least recently used 8301list of `BFD_CACHE_MAX_OPEN' files, and exports the name 8302`bfd_cache_lookup', which runs around and makes sure that the required 8303BFD is open. If not, then it chooses a file to close, closes it and 8304opens the one wanted, returning its file handle. 8305 83062.16.1 Caching functions 8307------------------------ 8308 83092.16.1.1 `bfd_cache_init' 8310......................... 8311 8312*Synopsis* 8313 bfd_boolean bfd_cache_init (bfd *abfd); 8314 *Description* 8315Add a newly opened BFD to the cache. 8316 83172.16.1.2 `bfd_cache_close' 8318.......................... 8319 8320*Synopsis* 8321 bfd_boolean bfd_cache_close (bfd *abfd); 8322 *Description* 8323Remove the BFD ABFD from the cache. If the attached file is open, then 8324close it too. 8325 8326 *Returns* 8327`FALSE' is returned if closing the file fails, `TRUE' is returned if 8328all is well. 8329 83302.16.1.3 `bfd_cache_close_all' 8331.............................. 8332 8333*Synopsis* 8334 bfd_boolean bfd_cache_close_all (void); 8335 *Description* 8336Remove all BFDs from the cache. If the attached file is open, then 8337close it too. 8338 8339 *Returns* 8340`FALSE' is returned if closing one of the file fails, `TRUE' is 8341returned if all is well. 8342 83432.16.1.4 `bfd_open_file' 8344........................ 8345 8346*Synopsis* 8347 FILE* bfd_open_file (bfd *abfd); 8348 *Description* 8349Call the OS to open a file for ABFD. Return the `FILE *' (possibly 8350`NULL') that results from this operation. Set up the BFD so that 8351future accesses know the file is open. If the `FILE *' returned is 8352`NULL', then it won't have been put in the cache, so it won't have to 8353be removed from it. 8354 8355 8356File: bfd.info, Node: Linker Functions, Next: Hash Tables, Prev: File Caching, Up: BFD front end 8357 83582.17 Linker Functions 8359===================== 8360 8361The linker uses three special entry points in the BFD target vector. 8362It is not necessary to write special routines for these entry points 8363when creating a new BFD back end, since generic versions are provided. 8364However, writing them can speed up linking and make it use 8365significantly less runtime memory. 8366 8367 The first routine creates a hash table used by the other routines. 8368The second routine adds the symbols from an object file to the hash 8369table. The third routine takes all the object files and links them 8370together to create the output file. These routines are designed so 8371that the linker proper does not need to know anything about the symbols 8372in the object files that it is linking. The linker merely arranges the 8373sections as directed by the linker script and lets BFD handle the 8374details of symbols and relocs. 8375 8376 The second routine and third routines are passed a pointer to a 8377`struct bfd_link_info' structure (defined in `bfdlink.h') which holds 8378information relevant to the link, including the linker hash table 8379(which was created by the first routine) and a set of callback 8380functions to the linker proper. 8381 8382 The generic linker routines are in `linker.c', and use the header 8383file `genlink.h'. As of this writing, the only back ends which have 8384implemented versions of these routines are a.out (in `aoutx.h') and 8385ECOFF (in `ecoff.c'). The a.out routines are used as examples 8386throughout this section. 8387 8388* Menu: 8389 8390* Creating a Linker Hash Table:: 8391* Adding Symbols to the Hash Table:: 8392* Performing the Final Link:: 8393 8394 8395File: bfd.info, Node: Creating a Linker Hash Table, Next: Adding Symbols to the Hash Table, Prev: Linker Functions, Up: Linker Functions 8396 83972.17.1 Creating a linker hash table 8398----------------------------------- 8399 8400The linker routines must create a hash table, which must be derived 8401from `struct bfd_link_hash_table' described in `bfdlink.c'. *Note Hash 8402Tables::, for information on how to create a derived hash table. This 8403entry point is called using the target vector of the linker output file. 8404 8405 The `_bfd_link_hash_table_create' entry point must allocate and 8406initialize an instance of the desired hash table. If the back end does 8407not require any additional information to be stored with the entries in 8408the hash table, the entry point may simply create a `struct 8409bfd_link_hash_table'. Most likely, however, some additional 8410information will be needed. 8411 8412 For example, with each entry in the hash table the a.out linker 8413keeps the index the symbol has in the final output file (this index 8414number is used so that when doing a relocatable link the symbol index 8415used in the output file can be quickly filled in when copying over a 8416reloc). The a.out linker code defines the required structures and 8417functions for a hash table derived from `struct bfd_link_hash_table'. 8418The a.out linker hash table is created by the function 8419`NAME(aout,link_hash_table_create)'; it simply allocates space for the 8420hash table, initializes it, and returns a pointer to it. 8421 8422 When writing the linker routines for a new back end, you will 8423generally not know exactly which fields will be required until you have 8424finished. You should simply create a new hash table which defines no 8425additional fields, and then simply add fields as they become necessary. 8426 8427 8428File: bfd.info, Node: Adding Symbols to the Hash Table, Next: Performing the Final Link, Prev: Creating a Linker Hash Table, Up: Linker Functions 8429 84302.17.2 Adding symbols to the hash table 8431--------------------------------------- 8432 8433The linker proper will call the `_bfd_link_add_symbols' entry point for 8434each object file or archive which is to be linked (typically these are 8435the files named on the command line, but some may also come from the 8436linker script). The entry point is responsible for examining the file. 8437For an object file, BFD must add any relevant symbol information to 8438the hash table. For an archive, BFD must determine which elements of 8439the archive should be used and adding them to the link. 8440 8441 The a.out version of this entry point is 8442`NAME(aout,link_add_symbols)'. 8443 8444* Menu: 8445 8446* Differing file formats:: 8447* Adding symbols from an object file:: 8448* Adding symbols from an archive:: 8449 8450 8451File: 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 8452 84532.17.2.1 Differing file formats 8454............................... 8455 8456Normally all the files involved in a link will be of the same format, 8457but it is also possible to link together different format object files, 8458and the back end must support that. The `_bfd_link_add_symbols' entry 8459point is called via the target vector of the file to be added. This 8460has an important consequence: the function may not assume that the hash 8461table is the type created by the corresponding 8462`_bfd_link_hash_table_create' vector. All the `_bfd_link_add_symbols' 8463function can assume about the hash table is that it is derived from 8464`struct bfd_link_hash_table'. 8465 8466 Sometimes the `_bfd_link_add_symbols' function must store some 8467information in the hash table entry to be used by the `_bfd_final_link' 8468function. In such a case the output bfd xvec must be checked to make 8469sure that the hash table was created by an object file of the same 8470format. 8471 8472 The `_bfd_final_link' routine must be prepared to handle a hash 8473entry without any extra information added by the 8474`_bfd_link_add_symbols' function. A hash entry without extra 8475information will also occur when the linker script directs the linker 8476to create a symbol. Note that, regardless of how a hash table entry is 8477added, all the fields will be initialized to some sort of null value by 8478the hash table entry initialization function. 8479 8480 See `ecoff_link_add_externals' for an example of how to check the 8481output bfd before saving information (in this case, the ECOFF external 8482symbol debugging information) in a hash table entry. 8483 8484 8485File: 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 8486 84872.17.2.2 Adding symbols from an object file 8488........................................... 8489 8490When the `_bfd_link_add_symbols' routine is passed an object file, it 8491must add all externally visible symbols in that object file to the hash 8492table. The actual work of adding the symbol to the hash table is 8493normally handled by the function `_bfd_generic_link_add_one_symbol'. 8494The `_bfd_link_add_symbols' routine is responsible for reading all the 8495symbols from the object file and passing the correct information to 8496`_bfd_generic_link_add_one_symbol'. 8497 8498 The `_bfd_link_add_symbols' routine should not use 8499`bfd_canonicalize_symtab' to read the symbols. The point of providing 8500this routine is to avoid the overhead of converting the symbols into 8501generic `asymbol' structures. 8502 8503 `_bfd_generic_link_add_one_symbol' handles the details of combining 8504common symbols, warning about multiple definitions, and so forth. It 8505takes arguments which describe the symbol to add, notably symbol flags, 8506a section, and an offset. The symbol flags include such things as 8507`BSF_WEAK' or `BSF_INDIRECT'. The section is a section in the object 8508file, or something like `bfd_und_section_ptr' for an undefined symbol 8509or `bfd_com_section_ptr' for a common symbol. 8510 8511 If the `_bfd_final_link' routine is also going to need to read the 8512symbol information, the `_bfd_link_add_symbols' routine should save it 8513somewhere attached to the object file BFD. However, the information 8514should only be saved if the `keep_memory' field of the `info' argument 8515is TRUE, so that the `-no-keep-memory' linker switch is effective. 8516 8517 The a.out function which adds symbols from an object file is 8518`aout_link_add_object_symbols', and most of the interesting work is in 8519`aout_link_add_symbols'. The latter saves pointers to the hash tables 8520entries created by `_bfd_generic_link_add_one_symbol' indexed by symbol 8521number, so that the `_bfd_final_link' routine does not have to call the 8522hash table lookup routine to locate the entry. 8523 8524 8525File: bfd.info, Node: Adding symbols from an archive, Prev: Adding symbols from an object file, Up: Adding Symbols to the Hash Table 8526 85272.17.2.3 Adding symbols from an archive 8528....................................... 8529 8530When the `_bfd_link_add_symbols' routine is passed an archive, it must 8531look through the symbols defined by the archive and decide which 8532elements of the archive should be included in the link. For each such 8533element it must call the `add_archive_element' linker callback, and it 8534must add the symbols from the object file to the linker hash table. 8535(The callback may in fact indicate that a replacement BFD should be 8536used, in which case the symbols from that BFD should be added to the 8537linker hash table instead.) 8538 8539 In most cases the work of looking through the symbols in the archive 8540should be done by the `_bfd_generic_link_add_archive_symbols' function. 8541This function builds a hash table from the archive symbol table and 8542looks through the list of undefined symbols to see which elements 8543should be included. `_bfd_generic_link_add_archive_symbols' is passed 8544a function to call to make the final decision about adding an archive 8545element to the link and to do the actual work of adding the symbols to 8546the linker hash table. 8547 8548 The function passed to `_bfd_generic_link_add_archive_symbols' must 8549read the symbols of the archive element and decide whether the archive 8550element should be included in the link. If the element is to be 8551included, the `add_archive_element' linker callback routine must be 8552called with the element as an argument, and the element's symbols must 8553be added to the linker hash table just as though the element had itself 8554been passed to the `_bfd_link_add_symbols' function. The 8555`add_archive_element' callback has the option to indicate that it would 8556like to replace the element archive with a substitute BFD, in which 8557case it is the symbols of that substitute BFD that must be added to the 8558linker hash table instead. 8559 8560 When the a.out `_bfd_link_add_symbols' function receives an archive, 8561it calls `_bfd_generic_link_add_archive_symbols' passing 8562`aout_link_check_archive_element' as the function argument. 8563`aout_link_check_archive_element' calls `aout_link_check_ar_symbols'. 8564If the latter decides to add the element (an element is only added if 8565it provides a real, non-common, definition for a previously undefined 8566or common symbol) it calls the `add_archive_element' callback and then 8567`aout_link_check_archive_element' calls `aout_link_add_symbols' to 8568actually add the symbols to the linker hash table - possibly those of a 8569substitute BFD, if the `add_archive_element' callback avails itself of 8570that option. 8571 8572 The ECOFF back end is unusual in that it does not normally call 8573`_bfd_generic_link_add_archive_symbols', because ECOFF archives already 8574contain a hash table of symbols. The ECOFF back end searches the 8575archive itself to avoid the overhead of creating a new hash table. 8576 8577 8578File: bfd.info, Node: Performing the Final Link, Prev: Adding Symbols to the Hash Table, Up: Linker Functions 8579 85802.17.3 Performing the final link 8581-------------------------------- 8582 8583When all the input files have been processed, the linker calls the 8584`_bfd_final_link' entry point of the output BFD. This routine is 8585responsible for producing the final output file, which has several 8586aspects. It must relocate the contents of the input sections and copy 8587the data into the output sections. It must build an output symbol 8588table including any local symbols from the input files and the global 8589symbols from the hash table. When producing relocatable output, it must 8590modify the input relocs and write them into the output file. There may 8591also be object format dependent work to be done. 8592 8593 The linker will also call the `write_object_contents' entry point 8594when the BFD is closed. The two entry points must work together in 8595order to produce the correct output file. 8596 8597 The details of how this works are inevitably dependent upon the 8598specific object file format. The a.out `_bfd_final_link' routine is 8599`NAME(aout,final_link)'. 8600 8601* Menu: 8602 8603* Information provided by the linker:: 8604* Relocating the section contents:: 8605* Writing the symbol table:: 8606 8607 8608File: bfd.info, Node: Information provided by the linker, Next: Relocating the section contents, Prev: Performing the Final Link, Up: Performing the Final Link 8609 86102.17.3.1 Information provided by the linker 8611........................................... 8612 8613Before the linker calls the `_bfd_final_link' entry point, it sets up 8614some data structures for the function to use. 8615 8616 The `input_bfds' field of the `bfd_link_info' structure will point 8617to a list of all the input files included in the link. These files are 8618linked through the `link_next' field of the `bfd' structure. 8619 8620 Each section in the output file will have a list of `link_order' 8621structures attached to the `map_head.link_order' field (the 8622`link_order' structure is defined in `bfdlink.h'). These structures 8623describe how to create the contents of the output section in terms of 8624the contents of various input sections, fill constants, and, 8625eventually, other types of information. They also describe relocs that 8626must be created by the BFD backend, but do not correspond to any input 8627file; this is used to support -Ur, which builds constructors while 8628generating a relocatable object file. 8629 8630 8631File: bfd.info, Node: Relocating the section contents, Next: Writing the symbol table, Prev: Information provided by the linker, Up: Performing the Final Link 8632 86332.17.3.2 Relocating the section contents 8634........................................ 8635 8636The `_bfd_final_link' function should look through the `link_order' 8637structures attached to each section of the output file. Each 8638`link_order' structure should either be handled specially, or it should 8639be passed to the function `_bfd_default_link_order' which will do the 8640right thing (`_bfd_default_link_order' is defined in `linker.c'). 8641 8642 For efficiency, a `link_order' of type `bfd_indirect_link_order' 8643whose associated section belongs to a BFD of the same format as the 8644output BFD must be handled specially. This type of `link_order' 8645describes part of an output section in terms of a section belonging to 8646one of the input files. The `_bfd_final_link' function should read the 8647contents of the section and any associated relocs, apply the relocs to 8648the section contents, and write out the modified section contents. If 8649performing a relocatable link, the relocs themselves must also be 8650modified and written out. 8651 8652 The functions `_bfd_relocate_contents' and 8653`_bfd_final_link_relocate' provide some general support for performing 8654the actual relocations, notably overflow checking. Their arguments 8655include information about the symbol the relocation is against and a 8656`reloc_howto_type' argument which describes the relocation to perform. 8657These functions are defined in `reloc.c'. 8658 8659 The a.out function which handles reading, relocating, and writing 8660section contents is `aout_link_input_section'. The actual relocation 8661is done in `aout_link_input_section_std' and 8662`aout_link_input_section_ext'. 8663 8664 8665File: bfd.info, Node: Writing the symbol table, Prev: Relocating the section contents, Up: Performing the Final Link 8666 86672.17.3.3 Writing the symbol table 8668................................. 8669 8670The `_bfd_final_link' function must gather all the symbols in the input 8671files and write them out. It must also write out all the symbols in 8672the global hash table. This must be controlled by the `strip' and 8673`discard' fields of the `bfd_link_info' structure. 8674 8675 The local symbols of the input files will not have been entered into 8676the linker hash table. The `_bfd_final_link' routine must consider 8677each input file and include the symbols in the output file. It may be 8678convenient to do this when looking through the `link_order' structures, 8679or it may be done by stepping through the `input_bfds' list. 8680 8681 The `_bfd_final_link' routine must also traverse the global hash 8682table to gather all the externally visible symbols. It is possible 8683that most of the externally visible symbols may be written out when 8684considering the symbols of each input file, but it is still necessary 8685to traverse the hash table since the linker script may have defined 8686some symbols that are not in any of the input files. 8687 8688 The `strip' field of the `bfd_link_info' structure controls which 8689symbols are written out. The possible values are listed in 8690`bfdlink.h'. If the value is `strip_some', then the `keep_hash' field 8691of the `bfd_link_info' structure is a hash table of symbols to keep; 8692each symbol should be looked up in this hash table, and only symbols 8693which are present should be included in the output file. 8694 8695 If the `strip' field of the `bfd_link_info' structure permits local 8696symbols to be written out, the `discard' field is used to further 8697controls which local symbols are included in the output file. If the 8698value is `discard_l', then all local symbols which begin with a certain 8699prefix are discarded; this is controlled by the 8700`bfd_is_local_label_name' entry point. 8701 8702 The a.out backend handles symbols by calling 8703`aout_link_write_symbols' on each input BFD and then traversing the 8704global hash table with the function `aout_link_write_other_symbol'. It 8705builds a string table while writing out the symbols, which is written 8706to the output file at the end of `NAME(aout,final_link)'. 8707 87082.17.3.4 `bfd_link_split_section' 8709................................. 8710 8711*Synopsis* 8712 bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec); 8713 *Description* 8714Return nonzero if SEC should be split during a reloceatable or final 8715link. 8716 #define bfd_link_split_section(abfd, sec) \ 8717 BFD_SEND (abfd, _bfd_link_split_section, (abfd, sec)) 8718 87192.17.3.5 `bfd_section_already_linked' 8720..................................... 8721 8722*Synopsis* 8723 bfd_boolean bfd_section_already_linked (bfd *abfd, 8724 asection *sec, 8725 struct bfd_link_info *info); 8726 *Description* 8727Check if DATA has been already linked during a reloceatable or final 8728link. Return TRUE if it has. 8729 #define bfd_section_already_linked(abfd, sec, info) \ 8730 BFD_SEND (abfd, _section_already_linked, (abfd, sec, info)) 8731 87322.17.3.6 `bfd_generic_define_common_symbol' 8733........................................... 8734 8735*Synopsis* 8736 bfd_boolean bfd_generic_define_common_symbol 8737 (bfd *output_bfd, struct bfd_link_info *info, 8738 struct bfd_link_hash_entry *h); 8739 *Description* 8740Convert common symbol H into a defined symbol. Return TRUE on success 8741and FALSE on failure. 8742 #define bfd_define_common_symbol(output_bfd, info, h) \ 8743 BFD_SEND (output_bfd, _bfd_define_common_symbol, (output_bfd, info, h)) 8744 87452.17.3.7 `bfd_find_version_for_sym ' 8746.................................... 8747 8748*Synopsis* 8749 struct bfd_elf_version_tree * bfd_find_version_for_sym 8750 (struct bfd_elf_version_tree *verdefs, 8751 const char *sym_name, bfd_boolean *hide); 8752 *Description* 8753Search an elf version script tree for symbol versioning info and export 8754/ don't-export status for a given symbol. Return non-NULL on success 8755and NULL on failure; also sets the output `hide' boolean parameter. 8756 87572.17.3.8 `bfd_hide_sym_by_version' 8758.................................. 8759 8760*Synopsis* 8761 bfd_boolean bfd_hide_sym_by_version 8762 (struct bfd_elf_version_tree *verdefs, const char *sym_name); 8763 *Description* 8764Search an elf version script tree for symbol versioning info for a 8765given symbol. Return TRUE if the symbol is hidden. 8766 8767 8768File: bfd.info, Node: Hash Tables, Prev: Linker Functions, Up: BFD front end 8769 87702.18 Hash Tables 8771================ 8772 8773BFD provides a simple set of hash table functions. Routines are 8774provided to initialize a hash table, to free a hash table, to look up a 8775string in a hash table and optionally create an entry for it, and to 8776traverse a hash table. There is currently no routine to delete an 8777string from a hash table. 8778 8779 The basic hash table does not permit any data to be stored with a 8780string. However, a hash table is designed to present a base class from 8781which other types of hash tables may be derived. These derived types 8782may store additional information with the string. Hash tables were 8783implemented in this way, rather than simply providing a data pointer in 8784a hash table entry, because they were designed for use by the linker 8785back ends. The linker may create thousands of hash table entries, and 8786the overhead of allocating private data and storing and following 8787pointers becomes noticeable. 8788 8789 The basic hash table code is in `hash.c'. 8790 8791* Menu: 8792 8793* Creating and Freeing a Hash Table:: 8794* Looking Up or Entering a String:: 8795* Traversing a Hash Table:: 8796* Deriving a New Hash Table Type:: 8797 8798 8799File: bfd.info, Node: Creating and Freeing a Hash Table, Next: Looking Up or Entering a String, Prev: Hash Tables, Up: Hash Tables 8800 88012.18.1 Creating and freeing a hash table 8802---------------------------------------- 8803 8804To create a hash table, create an instance of a `struct bfd_hash_table' 8805(defined in `bfd.h') and call `bfd_hash_table_init' (if you know 8806approximately how many entries you will need, the function 8807`bfd_hash_table_init_n', which takes a SIZE argument, may be used). 8808`bfd_hash_table_init' returns `FALSE' if some sort of error occurs. 8809 8810 The function `bfd_hash_table_init' take as an argument a function to 8811use to create new entries. For a basic hash table, use the function 8812`bfd_hash_newfunc'. *Note Deriving a New Hash Table Type::, for why 8813you would want to use a different value for this argument. 8814 8815 `bfd_hash_table_init' will create an objalloc which will be used to 8816allocate new entries. You may allocate memory on this objalloc using 8817`bfd_hash_allocate'. 8818 8819 Use `bfd_hash_table_free' to free up all the memory that has been 8820allocated for a hash table. This will not free up the `struct 8821bfd_hash_table' itself, which you must provide. 8822 8823 Use `bfd_hash_set_default_size' to set the default size of hash 8824table to use. 8825 8826 8827File: bfd.info, Node: Looking Up or Entering a String, Next: Traversing a Hash Table, Prev: Creating and Freeing a Hash Table, Up: Hash Tables 8828 88292.18.2 Looking up or entering a string 8830-------------------------------------- 8831 8832The function `bfd_hash_lookup' is used both to look up a string in the 8833hash table and to create a new entry. 8834 8835 If the CREATE argument is `FALSE', `bfd_hash_lookup' will look up a 8836string. If the string is found, it will returns a pointer to a `struct 8837bfd_hash_entry'. If the string is not found in the table 8838`bfd_hash_lookup' will return `NULL'. You should not modify any of the 8839fields in the returns `struct bfd_hash_entry'. 8840 8841 If the CREATE argument is `TRUE', the string will be entered into 8842the hash table if it is not already there. Either way a pointer to a 8843`struct bfd_hash_entry' will be returned, either to the existing 8844structure or to a newly created one. In this case, a `NULL' return 8845means that an error occurred. 8846 8847 If the CREATE argument is `TRUE', and a new entry is created, the 8848COPY argument is used to decide whether to copy the string onto the 8849hash table objalloc or not. If COPY is passed as `FALSE', you must be 8850careful not to deallocate or modify the string as long as the hash table 8851exists. 8852 8853 8854File: bfd.info, Node: Traversing a Hash Table, Next: Deriving a New Hash Table Type, Prev: Looking Up or Entering a String, Up: Hash Tables 8855 88562.18.3 Traversing a hash table 8857------------------------------ 8858 8859The function `bfd_hash_traverse' may be used to traverse a hash table, 8860calling a function on each element. The traversal is done in a random 8861order. 8862 8863 `bfd_hash_traverse' takes as arguments a function and a generic 8864`void *' pointer. The function is called with a hash table entry (a 8865`struct bfd_hash_entry *') and the generic pointer passed to 8866`bfd_hash_traverse'. The function must return a `boolean' value, which 8867indicates whether to continue traversing the hash table. If the 8868function returns `FALSE', `bfd_hash_traverse' will stop the traversal 8869and return immediately. 8870 8871 8872File: bfd.info, Node: Deriving a New Hash Table Type, Prev: Traversing a Hash Table, Up: Hash Tables 8873 88742.18.4 Deriving a new hash table type 8875------------------------------------- 8876 8877Many uses of hash tables want to store additional information which 8878each entry in the hash table. Some also find it convenient to store 8879additional information with the hash table itself. This may be done 8880using a derived hash table. 8881 8882 Since C is not an object oriented language, creating a derived hash 8883table requires sticking together some boilerplate routines with a few 8884differences specific to the type of hash table you want to create. 8885 8886 An example of a derived hash table is the linker hash table. The 8887structures for this are defined in `bfdlink.h'. The functions are in 8888`linker.c'. 8889 8890 You may also derive a hash table from an already derived hash table. 8891For example, the a.out linker backend code uses a hash table derived 8892from the linker hash table. 8893 8894* Menu: 8895 8896* Define the Derived Structures:: 8897* Write the Derived Creation Routine:: 8898* Write Other Derived Routines:: 8899 8900 8901File: 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 8902 89032.18.4.1 Define the derived structures 8904...................................... 8905 8906You must define a structure for an entry in the hash table, and a 8907structure for the hash table itself. 8908 8909 The first field in the structure for an entry in the hash table must 8910be of the type used for an entry in the hash table you are deriving 8911from. If you are deriving from a basic hash table this is `struct 8912bfd_hash_entry', which is defined in `bfd.h'. The first field in the 8913structure for the hash table itself must be of the type of the hash 8914table you are deriving from itself. If you are deriving from a basic 8915hash table, this is `struct bfd_hash_table'. 8916 8917 For example, the linker hash table defines `struct 8918bfd_link_hash_entry' (in `bfdlink.h'). The first field, `root', is of 8919type `struct bfd_hash_entry'. Similarly, the first field in `struct 8920bfd_link_hash_table', `table', is of type `struct bfd_hash_table'. 8921 8922 8923File: 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 8924 89252.18.4.2 Write the derived creation routine 8926........................................... 8927 8928You must write a routine which will create and initialize an entry in 8929the hash table. This routine is passed as the function argument to 8930`bfd_hash_table_init'. 8931 8932 In order to permit other hash tables to be derived from the hash 8933table you are creating, this routine must be written in a standard way. 8934 8935 The first argument to the creation routine is a pointer to a hash 8936table entry. This may be `NULL', in which case the routine should 8937allocate the right amount of space. Otherwise the space has already 8938been allocated by a hash table type derived from this one. 8939 8940 After allocating space, the creation routine must call the creation 8941routine of the hash table type it is derived from, passing in a pointer 8942to the space it just allocated. This will initialize any fields used 8943by the base hash table. 8944 8945 Finally the creation routine must initialize any local fields for 8946the new hash table type. 8947 8948 Here is a boilerplate example of a creation routine. FUNCTION_NAME 8949is the name of the routine. ENTRY_TYPE is the type of an entry in the 8950hash table you are creating. BASE_NEWFUNC is the name of the creation 8951routine of the hash table type your hash table is derived from. 8952 8953 struct bfd_hash_entry * 8954 FUNCTION_NAME (struct bfd_hash_entry *entry, 8955 struct bfd_hash_table *table, 8956 const char *string) 8957 { 8958 struct ENTRY_TYPE *ret = (ENTRY_TYPE *) entry; 8959 8960 /* Allocate the structure if it has not already been allocated by a 8961 derived class. */ 8962 if (ret == NULL) 8963 { 8964 ret = bfd_hash_allocate (table, sizeof (* ret)); 8965 if (ret == NULL) 8966 return NULL; 8967 } 8968 8969 /* Call the allocation method of the base class. */ 8970 ret = ((ENTRY_TYPE *) 8971 BASE_NEWFUNC ((struct bfd_hash_entry *) ret, table, string)); 8972 8973 /* Initialize the local fields here. */ 8974 8975 return (struct bfd_hash_entry *) ret; 8976 } 8977 *Description* 8978The creation routine for the linker hash table, which is in `linker.c', 8979looks just like this example. FUNCTION_NAME is 8980`_bfd_link_hash_newfunc'. ENTRY_TYPE is `struct bfd_link_hash_entry'. 8981BASE_NEWFUNC is `bfd_hash_newfunc', the creation routine for a basic 8982hash table. 8983 8984 `_bfd_link_hash_newfunc' also initializes the local fields in a 8985linker hash table entry: `type', `written' and `next'. 8986 8987 8988File: bfd.info, Node: Write Other Derived Routines, Prev: Write the Derived Creation Routine, Up: Deriving a New Hash Table Type 8989 89902.18.4.3 Write other derived routines 8991..................................... 8992 8993You will want to write other routines for your new hash table, as well. 8994 8995 You will want an initialization routine which calls the 8996initialization routine of the hash table you are deriving from and 8997initializes any other local fields. For the linker hash table, this is 8998`_bfd_link_hash_table_init' in `linker.c'. 8999 9000 You will want a lookup routine which calls the lookup routine of the 9001hash table you are deriving from and casts the result. The linker hash 9002table uses `bfd_link_hash_lookup' in `linker.c' (this actually takes an 9003additional argument which it uses to decide how to return the looked up 9004value). 9005 9006 You may want a traversal routine. This should just call the 9007traversal routine of the hash table you are deriving from with 9008appropriate casts. The linker hash table uses `bfd_link_hash_traverse' 9009in `linker.c'. 9010 9011 These routines may simply be defined as macros. For example, the 9012a.out backend linker hash table, which is derived from the linker hash 9013table, uses macros for the lookup and traversal routines. These are 9014`aout_link_hash_lookup' and `aout_link_hash_traverse' in aoutx.h. 9015 9016 9017File: bfd.info, Node: BFD back ends, Next: GNU Free Documentation License, Prev: BFD front end, Up: Top 9018 90193 BFD back ends 9020*************** 9021 9022* Menu: 9023 9024* What to Put Where:: 9025* aout :: a.out backends 9026* coff :: coff backends 9027* elf :: elf backends 9028* mmo :: mmo backend 9029 9030 9031File: bfd.info, Node: What to Put Where, Next: aout, Prev: BFD back ends, Up: BFD back ends 9032 90333.1 What to Put Where 9034===================== 9035 9036All of BFD lives in one directory. 9037 9038 9039File: bfd.info, Node: aout, Next: coff, Prev: What to Put Where, Up: BFD back ends 9040 90413.2 a.out backends 9042================== 9043 9044*Description* 9045BFD supports a number of different flavours of a.out format, though the 9046major differences are only the sizes of the structures on disk, and the 9047shape of the relocation information. 9048 9049 The support is split into a basic support file `aoutx.h' and other 9050files which derive functions from the base. One derivation file is 9051`aoutf1.h' (for a.out flavour 1), and adds to the basic a.out functions 9052support for sun3, sun4, 386 and 29k a.out files, to create a target 9053jump vector for a specific target. 9054 9055 This information is further split out into more specific files for 9056each machine, including `sunos.c' for sun3 and sun4, `newsos3.c' for 9057the Sony NEWS, and `demo64.c' for a demonstration of a 64 bit a.out 9058format. 9059 9060 The base file `aoutx.h' defines general mechanisms for reading and 9061writing records to and from disk and various other methods which BFD 9062requires. It is included by `aout32.c' and `aout64.c' to form the names 9063`aout_32_swap_exec_header_in', `aout_64_swap_exec_header_in', etc. 9064 9065 As an example, this is what goes on to make the back end for a sun4, 9066from `aout32.c': 9067 9068 #define ARCH_SIZE 32 9069 #include "aoutx.h" 9070 9071 Which exports names: 9072 9073 ... 9074 aout_32_canonicalize_reloc 9075 aout_32_find_nearest_line 9076 aout_32_get_lineno 9077 aout_32_get_reloc_upper_bound 9078 ... 9079 9080 from `sunos.c': 9081 9082 #define TARGET_NAME "a.out-sunos-big" 9083 #define VECNAME sunos_big_vec 9084 #include "aoutf1.h" 9085 9086 requires all the names from `aout32.c', and produces the jump vector 9087 9088 sunos_big_vec 9089 9090 The file `host-aout.c' is a special case. It is for a large set of 9091hosts that use "more or less standard" a.out files, and for which 9092cross-debugging is not interesting. It uses the standard 32-bit a.out 9093support routines, but determines the file offsets and addresses of the 9094text, data, and BSS sections, the machine architecture and machine 9095type, and the entry point address, in a host-dependent manner. Once 9096these values have been determined, generic code is used to handle the 9097object file. 9098 9099 When porting it to run on a new system, you must supply: 9100 9101 HOST_PAGE_SIZE 9102 HOST_SEGMENT_SIZE 9103 HOST_MACHINE_ARCH (optional) 9104 HOST_MACHINE_MACHINE (optional) 9105 HOST_TEXT_START_ADDR 9106 HOST_STACK_END_ADDR 9107 9108 in the file `../include/sys/h-XXX.h' (for your host). These values, 9109plus the structures and macros defined in `a.out.h' on your host 9110system, will produce a BFD target that will access ordinary a.out files 9111on your host. To configure a new machine to use `host-aout.c', specify: 9112 9113 TDEFAULTS = -DDEFAULT_VECTOR=host_aout_big_vec 9114 TDEPFILES= host-aout.o trad-core.o 9115 9116 in the `config/XXX.mt' file, and modify `configure.in' to use the 9117`XXX.mt' file (by setting "`bfd_target=XXX'") when your configuration 9118is selected. 9119 91203.2.1 Relocations 9121----------------- 9122 9123*Description* 9124The file `aoutx.h' provides for both the _standard_ and _extended_ 9125forms of a.out relocation records. 9126 9127 The standard records contain only an address, a symbol index, and a 9128type field. The extended records (used on 29ks and sparcs) also have a 9129full integer for an addend. 9130 91313.2.2 Internal entry points 9132--------------------------- 9133 9134*Description* 9135`aoutx.h' exports several routines for accessing the contents of an 9136a.out file, which are gathered and exported in turn by various format 9137specific files (eg sunos.c). 9138 91393.2.2.1 `aout_SIZE_swap_exec_header_in' 9140....................................... 9141 9142*Synopsis* 9143 void aout_SIZE_swap_exec_header_in, 9144 (bfd *abfd, 9145 struct external_exec *bytes, 9146 struct internal_exec *execp); 9147 *Description* 9148Swap the information in an executable header RAW_BYTES taken from a raw 9149byte stream memory image into the internal exec header structure EXECP. 9150 91513.2.2.2 `aout_SIZE_swap_exec_header_out' 9152........................................ 9153 9154*Synopsis* 9155 void aout_SIZE_swap_exec_header_out 9156 (bfd *abfd, 9157 struct internal_exec *execp, 9158 struct external_exec *raw_bytes); 9159 *Description* 9160Swap the information in an internal exec header structure EXECP into 9161the buffer RAW_BYTES ready for writing to disk. 9162 91633.2.2.3 `aout_SIZE_some_aout_object_p' 9164...................................... 9165 9166*Synopsis* 9167 const bfd_target *aout_SIZE_some_aout_object_p 9168 (bfd *abfd, 9169 struct internal_exec *execp, 9170 const bfd_target *(*callback_to_real_object_p) (bfd *)); 9171 *Description* 9172Some a.out variant thinks that the file open in ABFD checking is an 9173a.out file. Do some more checking, and set up for access if it really 9174is. Call back to the calling environment's "finish up" function just 9175before returning, to handle any last-minute setup. 9176 91773.2.2.4 `aout_SIZE_mkobject' 9178............................ 9179 9180*Synopsis* 9181 bfd_boolean aout_SIZE_mkobject, (bfd *abfd); 9182 *Description* 9183Initialize BFD ABFD for use with a.out files. 9184 91853.2.2.5 `aout_SIZE_machine_type' 9186................................ 9187 9188*Synopsis* 9189 enum machine_type aout_SIZE_machine_type 9190 (enum bfd_architecture arch, 9191 unsigned long machine, 9192 bfd_boolean *unknown); 9193 *Description* 9194Keep track of machine architecture and machine type for a.out's. Return 9195the `machine_type' for a particular architecture and machine, or 9196`M_UNKNOWN' if that exact architecture and machine can't be represented 9197in a.out format. 9198 9199 If the architecture is understood, machine type 0 (default) is 9200always understood. 9201 92023.2.2.6 `aout_SIZE_set_arch_mach' 9203................................. 9204 9205*Synopsis* 9206 bfd_boolean aout_SIZE_set_arch_mach, 9207 (bfd *, 9208 enum bfd_architecture arch, 9209 unsigned long machine); 9210 *Description* 9211Set the architecture and the machine of the BFD ABFD to the values ARCH 9212and MACHINE. Verify that ABFD's format can support the architecture 9213required. 9214 92153.2.2.7 `aout_SIZE_new_section_hook' 9216.................................... 9217 9218*Synopsis* 9219 bfd_boolean aout_SIZE_new_section_hook, 9220 (bfd *abfd, 9221 asection *newsect); 9222 *Description* 9223Called by the BFD in response to a `bfd_make_section' request. 9224 9225 9226File: bfd.info, Node: coff, Next: elf, Prev: aout, Up: BFD back ends 9227 92283.3 coff backends 9229================= 9230 9231BFD supports a number of different flavours of coff format. The major 9232differences between formats are the sizes and alignments of fields in 9233structures on disk, and the occasional extra field. 9234 9235 Coff in all its varieties is implemented with a few common files and 9236a number of implementation specific files. For example, The 88k bcs 9237coff format is implemented in the file `coff-m88k.c'. This file 9238`#include's `coff/m88k.h' which defines the external structure of the 9239coff format for the 88k, and `coff/internal.h' which defines the 9240internal structure. `coff-m88k.c' also defines the relocations used by 9241the 88k format *Note Relocations::. 9242 9243 The Intel i960 processor version of coff is implemented in 9244`coff-i960.c'. This file has the same structure as `coff-m88k.c', 9245except that it includes `coff/i960.h' rather than `coff-m88k.h'. 9246 92473.3.1 Porting to a new version of coff 9248-------------------------------------- 9249 9250The recommended method is to select from the existing implementations 9251the version of coff which is most like the one you want to use. For 9252example, we'll say that i386 coff is the one you select, and that your 9253coff flavour is called foo. Copy `i386coff.c' to `foocoff.c', copy 9254`../include/coff/i386.h' to `../include/coff/foo.h', and add the lines 9255to `targets.c' and `Makefile.in' so that your new back end is used. 9256Alter the shapes of the structures in `../include/coff/foo.h' so that 9257they match what you need. You will probably also have to add `#ifdef's 9258to the code in `coff/internal.h' and `coffcode.h' if your version of 9259coff is too wild. 9260 9261 You can verify that your new BFD backend works quite simply by 9262building `objdump' from the `binutils' directory, and making sure that 9263its version of what's going on and your host system's idea (assuming it 9264has the pretty standard coff dump utility, usually called `att-dump' or 9265just `dump') are the same. Then clean up your code, and send what 9266you've done to Cygnus. Then your stuff will be in the next release, and 9267you won't have to keep integrating it. 9268 92693.3.2 How the coff backend works 9270-------------------------------- 9271 92723.3.2.1 File layout 9273................... 9274 9275The Coff backend is split into generic routines that are applicable to 9276any Coff target and routines that are specific to a particular target. 9277The target-specific routines are further split into ones which are 9278basically the same for all Coff targets except that they use the 9279external symbol format or use different values for certain constants. 9280 9281 The generic routines are in `coffgen.c'. These routines work for 9282any Coff target. They use some hooks into the target specific code; 9283the hooks are in a `bfd_coff_backend_data' structure, one of which 9284exists for each target. 9285 9286 The essentially similar target-specific routines are in 9287`coffcode.h'. This header file includes executable C code. The 9288various Coff targets first include the appropriate Coff header file, 9289make any special defines that are needed, and then include `coffcode.h'. 9290 9291 Some of the Coff targets then also have additional routines in the 9292target source file itself. 9293 9294 For example, `coff-i960.c' includes `coff/internal.h' and 9295`coff/i960.h'. It then defines a few constants, such as `I960', and 9296includes `coffcode.h'. Since the i960 has complex relocation types, 9297`coff-i960.c' also includes some code to manipulate the i960 relocs. 9298This code is not in `coffcode.h' because it would not be used by any 9299other target. 9300 93013.3.2.2 Coff long section names 9302............................... 9303 9304In the standard Coff object format, section names are limited to the 9305eight bytes available in the `s_name' field of the `SCNHDR' section 9306header structure. The format requires the field to be NUL-padded, but 9307not necessarily NUL-terminated, so the longest section names permitted 9308are a full eight characters. 9309 9310 The Microsoft PE variants of the Coff object file format add an 9311extension to support the use of long section names. This extension is 9312defined in section 4 of the Microsoft PE/COFF specification (rev 8.1). 9313If a section name is too long to fit into the section header's `s_name' 9314field, it is instead placed into the string table, and the `s_name' 9315field is filled with a slash ("/") followed by the ASCII decimal 9316representation of the offset of the full name relative to the string 9317table base. 9318 9319 Note that this implies that the extension can only be used in object 9320files, as executables do not contain a string table. The standard 9321specifies that long section names from objects emitted into executable 9322images are to be truncated. 9323 9324 However, as a GNU extension, BFD can generate executable images that 9325contain a string table and long section names. This would appear to be 9326technically valid, as the standard only says that Coff debugging 9327information is deprecated, not forbidden, and in practice it works, 9328although some tools that parse PE files expecting the MS standard 9329format may become confused; `PEview' is one known example. 9330 9331 The functionality is supported in BFD by code implemented under the 9332control of the macro `COFF_LONG_SECTION_NAMES'. If not defined, the 9333format does not support long section names in any way. If defined, it 9334is used to initialise a flag, `_bfd_coff_long_section_names', and a 9335hook function pointer, `_bfd_coff_set_long_section_names', in the Coff 9336backend data structure. The flag controls the generation of long 9337section names in output BFDs at runtime; if it is false, as it will be 9338by default when generating an executable image, long section names are 9339truncated; if true, the long section names extension is employed. The 9340hook points to a function that allows the value of the flag to be 9341altered at runtime, on formats that support long section names at all; 9342on other formats it points to a stub that returns an error indication. 9343With input BFDs, the flag is set according to whether any long section 9344names are detected while reading the section headers. For a completely 9345new BFD, the flag is set to the default for the target format. This 9346information can be used by a client of the BFD library when deciding 9347what output format to generate, and means that a BFD that is opened for 9348read and subsequently converted to a writeable BFD and modified 9349in-place will retain whatever format it had on input. 9350 9351 If `COFF_LONG_SECTION_NAMES' is simply defined (blank), or is 9352defined to the value "1", then long section names are enabled by 9353default; if it is defined to the value zero, they are disabled by 9354default (but still accepted in input BFDs). The header `coffcode.h' 9355defines a macro, `COFF_DEFAULT_LONG_SECTION_NAMES', which is used in 9356the backends to initialise the backend data structure fields 9357appropriately; see the comments for further detail. 9358 93593.3.2.3 Bit twiddling 9360..................... 9361 9362Each flavour of coff supported in BFD has its own header file 9363describing the external layout of the structures. There is also an 9364internal description of the coff layout, in `coff/internal.h'. A major 9365function of the coff backend is swapping the bytes and twiddling the 9366bits to translate the external form of the structures into the normal 9367internal form. This is all performed in the `bfd_swap'_thing_direction 9368routines. Some elements are different sizes between different versions 9369of coff; it is the duty of the coff version specific include file to 9370override the definitions of various packing routines in `coffcode.h'. 9371E.g., the size of line number entry in coff is sometimes 16 bits, and 9372sometimes 32 bits. `#define'ing `PUT_LNSZ_LNNO' and `GET_LNSZ_LNNO' 9373will select the correct one. No doubt, some day someone will find a 9374version of coff which has a varying field size not catered to at the 9375moment. To port BFD, that person will have to add more `#defines'. 9376Three of the bit twiddling routines are exported to `gdb'; 9377`coff_swap_aux_in', `coff_swap_sym_in' and `coff_swap_lineno_in'. `GDB' 9378reads the symbol table on its own, but uses BFD to fix things up. More 9379of the bit twiddlers are exported for `gas'; `coff_swap_aux_out', 9380`coff_swap_sym_out', `coff_swap_lineno_out', `coff_swap_reloc_out', 9381`coff_swap_filehdr_out', `coff_swap_aouthdr_out', 9382`coff_swap_scnhdr_out'. `Gas' currently keeps track of all the symbol 9383table and reloc drudgery itself, thereby saving the internal BFD 9384overhead, but uses BFD to swap things on the way out, making cross 9385ports much safer. Doing so also allows BFD (and thus the linker) to 9386use the same header files as `gas', which makes one avenue to disaster 9387disappear. 9388 93893.3.2.4 Symbol reading 9390...................... 9391 9392The simple canonical form for symbols used by BFD is not rich enough to 9393keep all the information available in a coff symbol table. The back end 9394gets around this problem by keeping the original symbol table around, 9395"behind the scenes". 9396 9397 When a symbol table is requested (through a call to 9398`bfd_canonicalize_symtab'), a request gets through to 9399`coff_get_normalized_symtab'. This reads the symbol table from the coff 9400file and swaps all the structures inside into the internal form. It 9401also fixes up all the pointers in the table (represented in the file by 9402offsets from the first symbol in the table) into physical pointers to 9403elements in the new internal table. This involves some work since the 9404meanings of fields change depending upon context: a field that is a 9405pointer to another structure in the symbol table at one moment may be 9406the size in bytes of a structure at the next. Another pass is made 9407over the table. All symbols which mark file names (`C_FILE' symbols) 9408are modified so that the internal string points to the value in the 9409auxent (the real filename) rather than the normal text associated with 9410the symbol (`".file"'). 9411 9412 At this time the symbol names are moved around. Coff stores all 9413symbols less than nine characters long physically within the symbol 9414table; longer strings are kept at the end of the file in the string 9415table. This pass moves all strings into memory and replaces them with 9416pointers to the strings. 9417 9418 The symbol table is massaged once again, this time to create the 9419canonical table used by the BFD application. Each symbol is inspected 9420in turn, and a decision made (using the `sclass' field) about the 9421various flags to set in the `asymbol'. *Note Symbols::. The generated 9422canonical table shares strings with the hidden internal symbol table. 9423 9424 Any linenumbers are read from the coff file too, and attached to the 9425symbols which own the functions the linenumbers belong to. 9426 94273.3.2.5 Symbol writing 9428...................... 9429 9430Writing a symbol to a coff file which didn't come from a coff file will 9431lose any debugging information. The `asymbol' structure remembers the 9432BFD from which the symbol was taken, and on output the back end makes 9433sure that the same destination target as source target is present. 9434 9435 When the symbols have come from a coff file then all the debugging 9436information is preserved. 9437 9438 Symbol tables are provided for writing to the back end in a vector 9439of pointers to pointers. This allows applications like the linker to 9440accumulate and output large symbol tables without having to do too much 9441byte copying. 9442 9443 This function runs through the provided symbol table and patches 9444each symbol marked as a file place holder (`C_FILE') to point to the 9445next file place holder in the list. It also marks each `offset' field 9446in the list with the offset from the first symbol of the current symbol. 9447 9448 Another function of this procedure is to turn the canonical value 9449form of BFD into the form used by coff. Internally, BFD expects symbol 9450values to be offsets from a section base; so a symbol physically at 94510x120, but in a section starting at 0x100, would have the value 0x20. 9452Coff expects symbols to contain their final value, so symbols have 9453their values changed at this point to reflect their sum with their 9454owning section. This transformation uses the `output_section' field of 9455the `asymbol''s `asection' *Note Sections::. 9456 9457 * `coff_mangle_symbols' 9458 This routine runs though the provided symbol table and uses the 9459offsets generated by the previous pass and the pointers generated when 9460the symbol table was read in to create the structured hierarchy 9461required by coff. It changes each pointer to a symbol into the index 9462into the symbol table of the asymbol. 9463 9464 * `coff_write_symbols' 9465 This routine runs through the symbol table and patches up the 9466symbols from their internal form into the coff way, calls the bit 9467twiddlers, and writes out the table to the file. 9468 94693.3.2.6 `coff_symbol_type' 9470.......................... 9471 9472*Description* 9473The hidden information for an `asymbol' is described in a 9474`combined_entry_type': 9475 9476 9477 typedef struct coff_ptr_struct 9478 { 9479 /* Remembers the offset from the first symbol in the file for 9480 this symbol. Generated by coff_renumber_symbols. */ 9481 unsigned int offset; 9482 9483 /* Should the value of this symbol be renumbered. Used for 9484 XCOFF C_BSTAT symbols. Set by coff_slurp_symbol_table. */ 9485 unsigned int fix_value : 1; 9486 9487 /* Should the tag field of this symbol be renumbered. 9488 Created by coff_pointerize_aux. */ 9489 unsigned int fix_tag : 1; 9490 9491 /* Should the endidx field of this symbol be renumbered. 9492 Created by coff_pointerize_aux. */ 9493 unsigned int fix_end : 1; 9494 9495 /* Should the x_csect.x_scnlen field be renumbered. 9496 Created by coff_pointerize_aux. */ 9497 unsigned int fix_scnlen : 1; 9498 9499 /* Fix up an XCOFF C_BINCL/C_EINCL symbol. The value is the 9500 index into the line number entries. Set by coff_slurp_symbol_table. */ 9501 unsigned int fix_line : 1; 9502 9503 /* The container for the symbol structure as read and translated 9504 from the file. */ 9505 union 9506 { 9507 union internal_auxent auxent; 9508 struct internal_syment syment; 9509 } u; 9510 } combined_entry_type; 9511 9512 9513 /* Each canonical asymbol really looks like this: */ 9514 9515 typedef struct coff_symbol_struct 9516 { 9517 /* The actual symbol which the rest of BFD works with */ 9518 asymbol symbol; 9519 9520 /* A pointer to the hidden information for this symbol */ 9521 combined_entry_type *native; 9522 9523 /* A pointer to the linenumber information for this symbol */ 9524 struct lineno_cache_entry *lineno; 9525 9526 /* Have the line numbers been relocated yet ? */ 9527 bfd_boolean done_lineno; 9528 } coff_symbol_type; 9529 95303.3.2.7 `bfd_coff_backend_data' 9531............................... 9532 9533 /* COFF symbol classifications. */ 9534 9535 enum coff_symbol_classification 9536 { 9537 /* Global symbol. */ 9538 COFF_SYMBOL_GLOBAL, 9539 /* Common symbol. */ 9540 COFF_SYMBOL_COMMON, 9541 /* Undefined symbol. */ 9542 COFF_SYMBOL_UNDEFINED, 9543 /* Local symbol. */ 9544 COFF_SYMBOL_LOCAL, 9545 /* PE section symbol. */ 9546 COFF_SYMBOL_PE_SECTION 9547 }; 9548Special entry points for gdb to swap in coff symbol table parts: 9549 typedef struct 9550 { 9551 void (*_bfd_coff_swap_aux_in) 9552 (bfd *, void *, int, int, int, int, void *); 9553 9554 void (*_bfd_coff_swap_sym_in) 9555 (bfd *, void *, void *); 9556 9557 void (*_bfd_coff_swap_lineno_in) 9558 (bfd *, void *, void *); 9559 9560 unsigned int (*_bfd_coff_swap_aux_out) 9561 (bfd *, void *, int, int, int, int, void *); 9562 9563 unsigned int (*_bfd_coff_swap_sym_out) 9564 (bfd *, void *, void *); 9565 9566 unsigned int (*_bfd_coff_swap_lineno_out) 9567 (bfd *, void *, void *); 9568 9569 unsigned int (*_bfd_coff_swap_reloc_out) 9570 (bfd *, void *, void *); 9571 9572 unsigned int (*_bfd_coff_swap_filehdr_out) 9573 (bfd *, void *, void *); 9574 9575 unsigned int (*_bfd_coff_swap_aouthdr_out) 9576 (bfd *, void *, void *); 9577 9578 unsigned int (*_bfd_coff_swap_scnhdr_out) 9579 (bfd *, void *, void *); 9580 9581 unsigned int _bfd_filhsz; 9582 unsigned int _bfd_aoutsz; 9583 unsigned int _bfd_scnhsz; 9584 unsigned int _bfd_symesz; 9585 unsigned int _bfd_auxesz; 9586 unsigned int _bfd_relsz; 9587 unsigned int _bfd_linesz; 9588 unsigned int _bfd_filnmlen; 9589 bfd_boolean _bfd_coff_long_filenames; 9590 9591 bfd_boolean _bfd_coff_long_section_names; 9592 bfd_boolean (*_bfd_coff_set_long_section_names) 9593 (bfd *, int); 9594 9595 unsigned int _bfd_coff_default_section_alignment_power; 9596 bfd_boolean _bfd_coff_force_symnames_in_strings; 9597 unsigned int _bfd_coff_debug_string_prefix_length; 9598 9599 void (*_bfd_coff_swap_filehdr_in) 9600 (bfd *, void *, void *); 9601 9602 void (*_bfd_coff_swap_aouthdr_in) 9603 (bfd *, void *, void *); 9604 9605 void (*_bfd_coff_swap_scnhdr_in) 9606 (bfd *, void *, void *); 9607 9608 void (*_bfd_coff_swap_reloc_in) 9609 (bfd *abfd, void *, void *); 9610 9611 bfd_boolean (*_bfd_coff_bad_format_hook) 9612 (bfd *, void *); 9613 9614 bfd_boolean (*_bfd_coff_set_arch_mach_hook) 9615 (bfd *, void *); 9616 9617 void * (*_bfd_coff_mkobject_hook) 9618 (bfd *, void *, void *); 9619 9620 bfd_boolean (*_bfd_styp_to_sec_flags_hook) 9621 (bfd *, void *, const char *, asection *, flagword *); 9622 9623 void (*_bfd_set_alignment_hook) 9624 (bfd *, asection *, void *); 9625 9626 bfd_boolean (*_bfd_coff_slurp_symbol_table) 9627 (bfd *); 9628 9629 bfd_boolean (*_bfd_coff_symname_in_debug) 9630 (bfd *, struct internal_syment *); 9631 9632 bfd_boolean (*_bfd_coff_pointerize_aux_hook) 9633 (bfd *, combined_entry_type *, combined_entry_type *, 9634 unsigned int, combined_entry_type *); 9635 9636 bfd_boolean (*_bfd_coff_print_aux) 9637 (bfd *, FILE *, combined_entry_type *, combined_entry_type *, 9638 combined_entry_type *, unsigned int); 9639 9640 void (*_bfd_coff_reloc16_extra_cases) 9641 (bfd *, struct bfd_link_info *, struct bfd_link_order *, arelent *, 9642 bfd_byte *, unsigned int *, unsigned int *); 9643 9644 int (*_bfd_coff_reloc16_estimate) 9645 (bfd *, asection *, arelent *, unsigned int, 9646 struct bfd_link_info *); 9647 9648 enum coff_symbol_classification (*_bfd_coff_classify_symbol) 9649 (bfd *, struct internal_syment *); 9650 9651 bfd_boolean (*_bfd_coff_compute_section_file_positions) 9652 (bfd *); 9653 9654 bfd_boolean (*_bfd_coff_start_final_link) 9655 (bfd *, struct bfd_link_info *); 9656 9657 bfd_boolean (*_bfd_coff_relocate_section) 9658 (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, 9659 struct internal_reloc *, struct internal_syment *, asection **); 9660 9661 reloc_howto_type *(*_bfd_coff_rtype_to_howto) 9662 (bfd *, asection *, struct internal_reloc *, 9663 struct coff_link_hash_entry *, struct internal_syment *, 9664 bfd_vma *); 9665 9666 bfd_boolean (*_bfd_coff_adjust_symndx) 9667 (bfd *, struct bfd_link_info *, bfd *, asection *, 9668 struct internal_reloc *, bfd_boolean *); 9669 9670 bfd_boolean (*_bfd_coff_link_add_one_symbol) 9671 (struct bfd_link_info *, bfd *, const char *, flagword, 9672 asection *, bfd_vma, const char *, bfd_boolean, bfd_boolean, 9673 struct bfd_link_hash_entry **); 9674 9675 bfd_boolean (*_bfd_coff_link_output_has_begun) 9676 (bfd *, struct coff_final_link_info *); 9677 9678 bfd_boolean (*_bfd_coff_final_link_postscript) 9679 (bfd *, struct coff_final_link_info *); 9680 9681 bfd_boolean (*_bfd_coff_print_pdata) 9682 (bfd *, void *); 9683 9684 } bfd_coff_backend_data; 9685 9686 #define coff_backend_info(abfd) \ 9687 ((bfd_coff_backend_data *) (abfd)->xvec->backend_data) 9688 9689 #define bfd_coff_swap_aux_in(a,e,t,c,ind,num,i) \ 9690 ((coff_backend_info (a)->_bfd_coff_swap_aux_in) (a,e,t,c,ind,num,i)) 9691 9692 #define bfd_coff_swap_sym_in(a,e,i) \ 9693 ((coff_backend_info (a)->_bfd_coff_swap_sym_in) (a,e,i)) 9694 9695 #define bfd_coff_swap_lineno_in(a,e,i) \ 9696 ((coff_backend_info ( a)->_bfd_coff_swap_lineno_in) (a,e,i)) 9697 9698 #define bfd_coff_swap_reloc_out(abfd, i, o) \ 9699 ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_out) (abfd, i, o)) 9700 9701 #define bfd_coff_swap_lineno_out(abfd, i, o) \ 9702 ((coff_backend_info (abfd)->_bfd_coff_swap_lineno_out) (abfd, i, o)) 9703 9704 #define bfd_coff_swap_aux_out(a,i,t,c,ind,num,o) \ 9705 ((coff_backend_info (a)->_bfd_coff_swap_aux_out) (a,i,t,c,ind,num,o)) 9706 9707 #define bfd_coff_swap_sym_out(abfd, i,o) \ 9708 ((coff_backend_info (abfd)->_bfd_coff_swap_sym_out) (abfd, i, o)) 9709 9710 #define bfd_coff_swap_scnhdr_out(abfd, i,o) \ 9711 ((coff_backend_info (abfd)->_bfd_coff_swap_scnhdr_out) (abfd, i, o)) 9712 9713 #define bfd_coff_swap_filehdr_out(abfd, i,o) \ 9714 ((coff_backend_info (abfd)->_bfd_coff_swap_filehdr_out) (abfd, i, o)) 9715 9716 #define bfd_coff_swap_aouthdr_out(abfd, i,o) \ 9717 ((coff_backend_info (abfd)->_bfd_coff_swap_aouthdr_out) (abfd, i, o)) 9718 9719 #define bfd_coff_filhsz(abfd) (coff_backend_info (abfd)->_bfd_filhsz) 9720 #define bfd_coff_aoutsz(abfd) (coff_backend_info (abfd)->_bfd_aoutsz) 9721 #define bfd_coff_scnhsz(abfd) (coff_backend_info (abfd)->_bfd_scnhsz) 9722 #define bfd_coff_symesz(abfd) (coff_backend_info (abfd)->_bfd_symesz) 9723 #define bfd_coff_auxesz(abfd) (coff_backend_info (abfd)->_bfd_auxesz) 9724 #define bfd_coff_relsz(abfd) (coff_backend_info (abfd)->_bfd_relsz) 9725 #define bfd_coff_linesz(abfd) (coff_backend_info (abfd)->_bfd_linesz) 9726 #define bfd_coff_filnmlen(abfd) (coff_backend_info (abfd)->_bfd_filnmlen) 9727 #define bfd_coff_long_filenames(abfd) \ 9728 (coff_backend_info (abfd)->_bfd_coff_long_filenames) 9729 #define bfd_coff_long_section_names(abfd) \ 9730 (coff_backend_info (abfd)->_bfd_coff_long_section_names) 9731 #define bfd_coff_set_long_section_names(abfd, enable) \ 9732 ((coff_backend_info (abfd)->_bfd_coff_set_long_section_names) (abfd, enable)) 9733 #define bfd_coff_default_section_alignment_power(abfd) \ 9734 (coff_backend_info (abfd)->_bfd_coff_default_section_alignment_power) 9735 #define bfd_coff_swap_filehdr_in(abfd, i,o) \ 9736 ((coff_backend_info (abfd)->_bfd_coff_swap_filehdr_in) (abfd, i, o)) 9737 9738 #define bfd_coff_swap_aouthdr_in(abfd, i,o) \ 9739 ((coff_backend_info (abfd)->_bfd_coff_swap_aouthdr_in) (abfd, i, o)) 9740 9741 #define bfd_coff_swap_scnhdr_in(abfd, i,o) \ 9742 ((coff_backend_info (abfd)->_bfd_coff_swap_scnhdr_in) (abfd, i, o)) 9743 9744 #define bfd_coff_swap_reloc_in(abfd, i, o) \ 9745 ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_in) (abfd, i, o)) 9746 9747 #define bfd_coff_bad_format_hook(abfd, filehdr) \ 9748 ((coff_backend_info (abfd)->_bfd_coff_bad_format_hook) (abfd, filehdr)) 9749 9750 #define bfd_coff_set_arch_mach_hook(abfd, filehdr)\ 9751 ((coff_backend_info (abfd)->_bfd_coff_set_arch_mach_hook) (abfd, filehdr)) 9752 #define bfd_coff_mkobject_hook(abfd, filehdr, aouthdr)\ 9753 ((coff_backend_info (abfd)->_bfd_coff_mkobject_hook)\ 9754 (abfd, filehdr, aouthdr)) 9755 9756 #define bfd_coff_styp_to_sec_flags_hook(abfd, scnhdr, name, section, flags_ptr)\ 9757 ((coff_backend_info (abfd)->_bfd_styp_to_sec_flags_hook)\ 9758 (abfd, scnhdr, name, section, flags_ptr)) 9759 9760 #define bfd_coff_set_alignment_hook(abfd, sec, scnhdr)\ 9761 ((coff_backend_info (abfd)->_bfd_set_alignment_hook) (abfd, sec, scnhdr)) 9762 9763 #define bfd_coff_slurp_symbol_table(abfd)\ 9764 ((coff_backend_info (abfd)->_bfd_coff_slurp_symbol_table) (abfd)) 9765 9766 #define bfd_coff_symname_in_debug(abfd, sym)\ 9767 ((coff_backend_info (abfd)->_bfd_coff_symname_in_debug) (abfd, sym)) 9768 9769 #define bfd_coff_force_symnames_in_strings(abfd)\ 9770 (coff_backend_info (abfd)->_bfd_coff_force_symnames_in_strings) 9771 9772 #define bfd_coff_debug_string_prefix_length(abfd)\ 9773 (coff_backend_info (abfd)->_bfd_coff_debug_string_prefix_length) 9774 9775 #define bfd_coff_print_aux(abfd, file, base, symbol, aux, indaux)\ 9776 ((coff_backend_info (abfd)->_bfd_coff_print_aux)\ 9777 (abfd, file, base, symbol, aux, indaux)) 9778 9779 #define bfd_coff_reloc16_extra_cases(abfd, link_info, link_order,\ 9780 reloc, data, src_ptr, dst_ptr)\ 9781 ((coff_backend_info (abfd)->_bfd_coff_reloc16_extra_cases)\ 9782 (abfd, link_info, link_order, reloc, data, src_ptr, dst_ptr)) 9783 9784 #define bfd_coff_reloc16_estimate(abfd, section, reloc, shrink, link_info)\ 9785 ((coff_backend_info (abfd)->_bfd_coff_reloc16_estimate)\ 9786 (abfd, section, reloc, shrink, link_info)) 9787 9788 #define bfd_coff_classify_symbol(abfd, sym)\ 9789 ((coff_backend_info (abfd)->_bfd_coff_classify_symbol)\ 9790 (abfd, sym)) 9791 9792 #define bfd_coff_compute_section_file_positions(abfd)\ 9793 ((coff_backend_info (abfd)->_bfd_coff_compute_section_file_positions)\ 9794 (abfd)) 9795 9796 #define bfd_coff_start_final_link(obfd, info)\ 9797 ((coff_backend_info (obfd)->_bfd_coff_start_final_link)\ 9798 (obfd, info)) 9799 #define bfd_coff_relocate_section(obfd,info,ibfd,o,con,rel,isyms,secs)\ 9800 ((coff_backend_info (ibfd)->_bfd_coff_relocate_section)\ 9801 (obfd, info, ibfd, o, con, rel, isyms, secs)) 9802 #define bfd_coff_rtype_to_howto(abfd, sec, rel, h, sym, addendp)\ 9803 ((coff_backend_info (abfd)->_bfd_coff_rtype_to_howto)\ 9804 (abfd, sec, rel, h, sym, addendp)) 9805 #define bfd_coff_adjust_symndx(obfd, info, ibfd, sec, rel, adjustedp)\ 9806 ((coff_backend_info (abfd)->_bfd_coff_adjust_symndx)\ 9807 (obfd, info, ibfd, sec, rel, adjustedp)) 9808 #define bfd_coff_link_add_one_symbol(info, abfd, name, flags, section,\ 9809 value, string, cp, coll, hashp)\ 9810 ((coff_backend_info (abfd)->_bfd_coff_link_add_one_symbol)\ 9811 (info, abfd, name, flags, section, value, string, cp, coll, hashp)) 9812 9813 #define bfd_coff_link_output_has_begun(a,p) \ 9814 ((coff_backend_info (a)->_bfd_coff_link_output_has_begun) (a, p)) 9815 #define bfd_coff_final_link_postscript(a,p) \ 9816 ((coff_backend_info (a)->_bfd_coff_final_link_postscript) (a, p)) 9817 9818 #define bfd_coff_have_print_pdata(a) \ 9819 (coff_backend_info (a)->_bfd_coff_print_pdata) 9820 #define bfd_coff_print_pdata(a,p) \ 9821 ((coff_backend_info (a)->_bfd_coff_print_pdata) (a, p)) 9822 9823 /* Macro: Returns true if the bfd is a PE executable as opposed to a 9824 PE object file. */ 9825 #define bfd_pei_p(abfd) \ 9826 (CONST_STRNEQ ((abfd)->xvec->name, "pei-")) 9827 98283.3.2.8 Writing relocations 9829........................... 9830 9831To write relocations, the back end steps though the canonical 9832relocation table and create an `internal_reloc'. The symbol index to 9833use is removed from the `offset' field in the symbol table supplied. 9834The address comes directly from the sum of the section base address and 9835the relocation offset; the type is dug directly from the howto field. 9836Then the `internal_reloc' is swapped into the shape of an 9837`external_reloc' and written out to disk. 9838 98393.3.2.9 Reading linenumbers 9840........................... 9841 9842Creating the linenumber table is done by reading in the entire coff 9843linenumber table, and creating another table for internal use. 9844 9845 A coff linenumber table is structured so that each function is 9846marked as having a line number of 0. Each line within the function is 9847an offset from the first line in the function. The base of the line 9848number information for the table is stored in the symbol associated 9849with the function. 9850 9851 Note: The PE format uses line number 0 for a flag indicating a new 9852source file. 9853 9854 The information is copied from the external to the internal table, 9855and each symbol which marks a function is marked by pointing its... 9856 9857 How does this work ? 9858 98593.3.2.10 Reading relocations 9860............................ 9861 9862Coff relocations are easily transformed into the internal BFD form 9863(`arelent'). 9864 9865 Reading a coff relocation table is done in the following stages: 9866 9867 * Read the entire coff relocation table into memory. 9868 9869 * Process each relocation in turn; first swap it from the external 9870 to the internal form. 9871 9872 * Turn the symbol referenced in the relocation's symbol index into a 9873 pointer into the canonical symbol table. This table is the same 9874 as the one returned by a call to `bfd_canonicalize_symtab'. The 9875 back end will call that routine and save the result if a 9876 canonicalization hasn't been done. 9877 9878 * The reloc index is turned into a pointer to a howto structure, in 9879 a back end specific way. For instance, the 386 and 960 use the 9880 `r_type' to directly produce an index into a howto table vector; 9881 the 88k subtracts a number from the `r_type' field and creates an 9882 addend field. 9883 9884 9885File: bfd.info, Node: elf, Next: mmo, Prev: coff, Up: BFD back ends 9886 98873.4 ELF backends 9888================ 9889 9890BFD support for ELF formats is being worked on. Currently, the best 9891supported back ends are for sparc and i386 (running svr4 or Solaris 2). 9892 9893 Documentation of the internals of the support code still needs to be 9894written. The code is changing quickly enough that we haven't bothered 9895yet. 9896 9897 9898File: bfd.info, Node: mmo, Prev: elf, Up: BFD back ends 9899 99003.5 mmo backend 9901=============== 9902 9903The mmo object format is used exclusively together with Professor 9904Donald E. Knuth's educational 64-bit processor MMIX. The simulator 9905`mmix' which is available at 9906`http://www-cs-faculty.stanford.edu/~knuth/programs/mmix.tar.gz' 9907understands this format. That package also includes a combined 9908assembler and linker called `mmixal'. The mmo format has no advantages 9909feature-wise compared to e.g. ELF. It is a simple non-relocatable 9910object format with no support for archives or debugging information, 9911except for symbol value information and line numbers (which is not yet 9912implemented in BFD). See 9913`http://www-cs-faculty.stanford.edu/~knuth/mmix.html' for more 9914information about MMIX. The ELF format is used for intermediate object 9915files in the BFD implementation. 9916 9917* Menu: 9918 9919* File layout:: 9920* Symbol-table:: 9921* mmo section mapping:: 9922 9923 9924File: bfd.info, Node: File layout, Next: Symbol-table, Prev: mmo, Up: mmo 9925 99263.5.1 File layout 9927----------------- 9928 9929The mmo file contents is not partitioned into named sections as with 9930e.g. ELF. Memory areas is formed by specifying the location of the 9931data that follows. Only the memory area `0x0000...00' to `0x01ff...ff' 9932is executable, so it is used for code (and constants) and the area 9933`0x2000...00' to `0x20ff...ff' is used for writable data. *Note mmo 9934section mapping::. 9935 9936 There is provision for specifying "special data" of 65536 different 9937types. We use type 80 (decimal), arbitrarily chosen the same as the 9938ELF `e_machine' number for MMIX, filling it with section information 9939normally found in ELF objects. *Note mmo section mapping::. 9940 9941 Contents is entered as 32-bit words, xor:ed over previous contents, 9942always zero-initialized. A word that starts with the byte `0x98' forms 9943a command called a `lopcode', where the next byte distinguished between 9944the thirteen lopcodes. The two remaining bytes, called the `Y' and `Z' 9945fields, or the `YZ' field (a 16-bit big-endian number), are used for 9946various purposes different for each lopcode. As documented in 9947`http://www-cs-faculty.stanford.edu/~knuth/mmixal-intro.ps.gz', the 9948lopcodes are: 9949 9950`lop_quote' 9951 0x98000001. The next word is contents, regardless of whether it 9952 starts with 0x98 or not. 9953 9954`lop_loc' 9955 0x9801YYZZ, where `Z' is 1 or 2. This is a location directive, 9956 setting the location for the next data to the next 32-bit word 9957 (for Z = 1) or 64-bit word (for Z = 2), plus Y * 2^56. Normally 9958 `Y' is 0 for the text segment and 2 for the data segment. 9959 9960`lop_skip' 9961 0x9802YYZZ. Increase the current location by `YZ' bytes. 9962 9963`lop_fixo' 9964 0x9803YYZZ, where `Z' is 1 or 2. Store the current location as 64 9965 bits into the location pointed to by the next 32-bit (Z = 1) or 9966 64-bit (Z = 2) word, plus Y * 2^56. 9967 9968`lop_fixr' 9969 0x9804YYZZ. `YZ' is stored into the current location plus 2 - 4 * 9970 YZ. 9971 9972`lop_fixrx' 9973 0x980500ZZ. `Z' is 16 or 24. A value `L' derived from the 9974 following 32-bit word are used in a manner similar to `YZ' in 9975 lop_fixr: it is xor:ed into the current location minus 4 * L. The 9976 first byte of the word is 0 or 1. If it is 1, then L = (LOWEST 24 9977 BITS OF WORD) - 2^Z, if 0, then L = (LOWEST 24 BITS OF WORD). 9978 9979`lop_file' 9980 0x9806YYZZ. `Y' is the file number, `Z' is count of 32-bit words. 9981 Set the file number to `Y' and the line counter to 0. The next Z 9982 * 4 bytes contain the file name, padded with zeros if the count is 9983 not a multiple of four. The same `Y' may occur multiple times, 9984 but `Z' must be 0 for all but the first occurrence. 9985 9986`lop_line' 9987 0x9807YYZZ. `YZ' is the line number. Together with lop_file, it 9988 forms the source location for the next 32-bit word. Note that for 9989 each non-lopcode 32-bit word, line numbers are assumed incremented 9990 by one. 9991 9992`lop_spec' 9993 0x9808YYZZ. `YZ' is the type number. Data until the next lopcode 9994 other than lop_quote forms special data of type `YZ'. *Note mmo 9995 section mapping::. 9996 9997 Other types than 80, (or type 80 with a content that does not 9998 parse) is stored in sections named `.MMIX.spec_data.N' where N is 9999 the `YZ'-type. The flags for such a sections say not to allocate 10000 or load the data. The vma is 0. Contents of multiple occurrences 10001 of special data N is concatenated to the data of the previous 10002 lop_spec Ns. The location in data or code at which the lop_spec 10003 occurred is lost. 10004 10005`lop_pre' 10006 0x980901ZZ. The first lopcode in a file. The `Z' field forms the 10007 length of header information in 32-bit words, where the first word 10008 tells the time in seconds since `00:00:00 GMT Jan 1 1970'. 10009 10010`lop_post' 10011 0x980a00ZZ. Z > 32. This lopcode follows after all 10012 content-generating lopcodes in a program. The `Z' field denotes 10013 the value of `rG' at the beginning of the program. The following 10014 256 - Z big-endian 64-bit words are loaded into global registers 10015 `$G' ... `$255'. 10016 10017`lop_stab' 10018 0x980b0000. The next-to-last lopcode in a program. Must follow 10019 immediately after the lop_post lopcode and its data. After this 10020 lopcode follows all symbols in a compressed format (*note 10021 Symbol-table::). 10022 10023`lop_end' 10024 0x980cYYZZ. The last lopcode in a program. It must follow the 10025 lop_stab lopcode and its data. The `YZ' field contains the number 10026 of 32-bit words of symbol table information after the preceding 10027 lop_stab lopcode. 10028 10029 Note that the lopcode "fixups"; `lop_fixr', `lop_fixrx' and 10030`lop_fixo' are not generated by BFD, but are handled. They are 10031generated by `mmixal'. 10032 10033 This trivial one-label, one-instruction file: 10034 10035 :Main TRAP 1,2,3 10036 10037 can be represented this way in mmo: 10038 10039 0x98090101 - lop_pre, one 32-bit word with timestamp. 10040 <timestamp> 10041 0x98010002 - lop_loc, text segment, using a 64-bit address. 10042 Note that mmixal does not emit this for the file above. 10043 0x00000000 - Address, high 32 bits. 10044 0x00000000 - Address, low 32 bits. 10045 0x98060002 - lop_file, 2 32-bit words for file-name. 10046 0x74657374 - "test" 10047 0x2e730000 - ".s\0\0" 10048 0x98070001 - lop_line, line 1. 10049 0x00010203 - TRAP 1,2,3 10050 0x980a00ff - lop_post, setting $255 to 0. 10051 0x00000000 10052 0x00000000 10053 0x980b0000 - lop_stab for ":Main" = 0, serial 1. 10054 0x203a4040 *Note Symbol-table::. 10055 0x10404020 10056 0x4d206120 10057 0x69016e00 10058 0x81000000 10059 0x980c0005 - lop_end; symbol table contained five 32-bit words. 10060 10061 10062File: bfd.info, Node: Symbol-table, Next: mmo section mapping, Prev: File layout, Up: mmo 10063 100643.5.2 Symbol table format 10065------------------------- 10066 10067From mmixal.w (or really, the generated mmixal.tex) in 10068`http://www-cs-faculty.stanford.edu/~knuth/programs/mmix.tar.gz'): 10069"Symbols are stored and retrieved by means of a `ternary search trie', 10070following ideas of Bentley and Sedgewick. (See ACM-SIAM Symp. on 10071Discrete Algorithms `8' (1997), 360-369; R.Sedgewick, `Algorithms in C' 10072(Reading, Mass. Addison-Wesley, 1998), `15.4'.) Each trie node stores 10073a character, and there are branches to subtries for the cases where a 10074given character is less than, equal to, or greater than the character 10075in the trie. There also is a pointer to a symbol table entry if a 10076symbol ends at the current node." 10077 10078 So it's a tree encoded as a stream of bytes. The stream of bytes 10079acts on a single virtual global symbol, adding and removing characters 10080and signalling complete symbol points. Here, we read the stream and 10081create symbols at the completion points. 10082 10083 First, there's a control byte `m'. If any of the listed bits in `m' 10084is nonzero, we execute what stands at the right, in the listed order: 10085 10086 (MMO3_LEFT) 10087 0x40 - Traverse left trie. 10088 (Read a new command byte and recurse.) 10089 10090 (MMO3_SYMBITS) 10091 0x2f - Read the next byte as a character and store it in the 10092 current character position; increment character position. 10093 Test the bits of `m': 10094 10095 (MMO3_WCHAR) 10096 0x80 - The character is 16-bit (so read another byte, 10097 merge into current character. 10098 10099 (MMO3_TYPEBITS) 10100 0xf - We have a complete symbol; parse the type, value 10101 and serial number and do what should be done 10102 with a symbol. The type and length information 10103 is in j = (m & 0xf). 10104 10105 (MMO3_REGQUAL_BITS) 10106 j == 0xf: A register variable. The following 10107 byte tells which register. 10108 j <= 8: An absolute symbol. Read j bytes as the 10109 big-endian number the symbol equals. 10110 A j = 2 with two zero bytes denotes an 10111 unknown symbol. 10112 j > 8: As with j <= 8, but add (0x20 << 56) 10113 to the value in the following j - 8 10114 bytes. 10115 10116 Then comes the serial number, as a variant of 10117 uleb128, but better named ubeb128: 10118 Read bytes and shift the previous value left 7 10119 (multiply by 128). Add in the new byte, repeat 10120 until a byte has bit 7 set. The serial number 10121 is the computed value minus 128. 10122 10123 (MMO3_MIDDLE) 10124 0x20 - Traverse middle trie. (Read a new command byte 10125 and recurse.) Decrement character position. 10126 10127 (MMO3_RIGHT) 10128 0x10 - Traverse right trie. (Read a new command byte and 10129 recurse.) 10130 10131 Let's look again at the `lop_stab' for the trivial file (*note File 10132layout::). 10133 10134 0x980b0000 - lop_stab for ":Main" = 0, serial 1. 10135 0x203a4040 10136 0x10404020 10137 0x4d206120 10138 0x69016e00 10139 0x81000000 10140 10141 This forms the trivial trie (note that the path between ":" and "M" 10142is redundant): 10143 10144 203a ":" 10145 40 / 10146 40 / 10147 10 \ 10148 40 / 10149 40 / 10150 204d "M" 10151 2061 "a" 10152 2069 "i" 10153 016e "n" is the last character in a full symbol, and 10154 with a value represented in one byte. 10155 00 The value is 0. 10156 81 The serial number is 1. 10157 10158 10159File: bfd.info, Node: mmo section mapping, Prev: Symbol-table, Up: mmo 10160 101613.5.3 mmo section mapping 10162------------------------- 10163 10164The implementation in BFD uses special data type 80 (decimal) to 10165encapsulate and describe named sections, containing e.g. debug 10166information. If needed, any datum in the encapsulation will be quoted 10167using lop_quote. First comes a 32-bit word holding the number of 1016832-bit words containing the zero-terminated zero-padded segment name. 10169After the name there's a 32-bit word holding flags describing the 10170section type. Then comes a 64-bit big-endian word with the section 10171length (in bytes), then another with the section start address. 10172Depending on the type of section, the contents might follow, 10173zero-padded to 32-bit boundary. For a loadable section (such as data 10174or code), the contents might follow at some later point, not 10175necessarily immediately, as a lop_loc with the same start address as in 10176the section description, followed by the contents. This in effect 10177forms a descriptor that must be emitted before the actual contents. 10178Sections described this way must not overlap. 10179 10180 For areas that don't have such descriptors, synthetic sections are 10181formed by BFD. Consecutive contents in the two memory areas 10182`0x0000...00' to `0x01ff...ff' and `0x2000...00' to `0x20ff...ff' are 10183entered in sections named `.text' and `.data' respectively. If an area 10184is not otherwise described, but would together with a neighboring lower 10185area be less than `0x40000000' bytes long, it is joined with the lower 10186area and the gap is zero-filled. For other cases, a new section is 10187formed, named `.MMIX.sec.N'. Here, N is a number, a running count 10188through the mmo file, starting at 0. 10189 10190 A loadable section specified as: 10191 10192 .section secname,"ax" 10193 TETRA 1,2,3,4,-1,-2009 10194 BYTE 80 10195 10196 and linked to address `0x4', is represented by the sequence: 10197 10198 0x98080050 - lop_spec 80 10199 0x00000002 - two 32-bit words for the section name 10200 0x7365636e - "secn" 10201 0x616d6500 - "ame\0" 10202 0x00000033 - flags CODE, READONLY, LOAD, ALLOC 10203 0x00000000 - high 32 bits of section length 10204 0x0000001c - section length is 28 bytes; 6 * 4 + 1 + alignment to 32 bits 10205 0x00000000 - high 32 bits of section address 10206 0x00000004 - section address is 4 10207 0x98010002 - 64 bits with address of following data 10208 0x00000000 - high 32 bits of address 10209 0x00000004 - low 32 bits: data starts at address 4 10210 0x00000001 - 1 10211 0x00000002 - 2 10212 0x00000003 - 3 10213 0x00000004 - 4 10214 0xffffffff - -1 10215 0xfffff827 - -2009 10216 0x50000000 - 80 as a byte, padded with zeros. 10217 10218 Note that the lop_spec wrapping does not include the section 10219contents. Compare this to a non-loaded section specified as: 10220 10221 .section thirdsec 10222 TETRA 200001,100002 10223 BYTE 38,40 10224 10225 This, when linked to address `0x200000000000001c', is represented by: 10226 10227 0x98080050 - lop_spec 80 10228 0x00000002 - two 32-bit words for the section name 10229 0x7365636e - "thir" 10230 0x616d6500 - "dsec" 10231 0x00000010 - flag READONLY 10232 0x00000000 - high 32 bits of section length 10233 0x0000000c - section length is 12 bytes; 2 * 4 + 2 + alignment to 32 bits 10234 0x20000000 - high 32 bits of address 10235 0x0000001c - low 32 bits of address 0x200000000000001c 10236 0x00030d41 - 200001 10237 0x000186a2 - 100002 10238 0x26280000 - 38, 40 as bytes, padded with zeros 10239 10240 For the latter example, the section contents must not be loaded in 10241memory, and is therefore specified as part of the special data. The 10242address is usually unimportant but might provide information for e.g. 10243the DWARF 2 debugging format. 10244 10245 10246File: bfd.info, Node: GNU Free Documentation License, Next: BFD Index, Prev: BFD back ends, Up: Top 10247 10248 Version 1.3, 3 November 2008 10249 10250 Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc. 10251 `http://fsf.org/' 10252 10253 Everyone is permitted to copy and distribute verbatim copies 10254 of this license document, but changing it is not allowed. 10255 10256 0. PREAMBLE 10257 10258 The purpose of this License is to make a manual, textbook, or other 10259 functional and useful document "free" in the sense of freedom: to 10260 assure everyone the effective freedom to copy and redistribute it, 10261 with or without modifying it, either commercially or 10262 noncommercially. Secondarily, this License preserves for the 10263 author and publisher a way to get credit for their work, while not 10264 being considered responsible for modifications made by others. 10265 10266 This License is a kind of "copyleft", which means that derivative 10267 works of the document must themselves be free in the same sense. 10268 It complements the GNU General Public License, which is a copyleft 10269 license designed for free software. 10270 10271 We have designed this License in order to use it for manuals for 10272 free software, because free software needs free documentation: a 10273 free program should come with manuals providing the same freedoms 10274 that the software does. But this License is not limited to 10275 software manuals; it can be used for any textual work, regardless 10276 of subject matter or whether it is published as a printed book. 10277 We recommend this License principally for works whose purpose is 10278 instruction or reference. 10279 10280 1. APPLICABILITY AND DEFINITIONS 10281 10282 This License applies to any manual or other work, in any medium, 10283 that contains a notice placed by the copyright holder saying it 10284 can be distributed under the terms of this License. Such a notice 10285 grants a world-wide, royalty-free license, unlimited in duration, 10286 to use that work under the conditions stated herein. The 10287 "Document", below, refers to any such manual or work. Any member 10288 of the public is a licensee, and is addressed as "you". You 10289 accept the license if you copy, modify or distribute the work in a 10290 way requiring permission under copyright law. 10291 10292 A "Modified Version" of the Document means any work containing the 10293 Document or a portion of it, either copied verbatim, or with 10294 modifications and/or translated into another language. 10295 10296 A "Secondary Section" is a named appendix or a front-matter section 10297 of the Document that deals exclusively with the relationship of the 10298 publishers or authors of the Document to the Document's overall 10299 subject (or to related matters) and contains nothing that could 10300 fall directly within that overall subject. (Thus, if the Document 10301 is in part a textbook of mathematics, a Secondary Section may not 10302 explain any mathematics.) The relationship could be a matter of 10303 historical connection with the subject or with related matters, or 10304 of legal, commercial, philosophical, ethical or political position 10305 regarding them. 10306 10307 The "Invariant Sections" are certain Secondary Sections whose 10308 titles are designated, as being those of Invariant Sections, in 10309 the notice that says that the Document is released under this 10310 License. If a section does not fit the above definition of 10311 Secondary then it is not allowed to be designated as Invariant. 10312 The Document may contain zero Invariant Sections. If the Document 10313 does not identify any Invariant Sections then there are none. 10314 10315 The "Cover Texts" are certain short passages of text that are 10316 listed, as Front-Cover Texts or Back-Cover Texts, in the notice 10317 that says that the Document is released under this License. A 10318 Front-Cover Text may be at most 5 words, and a Back-Cover Text may 10319 be at most 25 words. 10320 10321 A "Transparent" copy of the Document means a machine-readable copy, 10322 represented in a format whose specification is available to the 10323 general public, that is suitable for revising the document 10324 straightforwardly with generic text editors or (for images 10325 composed of pixels) generic paint programs or (for drawings) some 10326 widely available drawing editor, and that is suitable for input to 10327 text formatters or for automatic translation to a variety of 10328 formats suitable for input to text formatters. A copy made in an 10329 otherwise Transparent file format whose markup, or absence of 10330 markup, has been arranged to thwart or discourage subsequent 10331 modification by readers is not Transparent. An image format is 10332 not Transparent if used for any substantial amount of text. A 10333 copy that is not "Transparent" is called "Opaque". 10334 10335 Examples of suitable formats for Transparent copies include plain 10336 ASCII without markup, Texinfo input format, LaTeX input format, 10337 SGML or XML using a publicly available DTD, and 10338 standard-conforming simple HTML, PostScript or PDF designed for 10339 human modification. Examples of transparent image formats include 10340 PNG, XCF and JPG. Opaque formats include proprietary formats that 10341 can be read and edited only by proprietary word processors, SGML or 10342 XML for which the DTD and/or processing tools are not generally 10343 available, and the machine-generated HTML, PostScript or PDF 10344 produced by some word processors for output purposes only. 10345 10346 The "Title Page" means, for a printed book, the title page itself, 10347 plus such following pages as are needed to hold, legibly, the 10348 material this License requires to appear in the title page. For 10349 works in formats which do not have any title page as such, "Title 10350 Page" means the text near the most prominent appearance of the 10351 work's title, preceding the beginning of the body of the text. 10352 10353 The "publisher" means any person or entity that distributes copies 10354 of the Document to the public. 10355 10356 A section "Entitled XYZ" means a named subunit of the Document 10357 whose title either is precisely XYZ or contains XYZ in parentheses 10358 following text that translates XYZ in another language. (Here XYZ 10359 stands for a specific section name mentioned below, such as 10360 "Acknowledgements", "Dedications", "Endorsements", or "History".) 10361 To "Preserve the Title" of such a section when you modify the 10362 Document means that it remains a section "Entitled XYZ" according 10363 to this definition. 10364 10365 The Document may include Warranty Disclaimers next to the notice 10366 which states that this License applies to the Document. These 10367 Warranty Disclaimers are considered to be included by reference in 10368 this License, but only as regards disclaiming warranties: any other 10369 implication that these Warranty Disclaimers may have is void and 10370 has no effect on the meaning of this License. 10371 10372 2. VERBATIM COPYING 10373 10374 You may copy and distribute the Document in any medium, either 10375 commercially or noncommercially, provided that this License, the 10376 copyright notices, and the license notice saying this License 10377 applies to the Document are reproduced in all copies, and that you 10378 add no other conditions whatsoever to those of this License. You 10379 may not use technical measures to obstruct or control the reading 10380 or further copying of the copies you make or distribute. However, 10381 you may accept compensation in exchange for copies. If you 10382 distribute a large enough number of copies you must also follow 10383 the conditions in section 3. 10384 10385 You may also lend copies, under the same conditions stated above, 10386 and you may publicly display copies. 10387 10388 3. COPYING IN QUANTITY 10389 10390 If you publish printed copies (or copies in media that commonly 10391 have printed covers) of the Document, numbering more than 100, and 10392 the Document's license notice requires Cover Texts, you must 10393 enclose the copies in covers that carry, clearly and legibly, all 10394 these Cover Texts: Front-Cover Texts on the front cover, and 10395 Back-Cover Texts on the back cover. Both covers must also clearly 10396 and legibly identify you as the publisher of these copies. The 10397 front cover must present the full title with all words of the 10398 title equally prominent and visible. You may add other material 10399 on the covers in addition. Copying with changes limited to the 10400 covers, as long as they preserve the title of the Document and 10401 satisfy these conditions, can be treated as verbatim copying in 10402 other respects. 10403 10404 If the required texts for either cover are too voluminous to fit 10405 legibly, you should put the first ones listed (as many as fit 10406 reasonably) on the actual cover, and continue the rest onto 10407 adjacent pages. 10408 10409 If you publish or distribute Opaque copies of the Document 10410 numbering more than 100, you must either include a 10411 machine-readable Transparent copy along with each Opaque copy, or 10412 state in or with each Opaque copy a computer-network location from 10413 which the general network-using public has access to download 10414 using public-standard network protocols a complete Transparent 10415 copy of the Document, free of added material. If you use the 10416 latter option, you must take reasonably prudent steps, when you 10417 begin distribution of Opaque copies in quantity, to ensure that 10418 this Transparent copy will remain thus accessible at the stated 10419 location until at least one year after the last time you 10420 distribute an Opaque copy (directly or through your agents or 10421 retailers) of that edition to the public. 10422 10423 It is requested, but not required, that you contact the authors of 10424 the Document well before redistributing any large number of 10425 copies, to give them a chance to provide you with an updated 10426 version of the Document. 10427 10428 4. MODIFICATIONS 10429 10430 You may copy and distribute a Modified Version of the Document 10431 under the conditions of sections 2 and 3 above, provided that you 10432 release the Modified Version under precisely this License, with 10433 the Modified Version filling the role of the Document, thus 10434 licensing distribution and modification of the Modified Version to 10435 whoever possesses a copy of it. In addition, you must do these 10436 things in the Modified Version: 10437 10438 A. Use in the Title Page (and on the covers, if any) a title 10439 distinct from that of the Document, and from those of 10440 previous versions (which should, if there were any, be listed 10441 in the History section of the Document). You may use the 10442 same title as a previous version if the original publisher of 10443 that version gives permission. 10444 10445 B. List on the Title Page, as authors, one or more persons or 10446 entities responsible for authorship of the modifications in 10447 the Modified Version, together with at least five of the 10448 principal authors of the Document (all of its principal 10449 authors, if it has fewer than five), unless they release you 10450 from this requirement. 10451 10452 C. State on the Title page the name of the publisher of the 10453 Modified Version, as the publisher. 10454 10455 D. Preserve all the copyright notices of the Document. 10456 10457 E. Add an appropriate copyright notice for your modifications 10458 adjacent to the other copyright notices. 10459 10460 F. Include, immediately after the copyright notices, a license 10461 notice giving the public permission to use the Modified 10462 Version under the terms of this License, in the form shown in 10463 the Addendum below. 10464 10465 G. Preserve in that license notice the full lists of Invariant 10466 Sections and required Cover Texts given in the Document's 10467 license notice. 10468 10469 H. Include an unaltered copy of this License. 10470 10471 I. Preserve the section Entitled "History", Preserve its Title, 10472 and add to it an item stating at least the title, year, new 10473 authors, and publisher of the Modified Version as given on 10474 the Title Page. If there is no section Entitled "History" in 10475 the Document, create one stating the title, year, authors, 10476 and publisher of the Document as given on its Title Page, 10477 then add an item describing the Modified Version as stated in 10478 the previous sentence. 10479 10480 J. Preserve the network location, if any, given in the Document 10481 for public access to a Transparent copy of the Document, and 10482 likewise the network locations given in the Document for 10483 previous versions it was based on. These may be placed in 10484 the "History" section. You may omit a network location for a 10485 work that was published at least four years before the 10486 Document itself, or if the original publisher of the version 10487 it refers to gives permission. 10488 10489 K. For any section Entitled "Acknowledgements" or "Dedications", 10490 Preserve the Title of the section, and preserve in the 10491 section all the substance and tone of each of the contributor 10492 acknowledgements and/or dedications given therein. 10493 10494 L. Preserve all the Invariant Sections of the Document, 10495 unaltered in their text and in their titles. Section numbers 10496 or the equivalent are not considered part of the section 10497 titles. 10498 10499 M. Delete any section Entitled "Endorsements". Such a section 10500 may not be included in the Modified Version. 10501 10502 N. Do not retitle any existing section to be Entitled 10503 "Endorsements" or to conflict in title with any Invariant 10504 Section. 10505 10506 O. Preserve any Warranty Disclaimers. 10507 10508 If the Modified Version includes new front-matter sections or 10509 appendices that qualify as Secondary Sections and contain no 10510 material copied from the Document, you may at your option 10511 designate some or all of these sections as invariant. To do this, 10512 add their titles to the list of Invariant Sections in the Modified 10513 Version's license notice. These titles must be distinct from any 10514 other section titles. 10515 10516 You may add a section Entitled "Endorsements", provided it contains 10517 nothing but endorsements of your Modified Version by various 10518 parties--for example, statements of peer review or that the text 10519 has been approved by an organization as the authoritative 10520 definition of a standard. 10521 10522 You may add a passage of up to five words as a Front-Cover Text, 10523 and a passage of up to 25 words as a Back-Cover Text, to the end 10524 of the list of Cover Texts in the Modified Version. Only one 10525 passage of Front-Cover Text and one of Back-Cover Text may be 10526 added by (or through arrangements made by) any one entity. If the 10527 Document already includes a cover text for the same cover, 10528 previously added by you or by arrangement made by the same entity 10529 you are acting on behalf of, you may not add another; but you may 10530 replace the old one, on explicit permission from the previous 10531 publisher that added the old one. 10532 10533 The author(s) and publisher(s) of the Document do not by this 10534 License give permission to use their names for publicity for or to 10535 assert or imply endorsement of any Modified Version. 10536 10537 5. COMBINING DOCUMENTS 10538 10539 You may combine the Document with other documents released under 10540 this License, under the terms defined in section 4 above for 10541 modified versions, provided that you include in the combination 10542 all of the Invariant Sections of all of the original documents, 10543 unmodified, and list them all as Invariant Sections of your 10544 combined work in its license notice, and that you preserve all 10545 their Warranty Disclaimers. 10546 10547 The combined work need only contain one copy of this License, and 10548 multiple identical Invariant Sections may be replaced with a single 10549 copy. If there are multiple Invariant Sections with the same name 10550 but different contents, make the title of each such section unique 10551 by adding at the end of it, in parentheses, the name of the 10552 original author or publisher of that section if known, or else a 10553 unique number. Make the same adjustment to the section titles in 10554 the list of Invariant Sections in the license notice of the 10555 combined work. 10556 10557 In the combination, you must combine any sections Entitled 10558 "History" in the various original documents, forming one section 10559 Entitled "History"; likewise combine any sections Entitled 10560 "Acknowledgements", and any sections Entitled "Dedications". You 10561 must delete all sections Entitled "Endorsements." 10562 10563 6. COLLECTIONS OF DOCUMENTS 10564 10565 You may make a collection consisting of the Document and other 10566 documents released under this License, and replace the individual 10567 copies of this License in the various documents with a single copy 10568 that is included in the collection, provided that you follow the 10569 rules of this License for verbatim copying of each of the 10570 documents in all other respects. 10571 10572 You may extract a single document from such a collection, and 10573 distribute it individually under this License, provided you insert 10574 a copy of this License into the extracted document, and follow 10575 this License in all other respects regarding verbatim copying of 10576 that document. 10577 10578 7. AGGREGATION WITH INDEPENDENT WORKS 10579 10580 A compilation of the Document or its derivatives with other 10581 separate and independent documents or works, in or on a volume of 10582 a storage or distribution medium, is called an "aggregate" if the 10583 copyright resulting from the compilation is not used to limit the 10584 legal rights of the compilation's users beyond what the individual 10585 works permit. When the Document is included in an aggregate, this 10586 License does not apply to the other works in the aggregate which 10587 are not themselves derivative works of the Document. 10588 10589 If the Cover Text requirement of section 3 is applicable to these 10590 copies of the Document, then if the Document is less than one half 10591 of the entire aggregate, the Document's Cover Texts may be placed 10592 on covers that bracket the Document within the aggregate, or the 10593 electronic equivalent of covers if the Document is in electronic 10594 form. Otherwise they must appear on printed covers that bracket 10595 the whole aggregate. 10596 10597 8. TRANSLATION 10598 10599 Translation is considered a kind of modification, so you may 10600 distribute translations of the Document under the terms of section 10601 4. Replacing Invariant Sections with translations requires special 10602 permission from their copyright holders, but you may include 10603 translations of some or all Invariant Sections in addition to the 10604 original versions of these Invariant Sections. You may include a 10605 translation of this License, and all the license notices in the 10606 Document, and any Warranty Disclaimers, provided that you also 10607 include the original English version of this License and the 10608 original versions of those notices and disclaimers. In case of a 10609 disagreement between the translation and the original version of 10610 this License or a notice or disclaimer, the original version will 10611 prevail. 10612 10613 If a section in the Document is Entitled "Acknowledgements", 10614 "Dedications", or "History", the requirement (section 4) to 10615 Preserve its Title (section 1) will typically require changing the 10616 actual title. 10617 10618 9. TERMINATION 10619 10620 You may not copy, modify, sublicense, or distribute the Document 10621 except as expressly provided under this License. Any attempt 10622 otherwise to copy, modify, sublicense, or distribute it is void, 10623 and will automatically terminate your rights under this License. 10624 10625 However, if you cease all violation of this License, then your 10626 license from a particular copyright holder is reinstated (a) 10627 provisionally, unless and until the copyright holder explicitly 10628 and finally terminates your license, and (b) permanently, if the 10629 copyright holder fails to notify you of the violation by some 10630 reasonable means prior to 60 days after the cessation. 10631 10632 Moreover, your license from a particular copyright holder is 10633 reinstated permanently if the copyright holder notifies you of the 10634 violation by some reasonable means, this is the first time you have 10635 received notice of violation of this License (for any work) from 10636 that copyright holder, and you cure the violation prior to 30 days 10637 after your receipt of the notice. 10638 10639 Termination of your rights under this section does not terminate 10640 the licenses of parties who have received copies or rights from 10641 you under this License. If your rights have been terminated and 10642 not permanently reinstated, receipt of a copy of some or all of 10643 the same material does not give you any rights to use it. 10644 10645 10. FUTURE REVISIONS OF THIS LICENSE 10646 10647 The Free Software Foundation may publish new, revised versions of 10648 the GNU Free Documentation License from time to time. Such new 10649 versions will be similar in spirit to the present version, but may 10650 differ in detail to address new problems or concerns. See 10651 `http://www.gnu.org/copyleft/'. 10652 10653 Each version of the License is given a distinguishing version 10654 number. If the Document specifies that a particular numbered 10655 version of this License "or any later version" applies to it, you 10656 have the option of following the terms and conditions either of 10657 that specified version or of any later version that has been 10658 published (not as a draft) by the Free Software Foundation. If 10659 the Document does not specify a version number of this License, 10660 you may choose any version ever published (not as a draft) by the 10661 Free Software Foundation. If the Document specifies that a proxy 10662 can decide which future versions of this License can be used, that 10663 proxy's public statement of acceptance of a version permanently 10664 authorizes you to choose that version for the Document. 10665 10666 11. RELICENSING 10667 10668 "Massive Multiauthor Collaboration Site" (or "MMC Site") means any 10669 World Wide Web server that publishes copyrightable works and also 10670 provides prominent facilities for anybody to edit those works. A 10671 public wiki that anybody can edit is an example of such a server. 10672 A "Massive Multiauthor Collaboration" (or "MMC") contained in the 10673 site means any set of copyrightable works thus published on the MMC 10674 site. 10675 10676 "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0 10677 license published by Creative Commons Corporation, a not-for-profit 10678 corporation with a principal place of business in San Francisco, 10679 California, as well as future copyleft versions of that license 10680 published by that same organization. 10681 10682 "Incorporate" means to publish or republish a Document, in whole or 10683 in part, as part of another Document. 10684 10685 An MMC is "eligible for relicensing" if it is licensed under this 10686 License, and if all works that were first published under this 10687 License somewhere other than this MMC, and subsequently 10688 incorporated in whole or in part into the MMC, (1) had no cover 10689 texts or invariant sections, and (2) were thus incorporated prior 10690 to November 1, 2008. 10691 10692 The operator of an MMC Site may republish an MMC contained in the 10693 site under CC-BY-SA on the same site at any time before August 1, 10694 2009, provided the MMC is eligible for relicensing. 10695 10696 10697ADDENDUM: How to use this License for your documents 10698==================================================== 10699 10700To use this License in a document you have written, include a copy of 10701the License in the document and put the following copyright and license 10702notices just after the title page: 10703 10704 Copyright (C) YEAR YOUR NAME. 10705 Permission is granted to copy, distribute and/or modify this document 10706 under the terms of the GNU Free Documentation License, Version 1.3 10707 or any later version published by the Free Software Foundation; 10708 with no Invariant Sections, no Front-Cover Texts, and no Back-Cover 10709 Texts. A copy of the license is included in the section entitled ``GNU 10710 Free Documentation License''. 10711 10712 If you have Invariant Sections, Front-Cover Texts and Back-Cover 10713Texts, replace the "with...Texts." line with this: 10714 10715 with the Invariant Sections being LIST THEIR TITLES, with 10716 the Front-Cover Texts being LIST, and with the Back-Cover Texts 10717 being LIST. 10718 10719 If you have Invariant Sections without Cover Texts, or some other 10720combination of the three, merge those two alternatives to suit the 10721situation. 10722 10723 If your document contains nontrivial examples of program code, we 10724recommend releasing these examples in parallel under your choice of 10725free software license, such as the GNU General Public License, to 10726permit their use in free software. 10727 10728 10729File: bfd.info, Node: BFD Index, Prev: GNU Free Documentation License, Up: Top 10730 10731BFD Index 10732********* 10733 10734[index] 10735* Menu: 10736 10737* _bfd_final_link_relocate: Relocating the section contents. 10738 (line 22) 10739* _bfd_generic_link_add_archive_symbols: Adding symbols from an archive. 10740 (line 15) 10741* _bfd_generic_link_add_one_symbol: Adding symbols from an object file. 10742 (line 19) 10743* _bfd_generic_make_empty_symbol: symbol handling functions. 10744 (line 92) 10745* _bfd_link_add_symbols in target vector: Adding Symbols to the Hash Table. 10746 (line 6) 10747* _bfd_link_final_link in target vector: Performing the Final Link. 10748 (line 6) 10749* _bfd_link_hash_table_create in target vector: Creating a Linker Hash Table. 10750 (line 6) 10751* _bfd_relocate_contents: Relocating the section contents. 10752 (line 22) 10753* aout_SIZE_machine_type: aout. (line 147) 10754* aout_SIZE_mkobject: aout. (line 139) 10755* aout_SIZE_new_section_hook: aout. (line 177) 10756* aout_SIZE_set_arch_mach: aout. (line 164) 10757* aout_SIZE_some_aout_object_p: aout. (line 125) 10758* aout_SIZE_swap_exec_header_in: aout. (line 101) 10759* aout_SIZE_swap_exec_header_out: aout. (line 113) 10760* arelent_chain: typedef arelent. (line 336) 10761* BFD: Overview. (line 6) 10762* BFD canonical format: Canonical format. (line 11) 10763* bfd_alloc: Opening and Closing. 10764 (line 218) 10765* bfd_alloc2: Opening and Closing. 10766 (line 227) 10767* bfd_alt_mach_code: BFD front end. (line 751) 10768* bfd_arch_bits_per_address: Architectures. (line 563) 10769* bfd_arch_bits_per_byte: Architectures. (line 555) 10770* bfd_arch_default_fill: Architectures. (line 644) 10771* bfd_arch_get_compatible: Architectures. (line 498) 10772* bfd_arch_list: Architectures. (line 489) 10773* bfd_arch_mach_octets_per_byte: Architectures. (line 632) 10774* BFD_ARELOC_BFIN_ADD: howto manager. (line 1107) 10775* BFD_ARELOC_BFIN_ADDR: howto manager. (line 1158) 10776* BFD_ARELOC_BFIN_AND: howto manager. (line 1128) 10777* BFD_ARELOC_BFIN_COMP: howto manager. (line 1149) 10778* BFD_ARELOC_BFIN_CONST: howto manager. (line 1104) 10779* BFD_ARELOC_BFIN_DIV: howto manager. (line 1116) 10780* BFD_ARELOC_BFIN_HWPAGE: howto manager. (line 1155) 10781* BFD_ARELOC_BFIN_LAND: howto manager. (line 1137) 10782* BFD_ARELOC_BFIN_LEN: howto manager. (line 1143) 10783* BFD_ARELOC_BFIN_LOR: howto manager. (line 1140) 10784* BFD_ARELOC_BFIN_LSHIFT: howto manager. (line 1122) 10785* BFD_ARELOC_BFIN_MOD: howto manager. (line 1119) 10786* BFD_ARELOC_BFIN_MULT: howto manager. (line 1113) 10787* BFD_ARELOC_BFIN_NEG: howto manager. (line 1146) 10788* BFD_ARELOC_BFIN_OR: howto manager. (line 1131) 10789* BFD_ARELOC_BFIN_PAGE: howto manager. (line 1152) 10790* BFD_ARELOC_BFIN_PUSH: howto manager. (line 1101) 10791* BFD_ARELOC_BFIN_RSHIFT: howto manager. (line 1125) 10792* BFD_ARELOC_BFIN_SUB: howto manager. (line 1110) 10793* BFD_ARELOC_BFIN_XOR: howto manager. (line 1134) 10794* bfd_cache_close: File Caching. (line 26) 10795* bfd_cache_close_all: File Caching. (line 39) 10796* bfd_cache_init: File Caching. (line 18) 10797* bfd_calc_gnu_debuglink_crc32: Opening and Closing. 10798 (line 254) 10799* bfd_canonicalize_reloc: BFD front end. (line 462) 10800* bfd_canonicalize_symtab: symbol handling functions. 10801 (line 50) 10802* bfd_check_format: Formats. (line 21) 10803* bfd_check_format_matches: Formats. (line 52) 10804* bfd_check_overflow: typedef arelent. (line 348) 10805* bfd_close: Opening and Closing. 10806 (line 143) 10807* bfd_close_all_done: Opening and Closing. 10808 (line 161) 10809* bfd_coff_backend_data: coff. (line 304) 10810* bfd_copy_private_bfd_data: BFD front end. (line 601) 10811* bfd_copy_private_header_data: BFD front end. (line 583) 10812* bfd_copy_private_section_data: section prototypes. (line 278) 10813* bfd_copy_private_symbol_data: symbol handling functions. 10814 (line 140) 10815* bfd_core_file_failing_command: Core Files. (line 12) 10816* bfd_core_file_failing_signal: Core Files. (line 21) 10817* bfd_core_file_pid: Core Files. (line 30) 10818* bfd_create: Opening and Closing. 10819 (line 180) 10820* bfd_create_gnu_debuglink_section: Opening and Closing. 10821 (line 320) 10822* bfd_decode_symclass: symbol handling functions. 10823 (line 111) 10824* bfd_default_arch_struct: Architectures. (line 510) 10825* bfd_default_compatible: Architectures. (line 572) 10826* bfd_default_reloc_type_lookup: howto manager. (line 3031) 10827* bfd_default_scan: Architectures. (line 581) 10828* bfd_default_set_arch_mach: Architectures. (line 528) 10829* bfd_demangle: BFD front end. (line 849) 10830* bfd_emul_get_commonpagesize: BFD front end. (line 829) 10831* bfd_emul_get_maxpagesize: BFD front end. (line 809) 10832* bfd_emul_set_commonpagesize: BFD front end. (line 840) 10833* bfd_emul_set_maxpagesize: BFD front end. (line 820) 10834* bfd_errmsg: BFD front end. (line 355) 10835* bfd_fdopenr: Opening and Closing. 10836 (line 51) 10837* bfd_fill_in_gnu_debuglink_section: Opening and Closing. 10838 (line 334) 10839* bfd_find_target: bfd_target. (line 473) 10840* bfd_find_version_for_sym: Writing the symbol table. 10841 (line 81) 10842* bfd_follow_gnu_debuglink: Opening and Closing. 10843 (line 299) 10844* bfd_fopen: Opening and Closing. 10845 (line 12) 10846* bfd_format_string: Formats. (line 79) 10847* bfd_generic_define_common_symbol: Writing the symbol table. 10848 (line 68) 10849* bfd_generic_discard_group: section prototypes. (line 304) 10850* bfd_generic_gc_sections: howto manager. (line 3062) 10851* bfd_generic_get_relocated_section_contents: howto manager. (line 3092) 10852* bfd_generic_is_group_section: section prototypes. (line 296) 10853* bfd_generic_lookup_section_flags: howto manager. (line 3072) 10854* bfd_generic_merge_sections: howto manager. (line 3082) 10855* bfd_generic_relax_section: howto manager. (line 3049) 10856* bfd_get_arch: Architectures. (line 539) 10857* bfd_get_arch_info: Architectures. (line 591) 10858* bfd_get_arch_size: BFD front end. (line 506) 10859* bfd_get_assert_handler: BFD front end. (line 438) 10860* bfd_get_error: BFD front end. (line 336) 10861* bfd_get_error_handler: BFD front end. (line 406) 10862* bfd_get_gp_size: BFD front end. (line 547) 10863* bfd_get_linker_section: section prototypes. (line 36) 10864* bfd_get_mach: Architectures. (line 547) 10865* bfd_get_mtime: BFD front end. (line 900) 10866* bfd_get_next_mapent: Archives. (line 52) 10867* bfd_get_next_section_by_name: section prototypes. (line 26) 10868* bfd_get_reloc_code_name: howto manager. (line 3040) 10869* bfd_get_reloc_size: typedef arelent. (line 327) 10870* bfd_get_reloc_upper_bound: BFD front end. (line 452) 10871* bfd_get_section_by_name: section prototypes. (line 17) 10872* bfd_get_section_by_name_if: section prototypes. (line 45) 10873* bfd_get_section_contents: section prototypes. (line 251) 10874* bfd_get_sign_extend_vma: BFD front end. (line 519) 10875* bfd_get_size <1>: Internal. (line 25) 10876* bfd_get_size: BFD front end. (line 909) 10877* bfd_get_symtab_upper_bound: symbol handling functions. 10878 (line 6) 10879* bfd_get_target_info: bfd_target. (line 489) 10880* bfd_get_unique_section_name: section prototypes. (line 64) 10881* bfd_h_put_size: Internal. (line 97) 10882* bfd_hash_allocate: Creating and Freeing a Hash Table. 10883 (line 17) 10884* bfd_hash_lookup: Looking Up or Entering a String. 10885 (line 6) 10886* bfd_hash_newfunc: Creating and Freeing a Hash Table. 10887 (line 12) 10888* bfd_hash_set_default_size: Creating and Freeing a Hash Table. 10889 (line 25) 10890* bfd_hash_table_free: Creating and Freeing a Hash Table. 10891 (line 21) 10892* bfd_hash_table_init: Creating and Freeing a Hash Table. 10893 (line 6) 10894* bfd_hash_table_init_n: Creating and Freeing a Hash Table. 10895 (line 6) 10896* bfd_hash_traverse: Traversing a Hash Table. 10897 (line 6) 10898* bfd_hide_sym_by_version: Writing the symbol table. 10899 (line 93) 10900* bfd_init: Initialization. (line 11) 10901* bfd_install_relocation: typedef arelent. (line 389) 10902* bfd_is_local_label: symbol handling functions. 10903 (line 17) 10904* bfd_is_local_label_name: symbol handling functions. 10905 (line 26) 10906* bfd_is_target_special_symbol: symbol handling functions. 10907 (line 38) 10908* bfd_is_undefined_symclass: symbol handling functions. 10909 (line 120) 10910* bfd_link_split_section: Writing the symbol table. 10911 (line 44) 10912* bfd_log2: Internal. (line 164) 10913* bfd_lookup_arch: Architectures. (line 599) 10914* bfd_make_debug_symbol: symbol handling functions. 10915 (line 102) 10916* bfd_make_empty_symbol: symbol handling functions. 10917 (line 78) 10918* bfd_make_readable: Opening and Closing. 10919 (line 204) 10920* bfd_make_section: section prototypes. (line 143) 10921* bfd_make_section_anyway: section prototypes. (line 114) 10922* bfd_make_section_anyway_with_flags: section prototypes. (line 96) 10923* bfd_make_section_old_way: section prototypes. (line 76) 10924* bfd_make_section_with_flags: section prototypes. (line 130) 10925* bfd_make_writable: Opening and Closing. 10926 (line 190) 10927* bfd_malloc_and_get_section: section prototypes. (line 268) 10928* bfd_map_over_sections: section prototypes. (line 178) 10929* bfd_merge_private_bfd_data: BFD front end. (line 617) 10930* bfd_mmap: BFD front end. (line 938) 10931* bfd_octets_per_byte: Architectures. (line 622) 10932* bfd_open_file: File Caching. (line 52) 10933* bfd_openr: Opening and Closing. 10934 (line 35) 10935* bfd_openr_iovec: Opening and Closing. 10936 (line 83) 10937* bfd_openr_next_archived_file: Archives. (line 78) 10938* bfd_openstreamr: Opening and Closing. 10939 (line 74) 10940* bfd_openw: Opening and Closing. 10941 (line 131) 10942* bfd_perform_relocation: typedef arelent. (line 364) 10943* bfd_perror: BFD front end. (line 364) 10944* bfd_preserve_finish: BFD front end. (line 799) 10945* bfd_preserve_restore: BFD front end. (line 789) 10946* bfd_preserve_save: BFD front end. (line 773) 10947* bfd_print_symbol_vandf: symbol handling functions. 10948 (line 70) 10949* bfd_printable_arch_mach: Architectures. (line 610) 10950* bfd_printable_name: Architectures. (line 470) 10951* bfd_put_size: Internal. (line 22) 10952* BFD_RELOC_12_PCREL: howto manager. (line 39) 10953* BFD_RELOC_14: howto manager. (line 31) 10954* BFD_RELOC_16: howto manager. (line 30) 10955* BFD_RELOC_16_BASEREL: howto manager. (line 95) 10956* BFD_RELOC_16_GOT_PCREL: howto manager. (line 52) 10957* BFD_RELOC_16_GOTOFF: howto manager. (line 55) 10958* BFD_RELOC_16_PCREL: howto manager. (line 38) 10959* BFD_RELOC_16_PCREL_S2: howto manager. (line 107) 10960* BFD_RELOC_16_PLT_PCREL: howto manager. (line 63) 10961* BFD_RELOC_16_PLTOFF: howto manager. (line 67) 10962* BFD_RELOC_16C_ABS20: howto manager. (line 2170) 10963* BFD_RELOC_16C_ABS20_C: howto manager. (line 2171) 10964* BFD_RELOC_16C_ABS24: howto manager. (line 2172) 10965* BFD_RELOC_16C_ABS24_C: howto manager. (line 2173) 10966* BFD_RELOC_16C_DISP04: howto manager. (line 2150) 10967* BFD_RELOC_16C_DISP04_C: howto manager. (line 2151) 10968* BFD_RELOC_16C_DISP08: howto manager. (line 2152) 10969* BFD_RELOC_16C_DISP08_C: howto manager. (line 2153) 10970* BFD_RELOC_16C_DISP16: howto manager. (line 2154) 10971* BFD_RELOC_16C_DISP16_C: howto manager. (line 2155) 10972* BFD_RELOC_16C_DISP24: howto manager. (line 2156) 10973* BFD_RELOC_16C_DISP24_C: howto manager. (line 2157) 10974* BFD_RELOC_16C_DISP24a: howto manager. (line 2158) 10975* BFD_RELOC_16C_DISP24a_C: howto manager. (line 2159) 10976* BFD_RELOC_16C_IMM04: howto manager. (line 2174) 10977* BFD_RELOC_16C_IMM04_C: howto manager. (line 2175) 10978* BFD_RELOC_16C_IMM16: howto manager. (line 2176) 10979* BFD_RELOC_16C_IMM16_C: howto manager. (line 2177) 10980* BFD_RELOC_16C_IMM20: howto manager. (line 2178) 10981* BFD_RELOC_16C_IMM20_C: howto manager. (line 2179) 10982* BFD_RELOC_16C_IMM24: howto manager. (line 2180) 10983* BFD_RELOC_16C_IMM24_C: howto manager. (line 2181) 10984* BFD_RELOC_16C_IMM32: howto manager. (line 2182) 10985* BFD_RELOC_16C_IMM32_C: howto manager. (line 2183) 10986* BFD_RELOC_16C_NUM08: howto manager. (line 2144) 10987* BFD_RELOC_16C_NUM08_C: howto manager. (line 2145) 10988* BFD_RELOC_16C_NUM16: howto manager. (line 2146) 10989* BFD_RELOC_16C_NUM16_C: howto manager. (line 2147) 10990* BFD_RELOC_16C_NUM32: howto manager. (line 2148) 10991* BFD_RELOC_16C_NUM32_C: howto manager. (line 2149) 10992* BFD_RELOC_16C_REG04: howto manager. (line 2160) 10993* BFD_RELOC_16C_REG04_C: howto manager. (line 2161) 10994* BFD_RELOC_16C_REG04a: howto manager. (line 2162) 10995* BFD_RELOC_16C_REG04a_C: howto manager. (line 2163) 10996* BFD_RELOC_16C_REG14: howto manager. (line 2164) 10997* BFD_RELOC_16C_REG14_C: howto manager. (line 2165) 10998* BFD_RELOC_16C_REG16: howto manager. (line 2166) 10999* BFD_RELOC_16C_REG16_C: howto manager. (line 2167) 11000* BFD_RELOC_16C_REG20: howto manager. (line 2168) 11001* BFD_RELOC_16C_REG20_C: howto manager. (line 2169) 11002* BFD_RELOC_23_PCREL_S2: howto manager. (line 108) 11003* BFD_RELOC_24: howto manager. (line 29) 11004* BFD_RELOC_24_PCREL: howto manager. (line 37) 11005* BFD_RELOC_24_PLT_PCREL: howto manager. (line 62) 11006* BFD_RELOC_26: howto manager. (line 28) 11007* BFD_RELOC_32: howto manager. (line 27) 11008* BFD_RELOC_32_BASEREL: howto manager. (line 94) 11009* BFD_RELOC_32_GOT_PCREL: howto manager. (line 51) 11010* BFD_RELOC_32_GOTOFF: howto manager. (line 54) 11011* BFD_RELOC_32_PCREL: howto manager. (line 36) 11012* BFD_RELOC_32_PCREL_S2: howto manager. (line 106) 11013* BFD_RELOC_32_PLT_PCREL: howto manager. (line 61) 11014* BFD_RELOC_32_PLTOFF: howto manager. (line 66) 11015* BFD_RELOC_32_SECREL: howto manager. (line 48) 11016* BFD_RELOC_386_COPY: howto manager. (line 572) 11017* BFD_RELOC_386_GLOB_DAT: howto manager. (line 573) 11018* BFD_RELOC_386_GOT32: howto manager. (line 570) 11019* BFD_RELOC_386_GOTOFF: howto manager. (line 576) 11020* BFD_RELOC_386_GOTPC: howto manager. (line 577) 11021* BFD_RELOC_386_IRELATIVE: howto manager. (line 593) 11022* BFD_RELOC_386_JUMP_SLOT: howto manager. (line 574) 11023* BFD_RELOC_386_PLT32: howto manager. (line 571) 11024* BFD_RELOC_386_RELATIVE: howto manager. (line 575) 11025* BFD_RELOC_386_TLS_DESC: howto manager. (line 592) 11026* BFD_RELOC_386_TLS_DESC_CALL: howto manager. (line 591) 11027* BFD_RELOC_386_TLS_DTPMOD32: howto manager. (line 587) 11028* BFD_RELOC_386_TLS_DTPOFF32: howto manager. (line 588) 11029* BFD_RELOC_386_TLS_GD: howto manager. (line 582) 11030* BFD_RELOC_386_TLS_GOTDESC: howto manager. (line 590) 11031* BFD_RELOC_386_TLS_GOTIE: howto manager. (line 580) 11032* BFD_RELOC_386_TLS_IE: howto manager. (line 579) 11033* BFD_RELOC_386_TLS_IE_32: howto manager. (line 585) 11034* BFD_RELOC_386_TLS_LDM: howto manager. (line 583) 11035* BFD_RELOC_386_TLS_LDO_32: howto manager. (line 584) 11036* BFD_RELOC_386_TLS_LE: howto manager. (line 581) 11037* BFD_RELOC_386_TLS_LE_32: howto manager. (line 586) 11038* BFD_RELOC_386_TLS_TPOFF: howto manager. (line 578) 11039* BFD_RELOC_386_TLS_TPOFF32: howto manager. (line 589) 11040* BFD_RELOC_390_12: howto manager. (line 1765) 11041* BFD_RELOC_390_20: howto manager. (line 1865) 11042* BFD_RELOC_390_COPY: howto manager. (line 1774) 11043* BFD_RELOC_390_GLOB_DAT: howto manager. (line 1777) 11044* BFD_RELOC_390_GOT12: howto manager. (line 1768) 11045* BFD_RELOC_390_GOT16: howto manager. (line 1789) 11046* BFD_RELOC_390_GOT20: howto manager. (line 1866) 11047* BFD_RELOC_390_GOT64: howto manager. (line 1807) 11048* BFD_RELOC_390_GOTENT: howto manager. (line 1813) 11049* BFD_RELOC_390_GOTOFF64: howto manager. (line 1816) 11050* BFD_RELOC_390_GOTPC: howto manager. (line 1786) 11051* BFD_RELOC_390_GOTPCDBL: howto manager. (line 1804) 11052* BFD_RELOC_390_GOTPLT12: howto manager. (line 1819) 11053* BFD_RELOC_390_GOTPLT16: howto manager. (line 1822) 11054* BFD_RELOC_390_GOTPLT20: howto manager. (line 1867) 11055* BFD_RELOC_390_GOTPLT32: howto manager. (line 1825) 11056* BFD_RELOC_390_GOTPLT64: howto manager. (line 1828) 11057* BFD_RELOC_390_GOTPLTENT: howto manager. (line 1831) 11058* BFD_RELOC_390_IRELATIVE: howto manager. (line 1871) 11059* BFD_RELOC_390_JMP_SLOT: howto manager. (line 1780) 11060* BFD_RELOC_390_PC16DBL: howto manager. (line 1792) 11061* BFD_RELOC_390_PC32DBL: howto manager. (line 1798) 11062* BFD_RELOC_390_PLT16DBL: howto manager. (line 1795) 11063* BFD_RELOC_390_PLT32: howto manager. (line 1771) 11064* BFD_RELOC_390_PLT32DBL: howto manager. (line 1801) 11065* BFD_RELOC_390_PLT64: howto manager. (line 1810) 11066* BFD_RELOC_390_PLTOFF16: howto manager. (line 1834) 11067* BFD_RELOC_390_PLTOFF32: howto manager. (line 1837) 11068* BFD_RELOC_390_PLTOFF64: howto manager. (line 1840) 11069* BFD_RELOC_390_RELATIVE: howto manager. (line 1783) 11070* BFD_RELOC_390_TLS_DTPMOD: howto manager. (line 1860) 11071* BFD_RELOC_390_TLS_DTPOFF: howto manager. (line 1861) 11072* BFD_RELOC_390_TLS_GD32: howto manager. (line 1846) 11073* BFD_RELOC_390_TLS_GD64: howto manager. (line 1847) 11074* BFD_RELOC_390_TLS_GDCALL: howto manager. (line 1844) 11075* BFD_RELOC_390_TLS_GOTIE12: howto manager. (line 1848) 11076* BFD_RELOC_390_TLS_GOTIE20: howto manager. (line 1868) 11077* BFD_RELOC_390_TLS_GOTIE32: howto manager. (line 1849) 11078* BFD_RELOC_390_TLS_GOTIE64: howto manager. (line 1850) 11079* BFD_RELOC_390_TLS_IE32: howto manager. (line 1853) 11080* BFD_RELOC_390_TLS_IE64: howto manager. (line 1854) 11081* BFD_RELOC_390_TLS_IEENT: howto manager. (line 1855) 11082* BFD_RELOC_390_TLS_LDCALL: howto manager. (line 1845) 11083* BFD_RELOC_390_TLS_LDM32: howto manager. (line 1851) 11084* BFD_RELOC_390_TLS_LDM64: howto manager. (line 1852) 11085* BFD_RELOC_390_TLS_LDO32: howto manager. (line 1858) 11086* BFD_RELOC_390_TLS_LDO64: howto manager. (line 1859) 11087* BFD_RELOC_390_TLS_LE32: howto manager. (line 1856) 11088* BFD_RELOC_390_TLS_LE64: howto manager. (line 1857) 11089* BFD_RELOC_390_TLS_LOAD: howto manager. (line 1843) 11090* BFD_RELOC_390_TLS_TPOFF: howto manager. (line 1862) 11091* BFD_RELOC_64: howto manager. (line 26) 11092* BFD_RELOC_64_PCREL: howto manager. (line 35) 11093* BFD_RELOC_64_PLT_PCREL: howto manager. (line 60) 11094* BFD_RELOC_64_PLTOFF: howto manager. (line 65) 11095* BFD_RELOC_68K_GLOB_DAT: howto manager. (line 74) 11096* BFD_RELOC_68K_JMP_SLOT: howto manager. (line 75) 11097* BFD_RELOC_68K_RELATIVE: howto manager. (line 76) 11098* BFD_RELOC_68K_TLS_GD16: howto manager. (line 78) 11099* BFD_RELOC_68K_TLS_GD32: howto manager. (line 77) 11100* BFD_RELOC_68K_TLS_GD8: howto manager. (line 79) 11101* BFD_RELOC_68K_TLS_IE16: howto manager. (line 87) 11102* BFD_RELOC_68K_TLS_IE32: howto manager. (line 86) 11103* BFD_RELOC_68K_TLS_IE8: howto manager. (line 88) 11104* BFD_RELOC_68K_TLS_LDM16: howto manager. (line 81) 11105* BFD_RELOC_68K_TLS_LDM32: howto manager. (line 80) 11106* BFD_RELOC_68K_TLS_LDM8: howto manager. (line 82) 11107* BFD_RELOC_68K_TLS_LDO16: howto manager. (line 84) 11108* BFD_RELOC_68K_TLS_LDO32: howto manager. (line 83) 11109* BFD_RELOC_68K_TLS_LDO8: howto manager. (line 85) 11110* BFD_RELOC_68K_TLS_LE16: howto manager. (line 90) 11111* BFD_RELOC_68K_TLS_LE32: howto manager. (line 89) 11112* BFD_RELOC_68K_TLS_LE8: howto manager. (line 91) 11113* BFD_RELOC_8: howto manager. (line 32) 11114* BFD_RELOC_860_COPY: howto manager. (line 2298) 11115* BFD_RELOC_860_GLOB_DAT: howto manager. (line 2299) 11116* BFD_RELOC_860_HAGOT: howto manager. (line 2324) 11117* BFD_RELOC_860_HAGOTOFF: howto manager. (line 2325) 11118* BFD_RELOC_860_HAPC: howto manager. (line 2326) 11119* BFD_RELOC_860_HIGH: howto manager. (line 2327) 11120* BFD_RELOC_860_HIGHADJ: howto manager. (line 2323) 11121* BFD_RELOC_860_HIGOT: howto manager. (line 2328) 11122* BFD_RELOC_860_HIGOTOFF: howto manager. (line 2329) 11123* BFD_RELOC_860_JUMP_SLOT: howto manager. (line 2300) 11124* BFD_RELOC_860_LOGOT0: howto manager. (line 2312) 11125* BFD_RELOC_860_LOGOT1: howto manager. (line 2314) 11126* BFD_RELOC_860_LOGOTOFF0: howto manager. (line 2316) 11127* BFD_RELOC_860_LOGOTOFF1: howto manager. (line 2318) 11128* BFD_RELOC_860_LOGOTOFF2: howto manager. (line 2320) 11129* BFD_RELOC_860_LOGOTOFF3: howto manager. (line 2321) 11130* BFD_RELOC_860_LOPC: howto manager. (line 2322) 11131* BFD_RELOC_860_LOW0: howto manager. (line 2305) 11132* BFD_RELOC_860_LOW1: howto manager. (line 2307) 11133* BFD_RELOC_860_LOW2: howto manager. (line 2309) 11134* BFD_RELOC_860_LOW3: howto manager. (line 2311) 11135* BFD_RELOC_860_PC16: howto manager. (line 2304) 11136* BFD_RELOC_860_PC26: howto manager. (line 2302) 11137* BFD_RELOC_860_PLT26: howto manager. (line 2303) 11138* BFD_RELOC_860_RELATIVE: howto manager. (line 2301) 11139* BFD_RELOC_860_SPGOT0: howto manager. (line 2313) 11140* BFD_RELOC_860_SPGOT1: howto manager. (line 2315) 11141* BFD_RELOC_860_SPGOTOFF0: howto manager. (line 2317) 11142* BFD_RELOC_860_SPGOTOFF1: howto manager. (line 2319) 11143* BFD_RELOC_860_SPLIT0: howto manager. (line 2306) 11144* BFD_RELOC_860_SPLIT1: howto manager. (line 2308) 11145* BFD_RELOC_860_SPLIT2: howto manager. (line 2310) 11146* BFD_RELOC_8_BASEREL: howto manager. (line 99) 11147* BFD_RELOC_8_FFnn: howto manager. (line 103) 11148* BFD_RELOC_8_GOT_PCREL: howto manager. (line 53) 11149* BFD_RELOC_8_GOTOFF: howto manager. (line 59) 11150* BFD_RELOC_8_PCREL: howto manager. (line 40) 11151* BFD_RELOC_8_PLT_PCREL: howto manager. (line 64) 11152* BFD_RELOC_8_PLTOFF: howto manager. (line 71) 11153* BFD_RELOC_AARCH64_ADD_LO12: howto manager. (line 2595) 11154* BFD_RELOC_AARCH64_ADR_GOT_PAGE: howto manager. (line 2600) 11155* BFD_RELOC_AARCH64_ADR_HI21_NC_PCREL: howto manager. (line 2609) 11156* BFD_RELOC_AARCH64_ADR_HI21_PCREL: howto manager. (line 2605) 11157* BFD_RELOC_AARCH64_ADR_LO21_PCREL: howto manager. (line 2614) 11158* BFD_RELOC_AARCH64_BRANCH19: howto manager. (line 2618) 11159* BFD_RELOC_AARCH64_CALL26: howto manager. (line 2623) 11160* BFD_RELOC_AARCH64_GAS_INTERNAL_FIXUP: howto manager. (line 2628) 11161* BFD_RELOC_AARCH64_JUMP26: howto manager. (line 2632) 11162* BFD_RELOC_AARCH64_LD64_GOT_LO12_NC: howto manager. (line 2642) 11163* BFD_RELOC_AARCH64_LD_LO19_PCREL: howto manager. (line 2637) 11164* BFD_RELOC_AARCH64_LDST128_LO12: howto manager. (line 2672) 11165* BFD_RELOC_AARCH64_LDST16_LO12: howto manager. (line 2657) 11166* BFD_RELOC_AARCH64_LDST32_LO12: howto manager. (line 2662) 11167* BFD_RELOC_AARCH64_LDST64_LO12: howto manager. (line 2667) 11168* BFD_RELOC_AARCH64_LDST8_LO12: howto manager. (line 2652) 11169* BFD_RELOC_AARCH64_LDST_LO12: howto manager. (line 2647) 11170* BFD_RELOC_AARCH64_MOVW_G0: howto manager. (line 2677) 11171* BFD_RELOC_AARCH64_MOVW_G0_NC: howto manager. (line 2686) 11172* BFD_RELOC_AARCH64_MOVW_G0_S: howto manager. (line 2681) 11173* BFD_RELOC_AARCH64_MOVW_G1: howto manager. (line 2690) 11174* BFD_RELOC_AARCH64_MOVW_G1_NC: howto manager. (line 2694) 11175* BFD_RELOC_AARCH64_MOVW_G1_S: howto manager. (line 2698) 11176* BFD_RELOC_AARCH64_MOVW_G2: howto manager. (line 2703) 11177* BFD_RELOC_AARCH64_MOVW_G2_NC: howto manager. (line 2707) 11178* BFD_RELOC_AARCH64_MOVW_G2_S: howto manager. (line 2711) 11179* BFD_RELOC_AARCH64_MOVW_G3: howto manager. (line 2716) 11180* BFD_RELOC_AARCH64_TLS_DTPMOD64: howto manager. (line 2803) 11181* BFD_RELOC_AARCH64_TLS_DTPREL64: howto manager. (line 2806) 11182* BFD_RELOC_AARCH64_TLS_TPREL64: howto manager. (line 2809) 11183* BFD_RELOC_AARCH64_TLSDESC: howto manager. (line 2720) 11184* BFD_RELOC_AARCH64_TLSDESC_ADD: howto manager. (line 2723) 11185* BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC: howto manager. (line 2726) 11186* BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE: howto manager. (line 2729) 11187* BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21: howto manager. (line 2732) 11188* BFD_RELOC_AARCH64_TLSDESC_CALL: howto manager. (line 2735) 11189* BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC: howto manager. (line 2738) 11190* BFD_RELOC_AARCH64_TLSDESC_LD64_PREL19: howto manager. (line 2741) 11191* BFD_RELOC_AARCH64_TLSDESC_LDR: howto manager. (line 2744) 11192* BFD_RELOC_AARCH64_TLSDESC_OFF_G0_NC: howto manager. (line 2747) 11193* BFD_RELOC_AARCH64_TLSDESC_OFF_G1: howto manager. (line 2750) 11194* BFD_RELOC_AARCH64_TLSGD_ADD_LO12_NC: howto manager. (line 2753) 11195* BFD_RELOC_AARCH64_TLSGD_ADR_PAGE21: howto manager. (line 2758) 11196* BFD_RELOC_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21: howto manager. 11197 (line 2764) 11198* BFD_RELOC_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC: howto manager. 11199 (line 2770) 11200* BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19: howto manager. (line 2767) 11201* BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC: howto manager. 11202 (line 2773) 11203* BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G1: howto manager. (line 2776) 11204* BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_HI12: howto manager. (line 2779) 11205* BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12: howto manager. (line 2782) 11206* BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12_NC: howto manager. (line 2785) 11207* BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0: howto manager. (line 2788) 11208* BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0_NC: howto manager. (line 2791) 11209* BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1: howto manager. (line 2794) 11210* BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1_NC: howto manager. (line 2797) 11211* BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G2: howto manager. (line 2800) 11212* BFD_RELOC_AARCH64_TSTBR14: howto manager. (line 2812) 11213* BFD_RELOC_ALPHA_BOH: howto manager. (line 319) 11214* BFD_RELOC_ALPHA_BRSGP: howto manager. (line 302) 11215* BFD_RELOC_ALPHA_BSR: howto manager. (line 311) 11216* BFD_RELOC_ALPHA_CODEADDR: howto manager. (line 293) 11217* BFD_RELOC_ALPHA_DTPMOD64: howto manager. (line 325) 11218* BFD_RELOC_ALPHA_DTPREL16: howto manager. (line 330) 11219* BFD_RELOC_ALPHA_DTPREL64: howto manager. (line 327) 11220* BFD_RELOC_ALPHA_DTPREL_HI16: howto manager. (line 328) 11221* BFD_RELOC_ALPHA_DTPREL_LO16: howto manager. (line 329) 11222* BFD_RELOC_ALPHA_ELF_LITERAL: howto manager. (line 258) 11223* BFD_RELOC_ALPHA_GOTDTPREL16: howto manager. (line 326) 11224* BFD_RELOC_ALPHA_GOTTPREL16: howto manager. (line 331) 11225* BFD_RELOC_ALPHA_GPDISP: howto manager. (line 252) 11226* BFD_RELOC_ALPHA_GPDISP_HI16: howto manager. (line 238) 11227* BFD_RELOC_ALPHA_GPDISP_LO16: howto manager. (line 246) 11228* BFD_RELOC_ALPHA_GPREL_HI16: howto manager. (line 297) 11229* BFD_RELOC_ALPHA_GPREL_LO16: howto manager. (line 298) 11230* BFD_RELOC_ALPHA_HINT: howto manager. (line 284) 11231* BFD_RELOC_ALPHA_LDA: howto manager. (line 315) 11232* BFD_RELOC_ALPHA_LINKAGE: howto manager. (line 289) 11233* BFD_RELOC_ALPHA_LITERAL: howto manager. (line 257) 11234* BFD_RELOC_ALPHA_LITUSE: howto manager. (line 259) 11235* BFD_RELOC_ALPHA_NOP: howto manager. (line 307) 11236* BFD_RELOC_ALPHA_TLSGD: howto manager. (line 323) 11237* BFD_RELOC_ALPHA_TLSLDM: howto manager. (line 324) 11238* BFD_RELOC_ALPHA_TPREL16: howto manager. (line 335) 11239* BFD_RELOC_ALPHA_TPREL64: howto manager. (line 332) 11240* BFD_RELOC_ALPHA_TPREL_HI16: howto manager. (line 333) 11241* BFD_RELOC_ALPHA_TPREL_LO16: howto manager. (line 334) 11242* BFD_RELOC_ARC_B22_PCREL: howto manager. (line 1036) 11243* BFD_RELOC_ARC_B26: howto manager. (line 1041) 11244* BFD_RELOC_ARM_ADR_IMM: howto manager. (line 922) 11245* BFD_RELOC_ARM_ADRL_IMMEDIATE: howto manager. (line 908) 11246* BFD_RELOC_ARM_ALU_PC_G0: howto manager. (line 872) 11247* BFD_RELOC_ARM_ALU_PC_G0_NC: howto manager. (line 871) 11248* BFD_RELOC_ARM_ALU_PC_G1: howto manager. (line 874) 11249* BFD_RELOC_ARM_ALU_PC_G1_NC: howto manager. (line 873) 11250* BFD_RELOC_ARM_ALU_PC_G2: howto manager. (line 875) 11251* BFD_RELOC_ARM_ALU_SB_G0: howto manager. (line 886) 11252* BFD_RELOC_ARM_ALU_SB_G0_NC: howto manager. (line 885) 11253* BFD_RELOC_ARM_ALU_SB_G1: howto manager. (line 888) 11254* BFD_RELOC_ARM_ALU_SB_G1_NC: howto manager. (line 887) 11255* BFD_RELOC_ARM_ALU_SB_G2: howto manager. (line 889) 11256* BFD_RELOC_ARM_CP_OFF_IMM: howto manager. (line 918) 11257* BFD_RELOC_ARM_CP_OFF_IMM_S2: howto manager. (line 919) 11258* BFD_RELOC_ARM_GLOB_DAT: howto manager. (line 846) 11259* BFD_RELOC_ARM_GOT32: howto manager. (line 847) 11260* BFD_RELOC_ARM_GOT_PREL: howto manager. (line 852) 11261* BFD_RELOC_ARM_GOTOFF: howto manager. (line 850) 11262* BFD_RELOC_ARM_GOTPC: howto manager. (line 851) 11263* BFD_RELOC_ARM_HVC: howto manager. (line 915) 11264* BFD_RELOC_ARM_HWLITERAL: howto manager. (line 929) 11265* BFD_RELOC_ARM_IMMEDIATE: howto manager. (line 907) 11266* BFD_RELOC_ARM_IN_POOL: howto manager. (line 925) 11267* BFD_RELOC_ARM_IRELATIVE: howto manager. (line 904) 11268* BFD_RELOC_ARM_JUMP_SLOT: howto manager. (line 845) 11269* BFD_RELOC_ARM_LDC_PC_G0: howto manager. (line 882) 11270* BFD_RELOC_ARM_LDC_PC_G1: howto manager. (line 883) 11271* BFD_RELOC_ARM_LDC_PC_G2: howto manager. (line 884) 11272* BFD_RELOC_ARM_LDC_SB_G0: howto manager. (line 896) 11273* BFD_RELOC_ARM_LDC_SB_G1: howto manager. (line 897) 11274* BFD_RELOC_ARM_LDC_SB_G2: howto manager. (line 898) 11275* BFD_RELOC_ARM_LDR_IMM: howto manager. (line 923) 11276* BFD_RELOC_ARM_LDR_PC_G0: howto manager. (line 876) 11277* BFD_RELOC_ARM_LDR_PC_G1: howto manager. (line 877) 11278* BFD_RELOC_ARM_LDR_PC_G2: howto manager. (line 878) 11279* BFD_RELOC_ARM_LDR_SB_G0: howto manager. (line 890) 11280* BFD_RELOC_ARM_LDR_SB_G1: howto manager. (line 891) 11281* BFD_RELOC_ARM_LDR_SB_G2: howto manager. (line 892) 11282* BFD_RELOC_ARM_LDRS_PC_G0: howto manager. (line 879) 11283* BFD_RELOC_ARM_LDRS_PC_G1: howto manager. (line 880) 11284* BFD_RELOC_ARM_LDRS_PC_G2: howto manager. (line 881) 11285* BFD_RELOC_ARM_LDRS_SB_G0: howto manager. (line 893) 11286* BFD_RELOC_ARM_LDRS_SB_G1: howto manager. (line 894) 11287* BFD_RELOC_ARM_LDRS_SB_G2: howto manager. (line 895) 11288* BFD_RELOC_ARM_LITERAL: howto manager. (line 924) 11289* BFD_RELOC_ARM_MOVT: howto manager. (line 836) 11290* BFD_RELOC_ARM_MOVT_PCREL: howto manager. (line 838) 11291* BFD_RELOC_ARM_MOVW: howto manager. (line 835) 11292* BFD_RELOC_ARM_MOVW_PCREL: howto manager. (line 837) 11293* BFD_RELOC_ARM_MULTI: howto manager. (line 917) 11294* BFD_RELOC_ARM_OFFSET_IMM: howto manager. (line 809) 11295* BFD_RELOC_ARM_OFFSET_IMM8: howto manager. (line 926) 11296* BFD_RELOC_ARM_PCREL_BLX: howto manager. (line 780) 11297* BFD_RELOC_ARM_PCREL_BRANCH: howto manager. (line 776) 11298* BFD_RELOC_ARM_PCREL_CALL: howto manager. (line 790) 11299* BFD_RELOC_ARM_PCREL_JUMP: howto manager. (line 794) 11300* BFD_RELOC_ARM_PLT32: howto manager. (line 848) 11301* BFD_RELOC_ARM_PREL31: howto manager. (line 832) 11302* BFD_RELOC_ARM_RELATIVE: howto manager. (line 849) 11303* BFD_RELOC_ARM_ROSEGREL32: howto manager. (line 821) 11304* BFD_RELOC_ARM_SBREL32: howto manager. (line 824) 11305* BFD_RELOC_ARM_SHIFT_IMM: howto manager. (line 913) 11306* BFD_RELOC_ARM_SMC: howto manager. (line 914) 11307* BFD_RELOC_ARM_SWI: howto manager. (line 916) 11308* BFD_RELOC_ARM_T32_ADD_IMM: howto manager. (line 910) 11309* BFD_RELOC_ARM_T32_ADD_PC12: howto manager. (line 912) 11310* BFD_RELOC_ARM_T32_CP_OFF_IMM: howto manager. (line 920) 11311* BFD_RELOC_ARM_T32_CP_OFF_IMM_S2: howto manager. (line 921) 11312* BFD_RELOC_ARM_T32_IMM12: howto manager. (line 911) 11313* BFD_RELOC_ARM_T32_IMMEDIATE: howto manager. (line 909) 11314* BFD_RELOC_ARM_T32_OFFSET_IMM: howto manager. (line 928) 11315* BFD_RELOC_ARM_T32_OFFSET_U8: howto manager. (line 927) 11316* BFD_RELOC_ARM_TARGET1: howto manager. (line 817) 11317* BFD_RELOC_ARM_TARGET2: howto manager. (line 827) 11318* BFD_RELOC_ARM_THM_TLS_CALL: howto manager. (line 865) 11319* BFD_RELOC_ARM_THM_TLS_DESCSEQ: howto manager. (line 867) 11320* BFD_RELOC_ARM_THUMB_ADD: howto manager. (line 930) 11321* BFD_RELOC_ARM_THUMB_IMM: howto manager. (line 931) 11322* BFD_RELOC_ARM_THUMB_MOVT: howto manager. (line 840) 11323* BFD_RELOC_ARM_THUMB_MOVT_PCREL: howto manager. (line 842) 11324* BFD_RELOC_ARM_THUMB_MOVW: howto manager. (line 839) 11325* BFD_RELOC_ARM_THUMB_MOVW_PCREL: howto manager. (line 841) 11326* BFD_RELOC_ARM_THUMB_OFFSET: howto manager. (line 813) 11327* BFD_RELOC_ARM_THUMB_SHIFT: howto manager. (line 932) 11328* BFD_RELOC_ARM_TLS_CALL: howto manager. (line 864) 11329* BFD_RELOC_ARM_TLS_DESC: howto manager. (line 868) 11330* BFD_RELOC_ARM_TLS_DESCSEQ: howto manager. (line 866) 11331* BFD_RELOC_ARM_TLS_DTPMOD32: howto manager. (line 859) 11332* BFD_RELOC_ARM_TLS_DTPOFF32: howto manager. (line 858) 11333* BFD_RELOC_ARM_TLS_GD32: howto manager. (line 855) 11334* BFD_RELOC_ARM_TLS_GOTDESC: howto manager. (line 863) 11335* BFD_RELOC_ARM_TLS_IE32: howto manager. (line 861) 11336* BFD_RELOC_ARM_TLS_LDM32: howto manager. (line 857) 11337* BFD_RELOC_ARM_TLS_LDO32: howto manager. (line 856) 11338* BFD_RELOC_ARM_TLS_LE32: howto manager. (line 862) 11339* BFD_RELOC_ARM_TLS_TPOFF32: howto manager. (line 860) 11340* BFD_RELOC_ARM_V4BX: howto manager. (line 901) 11341* BFD_RELOC_AVR_13_PCREL: howto manager. (line 1591) 11342* BFD_RELOC_AVR_16_PM: howto manager. (line 1595) 11343* BFD_RELOC_AVR_6: howto manager. (line 1682) 11344* BFD_RELOC_AVR_6_ADIW: howto manager. (line 1686) 11345* BFD_RELOC_AVR_7_PCREL: howto manager. (line 1587) 11346* BFD_RELOC_AVR_8_HI: howto manager. (line 1694) 11347* BFD_RELOC_AVR_8_HLO: howto manager. (line 1698) 11348* BFD_RELOC_AVR_8_LO: howto manager. (line 1690) 11349* BFD_RELOC_AVR_CALL: howto manager. (line 1674) 11350* BFD_RELOC_AVR_HH8_LDI: howto manager. (line 1607) 11351* BFD_RELOC_AVR_HH8_LDI_NEG: howto manager. (line 1626) 11352* BFD_RELOC_AVR_HH8_LDI_PM: howto manager. (line 1655) 11353* BFD_RELOC_AVR_HH8_LDI_PM_NEG: howto manager. (line 1669) 11354* BFD_RELOC_AVR_HI8_LDI: howto manager. (line 1603) 11355* BFD_RELOC_AVR_HI8_LDI_GS: howto manager. (line 1649) 11356* BFD_RELOC_AVR_HI8_LDI_NEG: howto manager. (line 1621) 11357* BFD_RELOC_AVR_HI8_LDI_PM: howto manager. (line 1645) 11358* BFD_RELOC_AVR_HI8_LDI_PM_NEG: howto manager. (line 1664) 11359* BFD_RELOC_AVR_LDI: howto manager. (line 1678) 11360* BFD_RELOC_AVR_LO8_LDI: howto manager. (line 1599) 11361* BFD_RELOC_AVR_LO8_LDI_GS: howto manager. (line 1639) 11362* BFD_RELOC_AVR_LO8_LDI_NEG: howto manager. (line 1616) 11363* BFD_RELOC_AVR_LO8_LDI_PM: howto manager. (line 1635) 11364* BFD_RELOC_AVR_LO8_LDI_PM_NEG: howto manager. (line 1660) 11365* BFD_RELOC_AVR_MS8_LDI: howto manager. (line 1612) 11366* BFD_RELOC_AVR_MS8_LDI_NEG: howto manager. (line 1631) 11367* BFD_RELOC_BFIN_10_PCREL: howto manager. (line 1061) 11368* BFD_RELOC_BFIN_11_PCREL: howto manager. (line 1064) 11369* BFD_RELOC_BFIN_12_PCREL_JUMP: howto manager. (line 1067) 11370* BFD_RELOC_BFIN_12_PCREL_JUMP_S: howto manager. (line 1070) 11371* BFD_RELOC_BFIN_16_HIGH: howto manager. (line 1049) 11372* BFD_RELOC_BFIN_16_IMM: howto manager. (line 1046) 11373* BFD_RELOC_BFIN_16_LOW: howto manager. (line 1058) 11374* BFD_RELOC_BFIN_24_PCREL_CALL_X: howto manager. (line 1073) 11375* BFD_RELOC_BFIN_24_PCREL_JUMP_L: howto manager. (line 1076) 11376* BFD_RELOC_BFIN_4_PCREL: howto manager. (line 1052) 11377* BFD_RELOC_BFIN_5_PCREL: howto manager. (line 1055) 11378* BFD_RELOC_BFIN_FUNCDESC: howto manager. (line 1082) 11379* BFD_RELOC_BFIN_FUNCDESC_GOT17M4: howto manager. (line 1083) 11380* BFD_RELOC_BFIN_FUNCDESC_GOTHI: howto manager. (line 1084) 11381* BFD_RELOC_BFIN_FUNCDESC_GOTLO: howto manager. (line 1085) 11382* BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4: howto manager. (line 1087) 11383* BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI: howto manager. (line 1088) 11384* BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO: howto manager. (line 1089) 11385* BFD_RELOC_BFIN_FUNCDESC_VALUE: howto manager. (line 1086) 11386* BFD_RELOC_BFIN_GOT: howto manager. (line 1095) 11387* BFD_RELOC_BFIN_GOT17M4: howto manager. (line 1079) 11388* BFD_RELOC_BFIN_GOTHI: howto manager. (line 1080) 11389* BFD_RELOC_BFIN_GOTLO: howto manager. (line 1081) 11390* BFD_RELOC_BFIN_GOTOFF17M4: howto manager. (line 1090) 11391* BFD_RELOC_BFIN_GOTOFFHI: howto manager. (line 1091) 11392* BFD_RELOC_BFIN_GOTOFFLO: howto manager. (line 1092) 11393* BFD_RELOC_BFIN_PLTPC: howto manager. (line 1098) 11394* BFD_RELOC_C6000_ABS_H16: howto manager. (line 1450) 11395* BFD_RELOC_C6000_ABS_L16: howto manager. (line 1449) 11396* BFD_RELOC_C6000_ABS_S16: howto manager. (line 1448) 11397* BFD_RELOC_C6000_ALIGN: howto manager. (line 1471) 11398* BFD_RELOC_C6000_COPY: howto manager. (line 1466) 11399* BFD_RELOC_C6000_DSBT_INDEX: howto manager. (line 1464) 11400* BFD_RELOC_C6000_EHTYPE: howto manager. (line 1468) 11401* BFD_RELOC_C6000_FPHEAD: howto manager. (line 1472) 11402* BFD_RELOC_C6000_JUMP_SLOT: howto manager. (line 1467) 11403* BFD_RELOC_C6000_NOCMP: howto manager. (line 1473) 11404* BFD_RELOC_C6000_PCR_H16: howto manager. (line 1469) 11405* BFD_RELOC_C6000_PCR_L16: howto manager. (line 1470) 11406* BFD_RELOC_C6000_PCR_S10: howto manager. (line 1446) 11407* BFD_RELOC_C6000_PCR_S12: howto manager. (line 1445) 11408* BFD_RELOC_C6000_PCR_S21: howto manager. (line 1444) 11409* BFD_RELOC_C6000_PCR_S7: howto manager. (line 1447) 11410* BFD_RELOC_C6000_PREL31: howto manager. (line 1465) 11411* BFD_RELOC_C6000_SBR_GOT_H16_W: howto manager. (line 1463) 11412* BFD_RELOC_C6000_SBR_GOT_L16_W: howto manager. (line 1462) 11413* BFD_RELOC_C6000_SBR_GOT_U15_W: howto manager. (line 1461) 11414* BFD_RELOC_C6000_SBR_H16_B: howto manager. (line 1458) 11415* BFD_RELOC_C6000_SBR_H16_H: howto manager. (line 1459) 11416* BFD_RELOC_C6000_SBR_H16_W: howto manager. (line 1460) 11417* BFD_RELOC_C6000_SBR_L16_B: howto manager. (line 1455) 11418* BFD_RELOC_C6000_SBR_L16_H: howto manager. (line 1456) 11419* BFD_RELOC_C6000_SBR_L16_W: howto manager. (line 1457) 11420* BFD_RELOC_C6000_SBR_S16: howto manager. (line 1454) 11421* BFD_RELOC_C6000_SBR_U15_B: howto manager. (line 1451) 11422* BFD_RELOC_C6000_SBR_U15_H: howto manager. (line 1452) 11423* BFD_RELOC_C6000_SBR_U15_W: howto manager. (line 1453) 11424* bfd_reloc_code_type: howto manager. (line 10) 11425* BFD_RELOC_CR16_ABS20: howto manager. (line 2198) 11426* BFD_RELOC_CR16_ABS24: howto manager. (line 2199) 11427* BFD_RELOC_CR16_DISP16: howto manager. (line 2209) 11428* BFD_RELOC_CR16_DISP20: howto manager. (line 2210) 11429* BFD_RELOC_CR16_DISP24: howto manager. (line 2211) 11430* BFD_RELOC_CR16_DISP24a: howto manager. (line 2212) 11431* BFD_RELOC_CR16_DISP4: howto manager. (line 2207) 11432* BFD_RELOC_CR16_DISP8: howto manager. (line 2208) 11433* BFD_RELOC_CR16_GLOB_DAT: howto manager. (line 2218) 11434* BFD_RELOC_CR16_GOT_REGREL20: howto manager. (line 2216) 11435* BFD_RELOC_CR16_GOTC_REGREL20: howto manager. (line 2217) 11436* BFD_RELOC_CR16_IMM16: howto manager. (line 2202) 11437* BFD_RELOC_CR16_IMM20: howto manager. (line 2203) 11438* BFD_RELOC_CR16_IMM24: howto manager. (line 2204) 11439* BFD_RELOC_CR16_IMM32: howto manager. (line 2205) 11440* BFD_RELOC_CR16_IMM32a: howto manager. (line 2206) 11441* BFD_RELOC_CR16_IMM4: howto manager. (line 2200) 11442* BFD_RELOC_CR16_IMM8: howto manager. (line 2201) 11443* BFD_RELOC_CR16_NUM16: howto manager. (line 2187) 11444* BFD_RELOC_CR16_NUM32: howto manager. (line 2188) 11445* BFD_RELOC_CR16_NUM32a: howto manager. (line 2189) 11446* BFD_RELOC_CR16_NUM8: howto manager. (line 2186) 11447* BFD_RELOC_CR16_REGREL0: howto manager. (line 2190) 11448* BFD_RELOC_CR16_REGREL14: howto manager. (line 2193) 11449* BFD_RELOC_CR16_REGREL14a: howto manager. (line 2194) 11450* BFD_RELOC_CR16_REGREL16: howto manager. (line 2195) 11451* BFD_RELOC_CR16_REGREL20: howto manager. (line 2196) 11452* BFD_RELOC_CR16_REGREL20a: howto manager. (line 2197) 11453* BFD_RELOC_CR16_REGREL4: howto manager. (line 2191) 11454* BFD_RELOC_CR16_REGREL4a: howto manager. (line 2192) 11455* BFD_RELOC_CR16_SWITCH16: howto manager. (line 2214) 11456* BFD_RELOC_CR16_SWITCH32: howto manager. (line 2215) 11457* BFD_RELOC_CR16_SWITCH8: howto manager. (line 2213) 11458* BFD_RELOC_CRIS_16_DTPREL: howto manager. (line 2289) 11459* BFD_RELOC_CRIS_16_GOT: howto manager. (line 2265) 11460* BFD_RELOC_CRIS_16_GOT_GD: howto manager. (line 2285) 11461* BFD_RELOC_CRIS_16_GOT_TPREL: howto manager. (line 2291) 11462* BFD_RELOC_CRIS_16_GOTPLT: howto manager. (line 2271) 11463* BFD_RELOC_CRIS_16_TPREL: howto manager. (line 2293) 11464* BFD_RELOC_CRIS_32_DTPREL: howto manager. (line 2288) 11465* BFD_RELOC_CRIS_32_GD: howto manager. (line 2286) 11466* BFD_RELOC_CRIS_32_GOT: howto manager. (line 2262) 11467* BFD_RELOC_CRIS_32_GOT_GD: howto manager. (line 2284) 11468* BFD_RELOC_CRIS_32_GOT_TPREL: howto manager. (line 2290) 11469* BFD_RELOC_CRIS_32_GOTPLT: howto manager. (line 2268) 11470* BFD_RELOC_CRIS_32_GOTREL: howto manager. (line 2274) 11471* BFD_RELOC_CRIS_32_IE: howto manager. (line 2295) 11472* BFD_RELOC_CRIS_32_PLT_GOTREL: howto manager. (line 2277) 11473* BFD_RELOC_CRIS_32_PLT_PCREL: howto manager. (line 2280) 11474* BFD_RELOC_CRIS_32_TPREL: howto manager. (line 2292) 11475* BFD_RELOC_CRIS_BDISP8: howto manager. (line 2243) 11476* BFD_RELOC_CRIS_COPY: howto manager. (line 2256) 11477* BFD_RELOC_CRIS_DTP: howto manager. (line 2287) 11478* BFD_RELOC_CRIS_DTPMOD: howto manager. (line 2294) 11479* BFD_RELOC_CRIS_GLOB_DAT: howto manager. (line 2257) 11480* BFD_RELOC_CRIS_JUMP_SLOT: howto manager. (line 2258) 11481* BFD_RELOC_CRIS_LAPCQ_OFFSET: howto manager. (line 2251) 11482* BFD_RELOC_CRIS_RELATIVE: howto manager. (line 2259) 11483* BFD_RELOC_CRIS_SIGNED_16: howto manager. (line 2249) 11484* BFD_RELOC_CRIS_SIGNED_6: howto manager. (line 2245) 11485* BFD_RELOC_CRIS_SIGNED_8: howto manager. (line 2247) 11486* BFD_RELOC_CRIS_UNSIGNED_16: howto manager. (line 2250) 11487* BFD_RELOC_CRIS_UNSIGNED_4: howto manager. (line 2252) 11488* BFD_RELOC_CRIS_UNSIGNED_5: howto manager. (line 2244) 11489* BFD_RELOC_CRIS_UNSIGNED_6: howto manager. (line 2246) 11490* BFD_RELOC_CRIS_UNSIGNED_8: howto manager. (line 2248) 11491* BFD_RELOC_CRX_ABS16: howto manager. (line 2231) 11492* BFD_RELOC_CRX_ABS32: howto manager. (line 2232) 11493* BFD_RELOC_CRX_IMM16: howto manager. (line 2236) 11494* BFD_RELOC_CRX_IMM32: howto manager. (line 2237) 11495* BFD_RELOC_CRX_NUM16: howto manager. (line 2234) 11496* BFD_RELOC_CRX_NUM32: howto manager. (line 2235) 11497* BFD_RELOC_CRX_NUM8: howto manager. (line 2233) 11498* BFD_RELOC_CRX_REGREL12: howto manager. (line 2227) 11499* BFD_RELOC_CRX_REGREL22: howto manager. (line 2228) 11500* BFD_RELOC_CRX_REGREL28: howto manager. (line 2229) 11501* BFD_RELOC_CRX_REGREL32: howto manager. (line 2230) 11502* BFD_RELOC_CRX_REL16: howto manager. (line 2224) 11503* BFD_RELOC_CRX_REL24: howto manager. (line 2225) 11504* BFD_RELOC_CRX_REL32: howto manager. (line 2226) 11505* BFD_RELOC_CRX_REL4: howto manager. (line 2221) 11506* BFD_RELOC_CRX_REL8: howto manager. (line 2222) 11507* BFD_RELOC_CRX_REL8_CMP: howto manager. (line 2223) 11508* BFD_RELOC_CRX_SWITCH16: howto manager. (line 2239) 11509* BFD_RELOC_CRX_SWITCH32: howto manager. (line 2240) 11510* BFD_RELOC_CRX_SWITCH8: howto manager. (line 2238) 11511* BFD_RELOC_CTOR: howto manager. (line 770) 11512* BFD_RELOC_D10V_10_PCREL_L: howto manager. (line 1165) 11513* BFD_RELOC_D10V_10_PCREL_R: howto manager. (line 1161) 11514* BFD_RELOC_D10V_18: howto manager. (line 1170) 11515* BFD_RELOC_D10V_18_PCREL: howto manager. (line 1173) 11516* BFD_RELOC_D30V_15: howto manager. (line 1188) 11517* BFD_RELOC_D30V_15_PCREL: howto manager. (line 1192) 11518* BFD_RELOC_D30V_15_PCREL_R: howto manager. (line 1196) 11519* BFD_RELOC_D30V_21: howto manager. (line 1201) 11520* BFD_RELOC_D30V_21_PCREL: howto manager. (line 1205) 11521* BFD_RELOC_D30V_21_PCREL_R: howto manager. (line 1209) 11522* BFD_RELOC_D30V_32: howto manager. (line 1214) 11523* BFD_RELOC_D30V_32_PCREL: howto manager. (line 1217) 11524* BFD_RELOC_D30V_6: howto manager. (line 1176) 11525* BFD_RELOC_D30V_9_PCREL: howto manager. (line 1179) 11526* BFD_RELOC_D30V_9_PCREL_R: howto manager. (line 1183) 11527* BFD_RELOC_DLX_HI16_S: howto manager. (line 1220) 11528* BFD_RELOC_DLX_JMP26: howto manager. (line 1226) 11529* BFD_RELOC_DLX_LO16: howto manager. (line 1223) 11530* BFD_RELOC_EPIPHANY_HIGH: howto manager. (line 3001) 11531* BFD_RELOC_EPIPHANY_IMM11: howto manager. (line 3010) 11532* BFD_RELOC_EPIPHANY_IMM8: howto manager. (line 3014) 11533* BFD_RELOC_EPIPHANY_LOW: howto manager. (line 3004) 11534* BFD_RELOC_EPIPHANY_SIMM11: howto manager. (line 3007) 11535* BFD_RELOC_EPIPHANY_SIMM24: howto manager. (line 2998) 11536* BFD_RELOC_EPIPHANY_SIMM8: howto manager. (line 2995) 11537* BFD_RELOC_FR30_10_IN_8: howto manager. (line 1495) 11538* BFD_RELOC_FR30_12_PCREL: howto manager. (line 1503) 11539* BFD_RELOC_FR30_20: howto manager. (line 1479) 11540* BFD_RELOC_FR30_48: howto manager. (line 1476) 11541* BFD_RELOC_FR30_6_IN_4: howto manager. (line 1483) 11542* BFD_RELOC_FR30_8_IN_8: howto manager. (line 1487) 11543* BFD_RELOC_FR30_9_IN_8: howto manager. (line 1491) 11544* BFD_RELOC_FR30_9_PCREL: howto manager. (line 1499) 11545* BFD_RELOC_FRV_FUNCDESC: howto manager. (line 486) 11546* BFD_RELOC_FRV_FUNCDESC_GOT12: howto manager. (line 487) 11547* BFD_RELOC_FRV_FUNCDESC_GOTHI: howto manager. (line 488) 11548* BFD_RELOC_FRV_FUNCDESC_GOTLO: howto manager. (line 489) 11549* BFD_RELOC_FRV_FUNCDESC_GOTOFF12: howto manager. (line 491) 11550* BFD_RELOC_FRV_FUNCDESC_GOTOFFHI: howto manager. (line 492) 11551* BFD_RELOC_FRV_FUNCDESC_GOTOFFLO: howto manager. (line 493) 11552* BFD_RELOC_FRV_FUNCDESC_VALUE: howto manager. (line 490) 11553* BFD_RELOC_FRV_GETTLSOFF: howto manager. (line 497) 11554* BFD_RELOC_FRV_GETTLSOFF_RELAX: howto manager. (line 510) 11555* BFD_RELOC_FRV_GOT12: howto manager. (line 483) 11556* BFD_RELOC_FRV_GOTHI: howto manager. (line 484) 11557* BFD_RELOC_FRV_GOTLO: howto manager. (line 485) 11558* BFD_RELOC_FRV_GOTOFF12: howto manager. (line 494) 11559* BFD_RELOC_FRV_GOTOFFHI: howto manager. (line 495) 11560* BFD_RELOC_FRV_GOTOFFLO: howto manager. (line 496) 11561* BFD_RELOC_FRV_GOTTLSDESC12: howto manager. (line 499) 11562* BFD_RELOC_FRV_GOTTLSDESCHI: howto manager. (line 500) 11563* BFD_RELOC_FRV_GOTTLSDESCLO: howto manager. (line 501) 11564* BFD_RELOC_FRV_GOTTLSOFF12: howto manager. (line 505) 11565* BFD_RELOC_FRV_GOTTLSOFFHI: howto manager. (line 506) 11566* BFD_RELOC_FRV_GOTTLSOFFLO: howto manager. (line 507) 11567* BFD_RELOC_FRV_GPREL12: howto manager. (line 478) 11568* BFD_RELOC_FRV_GPREL32: howto manager. (line 480) 11569* BFD_RELOC_FRV_GPRELHI: howto manager. (line 481) 11570* BFD_RELOC_FRV_GPRELLO: howto manager. (line 482) 11571* BFD_RELOC_FRV_GPRELU12: howto manager. (line 479) 11572* BFD_RELOC_FRV_HI16: howto manager. (line 477) 11573* BFD_RELOC_FRV_LABEL16: howto manager. (line 474) 11574* BFD_RELOC_FRV_LABEL24: howto manager. (line 475) 11575* BFD_RELOC_FRV_LO16: howto manager. (line 476) 11576* BFD_RELOC_FRV_TLSDESC_RELAX: howto manager. (line 509) 11577* BFD_RELOC_FRV_TLSDESC_VALUE: howto manager. (line 498) 11578* BFD_RELOC_FRV_TLSMOFF: howto manager. (line 512) 11579* BFD_RELOC_FRV_TLSMOFF12: howto manager. (line 502) 11580* BFD_RELOC_FRV_TLSMOFFHI: howto manager. (line 503) 11581* BFD_RELOC_FRV_TLSMOFFLO: howto manager. (line 504) 11582* BFD_RELOC_FRV_TLSOFF: howto manager. (line 508) 11583* BFD_RELOC_FRV_TLSOFF_RELAX: howto manager. (line 511) 11584* BFD_RELOC_GPREL16: howto manager. (line 121) 11585* BFD_RELOC_GPREL32: howto manager. (line 122) 11586* BFD_RELOC_H8_DIR16A8: howto manager. (line 2336) 11587* BFD_RELOC_H8_DIR16R8: howto manager. (line 2337) 11588* BFD_RELOC_H8_DIR24A8: howto manager. (line 2338) 11589* BFD_RELOC_H8_DIR24R8: howto manager. (line 2339) 11590* BFD_RELOC_H8_DIR32A16: howto manager. (line 2340) 11591* BFD_RELOC_HI16: howto manager. (line 348) 11592* BFD_RELOC_HI16_BASEREL: howto manager. (line 97) 11593* BFD_RELOC_HI16_GOTOFF: howto manager. (line 57) 11594* BFD_RELOC_HI16_PCREL: howto manager. (line 360) 11595* BFD_RELOC_HI16_PLTOFF: howto manager. (line 69) 11596* BFD_RELOC_HI16_S: howto manager. (line 351) 11597* BFD_RELOC_HI16_S_BASEREL: howto manager. (line 98) 11598* BFD_RELOC_HI16_S_GOTOFF: howto manager. (line 58) 11599* BFD_RELOC_HI16_S_PCREL: howto manager. (line 363) 11600* BFD_RELOC_HI16_S_PLTOFF: howto manager. (line 70) 11601* BFD_RELOC_HI22: howto manager. (line 116) 11602* BFD_RELOC_I370_D12: howto manager. (line 767) 11603* BFD_RELOC_I960_CALLJ: howto manager. (line 128) 11604* BFD_RELOC_IA64_COPY: howto manager. (line 2018) 11605* BFD_RELOC_IA64_DIR32LSB: howto manager. (line 1963) 11606* BFD_RELOC_IA64_DIR32MSB: howto manager. (line 1962) 11607* BFD_RELOC_IA64_DIR64LSB: howto manager. (line 1965) 11608* BFD_RELOC_IA64_DIR64MSB: howto manager. (line 1964) 11609* BFD_RELOC_IA64_DTPMOD64LSB: howto manager. (line 2028) 11610* BFD_RELOC_IA64_DTPMOD64MSB: howto manager. (line 2027) 11611* BFD_RELOC_IA64_DTPREL14: howto manager. (line 2030) 11612* BFD_RELOC_IA64_DTPREL22: howto manager. (line 2031) 11613* BFD_RELOC_IA64_DTPREL32LSB: howto manager. (line 2034) 11614* BFD_RELOC_IA64_DTPREL32MSB: howto manager. (line 2033) 11615* BFD_RELOC_IA64_DTPREL64I: howto manager. (line 2032) 11616* BFD_RELOC_IA64_DTPREL64LSB: howto manager. (line 2036) 11617* BFD_RELOC_IA64_DTPREL64MSB: howto manager. (line 2035) 11618* BFD_RELOC_IA64_FPTR32LSB: howto manager. (line 1980) 11619* BFD_RELOC_IA64_FPTR32MSB: howto manager. (line 1979) 11620* BFD_RELOC_IA64_FPTR64I: howto manager. (line 1978) 11621* BFD_RELOC_IA64_FPTR64LSB: howto manager. (line 1982) 11622* BFD_RELOC_IA64_FPTR64MSB: howto manager. (line 1981) 11623* BFD_RELOC_IA64_GPREL22: howto manager. (line 1966) 11624* BFD_RELOC_IA64_GPREL32LSB: howto manager. (line 1969) 11625* BFD_RELOC_IA64_GPREL32MSB: howto manager. (line 1968) 11626* BFD_RELOC_IA64_GPREL64I: howto manager. (line 1967) 11627* BFD_RELOC_IA64_GPREL64LSB: howto manager. (line 1971) 11628* BFD_RELOC_IA64_GPREL64MSB: howto manager. (line 1970) 11629* BFD_RELOC_IA64_IMM14: howto manager. (line 1959) 11630* BFD_RELOC_IA64_IMM22: howto manager. (line 1960) 11631* BFD_RELOC_IA64_IMM64: howto manager. (line 1961) 11632* BFD_RELOC_IA64_IPLTLSB: howto manager. (line 2017) 11633* BFD_RELOC_IA64_IPLTMSB: howto manager. (line 2016) 11634* BFD_RELOC_IA64_LDXMOV: howto manager. (line 2020) 11635* BFD_RELOC_IA64_LTOFF22: howto manager. (line 1972) 11636* BFD_RELOC_IA64_LTOFF22X: howto manager. (line 2019) 11637* BFD_RELOC_IA64_LTOFF64I: howto manager. (line 1973) 11638* BFD_RELOC_IA64_LTOFF_DTPMOD22: howto manager. (line 2029) 11639* BFD_RELOC_IA64_LTOFF_DTPREL22: howto manager. (line 2037) 11640* BFD_RELOC_IA64_LTOFF_FPTR22: howto manager. (line 1994) 11641* BFD_RELOC_IA64_LTOFF_FPTR32LSB: howto manager. (line 1997) 11642* BFD_RELOC_IA64_LTOFF_FPTR32MSB: howto manager. (line 1996) 11643* BFD_RELOC_IA64_LTOFF_FPTR64I: howto manager. (line 1995) 11644* BFD_RELOC_IA64_LTOFF_FPTR64LSB: howto manager. (line 1999) 11645* BFD_RELOC_IA64_LTOFF_FPTR64MSB: howto manager. (line 1998) 11646* BFD_RELOC_IA64_LTOFF_TPREL22: howto manager. (line 2026) 11647* BFD_RELOC_IA64_LTV32LSB: howto manager. (line 2013) 11648* BFD_RELOC_IA64_LTV32MSB: howto manager. (line 2012) 11649* BFD_RELOC_IA64_LTV64LSB: howto manager. (line 2015) 11650* BFD_RELOC_IA64_LTV64MSB: howto manager. (line 2014) 11651* BFD_RELOC_IA64_PCREL21B: howto manager. (line 1983) 11652* BFD_RELOC_IA64_PCREL21BI: howto manager. (line 1984) 11653* BFD_RELOC_IA64_PCREL21F: howto manager. (line 1986) 11654* BFD_RELOC_IA64_PCREL21M: howto manager. (line 1985) 11655* BFD_RELOC_IA64_PCREL22: howto manager. (line 1987) 11656* BFD_RELOC_IA64_PCREL32LSB: howto manager. (line 1991) 11657* BFD_RELOC_IA64_PCREL32MSB: howto manager. (line 1990) 11658* BFD_RELOC_IA64_PCREL60B: howto manager. (line 1988) 11659* BFD_RELOC_IA64_PCREL64I: howto manager. (line 1989) 11660* BFD_RELOC_IA64_PCREL64LSB: howto manager. (line 1993) 11661* BFD_RELOC_IA64_PCREL64MSB: howto manager. (line 1992) 11662* BFD_RELOC_IA64_PLTOFF22: howto manager. (line 1974) 11663* BFD_RELOC_IA64_PLTOFF64I: howto manager. (line 1975) 11664* BFD_RELOC_IA64_PLTOFF64LSB: howto manager. (line 1977) 11665* BFD_RELOC_IA64_PLTOFF64MSB: howto manager. (line 1976) 11666* BFD_RELOC_IA64_REL32LSB: howto manager. (line 2009) 11667* BFD_RELOC_IA64_REL32MSB: howto manager. (line 2008) 11668* BFD_RELOC_IA64_REL64LSB: howto manager. (line 2011) 11669* BFD_RELOC_IA64_REL64MSB: howto manager. (line 2010) 11670* BFD_RELOC_IA64_SECREL32LSB: howto manager. (line 2005) 11671* BFD_RELOC_IA64_SECREL32MSB: howto manager. (line 2004) 11672* BFD_RELOC_IA64_SECREL64LSB: howto manager. (line 2007) 11673* BFD_RELOC_IA64_SECREL64MSB: howto manager. (line 2006) 11674* BFD_RELOC_IA64_SEGREL32LSB: howto manager. (line 2001) 11675* BFD_RELOC_IA64_SEGREL32MSB: howto manager. (line 2000) 11676* BFD_RELOC_IA64_SEGREL64LSB: howto manager. (line 2003) 11677* BFD_RELOC_IA64_SEGREL64MSB: howto manager. (line 2002) 11678* BFD_RELOC_IA64_TPREL14: howto manager. (line 2021) 11679* BFD_RELOC_IA64_TPREL22: howto manager. (line 2022) 11680* BFD_RELOC_IA64_TPREL64I: howto manager. (line 2023) 11681* BFD_RELOC_IA64_TPREL64LSB: howto manager. (line 2025) 11682* BFD_RELOC_IA64_TPREL64MSB: howto manager. (line 2024) 11683* BFD_RELOC_IP2K_ADDR16CJP: howto manager. (line 1911) 11684* BFD_RELOC_IP2K_BANK: howto manager. (line 1908) 11685* BFD_RELOC_IP2K_EX8DATA: howto manager. (line 1919) 11686* BFD_RELOC_IP2K_FR9: howto manager. (line 1905) 11687* BFD_RELOC_IP2K_FR_OFFSET: howto manager. (line 1932) 11688* BFD_RELOC_IP2K_HI8DATA: howto manager. (line 1918) 11689* BFD_RELOC_IP2K_HI8INSN: howto manager. (line 1923) 11690* BFD_RELOC_IP2K_LO8DATA: howto manager. (line 1917) 11691* BFD_RELOC_IP2K_LO8INSN: howto manager. (line 1922) 11692* BFD_RELOC_IP2K_PAGE3: howto manager. (line 1914) 11693* BFD_RELOC_IP2K_PC_SKIP: howto manager. (line 1926) 11694* BFD_RELOC_IP2K_TEXT: howto manager. (line 1929) 11695* BFD_RELOC_IQ2000_OFFSET_16: howto manager. (line 2390) 11696* BFD_RELOC_IQ2000_OFFSET_21: howto manager. (line 2391) 11697* BFD_RELOC_IQ2000_UHI16: howto manager. (line 2392) 11698* BFD_RELOC_LM32_16_GOT: howto manager. (line 2497) 11699* BFD_RELOC_LM32_BRANCH: howto manager. (line 2496) 11700* BFD_RELOC_LM32_CALL: howto manager. (line 2495) 11701* BFD_RELOC_LM32_COPY: howto manager. (line 2500) 11702* BFD_RELOC_LM32_GLOB_DAT: howto manager. (line 2501) 11703* BFD_RELOC_LM32_GOTOFF_HI16: howto manager. (line 2498) 11704* BFD_RELOC_LM32_GOTOFF_LO16: howto manager. (line 2499) 11705* BFD_RELOC_LM32_JMP_SLOT: howto manager. (line 2502) 11706* BFD_RELOC_LM32_RELATIVE: howto manager. (line 2503) 11707* BFD_RELOC_LO10: howto manager. (line 117) 11708* BFD_RELOC_LO16: howto manager. (line 357) 11709* BFD_RELOC_LO16_BASEREL: howto manager. (line 96) 11710* BFD_RELOC_LO16_GOTOFF: howto manager. (line 56) 11711* BFD_RELOC_LO16_PCREL: howto manager. (line 366) 11712* BFD_RELOC_LO16_PLTOFF: howto manager. (line 68) 11713* BFD_RELOC_M32C_HI8: howto manager. (line 1229) 11714* BFD_RELOC_M32C_RL_1ADDR: howto manager. (line 1231) 11715* BFD_RELOC_M32C_RL_2ADDR: howto manager. (line 1232) 11716* BFD_RELOC_M32C_RL_JUMP: howto manager. (line 1230) 11717* BFD_RELOC_M32R_10_PCREL: howto manager. (line 1239) 11718* BFD_RELOC_M32R_18_PCREL: howto manager. (line 1243) 11719* BFD_RELOC_M32R_24: howto manager. (line 1235) 11720* BFD_RELOC_M32R_26_PCREL: howto manager. (line 1246) 11721* BFD_RELOC_M32R_26_PLTREL: howto manager. (line 1265) 11722* BFD_RELOC_M32R_COPY: howto manager. (line 1266) 11723* BFD_RELOC_M32R_GLOB_DAT: howto manager. (line 1267) 11724* BFD_RELOC_M32R_GOT16_HI_SLO: howto manager. (line 1276) 11725* BFD_RELOC_M32R_GOT16_HI_ULO: howto manager. (line 1275) 11726* BFD_RELOC_M32R_GOT16_LO: howto manager. (line 1277) 11727* BFD_RELOC_M32R_GOT24: howto manager. (line 1264) 11728* BFD_RELOC_M32R_GOTOFF: howto manager. (line 1270) 11729* BFD_RELOC_M32R_GOTOFF_HI_SLO: howto manager. (line 1272) 11730* BFD_RELOC_M32R_GOTOFF_HI_ULO: howto manager. (line 1271) 11731* BFD_RELOC_M32R_GOTOFF_LO: howto manager. (line 1273) 11732* BFD_RELOC_M32R_GOTPC24: howto manager. (line 1274) 11733* BFD_RELOC_M32R_GOTPC_HI_SLO: howto manager. (line 1279) 11734* BFD_RELOC_M32R_GOTPC_HI_ULO: howto manager. (line 1278) 11735* BFD_RELOC_M32R_GOTPC_LO: howto manager. (line 1280) 11736* BFD_RELOC_M32R_HI16_SLO: howto manager. (line 1253) 11737* BFD_RELOC_M32R_HI16_ULO: howto manager. (line 1249) 11738* BFD_RELOC_M32R_JMP_SLOT: howto manager. (line 1268) 11739* BFD_RELOC_M32R_LO16: howto manager. (line 1257) 11740* BFD_RELOC_M32R_RELATIVE: howto manager. (line 1269) 11741* BFD_RELOC_M32R_SDA16: howto manager. (line 1260) 11742* BFD_RELOC_M68HC11_24: howto manager. (line 2073) 11743* BFD_RELOC_M68HC11_3B: howto manager. (line 2048) 11744* BFD_RELOC_M68HC11_HI8: howto manager. (line 2040) 11745* BFD_RELOC_M68HC11_LO16: howto manager. (line 2062) 11746* BFD_RELOC_M68HC11_LO8: howto manager. (line 2044) 11747* BFD_RELOC_M68HC11_PAGE: howto manager. (line 2068) 11748* BFD_RELOC_M68HC11_RL_GROUP: howto manager. (line 2057) 11749* BFD_RELOC_M68HC11_RL_JUMP: howto manager. (line 2051) 11750* BFD_RELOC_M68HC12_10_PCREL: howto manager. (line 2133) 11751* BFD_RELOC_M68HC12_16B: howto manager. (line 2127) 11752* BFD_RELOC_M68HC12_5B: howto manager. (line 2079) 11753* BFD_RELOC_M68HC12_9_PCREL: howto manager. (line 2130) 11754* BFD_RELOC_M68HC12_9B: howto manager. (line 2124) 11755* BFD_RELOC_M68HC12_HI8XG: howto manager. (line 2140) 11756* BFD_RELOC_M68HC12_LO8XG: howto manager. (line 2136) 11757* BFD_RELOC_MACH_O_LOCAL_SECTDIFF: howto manager. (line 2510) 11758* BFD_RELOC_MACH_O_PAIR: howto manager. (line 2513) 11759* BFD_RELOC_MACH_O_SECTDIFF: howto manager. (line 2506) 11760* BFD_RELOC_MACH_O_X86_64_BRANCH32: howto manager. (line 2516) 11761* BFD_RELOC_MACH_O_X86_64_BRANCH8: howto manager. (line 2517) 11762* BFD_RELOC_MACH_O_X86_64_GOT: howto manager. (line 2521) 11763* BFD_RELOC_MACH_O_X86_64_GOT_LOAD: howto manager. (line 2524) 11764* BFD_RELOC_MACH_O_X86_64_PCREL32_1: howto manager. (line 2534) 11765* BFD_RELOC_MACH_O_X86_64_PCREL32_2: howto manager. (line 2537) 11766* BFD_RELOC_MACH_O_X86_64_PCREL32_4: howto manager. (line 2540) 11767* BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32: howto manager. (line 2528) 11768* BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64: howto manager. (line 2531) 11769* BFD_RELOC_MCORE_PCREL_32: howto manager. (line 1510) 11770* BFD_RELOC_MCORE_PCREL_IMM11BY2: howto manager. (line 1508) 11771* BFD_RELOC_MCORE_PCREL_IMM4BY2: howto manager. (line 1509) 11772* BFD_RELOC_MCORE_PCREL_IMM8BY4: howto manager. (line 1507) 11773* BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2: howto manager. (line 1511) 11774* BFD_RELOC_MCORE_RVA: howto manager. (line 1512) 11775* BFD_RELOC_MEP_16: howto manager. (line 1516) 11776* BFD_RELOC_MEP_32: howto manager. (line 1517) 11777* BFD_RELOC_MEP_8: howto manager. (line 1515) 11778* BFD_RELOC_MEP_ADDR24A4: howto manager. (line 1532) 11779* BFD_RELOC_MEP_GNU_VTENTRY: howto manager. (line 1534) 11780* BFD_RELOC_MEP_GNU_VTINHERIT: howto manager. (line 1533) 11781* BFD_RELOC_MEP_GPREL: howto manager. (line 1526) 11782* BFD_RELOC_MEP_HI16S: howto manager. (line 1525) 11783* BFD_RELOC_MEP_HI16U: howto manager. (line 1524) 11784* BFD_RELOC_MEP_LOW16: howto manager. (line 1523) 11785* BFD_RELOC_MEP_PCABS24A2: howto manager. (line 1522) 11786* BFD_RELOC_MEP_PCREL12A2: howto manager. (line 1519) 11787* BFD_RELOC_MEP_PCREL17A2: howto manager. (line 1520) 11788* BFD_RELOC_MEP_PCREL24A2: howto manager. (line 1521) 11789* BFD_RELOC_MEP_PCREL8A2: howto manager. (line 1518) 11790* BFD_RELOC_MEP_TPREL: howto manager. (line 1527) 11791* BFD_RELOC_MEP_TPREL7: howto manager. (line 1528) 11792* BFD_RELOC_MEP_TPREL7A2: howto manager. (line 1529) 11793* BFD_RELOC_MEP_TPREL7A4: howto manager. (line 1530) 11794* BFD_RELOC_MEP_UIMM24: howto manager. (line 1531) 11795* BFD_RELOC_MICROBLAZE_32_GOTOFF: howto manager. (line 2587) 11796* BFD_RELOC_MICROBLAZE_32_LO: howto manager. (line 2543) 11797* BFD_RELOC_MICROBLAZE_32_LO_PCREL: howto manager. (line 2547) 11798* BFD_RELOC_MICROBLAZE_32_ROSDA: howto manager. (line 2551) 11799* BFD_RELOC_MICROBLAZE_32_RWSDA: howto manager. (line 2555) 11800* BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM: howto manager. (line 2559) 11801* BFD_RELOC_MICROBLAZE_64_GOT: howto manager. (line 2573) 11802* BFD_RELOC_MICROBLAZE_64_GOTOFF: howto manager. (line 2582) 11803* BFD_RELOC_MICROBLAZE_64_GOTPC: howto manager. (line 2568) 11804* BFD_RELOC_MICROBLAZE_64_NONE: howto manager. (line 2563) 11805* BFD_RELOC_MICROBLAZE_64_PLT: howto manager. (line 2577) 11806* BFD_RELOC_MICROBLAZE_COPY: howto manager. (line 2591) 11807* BFD_RELOC_MICROMIPS_10_PCREL_S1: howto manager. (line 400) 11808* BFD_RELOC_MICROMIPS_16_PCREL_S1: howto manager. (line 401) 11809* BFD_RELOC_MICROMIPS_7_PCREL_S1: howto manager. (line 399) 11810* BFD_RELOC_MICROMIPS_CALL16: howto manager. (line 413) 11811* BFD_RELOC_MICROMIPS_CALL_HI16: howto manager. (line 419) 11812* BFD_RELOC_MICROMIPS_CALL_LO16: howto manager. (line 421) 11813* BFD_RELOC_MICROMIPS_GOT16: howto manager. (line 411) 11814* BFD_RELOC_MICROMIPS_GOT_DISP: howto manager. (line 429) 11815* BFD_RELOC_MICROMIPS_GOT_HI16: howto manager. (line 415) 11816* BFD_RELOC_MICROMIPS_GOT_LO16: howto manager. (line 417) 11817* BFD_RELOC_MICROMIPS_GOT_OFST: howto manager. (line 427) 11818* BFD_RELOC_MICROMIPS_GOT_PAGE: howto manager. (line 425) 11819* BFD_RELOC_MICROMIPS_GPREL16: howto manager. (line 404) 11820* BFD_RELOC_MICROMIPS_HI16: howto manager. (line 405) 11821* BFD_RELOC_MICROMIPS_HI16_S: howto manager. (line 406) 11822* BFD_RELOC_MICROMIPS_HIGHER: howto manager. (line 438) 11823* BFD_RELOC_MICROMIPS_HIGHEST: howto manager. (line 436) 11824* BFD_RELOC_MICROMIPS_JALR: howto manager. (line 444) 11825* BFD_RELOC_MICROMIPS_JMP: howto manager. (line 339) 11826* BFD_RELOC_MICROMIPS_LITERAL: howto manager. (line 396) 11827* BFD_RELOC_MICROMIPS_LO16: howto manager. (line 407) 11828* BFD_RELOC_MICROMIPS_SCN_DISP: howto manager. (line 440) 11829* BFD_RELOC_MICROMIPS_SUB: howto manager. (line 423) 11830* BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16: howto manager. (line 454) 11831* BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16: howto manager. (line 456) 11832* BFD_RELOC_MICROMIPS_TLS_GD: howto manager. (line 450) 11833* BFD_RELOC_MICROMIPS_TLS_GOTTPREL: howto manager. (line 458) 11834* BFD_RELOC_MICROMIPS_TLS_LDM: howto manager. (line 452) 11835* BFD_RELOC_MICROMIPS_TLS_TPREL_HI16: howto manager. (line 462) 11836* BFD_RELOC_MICROMIPS_TLS_TPREL_LO16: howto manager. (line 464) 11837* BFD_RELOC_MIPS16_CALL16: howto manager. (line 370) 11838* BFD_RELOC_MIPS16_GOT16: howto manager. (line 369) 11839* BFD_RELOC_MIPS16_GPREL: howto manager. (line 345) 11840* BFD_RELOC_MIPS16_HI16: howto manager. (line 374) 11841* BFD_RELOC_MIPS16_HI16_S: howto manager. (line 377) 11842* BFD_RELOC_MIPS16_JMP: howto manager. (line 342) 11843* BFD_RELOC_MIPS16_LO16: howto manager. (line 383) 11844* BFD_RELOC_MIPS16_TLS_DTPREL_HI16: howto manager. (line 388) 11845* BFD_RELOC_MIPS16_TLS_DTPREL_LO16: howto manager. (line 389) 11846* BFD_RELOC_MIPS16_TLS_GD: howto manager. (line 386) 11847* BFD_RELOC_MIPS16_TLS_GOTTPREL: howto manager. (line 390) 11848* BFD_RELOC_MIPS16_TLS_LDM: howto manager. (line 387) 11849* BFD_RELOC_MIPS16_TLS_TPREL_HI16: howto manager. (line 391) 11850* BFD_RELOC_MIPS16_TLS_TPREL_LO16: howto manager. (line 392) 11851* BFD_RELOC_MIPS_CALL16: howto manager. (line 412) 11852* BFD_RELOC_MIPS_CALL_HI16: howto manager. (line 418) 11853* BFD_RELOC_MIPS_CALL_LO16: howto manager. (line 420) 11854* BFD_RELOC_MIPS_COPY: howto manager. (line 467) 11855* BFD_RELOC_MIPS_DELETE: howto manager. (line 434) 11856* BFD_RELOC_MIPS_GOT16: howto manager. (line 410) 11857* BFD_RELOC_MIPS_GOT_DISP: howto manager. (line 428) 11858* BFD_RELOC_MIPS_GOT_HI16: howto manager. (line 414) 11859* BFD_RELOC_MIPS_GOT_LO16: howto manager. (line 416) 11860* BFD_RELOC_MIPS_GOT_OFST: howto manager. (line 426) 11861* BFD_RELOC_MIPS_GOT_PAGE: howto manager. (line 424) 11862* BFD_RELOC_MIPS_HIGHER: howto manager. (line 437) 11863* BFD_RELOC_MIPS_HIGHEST: howto manager. (line 435) 11864* BFD_RELOC_MIPS_INSERT_A: howto manager. (line 432) 11865* BFD_RELOC_MIPS_INSERT_B: howto manager. (line 433) 11866* BFD_RELOC_MIPS_JALR: howto manager. (line 443) 11867* BFD_RELOC_MIPS_JMP: howto manager. (line 338) 11868* BFD_RELOC_MIPS_JUMP_SLOT: howto manager. (line 468) 11869* BFD_RELOC_MIPS_LITERAL: howto manager. (line 395) 11870* BFD_RELOC_MIPS_REL16: howto manager. (line 441) 11871* BFD_RELOC_MIPS_RELGOT: howto manager. (line 442) 11872* BFD_RELOC_MIPS_SCN_DISP: howto manager. (line 439) 11873* BFD_RELOC_MIPS_SHIFT5: howto manager. (line 430) 11874* BFD_RELOC_MIPS_SHIFT6: howto manager. (line 431) 11875* BFD_RELOC_MIPS_SUB: howto manager. (line 422) 11876* BFD_RELOC_MIPS_TLS_DTPMOD32: howto manager. (line 445) 11877* BFD_RELOC_MIPS_TLS_DTPMOD64: howto manager. (line 447) 11878* BFD_RELOC_MIPS_TLS_DTPREL32: howto manager. (line 446) 11879* BFD_RELOC_MIPS_TLS_DTPREL64: howto manager. (line 448) 11880* BFD_RELOC_MIPS_TLS_DTPREL_HI16: howto manager. (line 453) 11881* BFD_RELOC_MIPS_TLS_DTPREL_LO16: howto manager. (line 455) 11882* BFD_RELOC_MIPS_TLS_GD: howto manager. (line 449) 11883* BFD_RELOC_MIPS_TLS_GOTTPREL: howto manager. (line 457) 11884* BFD_RELOC_MIPS_TLS_LDM: howto manager. (line 451) 11885* BFD_RELOC_MIPS_TLS_TPREL32: howto manager. (line 459) 11886* BFD_RELOC_MIPS_TLS_TPREL64: howto manager. (line 460) 11887* BFD_RELOC_MIPS_TLS_TPREL_HI16: howto manager. (line 461) 11888* BFD_RELOC_MIPS_TLS_TPREL_LO16: howto manager. (line 463) 11889* BFD_RELOC_MMIX_ADDR19: howto manager. (line 1563) 11890* BFD_RELOC_MMIX_ADDR27: howto manager. (line 1567) 11891* BFD_RELOC_MMIX_BASE_PLUS_OFFSET: howto manager. (line 1579) 11892* BFD_RELOC_MMIX_CBRANCH: howto manager. (line 1543) 11893* BFD_RELOC_MMIX_CBRANCH_1: howto manager. (line 1545) 11894* BFD_RELOC_MMIX_CBRANCH_2: howto manager. (line 1546) 11895* BFD_RELOC_MMIX_CBRANCH_3: howto manager. (line 1547) 11896* BFD_RELOC_MMIX_CBRANCH_J: howto manager. (line 1544) 11897* BFD_RELOC_MMIX_GETA: howto manager. (line 1537) 11898* BFD_RELOC_MMIX_GETA_1: howto manager. (line 1538) 11899* BFD_RELOC_MMIX_GETA_2: howto manager. (line 1539) 11900* BFD_RELOC_MMIX_GETA_3: howto manager. (line 1540) 11901* BFD_RELOC_MMIX_JMP: howto manager. (line 1557) 11902* BFD_RELOC_MMIX_JMP_1: howto manager. (line 1558) 11903* BFD_RELOC_MMIX_JMP_2: howto manager. (line 1559) 11904* BFD_RELOC_MMIX_JMP_3: howto manager. (line 1560) 11905* BFD_RELOC_MMIX_LOCAL: howto manager. (line 1583) 11906* BFD_RELOC_MMIX_PUSHJ: howto manager. (line 1550) 11907* BFD_RELOC_MMIX_PUSHJ_1: howto manager. (line 1551) 11908* BFD_RELOC_MMIX_PUSHJ_2: howto manager. (line 1552) 11909* BFD_RELOC_MMIX_PUSHJ_3: howto manager. (line 1553) 11910* BFD_RELOC_MMIX_PUSHJ_STUBBABLE: howto manager. (line 1554) 11911* BFD_RELOC_MMIX_REG: howto manager. (line 1575) 11912* BFD_RELOC_MMIX_REG_OR_BYTE: howto manager. (line 1571) 11913* BFD_RELOC_MN10300_16_PCREL: howto manager. (line 566) 11914* BFD_RELOC_MN10300_32_PCREL: howto manager. (line 562) 11915* BFD_RELOC_MN10300_ALIGN: howto manager. (line 547) 11916* BFD_RELOC_MN10300_COPY: howto manager. (line 530) 11917* BFD_RELOC_MN10300_GLOB_DAT: howto manager. (line 533) 11918* BFD_RELOC_MN10300_GOT16: howto manager. (line 526) 11919* BFD_RELOC_MN10300_GOT24: howto manager. (line 522) 11920* BFD_RELOC_MN10300_GOT32: howto manager. (line 518) 11921* BFD_RELOC_MN10300_GOTOFF24: howto manager. (line 515) 11922* BFD_RELOC_MN10300_JMP_SLOT: howto manager. (line 536) 11923* BFD_RELOC_MN10300_RELATIVE: howto manager. (line 539) 11924* BFD_RELOC_MN10300_SYM_DIFF: howto manager. (line 542) 11925* BFD_RELOC_MN10300_TLS_DTPMOD: howto manager. (line 557) 11926* BFD_RELOC_MN10300_TLS_DTPOFF: howto manager. (line 558) 11927* BFD_RELOC_MN10300_TLS_GD: howto manager. (line 551) 11928* BFD_RELOC_MN10300_TLS_GOTIE: howto manager. (line 554) 11929* BFD_RELOC_MN10300_TLS_IE: howto manager. (line 555) 11930* BFD_RELOC_MN10300_TLS_LD: howto manager. (line 552) 11931* BFD_RELOC_MN10300_TLS_LDO: howto manager. (line 553) 11932* BFD_RELOC_MN10300_TLS_LE: howto manager. (line 556) 11933* BFD_RELOC_MN10300_TLS_TPOFF: howto manager. (line 559) 11934* BFD_RELOC_MOXIE_10_PCREL: howto manager. (line 471) 11935* BFD_RELOC_MSP430_10_PCREL: howto manager. (line 2381) 11936* BFD_RELOC_MSP430_16: howto manager. (line 2383) 11937* BFD_RELOC_MSP430_16_BYTE: howto manager. (line 2385) 11938* BFD_RELOC_MSP430_16_PCREL: howto manager. (line 2382) 11939* BFD_RELOC_MSP430_16_PCREL_BYTE: howto manager. (line 2384) 11940* BFD_RELOC_MSP430_2X_PCREL: howto manager. (line 2386) 11941* BFD_RELOC_MSP430_RL_PCREL: howto manager. (line 2387) 11942* BFD_RELOC_MT_GNU_VTENTRY: howto manager. (line 2375) 11943* BFD_RELOC_MT_GNU_VTINHERIT: howto manager. (line 2372) 11944* BFD_RELOC_MT_HI16: howto manager. (line 2366) 11945* BFD_RELOC_MT_LO16: howto manager. (line 2369) 11946* BFD_RELOC_MT_PC16: howto manager. (line 2363) 11947* BFD_RELOC_MT_PCINSN8: howto manager. (line 2378) 11948* BFD_RELOC_NONE: howto manager. (line 131) 11949* BFD_RELOC_NS32K_DISP_16: howto manager. (line 632) 11950* BFD_RELOC_NS32K_DISP_16_PCREL: howto manager. (line 635) 11951* BFD_RELOC_NS32K_DISP_32: howto manager. (line 633) 11952* BFD_RELOC_NS32K_DISP_32_PCREL: howto manager. (line 636) 11953* BFD_RELOC_NS32K_DISP_8: howto manager. (line 631) 11954* BFD_RELOC_NS32K_DISP_8_PCREL: howto manager. (line 634) 11955* BFD_RELOC_NS32K_IMM_16: howto manager. (line 626) 11956* BFD_RELOC_NS32K_IMM_16_PCREL: howto manager. (line 629) 11957* BFD_RELOC_NS32K_IMM_32: howto manager. (line 627) 11958* BFD_RELOC_NS32K_IMM_32_PCREL: howto manager. (line 630) 11959* BFD_RELOC_NS32K_IMM_8: howto manager. (line 625) 11960* BFD_RELOC_NS32K_IMM_8_PCREL: howto manager. (line 628) 11961* BFD_RELOC_OPENRISC_ABS_26: howto manager. (line 2332) 11962* BFD_RELOC_OPENRISC_REL_26: howto manager. (line 2333) 11963* BFD_RELOC_PDP11_DISP_6_PCREL: howto manager. (line 640) 11964* BFD_RELOC_PDP11_DISP_8_PCREL: howto manager. (line 639) 11965* BFD_RELOC_PJ_CODE_DIR16: howto manager. (line 645) 11966* BFD_RELOC_PJ_CODE_DIR32: howto manager. (line 646) 11967* BFD_RELOC_PJ_CODE_HI16: howto manager. (line 643) 11968* BFD_RELOC_PJ_CODE_LO16: howto manager. (line 644) 11969* BFD_RELOC_PJ_CODE_REL16: howto manager. (line 647) 11970* BFD_RELOC_PJ_CODE_REL32: howto manager. (line 648) 11971* BFD_RELOC_PPC64_ADDR16_DS: howto manager. (line 710) 11972* BFD_RELOC_PPC64_ADDR16_LO_DS: howto manager. (line 711) 11973* BFD_RELOC_PPC64_DTPREL16_DS: howto manager. (line 759) 11974* BFD_RELOC_PPC64_DTPREL16_HIGHER: howto manager. (line 761) 11975* BFD_RELOC_PPC64_DTPREL16_HIGHERA: howto manager. (line 762) 11976* BFD_RELOC_PPC64_DTPREL16_HIGHEST: howto manager. (line 763) 11977* BFD_RELOC_PPC64_DTPREL16_HIGHESTA: howto manager. (line 764) 11978* BFD_RELOC_PPC64_DTPREL16_LO_DS: howto manager. (line 760) 11979* BFD_RELOC_PPC64_GOT16_DS: howto manager. (line 712) 11980* BFD_RELOC_PPC64_GOT16_LO_DS: howto manager. (line 713) 11981* BFD_RELOC_PPC64_HIGHER: howto manager. (line 698) 11982* BFD_RELOC_PPC64_HIGHER_S: howto manager. (line 699) 11983* BFD_RELOC_PPC64_HIGHEST: howto manager. (line 700) 11984* BFD_RELOC_PPC64_HIGHEST_S: howto manager. (line 701) 11985* BFD_RELOC_PPC64_PLT16_LO_DS: howto manager. (line 714) 11986* BFD_RELOC_PPC64_PLTGOT16: howto manager. (line 706) 11987* BFD_RELOC_PPC64_PLTGOT16_DS: howto manager. (line 719) 11988* BFD_RELOC_PPC64_PLTGOT16_HA: howto manager. (line 709) 11989* BFD_RELOC_PPC64_PLTGOT16_HI: howto manager. (line 708) 11990* BFD_RELOC_PPC64_PLTGOT16_LO: howto manager. (line 707) 11991* BFD_RELOC_PPC64_PLTGOT16_LO_DS: howto manager. (line 720) 11992* BFD_RELOC_PPC64_SECTOFF_DS: howto manager. (line 715) 11993* BFD_RELOC_PPC64_SECTOFF_LO_DS: howto manager. (line 716) 11994* BFD_RELOC_PPC64_TOC: howto manager. (line 705) 11995* BFD_RELOC_PPC64_TOC16_DS: howto manager. (line 717) 11996* BFD_RELOC_PPC64_TOC16_HA: howto manager. (line 704) 11997* BFD_RELOC_PPC64_TOC16_HI: howto manager. (line 703) 11998* BFD_RELOC_PPC64_TOC16_LO: howto manager. (line 702) 11999* BFD_RELOC_PPC64_TOC16_LO_DS: howto manager. (line 718) 12000* BFD_RELOC_PPC64_TPREL16_DS: howto manager. (line 753) 12001* BFD_RELOC_PPC64_TPREL16_HIGHER: howto manager. (line 755) 12002* BFD_RELOC_PPC64_TPREL16_HIGHERA: howto manager. (line 756) 12003* BFD_RELOC_PPC64_TPREL16_HIGHEST: howto manager. (line 757) 12004* BFD_RELOC_PPC64_TPREL16_HIGHESTA: howto manager. (line 758) 12005* BFD_RELOC_PPC64_TPREL16_LO_DS: howto manager. (line 754) 12006* BFD_RELOC_PPC_B16: howto manager. (line 654) 12007* BFD_RELOC_PPC_B16_BRNTAKEN: howto manager. (line 656) 12008* BFD_RELOC_PPC_B16_BRTAKEN: howto manager. (line 655) 12009* BFD_RELOC_PPC_B26: howto manager. (line 651) 12010* BFD_RELOC_PPC_BA16: howto manager. (line 657) 12011* BFD_RELOC_PPC_BA16_BRNTAKEN: howto manager. (line 659) 12012* BFD_RELOC_PPC_BA16_BRTAKEN: howto manager. (line 658) 12013* BFD_RELOC_PPC_BA26: howto manager. (line 652) 12014* BFD_RELOC_PPC_COPY: howto manager. (line 660) 12015* BFD_RELOC_PPC_DTPMOD: howto manager. (line 726) 12016* BFD_RELOC_PPC_DTPREL: howto manager. (line 736) 12017* BFD_RELOC_PPC_DTPREL16: howto manager. (line 732) 12018* BFD_RELOC_PPC_DTPREL16_HA: howto manager. (line 735) 12019* BFD_RELOC_PPC_DTPREL16_HI: howto manager. (line 734) 12020* BFD_RELOC_PPC_DTPREL16_LO: howto manager. (line 733) 12021* BFD_RELOC_PPC_EMB_BIT_FLD: howto manager. (line 679) 12022* BFD_RELOC_PPC_EMB_MRKREF: howto manager. (line 674) 12023* BFD_RELOC_PPC_EMB_NADDR16: howto manager. (line 666) 12024* BFD_RELOC_PPC_EMB_NADDR16_HA: howto manager. (line 669) 12025* BFD_RELOC_PPC_EMB_NADDR16_HI: howto manager. (line 668) 12026* BFD_RELOC_PPC_EMB_NADDR16_LO: howto manager. (line 667) 12027* BFD_RELOC_PPC_EMB_NADDR32: howto manager. (line 665) 12028* BFD_RELOC_PPC_EMB_RELSDA: howto manager. (line 680) 12029* BFD_RELOC_PPC_EMB_RELSEC16: howto manager. (line 675) 12030* BFD_RELOC_PPC_EMB_RELST_HA: howto manager. (line 678) 12031* BFD_RELOC_PPC_EMB_RELST_HI: howto manager. (line 677) 12032* BFD_RELOC_PPC_EMB_RELST_LO: howto manager. (line 676) 12033* BFD_RELOC_PPC_EMB_SDA21: howto manager. (line 673) 12034* BFD_RELOC_PPC_EMB_SDA2I16: howto manager. (line 671) 12035* BFD_RELOC_PPC_EMB_SDA2REL: howto manager. (line 672) 12036* BFD_RELOC_PPC_EMB_SDAI16: howto manager. (line 670) 12037* BFD_RELOC_PPC_GLOB_DAT: howto manager. (line 661) 12038* BFD_RELOC_PPC_GOT_DTPREL16: howto manager. (line 749) 12039* BFD_RELOC_PPC_GOT_DTPREL16_HA: howto manager. (line 752) 12040* BFD_RELOC_PPC_GOT_DTPREL16_HI: howto manager. (line 751) 12041* BFD_RELOC_PPC_GOT_DTPREL16_LO: howto manager. (line 750) 12042* BFD_RELOC_PPC_GOT_TLSGD16: howto manager. (line 737) 12043* BFD_RELOC_PPC_GOT_TLSGD16_HA: howto manager. (line 740) 12044* BFD_RELOC_PPC_GOT_TLSGD16_HI: howto manager. (line 739) 12045* BFD_RELOC_PPC_GOT_TLSGD16_LO: howto manager. (line 738) 12046* BFD_RELOC_PPC_GOT_TLSLD16: howto manager. (line 741) 12047* BFD_RELOC_PPC_GOT_TLSLD16_HA: howto manager. (line 744) 12048* BFD_RELOC_PPC_GOT_TLSLD16_HI: howto manager. (line 743) 12049* BFD_RELOC_PPC_GOT_TLSLD16_LO: howto manager. (line 742) 12050* BFD_RELOC_PPC_GOT_TPREL16: howto manager. (line 745) 12051* BFD_RELOC_PPC_GOT_TPREL16_HA: howto manager. (line 748) 12052* BFD_RELOC_PPC_GOT_TPREL16_HI: howto manager. (line 747) 12053* BFD_RELOC_PPC_GOT_TPREL16_LO: howto manager. (line 746) 12054* BFD_RELOC_PPC_JMP_SLOT: howto manager. (line 662) 12055* BFD_RELOC_PPC_LOCAL24PC: howto manager. (line 664) 12056* BFD_RELOC_PPC_RELATIVE: howto manager. (line 663) 12057* BFD_RELOC_PPC_TLS: howto manager. (line 723) 12058* BFD_RELOC_PPC_TLSGD: howto manager. (line 724) 12059* BFD_RELOC_PPC_TLSLD: howto manager. (line 725) 12060* BFD_RELOC_PPC_TOC16: howto manager. (line 653) 12061* BFD_RELOC_PPC_TPREL: howto manager. (line 731) 12062* BFD_RELOC_PPC_TPREL16: howto manager. (line 727) 12063* BFD_RELOC_PPC_TPREL16_HA: howto manager. (line 730) 12064* BFD_RELOC_PPC_TPREL16_HI: howto manager. (line 729) 12065* BFD_RELOC_PPC_TPREL16_LO: howto manager. (line 728) 12066* BFD_RELOC_PPC_VLE_HA16A: howto manager. (line 688) 12067* BFD_RELOC_PPC_VLE_HA16D: howto manager. (line 689) 12068* BFD_RELOC_PPC_VLE_HI16A: howto manager. (line 686) 12069* BFD_RELOC_PPC_VLE_HI16D: howto manager. (line 687) 12070* BFD_RELOC_PPC_VLE_LO16A: howto manager. (line 684) 12071* BFD_RELOC_PPC_VLE_LO16D: howto manager. (line 685) 12072* BFD_RELOC_PPC_VLE_REL15: howto manager. (line 682) 12073* BFD_RELOC_PPC_VLE_REL24: howto manager. (line 683) 12074* BFD_RELOC_PPC_VLE_REL8: howto manager. (line 681) 12075* BFD_RELOC_PPC_VLE_SDA21: howto manager. (line 690) 12076* BFD_RELOC_PPC_VLE_SDA21_LO: howto manager. (line 691) 12077* BFD_RELOC_PPC_VLE_SDAREL_HA16A: howto manager. (line 696) 12078* BFD_RELOC_PPC_VLE_SDAREL_HA16D: howto manager. (line 697) 12079* BFD_RELOC_PPC_VLE_SDAREL_HI16A: howto manager. (line 694) 12080* BFD_RELOC_PPC_VLE_SDAREL_HI16D: howto manager. (line 695) 12081* BFD_RELOC_PPC_VLE_SDAREL_LO16A: howto manager. (line 692) 12082* BFD_RELOC_PPC_VLE_SDAREL_LO16D: howto manager. (line 693) 12083* BFD_RELOC_RELC: howto manager. (line 2349) 12084* BFD_RELOC_RL78_16_OP: howto manager. (line 1706) 12085* BFD_RELOC_RL78_16U: howto manager. (line 1710) 12086* BFD_RELOC_RL78_24_OP: howto manager. (line 1707) 12087* BFD_RELOC_RL78_24U: howto manager. (line 1711) 12088* BFD_RELOC_RL78_32_OP: howto manager. (line 1708) 12089* BFD_RELOC_RL78_8U: howto manager. (line 1709) 12090* BFD_RELOC_RL78_ABS16: howto manager. (line 1723) 12091* BFD_RELOC_RL78_ABS16_REV: howto manager. (line 1724) 12092* BFD_RELOC_RL78_ABS16U: howto manager. (line 1727) 12093* BFD_RELOC_RL78_ABS16UL: howto manager. (line 1729) 12094* BFD_RELOC_RL78_ABS16UW: howto manager. (line 1728) 12095* BFD_RELOC_RL78_ABS32: howto manager. (line 1725) 12096* BFD_RELOC_RL78_ABS32_REV: howto manager. (line 1726) 12097* BFD_RELOC_RL78_ABS8: howto manager. (line 1722) 12098* BFD_RELOC_RL78_DIFF: howto manager. (line 1713) 12099* BFD_RELOC_RL78_DIR3U_PCREL: howto manager. (line 1712) 12100* BFD_RELOC_RL78_GPRELB: howto manager. (line 1714) 12101* BFD_RELOC_RL78_GPRELL: howto manager. (line 1716) 12102* BFD_RELOC_RL78_GPRELW: howto manager. (line 1715) 12103* BFD_RELOC_RL78_HI16: howto manager. (line 1731) 12104* BFD_RELOC_RL78_HI8: howto manager. (line 1732) 12105* BFD_RELOC_RL78_LO16: howto manager. (line 1733) 12106* BFD_RELOC_RL78_NEG16: howto manager. (line 1703) 12107* BFD_RELOC_RL78_NEG24: howto manager. (line 1704) 12108* BFD_RELOC_RL78_NEG32: howto manager. (line 1705) 12109* BFD_RELOC_RL78_NEG8: howto manager. (line 1702) 12110* BFD_RELOC_RL78_OP_AND: howto manager. (line 1720) 12111* BFD_RELOC_RL78_OP_NEG: howto manager. (line 1719) 12112* BFD_RELOC_RL78_OP_SHRA: howto manager. (line 1721) 12113* BFD_RELOC_RL78_OP_SUBTRACT: howto manager. (line 1718) 12114* BFD_RELOC_RL78_RELAX: howto manager. (line 1730) 12115* BFD_RELOC_RL78_SYM: howto manager. (line 1717) 12116* BFD_RELOC_RVA: howto manager. (line 100) 12117* BFD_RELOC_RX_16_OP: howto manager. (line 1740) 12118* BFD_RELOC_RX_16U: howto manager. (line 1744) 12119* BFD_RELOC_RX_24_OP: howto manager. (line 1741) 12120* BFD_RELOC_RX_24U: howto manager. (line 1745) 12121* BFD_RELOC_RX_32_OP: howto manager. (line 1742) 12122* BFD_RELOC_RX_8U: howto manager. (line 1743) 12123* BFD_RELOC_RX_ABS16: howto manager. (line 1755) 12124* BFD_RELOC_RX_ABS16_REV: howto manager. (line 1756) 12125* BFD_RELOC_RX_ABS16U: howto manager. (line 1759) 12126* BFD_RELOC_RX_ABS16UL: howto manager. (line 1761) 12127* BFD_RELOC_RX_ABS16UW: howto manager. (line 1760) 12128* BFD_RELOC_RX_ABS32: howto manager. (line 1757) 12129* BFD_RELOC_RX_ABS32_REV: howto manager. (line 1758) 12130* BFD_RELOC_RX_ABS8: howto manager. (line 1754) 12131* BFD_RELOC_RX_DIFF: howto manager. (line 1747) 12132* BFD_RELOC_RX_DIR3U_PCREL: howto manager. (line 1746) 12133* BFD_RELOC_RX_GPRELB: howto manager. (line 1748) 12134* BFD_RELOC_RX_GPRELL: howto manager. (line 1750) 12135* BFD_RELOC_RX_GPRELW: howto manager. (line 1749) 12136* BFD_RELOC_RX_NEG16: howto manager. (line 1737) 12137* BFD_RELOC_RX_NEG24: howto manager. (line 1738) 12138* BFD_RELOC_RX_NEG32: howto manager. (line 1739) 12139* BFD_RELOC_RX_NEG8: howto manager. (line 1736) 12140* BFD_RELOC_RX_OP_NEG: howto manager. (line 1753) 12141* BFD_RELOC_RX_OP_SUBTRACT: howto manager. (line 1752) 12142* BFD_RELOC_RX_RELAX: howto manager. (line 1762) 12143* BFD_RELOC_RX_SYM: howto manager. (line 1751) 12144* BFD_RELOC_SCORE16_BRANCH: howto manager. (line 1893) 12145* BFD_RELOC_SCORE16_JMP: howto manager. (line 1890) 12146* BFD_RELOC_SCORE_BCMP: howto manager. (line 1896) 12147* BFD_RELOC_SCORE_BRANCH: howto manager. (line 1881) 12148* BFD_RELOC_SCORE_CALL15: howto manager. (line 1901) 12149* BFD_RELOC_SCORE_DUMMY2: howto manager. (line 1877) 12150* BFD_RELOC_SCORE_DUMMY_HI16: howto manager. (line 1902) 12151* BFD_RELOC_SCORE_GOT15: howto manager. (line 1899) 12152* BFD_RELOC_SCORE_GOT_LO16: howto manager. (line 1900) 12153* BFD_RELOC_SCORE_GPREL15: howto manager. (line 1874) 12154* BFD_RELOC_SCORE_IMM30: howto manager. (line 1884) 12155* BFD_RELOC_SCORE_IMM32: howto manager. (line 1887) 12156* BFD_RELOC_SCORE_JMP: howto manager. (line 1878) 12157* BFD_RELOC_SH_ALIGN: howto manager. (line 958) 12158* BFD_RELOC_SH_CODE: howto manager. (line 959) 12159* BFD_RELOC_SH_COPY: howto manager. (line 964) 12160* BFD_RELOC_SH_COPY64: howto manager. (line 989) 12161* BFD_RELOC_SH_COUNT: howto manager. (line 957) 12162* BFD_RELOC_SH_DATA: howto manager. (line 960) 12163* BFD_RELOC_SH_DISP12: howto manager. (line 940) 12164* BFD_RELOC_SH_DISP12BY2: howto manager. (line 941) 12165* BFD_RELOC_SH_DISP12BY4: howto manager. (line 942) 12166* BFD_RELOC_SH_DISP12BY8: howto manager. (line 943) 12167* BFD_RELOC_SH_DISP20: howto manager. (line 944) 12168* BFD_RELOC_SH_DISP20BY8: howto manager. (line 945) 12169* BFD_RELOC_SH_FUNCDESC: howto manager. (line 1032) 12170* BFD_RELOC_SH_GLOB_DAT: howto manager. (line 965) 12171* BFD_RELOC_SH_GLOB_DAT64: howto manager. (line 990) 12172* BFD_RELOC_SH_GOT10BY4: howto manager. (line 993) 12173* BFD_RELOC_SH_GOT10BY8: howto manager. (line 994) 12174* BFD_RELOC_SH_GOT20: howto manager. (line 1026) 12175* BFD_RELOC_SH_GOT_HI16: howto manager. (line 972) 12176* BFD_RELOC_SH_GOT_LOW16: howto manager. (line 969) 12177* BFD_RELOC_SH_GOT_MEDHI16: howto manager. (line 971) 12178* BFD_RELOC_SH_GOT_MEDLOW16: howto manager. (line 970) 12179* BFD_RELOC_SH_GOTFUNCDESC: howto manager. (line 1028) 12180* BFD_RELOC_SH_GOTFUNCDESC20: howto manager. (line 1029) 12181* BFD_RELOC_SH_GOTOFF20: howto manager. (line 1027) 12182* BFD_RELOC_SH_GOTOFF_HI16: howto manager. (line 984) 12183* BFD_RELOC_SH_GOTOFF_LOW16: howto manager. (line 981) 12184* BFD_RELOC_SH_GOTOFF_MEDHI16: howto manager. (line 983) 12185* BFD_RELOC_SH_GOTOFF_MEDLOW16: howto manager. (line 982) 12186* BFD_RELOC_SH_GOTOFFFUNCDESC: howto manager. (line 1030) 12187* BFD_RELOC_SH_GOTOFFFUNCDESC20: howto manager. (line 1031) 12188* BFD_RELOC_SH_GOTPC: howto manager. (line 968) 12189* BFD_RELOC_SH_GOTPC_HI16: howto manager. (line 988) 12190* BFD_RELOC_SH_GOTPC_LOW16: howto manager. (line 985) 12191* BFD_RELOC_SH_GOTPC_MEDHI16: howto manager. (line 987) 12192* BFD_RELOC_SH_GOTPC_MEDLOW16: howto manager. (line 986) 12193* BFD_RELOC_SH_GOTPLT10BY4: howto manager. (line 995) 12194* BFD_RELOC_SH_GOTPLT10BY8: howto manager. (line 996) 12195* BFD_RELOC_SH_GOTPLT32: howto manager. (line 997) 12196* BFD_RELOC_SH_GOTPLT_HI16: howto manager. (line 976) 12197* BFD_RELOC_SH_GOTPLT_LOW16: howto manager. (line 973) 12198* BFD_RELOC_SH_GOTPLT_MEDHI16: howto manager. (line 975) 12199* BFD_RELOC_SH_GOTPLT_MEDLOW16: howto manager. (line 974) 12200* BFD_RELOC_SH_IMM3: howto manager. (line 938) 12201* BFD_RELOC_SH_IMM3U: howto manager. (line 939) 12202* BFD_RELOC_SH_IMM4: howto manager. (line 946) 12203* BFD_RELOC_SH_IMM4BY2: howto manager. (line 947) 12204* BFD_RELOC_SH_IMM4BY4: howto manager. (line 948) 12205* BFD_RELOC_SH_IMM8: howto manager. (line 949) 12206* BFD_RELOC_SH_IMM8BY2: howto manager. (line 950) 12207* BFD_RELOC_SH_IMM8BY4: howto manager. (line 951) 12208* BFD_RELOC_SH_IMM_HI16: howto manager. (line 1015) 12209* BFD_RELOC_SH_IMM_HI16_PCREL: howto manager. (line 1016) 12210* BFD_RELOC_SH_IMM_LOW16: howto manager. (line 1009) 12211* BFD_RELOC_SH_IMM_LOW16_PCREL: howto manager. (line 1010) 12212* BFD_RELOC_SH_IMM_MEDHI16: howto manager. (line 1013) 12213* BFD_RELOC_SH_IMM_MEDHI16_PCREL: howto manager. (line 1014) 12214* BFD_RELOC_SH_IMM_MEDLOW16: howto manager. (line 1011) 12215* BFD_RELOC_SH_IMM_MEDLOW16_PCREL: howto manager. (line 1012) 12216* BFD_RELOC_SH_IMMS10: howto manager. (line 1003) 12217* BFD_RELOC_SH_IMMS10BY2: howto manager. (line 1004) 12218* BFD_RELOC_SH_IMMS10BY4: howto manager. (line 1005) 12219* BFD_RELOC_SH_IMMS10BY8: howto manager. (line 1006) 12220* BFD_RELOC_SH_IMMS16: howto manager. (line 1007) 12221* BFD_RELOC_SH_IMMS6: howto manager. (line 1000) 12222* BFD_RELOC_SH_IMMS6BY32: howto manager. (line 1001) 12223* BFD_RELOC_SH_IMMU16: howto manager. (line 1008) 12224* BFD_RELOC_SH_IMMU5: howto manager. (line 999) 12225* BFD_RELOC_SH_IMMU6: howto manager. (line 1002) 12226* BFD_RELOC_SH_JMP_SLOT: howto manager. (line 966) 12227* BFD_RELOC_SH_JMP_SLOT64: howto manager. (line 991) 12228* BFD_RELOC_SH_LABEL: howto manager. (line 961) 12229* BFD_RELOC_SH_LOOP_END: howto manager. (line 963) 12230* BFD_RELOC_SH_LOOP_START: howto manager. (line 962) 12231* BFD_RELOC_SH_PCDISP12BY2: howto manager. (line 937) 12232* BFD_RELOC_SH_PCDISP8BY2: howto manager. (line 936) 12233* BFD_RELOC_SH_PCRELIMM8BY2: howto manager. (line 952) 12234* BFD_RELOC_SH_PCRELIMM8BY4: howto manager. (line 953) 12235* BFD_RELOC_SH_PLT_HI16: howto manager. (line 980) 12236* BFD_RELOC_SH_PLT_LOW16: howto manager. (line 977) 12237* BFD_RELOC_SH_PLT_MEDHI16: howto manager. (line 979) 12238* BFD_RELOC_SH_PLT_MEDLOW16: howto manager. (line 978) 12239* BFD_RELOC_SH_PT_16: howto manager. (line 1017) 12240* BFD_RELOC_SH_RELATIVE: howto manager. (line 967) 12241* BFD_RELOC_SH_RELATIVE64: howto manager. (line 992) 12242* BFD_RELOC_SH_SHMEDIA_CODE: howto manager. (line 998) 12243* BFD_RELOC_SH_SWITCH16: howto manager. (line 954) 12244* BFD_RELOC_SH_SWITCH32: howto manager. (line 955) 12245* BFD_RELOC_SH_TLS_DTPMOD32: howto manager. (line 1023) 12246* BFD_RELOC_SH_TLS_DTPOFF32: howto manager. (line 1024) 12247* BFD_RELOC_SH_TLS_GD_32: howto manager. (line 1018) 12248* BFD_RELOC_SH_TLS_IE_32: howto manager. (line 1021) 12249* BFD_RELOC_SH_TLS_LD_32: howto manager. (line 1019) 12250* BFD_RELOC_SH_TLS_LDO_32: howto manager. (line 1020) 12251* BFD_RELOC_SH_TLS_LE_32: howto manager. (line 1022) 12252* BFD_RELOC_SH_TLS_TPOFF32: howto manager. (line 1025) 12253* BFD_RELOC_SH_USES: howto manager. (line 956) 12254* BFD_RELOC_SPARC13: howto manager. (line 134) 12255* BFD_RELOC_SPARC22: howto manager. (line 133) 12256* BFD_RELOC_SPARC_10: howto manager. (line 163) 12257* BFD_RELOC_SPARC_11: howto manager. (line 164) 12258* BFD_RELOC_SPARC_5: howto manager. (line 176) 12259* BFD_RELOC_SPARC_6: howto manager. (line 175) 12260* BFD_RELOC_SPARC_64: howto manager. (line 162) 12261* BFD_RELOC_SPARC_7: howto manager. (line 174) 12262* BFD_RELOC_SPARC_BASE13: howto manager. (line 158) 12263* BFD_RELOC_SPARC_BASE22: howto manager. (line 159) 12264* BFD_RELOC_SPARC_COPY: howto manager. (line 141) 12265* BFD_RELOC_SPARC_DISP64: howto manager. (line 177) 12266* BFD_RELOC_SPARC_GLOB_DAT: howto manager. (line 142) 12267* BFD_RELOC_SPARC_GOT10: howto manager. (line 135) 12268* BFD_RELOC_SPARC_GOT13: howto manager. (line 136) 12269* BFD_RELOC_SPARC_GOT22: howto manager. (line 137) 12270* BFD_RELOC_SPARC_GOTDATA_HIX22: howto manager. (line 148) 12271* BFD_RELOC_SPARC_GOTDATA_LOX10: howto manager. (line 149) 12272* BFD_RELOC_SPARC_GOTDATA_OP: howto manager. (line 152) 12273* BFD_RELOC_SPARC_GOTDATA_OP_HIX22: howto manager. (line 150) 12274* BFD_RELOC_SPARC_GOTDATA_OP_LOX10: howto manager. (line 151) 12275* BFD_RELOC_SPARC_H34: howto manager. (line 186) 12276* BFD_RELOC_SPARC_H44: howto manager. (line 182) 12277* BFD_RELOC_SPARC_HH22: howto manager. (line 166) 12278* BFD_RELOC_SPARC_HIX22: howto manager. (line 180) 12279* BFD_RELOC_SPARC_HM10: howto manager. (line 167) 12280* BFD_RELOC_SPARC_IRELATIVE: howto manager. (line 154) 12281* BFD_RELOC_SPARC_JMP_IREL: howto manager. (line 153) 12282* BFD_RELOC_SPARC_JMP_SLOT: howto manager. (line 143) 12283* BFD_RELOC_SPARC_L44: howto manager. (line 184) 12284* BFD_RELOC_SPARC_LM22: howto manager. (line 168) 12285* BFD_RELOC_SPARC_LOX10: howto manager. (line 181) 12286* BFD_RELOC_SPARC_M44: howto manager. (line 183) 12287* BFD_RELOC_SPARC_OLO10: howto manager. (line 165) 12288* BFD_RELOC_SPARC_PC10: howto manager. (line 138) 12289* BFD_RELOC_SPARC_PC22: howto manager. (line 139) 12290* BFD_RELOC_SPARC_PC_HH22: howto manager. (line 169) 12291* BFD_RELOC_SPARC_PC_HM10: howto manager. (line 170) 12292* BFD_RELOC_SPARC_PC_LM22: howto manager. (line 171) 12293* BFD_RELOC_SPARC_PLT32: howto manager. (line 178) 12294* BFD_RELOC_SPARC_PLT64: howto manager. (line 179) 12295* BFD_RELOC_SPARC_REGISTER: howto manager. (line 185) 12296* BFD_RELOC_SPARC_RELATIVE: howto manager. (line 144) 12297* BFD_RELOC_SPARC_REV32: howto manager. (line 192) 12298* BFD_RELOC_SPARC_SIZE32: howto manager. (line 187) 12299* BFD_RELOC_SPARC_SIZE64: howto manager. (line 188) 12300* BFD_RELOC_SPARC_TLS_DTPMOD32: howto manager. (line 213) 12301* BFD_RELOC_SPARC_TLS_DTPMOD64: howto manager. (line 214) 12302* BFD_RELOC_SPARC_TLS_DTPOFF32: howto manager. (line 215) 12303* BFD_RELOC_SPARC_TLS_DTPOFF64: howto manager. (line 216) 12304* BFD_RELOC_SPARC_TLS_GD_ADD: howto manager. (line 197) 12305* BFD_RELOC_SPARC_TLS_GD_CALL: howto manager. (line 198) 12306* BFD_RELOC_SPARC_TLS_GD_HI22: howto manager. (line 195) 12307* BFD_RELOC_SPARC_TLS_GD_LO10: howto manager. (line 196) 12308* BFD_RELOC_SPARC_TLS_IE_ADD: howto manager. (line 210) 12309* BFD_RELOC_SPARC_TLS_IE_HI22: howto manager. (line 206) 12310* BFD_RELOC_SPARC_TLS_IE_LD: howto manager. (line 208) 12311* BFD_RELOC_SPARC_TLS_IE_LDX: howto manager. (line 209) 12312* BFD_RELOC_SPARC_TLS_IE_LO10: howto manager. (line 207) 12313* BFD_RELOC_SPARC_TLS_LDM_ADD: howto manager. (line 201) 12314* BFD_RELOC_SPARC_TLS_LDM_CALL: howto manager. (line 202) 12315* BFD_RELOC_SPARC_TLS_LDM_HI22: howto manager. (line 199) 12316* BFD_RELOC_SPARC_TLS_LDM_LO10: howto manager. (line 200) 12317* BFD_RELOC_SPARC_TLS_LDO_ADD: howto manager. (line 205) 12318* BFD_RELOC_SPARC_TLS_LDO_HIX22: howto manager. (line 203) 12319* BFD_RELOC_SPARC_TLS_LDO_LOX10: howto manager. (line 204) 12320* BFD_RELOC_SPARC_TLS_LE_HIX22: howto manager. (line 211) 12321* BFD_RELOC_SPARC_TLS_LE_LOX10: howto manager. (line 212) 12322* BFD_RELOC_SPARC_TLS_TPOFF32: howto manager. (line 217) 12323* BFD_RELOC_SPARC_TLS_TPOFF64: howto manager. (line 218) 12324* BFD_RELOC_SPARC_UA16: howto manager. (line 145) 12325* BFD_RELOC_SPARC_UA32: howto manager. (line 146) 12326* BFD_RELOC_SPARC_UA64: howto manager. (line 147) 12327* BFD_RELOC_SPARC_WDISP10: howto manager. (line 189) 12328* BFD_RELOC_SPARC_WDISP16: howto manager. (line 172) 12329* BFD_RELOC_SPARC_WDISP19: howto manager. (line 173) 12330* BFD_RELOC_SPARC_WDISP22: howto manager. (line 132) 12331* BFD_RELOC_SPARC_WPLT30: howto manager. (line 140) 12332* BFD_RELOC_SPU_ADD_PIC: howto manager. (line 235) 12333* BFD_RELOC_SPU_HI16: howto manager. (line 232) 12334* BFD_RELOC_SPU_IMM10: howto manager. (line 223) 12335* BFD_RELOC_SPU_IMM10W: howto manager. (line 224) 12336* BFD_RELOC_SPU_IMM16: howto manager. (line 225) 12337* BFD_RELOC_SPU_IMM16W: howto manager. (line 226) 12338* BFD_RELOC_SPU_IMM18: howto manager. (line 227) 12339* BFD_RELOC_SPU_IMM7: howto manager. (line 221) 12340* BFD_RELOC_SPU_IMM8: howto manager. (line 222) 12341* BFD_RELOC_SPU_LO16: howto manager. (line 231) 12342* BFD_RELOC_SPU_PCREL16: howto manager. (line 230) 12343* BFD_RELOC_SPU_PCREL9a: howto manager. (line 228) 12344* BFD_RELOC_SPU_PCREL9b: howto manager. (line 229) 12345* BFD_RELOC_SPU_PPU32: howto manager. (line 233) 12346* BFD_RELOC_SPU_PPU64: howto manager. (line 234) 12347* BFD_RELOC_THUMB_PCREL_BLX: howto manager. (line 785) 12348* BFD_RELOC_THUMB_PCREL_BRANCH12: howto manager. (line 799) 12349* BFD_RELOC_THUMB_PCREL_BRANCH20: howto manager. (line 800) 12350* BFD_RELOC_THUMB_PCREL_BRANCH23: howto manager. (line 801) 12351* BFD_RELOC_THUMB_PCREL_BRANCH25: howto manager. (line 802) 12352* BFD_RELOC_THUMB_PCREL_BRANCH7: howto manager. (line 797) 12353* BFD_RELOC_THUMB_PCREL_BRANCH9: howto manager. (line 798) 12354* BFD_RELOC_TIC30_LDP: howto manager. (line 1417) 12355* BFD_RELOC_TIC54X_16_OF_23: howto manager. (line 1435) 12356* BFD_RELOC_TIC54X_23: howto manager. (line 1432) 12357* BFD_RELOC_TIC54X_MS7_OF_23: howto manager. (line 1440) 12358* BFD_RELOC_TIC54X_PARTLS7: howto manager. (line 1422) 12359* BFD_RELOC_TIC54X_PARTMS9: howto manager. (line 1427) 12360* BFD_RELOC_TILEGX_BROFF_X1: howto manager. (line 2909) 12361* BFD_RELOC_TILEGX_COPY: howto manager. (line 2905) 12362* BFD_RELOC_TILEGX_DEST_IMM8_X1: howto manager. (line 2916) 12363* BFD_RELOC_TILEGX_GLOB_DAT: howto manager. (line 2906) 12364* BFD_RELOC_TILEGX_HW0: howto manager. (line 2898) 12365* BFD_RELOC_TILEGX_HW0_LAST: howto manager. (line 2902) 12366* BFD_RELOC_TILEGX_HW1: howto manager. (line 2899) 12367* BFD_RELOC_TILEGX_HW1_LAST: howto manager. (line 2903) 12368* BFD_RELOC_TILEGX_HW2: howto manager. (line 2900) 12369* BFD_RELOC_TILEGX_HW2_LAST: howto manager. (line 2904) 12370* BFD_RELOC_TILEGX_HW3: howto manager. (line 2901) 12371* BFD_RELOC_TILEGX_IMM16_X0_HW0: howto manager. (line 2925) 12372* BFD_RELOC_TILEGX_IMM16_X0_HW0_GOT: howto manager. (line 2953) 12373* BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST: howto manager. (line 2933) 12374* BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_GOT: howto manager. (line 2955) 12375* BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PCREL: howto manager. (line 2947) 12376* BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_GD: howto manager. (line 2967) 12377* BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_IE: howto manager. (line 2973) 12378* BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE: howto manager. (line 2963) 12379* BFD_RELOC_TILEGX_IMM16_X0_HW0_PCREL: howto manager. (line 2939) 12380* BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_GD: howto manager. (line 2959) 12381* BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_IE: howto manager. (line 2971) 12382* BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE: howto manager. (line 2961) 12383* BFD_RELOC_TILEGX_IMM16_X0_HW1: howto manager. (line 2927) 12384* BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST: howto manager. (line 2935) 12385* BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_GOT: howto manager. (line 2957) 12386* BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PCREL: howto manager. (line 2949) 12387* BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_GD: howto manager. (line 2969) 12388* BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_IE: howto manager. (line 2975) 12389* BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE: howto manager. (line 2965) 12390* BFD_RELOC_TILEGX_IMM16_X0_HW1_PCREL: howto manager. (line 2941) 12391* BFD_RELOC_TILEGX_IMM16_X0_HW2: howto manager. (line 2929) 12392* BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST: howto manager. (line 2937) 12393* BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PCREL: howto manager. (line 2951) 12394* BFD_RELOC_TILEGX_IMM16_X0_HW2_PCREL: howto manager. (line 2943) 12395* BFD_RELOC_TILEGX_IMM16_X0_HW3: howto manager. (line 2931) 12396* BFD_RELOC_TILEGX_IMM16_X0_HW3_PCREL: howto manager. (line 2945) 12397* BFD_RELOC_TILEGX_IMM16_X1_HW0: howto manager. (line 2926) 12398* BFD_RELOC_TILEGX_IMM16_X1_HW0_GOT: howto manager. (line 2954) 12399* BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST: howto manager. (line 2934) 12400* BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_GOT: howto manager. (line 2956) 12401* BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PCREL: howto manager. (line 2948) 12402* BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_GD: howto manager. (line 2968) 12403* BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_IE: howto manager. (line 2974) 12404* BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE: howto manager. (line 2964) 12405* BFD_RELOC_TILEGX_IMM16_X1_HW0_PCREL: howto manager. (line 2940) 12406* BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_GD: howto manager. (line 2960) 12407* BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_IE: howto manager. (line 2972) 12408* BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE: howto manager. (line 2962) 12409* BFD_RELOC_TILEGX_IMM16_X1_HW1: howto manager. (line 2928) 12410* BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST: howto manager. (line 2936) 12411* BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_GOT: howto manager. (line 2958) 12412* BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PCREL: howto manager. (line 2950) 12413* BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_GD: howto manager. (line 2970) 12414* BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_IE: howto manager. (line 2976) 12415* BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE: howto manager. (line 2966) 12416* BFD_RELOC_TILEGX_IMM16_X1_HW1_PCREL: howto manager. (line 2942) 12417* BFD_RELOC_TILEGX_IMM16_X1_HW2: howto manager. (line 2930) 12418* BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST: howto manager. (line 2938) 12419* BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PCREL: howto manager. (line 2952) 12420* BFD_RELOC_TILEGX_IMM16_X1_HW2_PCREL: howto manager. (line 2944) 12421* BFD_RELOC_TILEGX_IMM16_X1_HW3: howto manager. (line 2932) 12422* BFD_RELOC_TILEGX_IMM16_X1_HW3_PCREL: howto manager. (line 2946) 12423* BFD_RELOC_TILEGX_IMM8_X0: howto manager. (line 2912) 12424* BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD: howto manager. (line 2989) 12425* BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD: howto manager. (line 2984) 12426* BFD_RELOC_TILEGX_IMM8_X1: howto manager. (line 2914) 12427* BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD: howto manager. (line 2990) 12428* BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD: howto manager. (line 2985) 12429* BFD_RELOC_TILEGX_IMM8_Y0: howto manager. (line 2913) 12430* BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD: howto manager. (line 2991) 12431* BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD: howto manager. (line 2986) 12432* BFD_RELOC_TILEGX_IMM8_Y1: howto manager. (line 2915) 12433* BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD: howto manager. (line 2992) 12434* BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD: howto manager. (line 2987) 12435* BFD_RELOC_TILEGX_JMP_SLOT: howto manager. (line 2907) 12436* BFD_RELOC_TILEGX_JUMPOFF_X1: howto manager. (line 2910) 12437* BFD_RELOC_TILEGX_JUMPOFF_X1_PLT: howto manager. (line 2911) 12438* BFD_RELOC_TILEGX_MF_IMM14_X1: howto manager. (line 2918) 12439* BFD_RELOC_TILEGX_MMEND_X0: howto manager. (line 2920) 12440* BFD_RELOC_TILEGX_MMSTART_X0: howto manager. (line 2919) 12441* BFD_RELOC_TILEGX_MT_IMM14_X1: howto manager. (line 2917) 12442* BFD_RELOC_TILEGX_RELATIVE: howto manager. (line 2908) 12443* BFD_RELOC_TILEGX_SHAMT_X0: howto manager. (line 2921) 12444* BFD_RELOC_TILEGX_SHAMT_X1: howto manager. (line 2922) 12445* BFD_RELOC_TILEGX_SHAMT_Y0: howto manager. (line 2923) 12446* BFD_RELOC_TILEGX_SHAMT_Y1: howto manager. (line 2924) 12447* BFD_RELOC_TILEGX_TLS_DTPMOD32: howto manager. (line 2980) 12448* BFD_RELOC_TILEGX_TLS_DTPMOD64: howto manager. (line 2977) 12449* BFD_RELOC_TILEGX_TLS_DTPOFF32: howto manager. (line 2981) 12450* BFD_RELOC_TILEGX_TLS_DTPOFF64: howto manager. (line 2978) 12451* BFD_RELOC_TILEGX_TLS_GD_CALL: howto manager. (line 2983) 12452* BFD_RELOC_TILEGX_TLS_IE_LOAD: howto manager. (line 2988) 12453* BFD_RELOC_TILEGX_TLS_TPOFF32: howto manager. (line 2982) 12454* BFD_RELOC_TILEGX_TLS_TPOFF64: howto manager. (line 2979) 12455* BFD_RELOC_TILEPRO_BROFF_X1: howto manager. (line 2821) 12456* BFD_RELOC_TILEPRO_COPY: howto manager. (line 2817) 12457* BFD_RELOC_TILEPRO_DEST_IMM8_X1: howto manager. (line 2828) 12458* BFD_RELOC_TILEPRO_GLOB_DAT: howto manager. (line 2818) 12459* BFD_RELOC_TILEPRO_IMM16_X0: howto manager. (line 2831) 12460* BFD_RELOC_TILEPRO_IMM16_X0_GOT: howto manager. (line 2847) 12461* BFD_RELOC_TILEPRO_IMM16_X0_GOT_HA: howto manager. (line 2853) 12462* BFD_RELOC_TILEPRO_IMM16_X0_GOT_HI: howto manager. (line 2851) 12463* BFD_RELOC_TILEPRO_IMM16_X0_GOT_LO: howto manager. (line 2849) 12464* BFD_RELOC_TILEPRO_IMM16_X0_HA: howto manager. (line 2837) 12465* BFD_RELOC_TILEPRO_IMM16_X0_HA_PCREL: howto manager. (line 2845) 12466* BFD_RELOC_TILEPRO_IMM16_X0_HI: howto manager. (line 2835) 12467* BFD_RELOC_TILEPRO_IMM16_X0_HI_PCREL: howto manager. (line 2843) 12468* BFD_RELOC_TILEPRO_IMM16_X0_LO: howto manager. (line 2833) 12469* BFD_RELOC_TILEPRO_IMM16_X0_LO_PCREL: howto manager. (line 2841) 12470* BFD_RELOC_TILEPRO_IMM16_X0_PCREL: howto manager. (line 2839) 12471* BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD: howto manager. (line 2869) 12472* BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HA: howto manager. (line 2875) 12473* BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HI: howto manager. (line 2873) 12474* BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_LO: howto manager. (line 2871) 12475* BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE: howto manager. (line 2877) 12476* BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HA: howto manager. (line 2883) 12477* BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HI: howto manager. (line 2881) 12478* BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_LO: howto manager. (line 2879) 12479* BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE: howto manager. (line 2888) 12480* BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA: howto manager. (line 2894) 12481* BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI: howto manager. (line 2892) 12482* BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO: howto manager. (line 2890) 12483* BFD_RELOC_TILEPRO_IMM16_X1: howto manager. (line 2832) 12484* BFD_RELOC_TILEPRO_IMM16_X1_GOT: howto manager. (line 2848) 12485* BFD_RELOC_TILEPRO_IMM16_X1_GOT_HA: howto manager. (line 2854) 12486* BFD_RELOC_TILEPRO_IMM16_X1_GOT_HI: howto manager. (line 2852) 12487* BFD_RELOC_TILEPRO_IMM16_X1_GOT_LO: howto manager. (line 2850) 12488* BFD_RELOC_TILEPRO_IMM16_X1_HA: howto manager. (line 2838) 12489* BFD_RELOC_TILEPRO_IMM16_X1_HA_PCREL: howto manager. (line 2846) 12490* BFD_RELOC_TILEPRO_IMM16_X1_HI: howto manager. (line 2836) 12491* BFD_RELOC_TILEPRO_IMM16_X1_HI_PCREL: howto manager. (line 2844) 12492* BFD_RELOC_TILEPRO_IMM16_X1_LO: howto manager. (line 2834) 12493* BFD_RELOC_TILEPRO_IMM16_X1_LO_PCREL: howto manager. (line 2842) 12494* BFD_RELOC_TILEPRO_IMM16_X1_PCREL: howto manager. (line 2840) 12495* BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD: howto manager. (line 2870) 12496* BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HA: howto manager. (line 2876) 12497* BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HI: howto manager. (line 2874) 12498* BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_LO: howto manager. (line 2872) 12499* BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE: howto manager. (line 2878) 12500* BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HA: howto manager. (line 2884) 12501* BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HI: howto manager. (line 2882) 12502* BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_LO: howto manager. (line 2880) 12503* BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE: howto manager. (line 2889) 12504* BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA: howto manager. (line 2895) 12505* BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI: howto manager. (line 2893) 12506* BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO: howto manager. (line 2891) 12507* BFD_RELOC_TILEPRO_IMM8_X0: howto manager. (line 2824) 12508* BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD: howto manager. (line 2864) 12509* BFD_RELOC_TILEPRO_IMM8_X1: howto manager. (line 2826) 12510* BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD: howto manager. (line 2865) 12511* BFD_RELOC_TILEPRO_IMM8_Y0: howto manager. (line 2825) 12512* BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD: howto manager. (line 2866) 12513* BFD_RELOC_TILEPRO_IMM8_Y1: howto manager. (line 2827) 12514* BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD: howto manager. (line 2867) 12515* BFD_RELOC_TILEPRO_JMP_SLOT: howto manager. (line 2819) 12516* BFD_RELOC_TILEPRO_JOFFLONG_X1: howto manager. (line 2822) 12517* BFD_RELOC_TILEPRO_JOFFLONG_X1_PLT: howto manager. (line 2823) 12518* BFD_RELOC_TILEPRO_MF_IMM15_X1: howto manager. (line 2830) 12519* BFD_RELOC_TILEPRO_MMEND_X0: howto manager. (line 2856) 12520* BFD_RELOC_TILEPRO_MMEND_X1: howto manager. (line 2858) 12521* BFD_RELOC_TILEPRO_MMSTART_X0: howto manager. (line 2855) 12522* BFD_RELOC_TILEPRO_MMSTART_X1: howto manager. (line 2857) 12523* BFD_RELOC_TILEPRO_MT_IMM15_X1: howto manager. (line 2829) 12524* BFD_RELOC_TILEPRO_RELATIVE: howto manager. (line 2820) 12525* BFD_RELOC_TILEPRO_SHAMT_X0: howto manager. (line 2859) 12526* BFD_RELOC_TILEPRO_SHAMT_X1: howto manager. (line 2860) 12527* BFD_RELOC_TILEPRO_SHAMT_Y0: howto manager. (line 2861) 12528* BFD_RELOC_TILEPRO_SHAMT_Y1: howto manager. (line 2862) 12529* BFD_RELOC_TILEPRO_TLS_DTPMOD32: howto manager. (line 2885) 12530* BFD_RELOC_TILEPRO_TLS_DTPOFF32: howto manager. (line 2886) 12531* BFD_RELOC_TILEPRO_TLS_GD_CALL: howto manager. (line 2863) 12532* BFD_RELOC_TILEPRO_TLS_IE_LOAD: howto manager. (line 2868) 12533* BFD_RELOC_TILEPRO_TLS_TPOFF32: howto manager. (line 2887) 12534* bfd_reloc_type_lookup: howto manager. (line 3018) 12535* BFD_RELOC_V850_16_GOT: howto manager. (line 1381) 12536* BFD_RELOC_V850_16_GOTOFF: howto manager. (line 1405) 12537* BFD_RELOC_V850_16_PCREL: howto manager. (line 1351) 12538* BFD_RELOC_V850_16_S1: howto manager. (line 1369) 12539* BFD_RELOC_V850_16_SPLIT_OFFSET: howto manager. (line 1366) 12540* BFD_RELOC_V850_17_PCREL: howto manager. (line 1354) 12541* BFD_RELOC_V850_22_PCREL: howto manager. (line 1286) 12542* BFD_RELOC_V850_22_PLT_PCREL: howto manager. (line 1387) 12543* BFD_RELOC_V850_23: howto manager. (line 1357) 12544* BFD_RELOC_V850_32_ABS: howto manager. (line 1363) 12545* BFD_RELOC_V850_32_GOT: howto manager. (line 1384) 12546* BFD_RELOC_V850_32_GOTOFF: howto manager. (line 1408) 12547* BFD_RELOC_V850_32_GOTPCREL: howto manager. (line 1378) 12548* BFD_RELOC_V850_32_PCREL: howto manager. (line 1360) 12549* BFD_RELOC_V850_32_PLT_PCREL: howto manager. (line 1390) 12550* BFD_RELOC_V850_9_PCREL: howto manager. (line 1283) 12551* BFD_RELOC_V850_ALIGN: howto manager. (line 1344) 12552* BFD_RELOC_V850_CALLT_15_16_OFFSET: howto manager. (line 1375) 12553* BFD_RELOC_V850_CALLT_16_16_OFFSET: howto manager. (line 1335) 12554* BFD_RELOC_V850_CALLT_6_7_OFFSET: howto manager. (line 1332) 12555* BFD_RELOC_V850_CODE: howto manager. (line 1411) 12556* BFD_RELOC_V850_COPY: howto manager. (line 1393) 12557* BFD_RELOC_V850_DATA: howto manager. (line 1414) 12558* BFD_RELOC_V850_GLOB_DAT: howto manager. (line 1396) 12559* BFD_RELOC_V850_JMP_SLOT: howto manager. (line 1399) 12560* BFD_RELOC_V850_LO16_S1: howto manager. (line 1372) 12561* BFD_RELOC_V850_LO16_SPLIT_OFFSET: howto manager. (line 1347) 12562* BFD_RELOC_V850_LONGCALL: howto manager. (line 1338) 12563* BFD_RELOC_V850_LONGJUMP: howto manager. (line 1341) 12564* BFD_RELOC_V850_RELATIVE: howto manager. (line 1402) 12565* BFD_RELOC_V850_SDA_15_16_OFFSET: howto manager. (line 1292) 12566* BFD_RELOC_V850_SDA_16_16_OFFSET: howto manager. (line 1289) 12567* BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET: howto manager. (line 1324) 12568* BFD_RELOC_V850_TDA_16_16_OFFSET: howto manager. (line 1314) 12569* BFD_RELOC_V850_TDA_4_4_OFFSET: howto manager. (line 1321) 12570* BFD_RELOC_V850_TDA_4_5_OFFSET: howto manager. (line 1317) 12571* BFD_RELOC_V850_TDA_6_8_OFFSET: howto manager. (line 1303) 12572* BFD_RELOC_V850_TDA_7_7_OFFSET: howto manager. (line 1311) 12573* BFD_RELOC_V850_TDA_7_8_OFFSET: howto manager. (line 1307) 12574* BFD_RELOC_V850_ZDA_15_16_OFFSET: howto manager. (line 1299) 12575* BFD_RELOC_V850_ZDA_16_16_OFFSET: howto manager. (line 1296) 12576* BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET: howto manager. (line 1328) 12577* BFD_RELOC_VAX_GLOB_DAT: howto manager. (line 2358) 12578* BFD_RELOC_VAX_JMP_SLOT: howto manager. (line 2359) 12579* BFD_RELOC_VAX_RELATIVE: howto manager. (line 2360) 12580* BFD_RELOC_VPE4KMATH_DATA: howto manager. (line 1935) 12581* BFD_RELOC_VPE4KMATH_INSN: howto manager. (line 1936) 12582* BFD_RELOC_VTABLE_ENTRY: howto manager. (line 1940) 12583* BFD_RELOC_VTABLE_INHERIT: howto manager. (line 1939) 12584* BFD_RELOC_X86_64_32S: howto manager. (line 603) 12585* BFD_RELOC_X86_64_COPY: howto manager. (line 598) 12586* BFD_RELOC_X86_64_DTPMOD64: howto manager. (line 604) 12587* BFD_RELOC_X86_64_DTPOFF32: howto manager. (line 609) 12588* BFD_RELOC_X86_64_DTPOFF64: howto manager. (line 605) 12589* BFD_RELOC_X86_64_GLOB_DAT: howto manager. (line 599) 12590* BFD_RELOC_X86_64_GOT32: howto manager. (line 596) 12591* BFD_RELOC_X86_64_GOT64: howto manager. (line 614) 12592* BFD_RELOC_X86_64_GOTOFF64: howto manager. (line 612) 12593* BFD_RELOC_X86_64_GOTPC32: howto manager. (line 613) 12594* BFD_RELOC_X86_64_GOTPC32_TLSDESC: howto manager. (line 619) 12595* BFD_RELOC_X86_64_GOTPC64: howto manager. (line 616) 12596* BFD_RELOC_X86_64_GOTPCREL: howto manager. (line 602) 12597* BFD_RELOC_X86_64_GOTPCREL64: howto manager. (line 615) 12598* BFD_RELOC_X86_64_GOTPLT64: howto manager. (line 617) 12599* BFD_RELOC_X86_64_GOTTPOFF: howto manager. (line 610) 12600* BFD_RELOC_X86_64_IRELATIVE: howto manager. (line 622) 12601* BFD_RELOC_X86_64_JUMP_SLOT: howto manager. (line 600) 12602* BFD_RELOC_X86_64_PLT32: howto manager. (line 597) 12603* BFD_RELOC_X86_64_PLTOFF64: howto manager. (line 618) 12604* BFD_RELOC_X86_64_RELATIVE: howto manager. (line 601) 12605* BFD_RELOC_X86_64_TLSDESC: howto manager. (line 621) 12606* BFD_RELOC_X86_64_TLSDESC_CALL: howto manager. (line 620) 12607* BFD_RELOC_X86_64_TLSGD: howto manager. (line 607) 12608* BFD_RELOC_X86_64_TLSLD: howto manager. (line 608) 12609* BFD_RELOC_X86_64_TPOFF32: howto manager. (line 611) 12610* BFD_RELOC_X86_64_TPOFF64: howto manager. (line 606) 12611* BFD_RELOC_XC16X_PAG: howto manager. (line 2352) 12612* BFD_RELOC_XC16X_POF: howto manager. (line 2353) 12613* BFD_RELOC_XC16X_SEG: howto manager. (line 2354) 12614* BFD_RELOC_XC16X_SOF: howto manager. (line 2355) 12615* BFD_RELOC_XGATE_24: howto manager. (line 2098) 12616* BFD_RELOC_XGATE_GPAGE: howto manager. (line 2095) 12617* BFD_RELOC_XGATE_IMM3: howto manager. (line 2115) 12618* BFD_RELOC_XGATE_IMM4: howto manager. (line 2118) 12619* BFD_RELOC_XGATE_IMM5: howto manager. (line 2121) 12620* BFD_RELOC_XGATE_IMM8_HI: howto manager. (line 2111) 12621* BFD_RELOC_XGATE_IMM8_LO: howto manager. (line 2107) 12622* BFD_RELOC_XGATE_LO16: howto manager. (line 2091) 12623* BFD_RELOC_XGATE_PCREL_10: howto manager. (line 2104) 12624* BFD_RELOC_XGATE_PCREL_9: howto manager. (line 2101) 12625* BFD_RELOC_XGATE_RL_GROUP: howto manager. (line 2086) 12626* BFD_RELOC_XGATE_RL_JUMP: howto manager. (line 2082) 12627* BFD_RELOC_XSTORMY16_12: howto manager. (line 2344) 12628* BFD_RELOC_XSTORMY16_24: howto manager. (line 2345) 12629* BFD_RELOC_XSTORMY16_FPTR16: howto manager. (line 2346) 12630* BFD_RELOC_XSTORMY16_REL_12: howto manager. (line 2343) 12631* BFD_RELOC_XTENSA_ASM_EXPAND: howto manager. (line 2464) 12632* BFD_RELOC_XTENSA_ASM_SIMPLIFY: howto manager. (line 2469) 12633* BFD_RELOC_XTENSA_DIFF16: howto manager. (line 2411) 12634* BFD_RELOC_XTENSA_DIFF32: howto manager. (line 2412) 12635* BFD_RELOC_XTENSA_DIFF8: howto manager. (line 2410) 12636* BFD_RELOC_XTENSA_GLOB_DAT: howto manager. (line 2400) 12637* BFD_RELOC_XTENSA_JMP_SLOT: howto manager. (line 2401) 12638* BFD_RELOC_XTENSA_OP0: howto manager. (line 2458) 12639* BFD_RELOC_XTENSA_OP1: howto manager. (line 2459) 12640* BFD_RELOC_XTENSA_OP2: howto manager. (line 2460) 12641* BFD_RELOC_XTENSA_PLT: howto manager. (line 2405) 12642* BFD_RELOC_XTENSA_RELATIVE: howto manager. (line 2402) 12643* BFD_RELOC_XTENSA_RTLD: howto manager. (line 2395) 12644* BFD_RELOC_XTENSA_SLOT0_ALT: howto manager. (line 2440) 12645* BFD_RELOC_XTENSA_SLOT0_OP: howto manager. (line 2420) 12646* BFD_RELOC_XTENSA_SLOT10_ALT: howto manager. (line 2450) 12647* BFD_RELOC_XTENSA_SLOT10_OP: howto manager. (line 2430) 12648* BFD_RELOC_XTENSA_SLOT11_ALT: howto manager. (line 2451) 12649* BFD_RELOC_XTENSA_SLOT11_OP: howto manager. (line 2431) 12650* BFD_RELOC_XTENSA_SLOT12_ALT: howto manager. (line 2452) 12651* BFD_RELOC_XTENSA_SLOT12_OP: howto manager. (line 2432) 12652* BFD_RELOC_XTENSA_SLOT13_ALT: howto manager. (line 2453) 12653* BFD_RELOC_XTENSA_SLOT13_OP: howto manager. (line 2433) 12654* BFD_RELOC_XTENSA_SLOT14_ALT: howto manager. (line 2454) 12655* BFD_RELOC_XTENSA_SLOT14_OP: howto manager. (line 2434) 12656* BFD_RELOC_XTENSA_SLOT1_ALT: howto manager. (line 2441) 12657* BFD_RELOC_XTENSA_SLOT1_OP: howto manager. (line 2421) 12658* BFD_RELOC_XTENSA_SLOT2_ALT: howto manager. (line 2442) 12659* BFD_RELOC_XTENSA_SLOT2_OP: howto manager. (line 2422) 12660* BFD_RELOC_XTENSA_SLOT3_ALT: howto manager. (line 2443) 12661* BFD_RELOC_XTENSA_SLOT3_OP: howto manager. (line 2423) 12662* BFD_RELOC_XTENSA_SLOT4_ALT: howto manager. (line 2444) 12663* BFD_RELOC_XTENSA_SLOT4_OP: howto manager. (line 2424) 12664* BFD_RELOC_XTENSA_SLOT5_ALT: howto manager. (line 2445) 12665* BFD_RELOC_XTENSA_SLOT5_OP: howto manager. (line 2425) 12666* BFD_RELOC_XTENSA_SLOT6_ALT: howto manager. (line 2446) 12667* BFD_RELOC_XTENSA_SLOT6_OP: howto manager. (line 2426) 12668* BFD_RELOC_XTENSA_SLOT7_ALT: howto manager. (line 2447) 12669* BFD_RELOC_XTENSA_SLOT7_OP: howto manager. (line 2427) 12670* BFD_RELOC_XTENSA_SLOT8_ALT: howto manager. (line 2448) 12671* BFD_RELOC_XTENSA_SLOT8_OP: howto manager. (line 2428) 12672* BFD_RELOC_XTENSA_SLOT9_ALT: howto manager. (line 2449) 12673* BFD_RELOC_XTENSA_SLOT9_OP: howto manager. (line 2429) 12674* BFD_RELOC_XTENSA_TLS_ARG: howto manager. (line 2479) 12675* BFD_RELOC_XTENSA_TLS_CALL: howto manager. (line 2480) 12676* BFD_RELOC_XTENSA_TLS_DTPOFF: howto manager. (line 2476) 12677* BFD_RELOC_XTENSA_TLS_FUNC: howto manager. (line 2478) 12678* BFD_RELOC_XTENSA_TLS_TPOFF: howto manager. (line 2477) 12679* BFD_RELOC_XTENSA_TLSDESC_ARG: howto manager. (line 2475) 12680* BFD_RELOC_XTENSA_TLSDESC_FN: howto manager. (line 2474) 12681* BFD_RELOC_Z80_DISP8: howto manager. (line 2483) 12682* BFD_RELOC_Z8K_CALLR: howto manager. (line 2489) 12683* BFD_RELOC_Z8K_DISP7: howto manager. (line 2486) 12684* BFD_RELOC_Z8K_IMM4L: howto manager. (line 2492) 12685* bfd_rename_section: section prototypes. (line 169) 12686* bfd_scan_arch: Architectures. (line 479) 12687* bfd_scan_vma: BFD front end. (line 567) 12688* bfd_seach_for_target: bfd_target. (line 524) 12689* bfd_section_already_linked: Writing the symbol table. 12690 (line 55) 12691* bfd_section_list_clear: section prototypes. (line 8) 12692* bfd_sections_find_if: section prototypes. (line 199) 12693* bfd_set_arch_info: Architectures. (line 520) 12694* bfd_set_archive_head: Archives. (line 69) 12695* bfd_set_assert_handler: BFD front end. (line 429) 12696* bfd_set_default_target: bfd_target. (line 463) 12697* bfd_set_error: BFD front end. (line 345) 12698* bfd_set_error_handler: BFD front end. (line 387) 12699* bfd_set_error_program_name: BFD front end. (line 396) 12700* bfd_set_file_flags: BFD front end. (line 487) 12701* bfd_set_format: Formats. (line 68) 12702* bfd_set_gp_size: BFD front end. (line 557) 12703* bfd_set_private_flags: BFD front end. (line 634) 12704* bfd_set_reloc: BFD front end. (line 477) 12705* bfd_set_section_contents: section prototypes. (line 230) 12706* bfd_set_section_flags: section prototypes. (line 154) 12707* bfd_set_section_size: section prototypes. (line 216) 12708* bfd_set_start_address: BFD front end. (line 536) 12709* bfd_set_symtab: symbol handling functions. 12710 (line 60) 12711* bfd_symbol_info: symbol handling functions. 12712 (line 130) 12713* bfd_target_list: bfd_target. (line 515) 12714* bfd_write_bigendian_4byte_int: Internal. (line 13) 12715* bfd_zalloc: Opening and Closing. 12716 (line 236) 12717* bfd_zalloc2: Opening and Closing. 12718 (line 245) 12719* coff_symbol_type: coff. (line 244) 12720* core_file_matches_executable_p: Core Files. (line 39) 12721* find_separate_debug_file: Opening and Closing. 12722 (line 287) 12723* generic_core_file_matches_executable_p: Core Files. (line 49) 12724* get_debug_link_info: Opening and Closing. 12725 (line 268) 12726* Hash tables: Hash Tables. (line 6) 12727* internal object-file format: Canonical format. (line 11) 12728* Linker: Linker Functions. (line 6) 12729* Other functions: BFD front end. (line 649) 12730* separate_debug_file_exists: Opening and Closing. 12731 (line 278) 12732* struct bfd_iovec: BFD front end. (line 860) 12733* target vector (_bfd_final_link): Performing the Final Link. 12734 (line 6) 12735* target vector (_bfd_link_add_symbols): Adding Symbols to the Hash Table. 12736 (line 6) 12737* target vector (_bfd_link_hash_table_create): Creating a Linker Hash Table. 12738 (line 6) 12739* The HOWTO Macro: typedef arelent. (line 288) 12740* what is it?: Overview. (line 6) 12741 12742 12743 12744Tag Table: 12745Node: Top1089 12746Node: Overview1428 12747Node: History2479 12748Node: How It Works3425 12749Node: What BFD Version 2 Can Do4968 12750Node: BFD information loss6283 12751Node: Canonical format8815 12752Node: BFD front end13187 12753Node: Memory Usage47553 12754Node: Initialization48781 12755Node: Sections49240 12756Node: Section Input49723 12757Node: Section Output51088 12758Node: typedef asection53574 12759Node: section prototypes78781 12760Node: Symbols89038 12761Node: Reading Symbols90633 12762Node: Writing Symbols91740 12763Node: Mini Symbols93481 12764Node: typedef asymbol94455 12765Node: symbol handling functions100514 12766Node: Archives105856 12767Node: Formats109582 12768Node: Relocations112530 12769Node: typedef arelent113257 12770Node: howto manager128893 12771Node: Core Files227332 12772Node: Targets229370 12773Node: bfd_target231340 12774Node: Architectures254562 12775Node: Opening and Closing280438 12776Node: Internal291957 12777Node: File Caching298302 12778Node: Linker Functions300216 12779Node: Creating a Linker Hash Table301889 12780Node: Adding Symbols to the Hash Table303627 12781Node: Differing file formats304527 12782Node: Adding symbols from an object file306252 12783Node: Adding symbols from an archive308403 12784Node: Performing the Final Link311332 12785Node: Information provided by the linker312574 12786Node: Relocating the section contents313728 12787Node: Writing the symbol table315479 12788Node: Hash Tables319865 12789Node: Creating and Freeing a Hash Table321063 12790Node: Looking Up or Entering a String322313 12791Node: Traversing a Hash Table323566 12792Node: Deriving a New Hash Table Type324355 12793Node: Define the Derived Structures325421 12794Node: Write the Derived Creation Routine326502 12795Node: Write Other Derived Routines329126 12796Node: BFD back ends330441 12797Node: What to Put Where330711 12798Node: aout330891 12799Node: coff337209 12800Node: elf365642 12801Node: mmo366043 12802Node: File layout366971 12803Node: Symbol-table372618 12804Node: mmo section mapping376387 12805Node: GNU Free Documentation License380039 12806Node: BFD Index405122 12807 12808End Tag Table 12809