1 This is bfd.info, produced by makeinfo version 4.13 from 2 /tmp/android-15472/src/build/../gdb/gdb-7.3.x/bfd/doc/bfd.texinfo. 3 4 INFO-DIR-SECTION Software development 5 START-INFO-DIR-ENTRY 6 * Bfd: (bfd). The Binary File Descriptor library. 7 END-INFO-DIR-ENTRY 8 9 This file documents the BFD library. 10 11 Copyright (C) 1991, 2000, 2001, 2003, 2006, 2007, 2008 Free Software 12 Foundation, Inc. 13 14 Permission is granted to copy, distribute and/or modify this document 15 under the terms of the GNU Free Documentation License, Version 1.3 or 16 any later version published by the Free Software Foundation; with the 17 Invariant Sections being "GNU General Public License" and "Funding Free 18 Software", the Front-Cover texts being (a) (see below), and with the 19 Back-Cover Texts being (b) (see below). A copy of the license is 20 included in the section entitled "GNU Free Documentation License". 21 22 (a) The FSF's Front-Cover Text is: 23 24 A GNU Manual 25 26 (b) The FSF's Back-Cover Text is: 27 28 You have freedom to copy and modify this GNU Manual, like GNU 29 software. Copies published by the Free Software Foundation raise 30 funds for GNU development. 31 32 33 File: bfd.info, Node: Top, Next: Overview, Prev: (dir), Up: (dir) 34 35 This file documents the binary file descriptor library libbfd. 36 37 * Menu: 38 39 * Overview:: Overview of BFD 40 * BFD front end:: BFD front end 41 * BFD back ends:: BFD back ends 42 * GNU Free Documentation License:: GNU Free Documentation License 43 * BFD Index:: BFD Index 44 45 46 File: bfd.info, Node: Overview, Next: BFD front end, Prev: Top, Up: Top 47 48 1 Introduction 49 ************** 50 51 BFD is a package which allows applications to use the same routines to 52 operate on object files whatever the object file format. A new object 53 file format can be supported simply by creating a new BFD back end and 54 adding it to the library. 55 56 BFD is split into two parts: the front end, and the back ends (one 57 for each object file format). 58 * The front end of BFD provides the interface to the user. It manages 59 memory and various canonical data structures. The front end also 60 decides which back end to use and when to call back end routines. 61 62 * The back ends provide BFD its view of the real world. Each back 63 end provides a set of calls which the BFD front end can use to 64 maintain its canonical form. The back ends also may keep around 65 information for their own use, for greater efficiency. 66 67 * Menu: 68 69 * History:: History 70 * How It Works:: How It Works 71 * What BFD Version 2 Can Do:: What BFD Version 2 Can Do 72 73 74 File: bfd.info, Node: History, Next: How It Works, Prev: Overview, Up: Overview 75 76 1.1 History 77 =========== 78 79 One spur behind BFD was the desire, on the part of the GNU 960 team at 80 Intel Oregon, for interoperability of applications on their COFF and 81 b.out file formats. Cygnus was providing GNU support for the team, and 82 was contracted to provide the required functionality. 83 84 The name came from a conversation David Wallace was having with 85 Richard Stallman about the library: RMS said that it would be quite 86 hard--David said "BFD". Stallman was right, but the name stuck. 87 88 At the same time, Ready Systems wanted much the same thing, but for 89 different object file formats: IEEE-695, Oasys, Srecords, a.out and 68k 90 coff. 91 92 BFD was first implemented by members of Cygnus Support; Steve 93 Chamberlain (`sac (a] cygnus.com'), John Gilmore (`gnu (a] cygnus.com'), K. 94 Richard Pixley (`rich (a] cygnus.com') and David Henkel-Wallace 95 (`gumby (a] cygnus.com'). 96 97 98 File: bfd.info, Node: How It Works, Next: What BFD Version 2 Can Do, Prev: History, Up: Overview 99 100 1.2 How To Use BFD 101 ================== 102 103 To use the library, include `bfd.h' and link with `libbfd.a'. 104 105 BFD provides a common interface to the parts of an object file for a 106 calling application. 107 108 When an application successfully opens a target file (object, 109 archive, or whatever), a pointer to an internal structure is returned. 110 This pointer points to a structure called `bfd', described in `bfd.h'. 111 Our convention is to call this pointer a BFD, and instances of it 112 within code `abfd'. All operations on the target object file are 113 applied as methods to the BFD. The mapping is defined within `bfd.h' 114 in a set of macros, all beginning with `bfd_' to reduce namespace 115 pollution. 116 117 For example, this sequence does what you would probably expect: 118 return the number of sections in an object file attached to a BFD 119 `abfd'. 120 121 #include "bfd.h" 122 123 unsigned int number_of_sections (abfd) 124 bfd *abfd; 125 { 126 return bfd_count_sections (abfd); 127 } 128 129 The abstraction used within BFD is that an object file has: 130 131 * a header, 132 133 * a number of sections containing raw data (*note Sections::), 134 135 * a set of relocations (*note Relocations::), and 136 137 * some symbol information (*note Symbols::). 138 Also, BFDs opened for archives have the additional attribute of an 139 index and contain subordinate BFDs. This approach is fine for a.out and 140 coff, but loses efficiency when applied to formats such as S-records and 141 IEEE-695. 142 143 144 File: bfd.info, Node: What BFD Version 2 Can Do, Prev: How It Works, Up: Overview 145 146 1.3 What BFD Version 2 Can Do 147 ============================= 148 149 When an object file is opened, BFD subroutines automatically determine 150 the format of the input object file. They then build a descriptor in 151 memory with pointers to routines that will be used to access elements of 152 the object file's data structures. 153 154 As different information from the object files is required, BFD 155 reads from different sections of the file and processes them. For 156 example, a very common operation for the linker is processing symbol 157 tables. Each BFD back end provides a routine for converting between 158 the object file's representation of symbols and an internal canonical 159 format. When the linker asks for the symbol table of an object file, it 160 calls through a memory pointer to the routine from the relevant BFD 161 back end which reads and converts the table into a canonical form. The 162 linker then operates upon the canonical form. When the link is finished 163 and the linker writes the output file's symbol table, another BFD back 164 end routine is called to take the newly created symbol table and 165 convert it into the chosen output format. 166 167 * Menu: 168 169 * BFD information loss:: Information Loss 170 * Canonical format:: The BFD canonical object-file format 171 172 173 File: bfd.info, Node: BFD information loss, Next: Canonical format, Up: What BFD Version 2 Can Do 174 175 1.3.1 Information Loss 176 ---------------------- 177 178 _Information can be lost during output._ The output formats supported 179 by BFD do not provide identical facilities, and information which can 180 be described in one form has nowhere to go in another format. One 181 example of this is alignment information in `b.out'. There is nowhere 182 in an `a.out' format file to store alignment information on the 183 contained data, so when a file is linked from `b.out' and an `a.out' 184 image is produced, alignment information will not propagate to the 185 output file. (The linker will still use the alignment information 186 internally, so the link is performed correctly). 187 188 Another example is COFF section names. COFF files may contain an 189 unlimited number of sections, each one with a textual section name. If 190 the target of the link is a format which does not have many sections 191 (e.g., `a.out') or has sections without names (e.g., the Oasys format), 192 the link cannot be done simply. You can circumvent this problem by 193 describing the desired input-to-output section mapping with the linker 194 command language. 195 196 _Information can be lost during canonicalization._ The BFD internal 197 canonical form of the external formats is not exhaustive; there are 198 structures in input formats for which there is no direct representation 199 internally. This means that the BFD back ends cannot maintain all 200 possible data richness through the transformation between external to 201 internal and back to external formats. 202 203 This limitation is only a problem when an application reads one 204 format and writes another. Each BFD back end is responsible for 205 maintaining as much data as possible, and the internal BFD canonical 206 form has structures which are opaque to the BFD core, and exported only 207 to the back ends. When a file is read in one format, the canonical form 208 is generated for BFD and the application. At the same time, the back 209 end saves away any information which may otherwise be lost. If the data 210 is then written back in the same format, the back end routine will be 211 able to use the canonical form provided by the BFD core as well as the 212 information it prepared earlier. Since there is a great deal of 213 commonality between back ends, there is no information lost when 214 linking or copying big endian COFF to little endian COFF, or `a.out' to 215 `b.out'. When a mixture of formats is linked, the information is only 216 lost from the files whose format differs from the destination. 217 218 219 File: bfd.info, Node: Canonical format, Prev: BFD information loss, Up: What BFD Version 2 Can Do 220 221 1.3.2 The BFD canonical object-file format 222 ------------------------------------------ 223 224 The greatest potential for loss of information occurs when there is the 225 least overlap between the information provided by the source format, 226 that stored by the canonical format, and that needed by the destination 227 format. A brief description of the canonical form may help you 228 understand which kinds of data you can count on preserving across 229 conversions. 230 231 _files_ 232 Information stored on a per-file basis includes target machine 233 architecture, particular implementation format type, a demand 234 pageable bit, and a write protected bit. Information like Unix 235 magic numbers is not stored here--only the magic numbers' meaning, 236 so a `ZMAGIC' file would have both the demand pageable bit and the 237 write protected text bit set. The byte order of the target is 238 stored on a per-file basis, so that big- and little-endian object 239 files may be used with one another. 240 241 _sections_ 242 Each section in the input file contains the name of the section, 243 the section's original address in the object file, size and 244 alignment information, various flags, and pointers into other BFD 245 data structures. 246 247 _symbols_ 248 Each symbol contains a pointer to the information for the object 249 file which originally defined it, its name, its value, and various 250 flag bits. When a BFD back end reads in a symbol table, it 251 relocates all symbols to make them relative to the base of the 252 section where they were defined. Doing this ensures that each 253 symbol points to its containing section. Each symbol also has a 254 varying amount of hidden private data for the BFD back end. Since 255 the symbol points to the original file, the private data format 256 for that symbol is accessible. `ld' can operate on a collection 257 of symbols of wildly different formats without problems. 258 259 Normal global and simple local symbols are maintained on output, 260 so an output file (no matter its format) will retain symbols 261 pointing to functions and to global, static, and common variables. 262 Some symbol information is not worth retaining; in `a.out', type 263 information is stored in the symbol table as long symbol names. 264 This information would be useless to most COFF debuggers; the 265 linker has command line switches to allow users to throw it away. 266 267 There is one word of type information within the symbol, so if the 268 format supports symbol type information within symbols (for 269 example, COFF, IEEE, Oasys) and the type is simple enough to fit 270 within one word (nearly everything but aggregates), the 271 information will be preserved. 272 273 _relocation level_ 274 Each canonical BFD relocation record contains a pointer to the 275 symbol to relocate to, the offset of the data to relocate, the 276 section the data is in, and a pointer to a relocation type 277 descriptor. Relocation is performed by passing messages through 278 the relocation type descriptor and the symbol pointer. Therefore, 279 relocations can be performed on output data using a relocation 280 method that is only available in one of the input formats. For 281 instance, Oasys provides a byte relocation format. A relocation 282 record requesting this relocation type would point indirectly to a 283 routine to perform this, so the relocation may be performed on a 284 byte being written to a 68k COFF file, even though 68k COFF has no 285 such relocation type. 286 287 _line numbers_ 288 Object formats can contain, for debugging purposes, some form of 289 mapping between symbols, source line numbers, and addresses in the 290 output file. These addresses have to be relocated along with the 291 symbol information. Each symbol with an associated list of line 292 number records points to the first record of the list. The head 293 of a line number list consists of a pointer to the symbol, which 294 allows finding out the address of the function whose line number 295 is being described. The rest of the list is made up of pairs: 296 offsets into the section and line numbers. Any format which can 297 simply derive this information can pass it successfully between 298 formats (COFF, IEEE and Oasys). 299 300 301 File: bfd.info, Node: BFD front end, Next: BFD back ends, Prev: Overview, Up: Top 302 303 2 BFD Front End 304 *************** 305 306 2.1 `typedef bfd' 307 ================= 308 309 A BFD has type `bfd'; objects of this type are the cornerstone of any 310 application using BFD. Using BFD consists of making references though 311 the BFD and to data in the BFD. 312 313 Here is the structure that defines the type `bfd'. It contains the 314 major data about the file and pointers to the rest of the data. 315 316 317 enum bfd_direction 318 { 319 no_direction = 0, 320 read_direction = 1, 321 write_direction = 2, 322 both_direction = 3 323 }; 324 325 struct bfd 326 { 327 /* A unique identifier of the BFD */ 328 unsigned int id; 329 330 /* The filename the application opened the BFD with. */ 331 const char *filename; 332 333 /* A pointer to the target jump table. */ 334 const struct bfd_target *xvec; 335 336 /* The IOSTREAM, and corresponding IO vector that provide access 337 to the file backing the BFD. */ 338 void *iostream; 339 const struct bfd_iovec *iovec; 340 341 /* The caching routines use these to maintain a 342 least-recently-used list of BFDs. */ 343 struct bfd *lru_prev, *lru_next; 344 345 /* When a file is closed by the caching routines, BFD retains 346 state information on the file here... */ 347 ufile_ptr where; 348 349 /* File modified time, if mtime_set is TRUE. */ 350 long mtime; 351 352 /* Reserved for an unimplemented file locking extension. */ 353 int ifd; 354 355 /* The format which belongs to the BFD. (object, core, etc.) */ 356 bfd_format format; 357 358 /* The direction with which the BFD was opened. */ 359 enum bfd_direction direction; 360 361 /* Format_specific flags. */ 362 flagword flags; 363 364 /* Values that may appear in the flags field of a BFD. These also 365 appear in the object_flags field of the bfd_target structure, where 366 they indicate the set of flags used by that backend (not all flags 367 are meaningful for all object file formats) (FIXME: at the moment, 368 the object_flags values have mostly just been copied from backend 369 to another, and are not necessarily correct). */ 370 371 #define BFD_NO_FLAGS 0x00 372 373 /* BFD contains relocation entries. */ 374 #define HAS_RELOC 0x01 375 376 /* BFD is directly executable. */ 377 #define EXEC_P 0x02 378 379 /* BFD has line number information (basically used for F_LNNO in a 380 COFF header). */ 381 #define HAS_LINENO 0x04 382 383 /* BFD has debugging information. */ 384 #define HAS_DEBUG 0x08 385 386 /* BFD has symbols. */ 387 #define HAS_SYMS 0x10 388 389 /* BFD has local symbols (basically used for F_LSYMS in a COFF 390 header). */ 391 #define HAS_LOCALS 0x20 392 393 /* BFD is a dynamic object. */ 394 #define DYNAMIC 0x40 395 396 /* Text section is write protected (if D_PAGED is not set, this is 397 like an a.out NMAGIC file) (the linker sets this by default, but 398 clears it for -r or -N). */ 399 #define WP_TEXT 0x80 400 401 /* BFD is dynamically paged (this is like an a.out ZMAGIC file) (the 402 linker sets this by default, but clears it for -r or -n or -N). */ 403 #define D_PAGED 0x100 404 405 /* BFD is relaxable (this means that bfd_relax_section may be able to 406 do something) (sometimes bfd_relax_section can do something even if 407 this is not set). */ 408 #define BFD_IS_RELAXABLE 0x200 409 410 /* This may be set before writing out a BFD to request using a 411 traditional format. For example, this is used to request that when 412 writing out an a.out object the symbols not be hashed to eliminate 413 duplicates. */ 414 #define BFD_TRADITIONAL_FORMAT 0x400 415 416 /* This flag indicates that the BFD contents are actually cached 417 in memory. If this is set, iostream points to a bfd_in_memory 418 struct. */ 419 #define BFD_IN_MEMORY 0x800 420 421 /* The sections in this BFD specify a memory page. */ 422 #define HAS_LOAD_PAGE 0x1000 423 424 /* This BFD has been created by the linker and doesn't correspond 425 to any input file. */ 426 #define BFD_LINKER_CREATED 0x2000 427 428 /* This may be set before writing out a BFD to request that it 429 be written using values for UIDs, GIDs, timestamps, etc. that 430 will be consistent from run to run. */ 431 #define BFD_DETERMINISTIC_OUTPUT 0x4000 432 433 /* Compress sections in this BFD. */ 434 #define BFD_COMPRESS 0x8000 435 436 /* Decompress sections in this BFD. */ 437 #define BFD_DECOMPRESS 0x10000 438 439 /* Flags bits to be saved in bfd_preserve_save. */ 440 #define BFD_FLAGS_SAVED \ 441 (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS) 442 443 /* Flags bits which are for BFD use only. */ 444 #define BFD_FLAGS_FOR_BFD_USE_MASK \ 445 (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_LINKER_CREATED \ 446 | BFD_TRADITIONAL_FORMAT | BFD_DETERMINISTIC_OUTPUT) 447 448 /* Currently my_archive is tested before adding origin to 449 anything. I believe that this can become always an add of 450 origin, with origin set to 0 for non archive files. */ 451 ufile_ptr origin; 452 453 /* The origin in the archive of the proxy entry. This will 454 normally be the same as origin, except for thin archives, 455 when it will contain the current offset of the proxy in the 456 thin archive rather than the offset of the bfd in its actual 457 container. */ 458 ufile_ptr proxy_origin; 459 460 /* A hash table for section names. */ 461 struct bfd_hash_table section_htab; 462 463 /* Pointer to linked list of sections. */ 464 struct bfd_section *sections; 465 466 /* The last section on the section list. */ 467 struct bfd_section *section_last; 468 469 /* The number of sections. */ 470 unsigned int section_count; 471 472 /* Stuff only useful for object files: 473 The start address. */ 474 bfd_vma start_address; 475 476 /* Used for input and output. */ 477 unsigned int symcount; 478 479 /* Symbol table for output BFD (with symcount entries). 480 Also used by the linker to cache input BFD symbols. */ 481 struct bfd_symbol **outsymbols; 482 483 /* Used for slurped dynamic symbol tables. */ 484 unsigned int dynsymcount; 485 486 /* Pointer to structure which contains architecture information. */ 487 const struct bfd_arch_info *arch_info; 488 489 /* Stuff only useful for archives. */ 490 void *arelt_data; 491 struct bfd *my_archive; /* The containing archive BFD. */ 492 struct bfd *archive_next; /* The next BFD in the archive. */ 493 struct bfd *archive_head; /* The first BFD in the archive. */ 494 struct bfd *nested_archives; /* List of nested archive in a flattened 495 thin archive. */ 496 497 /* A chain of BFD structures involved in a link. */ 498 struct bfd *link_next; 499 500 /* A field used by _bfd_generic_link_add_archive_symbols. This will 501 be used only for archive elements. */ 502 int archive_pass; 503 504 /* Used by the back end to hold private data. */ 505 union 506 { 507 struct aout_data_struct *aout_data; 508 struct artdata *aout_ar_data; 509 struct _oasys_data *oasys_obj_data; 510 struct _oasys_ar_data *oasys_ar_data; 511 struct coff_tdata *coff_obj_data; 512 struct pe_tdata *pe_obj_data; 513 struct xcoff_tdata *xcoff_obj_data; 514 struct ecoff_tdata *ecoff_obj_data; 515 struct ieee_data_struct *ieee_data; 516 struct ieee_ar_data_struct *ieee_ar_data; 517 struct srec_data_struct *srec_data; 518 struct verilog_data_struct *verilog_data; 519 struct ihex_data_struct *ihex_data; 520 struct tekhex_data_struct *tekhex_data; 521 struct elf_obj_tdata *elf_obj_data; 522 struct nlm_obj_tdata *nlm_obj_data; 523 struct bout_data_struct *bout_data; 524 struct mmo_data_struct *mmo_data; 525 struct sun_core_struct *sun_core_data; 526 struct sco5_core_struct *sco5_core_data; 527 struct trad_core_struct *trad_core_data; 528 struct som_data_struct *som_data; 529 struct hpux_core_struct *hpux_core_data; 530 struct hppabsd_core_struct *hppabsd_core_data; 531 struct sgi_core_struct *sgi_core_data; 532 struct lynx_core_struct *lynx_core_data; 533 struct osf_core_struct *osf_core_data; 534 struct cisco_core_struct *cisco_core_data; 535 struct versados_data_struct *versados_data; 536 struct netbsd_core_struct *netbsd_core_data; 537 struct mach_o_data_struct *mach_o_data; 538 struct mach_o_fat_data_struct *mach_o_fat_data; 539 struct plugin_data_struct *plugin_data; 540 struct bfd_pef_data_struct *pef_data; 541 struct bfd_pef_xlib_data_struct *pef_xlib_data; 542 struct bfd_sym_data_struct *sym_data; 543 void *any; 544 } 545 tdata; 546 547 /* Used by the application to hold private data. */ 548 void *usrdata; 549 550 /* Where all the allocated stuff under this BFD goes. This is a 551 struct objalloc *, but we use void * to avoid requiring the inclusion 552 of objalloc.h. */ 553 void *memory; 554 555 /* Is the file descriptor being cached? That is, can it be closed as 556 needed, and re-opened when accessed later? */ 557 unsigned int cacheable : 1; 558 559 /* Marks whether there was a default target specified when the 560 BFD was opened. This is used to select which matching algorithm 561 to use to choose the back end. */ 562 unsigned int target_defaulted : 1; 563 564 /* ... and here: (``once'' means at least once). */ 565 unsigned int opened_once : 1; 566 567 /* Set if we have a locally maintained mtime value, rather than 568 getting it from the file each time. */ 569 unsigned int mtime_set : 1; 570 571 /* Flag set if symbols from this BFD should not be exported. */ 572 unsigned int no_export : 1; 573 574 /* Remember when output has begun, to stop strange things 575 from happening. */ 576 unsigned int output_has_begun : 1; 577 578 /* Have archive map. */ 579 unsigned int has_armap : 1; 580 581 /* Set if this is a thin archive. */ 582 unsigned int is_thin_archive : 1; 583 584 /* Set if only required symbols should be added in the link hash table for 585 this object. Used by VMS linkers. */ 586 unsigned int selective_search : 1; 587 }; 588 589 2.2 Error reporting 590 =================== 591 592 Most BFD functions return nonzero on success (check their individual 593 documentation for precise semantics). On an error, they call 594 `bfd_set_error' to set an error condition that callers can check by 595 calling `bfd_get_error'. If that returns `bfd_error_system_call', then 596 check `errno'. 597 598 The easiest way to report a BFD error to the user is to use 599 `bfd_perror'. 600 601 2.2.1 Type `bfd_error_type' 602 --------------------------- 603 604 The values returned by `bfd_get_error' are defined by the enumerated 605 type `bfd_error_type'. 606 607 608 typedef enum bfd_error 609 { 610 bfd_error_no_error = 0, 611 bfd_error_system_call, 612 bfd_error_invalid_target, 613 bfd_error_wrong_format, 614 bfd_error_wrong_object_format, 615 bfd_error_invalid_operation, 616 bfd_error_no_memory, 617 bfd_error_no_symbols, 618 bfd_error_no_armap, 619 bfd_error_no_more_archived_files, 620 bfd_error_malformed_archive, 621 bfd_error_file_not_recognized, 622 bfd_error_file_ambiguously_recognized, 623 bfd_error_no_contents, 624 bfd_error_nonrepresentable_section, 625 bfd_error_no_debug_section, 626 bfd_error_bad_value, 627 bfd_error_file_truncated, 628 bfd_error_file_too_big, 629 bfd_error_on_input, 630 bfd_error_invalid_error_code 631 } 632 bfd_error_type; 633 634 2.2.1.1 `bfd_get_error' 635 ....................... 636 637 *Synopsis* 638 bfd_error_type bfd_get_error (void); 639 *Description* 640 Return the current BFD error condition. 641 642 2.2.1.2 `bfd_set_error' 643 ....................... 644 645 *Synopsis* 646 void bfd_set_error (bfd_error_type error_tag, ...); 647 *Description* 648 Set the BFD error condition to be ERROR_TAG. If ERROR_TAG is 649 bfd_error_on_input, then this function takes two more parameters, the 650 input bfd where the error occurred, and the bfd_error_type error. 651 652 2.2.1.3 `bfd_errmsg' 653 .................... 654 655 *Synopsis* 656 const char *bfd_errmsg (bfd_error_type error_tag); 657 *Description* 658 Return a string describing the error ERROR_TAG, or the system error if 659 ERROR_TAG is `bfd_error_system_call'. 660 661 2.2.1.4 `bfd_perror' 662 .................... 663 664 *Synopsis* 665 void bfd_perror (const char *message); 666 *Description* 667 Print to the standard error stream a string describing the last BFD 668 error that occurred, or the last system error if the last BFD error was 669 a system call failure. If MESSAGE is non-NULL and non-empty, the error 670 string printed is preceded by MESSAGE, a colon, and a space. It is 671 followed by a newline. 672 673 2.2.2 BFD error handler 674 ----------------------- 675 676 Some BFD functions want to print messages describing the problem. They 677 call a BFD error handler function. This function may be overridden by 678 the program. 679 680 The BFD error handler acts like printf. 681 682 683 typedef void (*bfd_error_handler_type) (const char *, ...); 684 685 2.2.2.1 `bfd_set_error_handler' 686 ............................... 687 688 *Synopsis* 689 bfd_error_handler_type bfd_set_error_handler (bfd_error_handler_type); 690 *Description* 691 Set the BFD error handler function. Returns the previous function. 692 693 2.2.2.2 `bfd_set_error_program_name' 694 .................................... 695 696 *Synopsis* 697 void bfd_set_error_program_name (const char *); 698 *Description* 699 Set the program name to use when printing a BFD error. This is printed 700 before the error message followed by a colon and space. The string 701 must not be changed after it is passed to this function. 702 703 2.2.2.3 `bfd_get_error_handler' 704 ............................... 705 706 *Synopsis* 707 bfd_error_handler_type bfd_get_error_handler (void); 708 *Description* 709 Return the BFD error handler function. 710 711 2.3 Miscellaneous 712 ================= 713 714 2.3.1 Miscellaneous functions 715 ----------------------------- 716 717 2.3.1.1 `bfd_get_reloc_upper_bound' 718 ................................... 719 720 *Synopsis* 721 long bfd_get_reloc_upper_bound (bfd *abfd, asection *sect); 722 *Description* 723 Return the number of bytes required to store the relocation information 724 associated with section SECT attached to bfd ABFD. If an error occurs, 725 return -1. 726 727 2.3.1.2 `bfd_canonicalize_reloc' 728 ................................ 729 730 *Synopsis* 731 long bfd_canonicalize_reloc 732 (bfd *abfd, asection *sec, arelent **loc, asymbol **syms); 733 *Description* 734 Call the back end associated with the open BFD ABFD and translate the 735 external form of the relocation information attached to SEC into the 736 internal canonical form. Place the table into memory at LOC, which has 737 been preallocated, usually by a call to `bfd_get_reloc_upper_bound'. 738 Returns the number of relocs, or -1 on error. 739 740 The SYMS table is also needed for horrible internal magic reasons. 741 742 2.3.1.3 `bfd_set_reloc' 743 ....................... 744 745 *Synopsis* 746 void bfd_set_reloc 747 (bfd *abfd, asection *sec, arelent **rel, unsigned int count); 748 *Description* 749 Set the relocation pointer and count within section SEC to the values 750 REL and COUNT. The argument ABFD is ignored. 751 752 2.3.1.4 `bfd_set_file_flags' 753 ............................ 754 755 *Synopsis* 756 bfd_boolean bfd_set_file_flags (bfd *abfd, flagword flags); 757 *Description* 758 Set the flag word in the BFD ABFD to the value FLAGS. 759 760 Possible errors are: 761 * `bfd_error_wrong_format' - The target bfd was not of object format. 762 763 * `bfd_error_invalid_operation' - The target bfd was open for 764 reading. 765 766 * `bfd_error_invalid_operation' - The flag word contained a bit 767 which was not applicable to the type of file. E.g., an attempt 768 was made to set the `D_PAGED' bit on a BFD format which does not 769 support demand paging. 770 771 2.3.1.5 `bfd_get_arch_size' 772 ........................... 773 774 *Synopsis* 775 int bfd_get_arch_size (bfd *abfd); 776 *Description* 777 Returns the architecture address size, in bits, as determined by the 778 object file's format. For ELF, this information is included in the 779 header. 780 781 *Returns* 782 Returns the arch size in bits if known, `-1' otherwise. 783 784 2.3.1.6 `bfd_get_sign_extend_vma' 785 ................................. 786 787 *Synopsis* 788 int bfd_get_sign_extend_vma (bfd *abfd); 789 *Description* 790 Indicates if the target architecture "naturally" sign extends an 791 address. Some architectures implicitly sign extend address values when 792 they are converted to types larger than the size of an address. For 793 instance, bfd_get_start_address() will return an address sign extended 794 to fill a bfd_vma when this is the case. 795 796 *Returns* 797 Returns `1' if the target architecture is known to sign extend 798 addresses, `0' if the target architecture is known to not sign extend 799 addresses, and `-1' otherwise. 800 801 2.3.1.7 `bfd_set_start_address' 802 ............................... 803 804 *Synopsis* 805 bfd_boolean bfd_set_start_address (bfd *abfd, bfd_vma vma); 806 *Description* 807 Make VMA the entry point of output BFD ABFD. 808 809 *Returns* 810 Returns `TRUE' on success, `FALSE' otherwise. 811 812 2.3.1.8 `bfd_get_gp_size' 813 ......................... 814 815 *Synopsis* 816 unsigned int bfd_get_gp_size (bfd *abfd); 817 *Description* 818 Return the maximum size of objects to be optimized using the GP 819 register under MIPS ECOFF. This is typically set by the `-G' argument 820 to the compiler, assembler or linker. 821 822 2.3.1.9 `bfd_set_gp_size' 823 ......................... 824 825 *Synopsis* 826 void bfd_set_gp_size (bfd *abfd, unsigned int i); 827 *Description* 828 Set the maximum size of objects to be optimized using the GP register 829 under ECOFF or MIPS ELF. This is typically set by the `-G' argument to 830 the compiler, assembler or linker. 831 832 2.3.1.10 `bfd_scan_vma' 833 ....................... 834 835 *Synopsis* 836 bfd_vma bfd_scan_vma (const char *string, const char **end, int base); 837 *Description* 838 Convert, like `strtoul', a numerical expression STRING into a `bfd_vma' 839 integer, and return that integer. (Though without as many bells and 840 whistles as `strtoul'.) The expression is assumed to be unsigned 841 (i.e., positive). If given a BASE, it is used as the base for 842 conversion. A base of 0 causes the function to interpret the string in 843 hex if a leading "0x" or "0X" is found, otherwise in octal if a leading 844 zero is found, otherwise in decimal. 845 846 If the value would overflow, the maximum `bfd_vma' value is returned. 847 848 2.3.1.11 `bfd_copy_private_header_data' 849 ....................................... 850 851 *Synopsis* 852 bfd_boolean bfd_copy_private_header_data (bfd *ibfd, bfd *obfd); 853 *Description* 854 Copy private BFD header information from the BFD IBFD to the the BFD 855 OBFD. This copies information that may require sections to exist, but 856 does not require symbol tables. Return `true' on success, `false' on 857 error. Possible error returns are: 858 859 * `bfd_error_no_memory' - Not enough memory exists to create private 860 data for OBFD. 861 862 #define bfd_copy_private_header_data(ibfd, obfd) \ 863 BFD_SEND (obfd, _bfd_copy_private_header_data, \ 864 (ibfd, obfd)) 865 866 2.3.1.12 `bfd_copy_private_bfd_data' 867 .................................... 868 869 *Synopsis* 870 bfd_boolean bfd_copy_private_bfd_data (bfd *ibfd, bfd *obfd); 871 *Description* 872 Copy private BFD information from the BFD IBFD to the the BFD OBFD. 873 Return `TRUE' on success, `FALSE' on error. Possible error returns are: 874 875 * `bfd_error_no_memory' - Not enough memory exists to create private 876 data for OBFD. 877 878 #define bfd_copy_private_bfd_data(ibfd, obfd) \ 879 BFD_SEND (obfd, _bfd_copy_private_bfd_data, \ 880 (ibfd, obfd)) 881 882 2.3.1.13 `bfd_merge_private_bfd_data' 883 ..................................... 884 885 *Synopsis* 886 bfd_boolean bfd_merge_private_bfd_data (bfd *ibfd, bfd *obfd); 887 *Description* 888 Merge private BFD information from the BFD IBFD to the the output file 889 BFD OBFD when linking. Return `TRUE' on success, `FALSE' on error. 890 Possible error returns are: 891 892 * `bfd_error_no_memory' - Not enough memory exists to create private 893 data for OBFD. 894 895 #define bfd_merge_private_bfd_data(ibfd, obfd) \ 896 BFD_SEND (obfd, _bfd_merge_private_bfd_data, \ 897 (ibfd, obfd)) 898 899 2.3.1.14 `bfd_set_private_flags' 900 ................................ 901 902 *Synopsis* 903 bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags); 904 *Description* 905 Set private BFD flag information in the BFD ABFD. Return `TRUE' on 906 success, `FALSE' on error. Possible error returns are: 907 908 * `bfd_error_no_memory' - Not enough memory exists to create private 909 data for OBFD. 910 911 #define bfd_set_private_flags(abfd, flags) \ 912 BFD_SEND (abfd, _bfd_set_private_flags, (abfd, flags)) 913 914 2.3.1.15 `Other functions' 915 .......................... 916 917 *Description* 918 The following functions exist but have not yet been documented. 919 #define bfd_sizeof_headers(abfd, info) \ 920 BFD_SEND (abfd, _bfd_sizeof_headers, (abfd, info)) 921 922 #define bfd_find_nearest_line(abfd, sec, syms, off, file, func, line) \ 923 BFD_SEND (abfd, _bfd_find_nearest_line, \ 924 (abfd, sec, syms, off, file, func, line)) 925 926 #define bfd_find_line(abfd, syms, sym, file, line) \ 927 BFD_SEND (abfd, _bfd_find_line, \ 928 (abfd, syms, sym, file, line)) 929 930 #define bfd_find_inliner_info(abfd, file, func, line) \ 931 BFD_SEND (abfd, _bfd_find_inliner_info, \ 932 (abfd, file, func, line)) 933 934 #define bfd_debug_info_start(abfd) \ 935 BFD_SEND (abfd, _bfd_debug_info_start, (abfd)) 936 937 #define bfd_debug_info_end(abfd) \ 938 BFD_SEND (abfd, _bfd_debug_info_end, (abfd)) 939 940 #define bfd_debug_info_accumulate(abfd, section) \ 941 BFD_SEND (abfd, _bfd_debug_info_accumulate, (abfd, section)) 942 943 #define bfd_stat_arch_elt(abfd, stat) \ 944 BFD_SEND (abfd, _bfd_stat_arch_elt,(abfd, stat)) 945 946 #define bfd_update_armap_timestamp(abfd) \ 947 BFD_SEND (abfd, _bfd_update_armap_timestamp, (abfd)) 948 949 #define bfd_set_arch_mach(abfd, arch, mach)\ 950 BFD_SEND ( abfd, _bfd_set_arch_mach, (abfd, arch, mach)) 951 952 #define bfd_relax_section(abfd, section, link_info, again) \ 953 BFD_SEND (abfd, _bfd_relax_section, (abfd, section, link_info, again)) 954 955 #define bfd_gc_sections(abfd, link_info) \ 956 BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info)) 957 958 #define bfd_merge_sections(abfd, link_info) \ 959 BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info)) 960 961 #define bfd_is_group_section(abfd, sec) \ 962 BFD_SEND (abfd, _bfd_is_group_section, (abfd, sec)) 963 964 #define bfd_discard_group(abfd, sec) \ 965 BFD_SEND (abfd, _bfd_discard_group, (abfd, sec)) 966 967 #define bfd_link_hash_table_create(abfd) \ 968 BFD_SEND (abfd, _bfd_link_hash_table_create, (abfd)) 969 970 #define bfd_link_hash_table_free(abfd, hash) \ 971 BFD_SEND (abfd, _bfd_link_hash_table_free, (hash)) 972 973 #define bfd_link_add_symbols(abfd, info) \ 974 BFD_SEND (abfd, _bfd_link_add_symbols, (abfd, info)) 975 976 #define bfd_link_just_syms(abfd, sec, info) \ 977 BFD_SEND (abfd, _bfd_link_just_syms, (sec, info)) 978 979 #define bfd_final_link(abfd, info) \ 980 BFD_SEND (abfd, _bfd_final_link, (abfd, info)) 981 982 #define bfd_free_cached_info(abfd) \ 983 BFD_SEND (abfd, _bfd_free_cached_info, (abfd)) 984 985 #define bfd_get_dynamic_symtab_upper_bound(abfd) \ 986 BFD_SEND (abfd, _bfd_get_dynamic_symtab_upper_bound, (abfd)) 987 988 #define bfd_print_private_bfd_data(abfd, file)\ 989 BFD_SEND (abfd, _bfd_print_private_bfd_data, (abfd, file)) 990 991 #define bfd_canonicalize_dynamic_symtab(abfd, asymbols) \ 992 BFD_SEND (abfd, _bfd_canonicalize_dynamic_symtab, (abfd, asymbols)) 993 994 #define bfd_get_synthetic_symtab(abfd, count, syms, dyncount, dynsyms, ret) \ 995 BFD_SEND (abfd, _bfd_get_synthetic_symtab, (abfd, count, syms, \ 996 dyncount, dynsyms, ret)) 997 998 #define bfd_get_dynamic_reloc_upper_bound(abfd) \ 999 BFD_SEND (abfd, _bfd_get_dynamic_reloc_upper_bound, (abfd)) 1000 1001 #define bfd_canonicalize_dynamic_reloc(abfd, arels, asyms) \ 1002 BFD_SEND (abfd, _bfd_canonicalize_dynamic_reloc, (abfd, arels, asyms)) 1003 1004 extern bfd_byte *bfd_get_relocated_section_contents 1005 (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *, 1006 bfd_boolean, asymbol **); 1007 1008 2.3.1.16 `bfd_alt_mach_code' 1009 ............................ 1010 1011 *Synopsis* 1012 bfd_boolean bfd_alt_mach_code (bfd *abfd, int alternative); 1013 *Description* 1014 When more than one machine code number is available for the same 1015 machine type, this function can be used to switch between the preferred 1016 one (alternative == 0) and any others. Currently, only ELF supports 1017 this feature, with up to two alternate machine codes. 1018 1019 struct bfd_preserve 1020 { 1021 void *marker; 1022 void *tdata; 1023 flagword flags; 1024 const struct bfd_arch_info *arch_info; 1025 struct bfd_section *sections; 1026 struct bfd_section *section_last; 1027 unsigned int section_count; 1028 struct bfd_hash_table section_htab; 1029 }; 1030 1031 2.3.1.17 `bfd_preserve_save' 1032 ............................ 1033 1034 *Synopsis* 1035 bfd_boolean bfd_preserve_save (bfd *, struct bfd_preserve *); 1036 *Description* 1037 When testing an object for compatibility with a particular target 1038 back-end, the back-end object_p function needs to set up certain fields 1039 in the bfd on successfully recognizing the object. This typically 1040 happens in a piecemeal fashion, with failures possible at many points. 1041 On failure, the bfd is supposed to be restored to its initial state, 1042 which is virtually impossible. However, restoring a subset of the bfd 1043 state works in practice. This function stores the subset and 1044 reinitializes the bfd. 1045 1046 2.3.1.18 `bfd_preserve_restore' 1047 ............................... 1048 1049 *Synopsis* 1050 void bfd_preserve_restore (bfd *, struct bfd_preserve *); 1051 *Description* 1052 This function restores bfd state saved by bfd_preserve_save. If MARKER 1053 is non-NULL in struct bfd_preserve then that block and all subsequently 1054 bfd_alloc'd memory is freed. 1055 1056 2.3.1.19 `bfd_preserve_finish' 1057 .............................. 1058 1059 *Synopsis* 1060 void bfd_preserve_finish (bfd *, struct bfd_preserve *); 1061 *Description* 1062 This function should be called when the bfd state saved by 1063 bfd_preserve_save is no longer needed. ie. when the back-end object_p 1064 function returns with success. 1065 1066 2.3.1.20 `bfd_emul_get_maxpagesize' 1067 ................................... 1068 1069 *Synopsis* 1070 bfd_vma bfd_emul_get_maxpagesize (const char *); 1071 *Description* 1072 Returns the maximum page size, in bytes, as determined by emulation. 1073 1074 *Returns* 1075 Returns the maximum page size in bytes for ELF, 0 otherwise. 1076 1077 2.3.1.21 `bfd_emul_set_maxpagesize' 1078 ................................... 1079 1080 *Synopsis* 1081 void bfd_emul_set_maxpagesize (const char *, bfd_vma); 1082 *Description* 1083 For ELF, set the maximum page size for the emulation. It is a no-op 1084 for other formats. 1085 1086 2.3.1.22 `bfd_emul_get_commonpagesize' 1087 ...................................... 1088 1089 *Synopsis* 1090 bfd_vma bfd_emul_get_commonpagesize (const char *); 1091 *Description* 1092 Returns the common page size, in bytes, as determined by emulation. 1093 1094 *Returns* 1095 Returns the common page size in bytes for ELF, 0 otherwise. 1096 1097 2.3.1.23 `bfd_emul_set_commonpagesize' 1098 ...................................... 1099 1100 *Synopsis* 1101 void bfd_emul_set_commonpagesize (const char *, bfd_vma); 1102 *Description* 1103 For ELF, set the common page size for the emulation. It is a no-op for 1104 other formats. 1105 1106 2.3.1.24 `bfd_demangle' 1107 ....................... 1108 1109 *Synopsis* 1110 char *bfd_demangle (bfd *, const char *, int); 1111 *Description* 1112 Wrapper around cplus_demangle. Strips leading underscores and other 1113 such chars that would otherwise confuse the demangler. If passed a g++ 1114 v3 ABI mangled name, returns a buffer allocated with malloc holding the 1115 demangled name. Returns NULL otherwise and on memory alloc failure. 1116 1117 2.3.1.25 `struct bfd_iovec' 1118 ........................... 1119 1120 *Description* 1121 The `struct bfd_iovec' contains the internal file I/O class. Each 1122 `BFD' has an instance of this class and all file I/O is routed through 1123 it (it is assumed that the instance implements all methods listed 1124 below). 1125 struct bfd_iovec 1126 { 1127 /* To avoid problems with macros, a "b" rather than "f" 1128 prefix is prepended to each method name. */ 1129 /* Attempt to read/write NBYTES on ABFD's IOSTREAM storing/fetching 1130 bytes starting at PTR. Return the number of bytes actually 1131 transfered (a read past end-of-file returns less than NBYTES), 1132 or -1 (setting `bfd_error') if an error occurs. */ 1133 file_ptr (*bread) (struct bfd *abfd, void *ptr, file_ptr nbytes); 1134 file_ptr (*bwrite) (struct bfd *abfd, const void *ptr, 1135 file_ptr nbytes); 1136 /* Return the current IOSTREAM file offset, or -1 (setting `bfd_error' 1137 if an error occurs. */ 1138 file_ptr (*btell) (struct bfd *abfd); 1139 /* For the following, on successful completion a value of 0 is returned. 1140 Otherwise, a value of -1 is returned (and `bfd_error' is set). */ 1141 int (*bseek) (struct bfd *abfd, file_ptr offset, int whence); 1142 int (*bclose) (struct bfd *abfd); 1143 int (*bflush) (struct bfd *abfd); 1144 int (*bstat) (struct bfd *abfd, struct stat *sb); 1145 /* Just like mmap: (void*)-1 on failure, mmapped address on success. */ 1146 void *(*bmmap) (struct bfd *abfd, void *addr, bfd_size_type len, 1147 int prot, int flags, file_ptr offset); 1148 }; 1149 extern const struct bfd_iovec _bfd_memory_iovec; 1150 1151 2.3.1.26 `bfd_get_mtime' 1152 ........................ 1153 1154 *Synopsis* 1155 long bfd_get_mtime (bfd *abfd); 1156 *Description* 1157 Return the file modification time (as read from the file system, or 1158 from the archive header for archive members). 1159 1160 2.3.1.27 `bfd_get_size' 1161 ....................... 1162 1163 *Synopsis* 1164 file_ptr bfd_get_size (bfd *abfd); 1165 *Description* 1166 Return the file size (as read from file system) for the file associated 1167 with BFD ABFD. 1168 1169 The initial motivation for, and use of, this routine is not so we 1170 can get the exact size of the object the BFD applies to, since that 1171 might not be generally possible (archive members for example). It 1172 would be ideal if someone could eventually modify it so that such 1173 results were guaranteed. 1174 1175 Instead, we want to ask questions like "is this NNN byte sized 1176 object I'm about to try read from file offset YYY reasonable?" As as 1177 example of where we might do this, some object formats use string 1178 tables for which the first `sizeof (long)' bytes of the table contain 1179 the size of the table itself, including the size bytes. If an 1180 application tries to read what it thinks is one of these string tables, 1181 without some way to validate the size, and for some reason the size is 1182 wrong (byte swapping error, wrong location for the string table, etc.), 1183 the only clue is likely to be a read error when it tries to read the 1184 table, or a "virtual memory exhausted" error when it tries to allocate 1185 15 bazillon bytes of space for the 15 bazillon byte table it is about 1186 to read. This function at least allows us to answer the question, "is 1187 the size reasonable?". 1188 1189 2.3.1.28 `bfd_mmap' 1190 ................... 1191 1192 *Synopsis* 1193 void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len, 1194 int prot, int flags, file_ptr offset); 1195 *Description* 1196 Return mmap()ed region of the file, if possible and implemented. 1197 1198 * Menu: 1199 1200 * Memory Usage:: 1201 * Initialization:: 1202 * Sections:: 1203 * Symbols:: 1204 * Archives:: 1205 * Formats:: 1206 * Relocations:: 1207 * Core Files:: 1208 * Targets:: 1209 * Architectures:: 1210 * Opening and Closing:: 1211 * Internal:: 1212 * File Caching:: 1213 * Linker Functions:: 1214 * Hash Tables:: 1215 1216 1217 File: bfd.info, Node: Memory Usage, Next: Initialization, Prev: BFD front end, Up: BFD front end 1218 1219 2.4 Memory Usage 1220 ================ 1221 1222 BFD keeps all of its internal structures in obstacks. There is one 1223 obstack per open BFD file, into which the current state is stored. When 1224 a BFD is closed, the obstack is deleted, and so everything which has 1225 been allocated by BFD for the closing file is thrown away. 1226 1227 BFD does not free anything created by an application, but pointers 1228 into `bfd' structures become invalid on a `bfd_close'; for example, 1229 after a `bfd_close' the vector passed to `bfd_canonicalize_symtab' is 1230 still around, since it has been allocated by the application, but the 1231 data that it pointed to are lost. 1232 1233 The general rule is to not close a BFD until all operations dependent 1234 upon data from the BFD have been completed, or all the data from within 1235 the file has been copied. To help with the management of memory, there 1236 is a function (`bfd_alloc_size') which returns the number of bytes in 1237 obstacks associated with the supplied BFD. This could be used to select 1238 the greediest open BFD, close it to reclaim the memory, perform some 1239 operation and reopen the BFD again, to get a fresh copy of the data 1240 structures. 1241 1242 1243 File: bfd.info, Node: Initialization, Next: Sections, Prev: Memory Usage, Up: BFD front end 1244 1245 2.5 Initialization 1246 ================== 1247 1248 2.5.1 Initialization functions 1249 ------------------------------ 1250 1251 These are the functions that handle initializing a BFD. 1252 1253 2.5.1.1 `bfd_init' 1254 .................. 1255 1256 *Synopsis* 1257 void bfd_init (void); 1258 *Description* 1259 This routine must be called before any other BFD function to initialize 1260 magical internal data structures. 1261 1262 1263 File: bfd.info, Node: Sections, Next: Symbols, Prev: Initialization, Up: BFD front end 1264 1265 2.6 Sections 1266 ============ 1267 1268 The raw data contained within a BFD is maintained through the section 1269 abstraction. A single BFD may have any number of sections. It keeps 1270 hold of them by pointing to the first; each one points to the next in 1271 the list. 1272 1273 Sections are supported in BFD in `section.c'. 1274 1275 * Menu: 1276 1277 * Section Input:: 1278 * Section Output:: 1279 * typedef asection:: 1280 * section prototypes:: 1281 1282 1283 File: bfd.info, Node: Section Input, Next: Section Output, Prev: Sections, Up: Sections 1284 1285 2.6.1 Section input 1286 ------------------- 1287 1288 When a BFD is opened for reading, the section structures are created 1289 and attached to the BFD. 1290 1291 Each section has a name which describes the section in the outside 1292 world--for example, `a.out' would contain at least three sections, 1293 called `.text', `.data' and `.bss'. 1294 1295 Names need not be unique; for example a COFF file may have several 1296 sections named `.data'. 1297 1298 Sometimes a BFD will contain more than the "natural" number of 1299 sections. A back end may attach other sections containing constructor 1300 data, or an application may add a section (using `bfd_make_section') to 1301 the sections attached to an already open BFD. For example, the linker 1302 creates an extra section `COMMON' for each input file's BFD to hold 1303 information about common storage. 1304 1305 The raw data is not necessarily read in when the section descriptor 1306 is created. Some targets may leave the data in place until a 1307 `bfd_get_section_contents' call is made. Other back ends may read in 1308 all the data at once. For example, an S-record file has to be read 1309 once to determine the size of the data. An IEEE-695 file doesn't 1310 contain raw data in sections, but data and relocation expressions 1311 intermixed, so the data area has to be parsed to get out the data and 1312 relocations. 1313 1314 1315 File: bfd.info, Node: Section Output, Next: typedef asection, Prev: Section Input, Up: Sections 1316 1317 2.6.2 Section output 1318 -------------------- 1319 1320 To write a new object style BFD, the various sections to be written 1321 have to be created. They are attached to the BFD in the same way as 1322 input sections; data is written to the sections using 1323 `bfd_set_section_contents'. 1324 1325 Any program that creates or combines sections (e.g., the assembler 1326 and linker) must use the `asection' fields `output_section' and 1327 `output_offset' to indicate the file sections to which each section 1328 must be written. (If the section is being created from scratch, 1329 `output_section' should probably point to the section itself and 1330 `output_offset' should probably be zero.) 1331 1332 The data to be written comes from input sections attached (via 1333 `output_section' pointers) to the output sections. The output section 1334 structure can be considered a filter for the input section: the output 1335 section determines the vma of the output data and the name, but the 1336 input section determines the offset into the output section of the data 1337 to be written. 1338 1339 E.g., to create a section "O", starting at 0x100, 0x123 long, 1340 containing two subsections, "A" at offset 0x0 (i.e., at vma 0x100) and 1341 "B" at offset 0x20 (i.e., at vma 0x120) the `asection' structures would 1342 look like: 1343 1344 section name "A" 1345 output_offset 0x00 1346 size 0x20 1347 output_section -----------> section name "O" 1348 | vma 0x100 1349 section name "B" | size 0x123 1350 output_offset 0x20 | 1351 size 0x103 | 1352 output_section --------| 1353 1354 2.6.3 Link orders 1355 ----------------- 1356 1357 The data within a section is stored in a "link_order". These are much 1358 like the fixups in `gas'. The link_order abstraction allows a section 1359 to grow and shrink within itself. 1360 1361 A link_order knows how big it is, and which is the next link_order 1362 and where the raw data for it is; it also points to a list of 1363 relocations which apply to it. 1364 1365 The link_order is used by the linker to perform relaxing on final 1366 code. The compiler creates code which is as big as necessary to make 1367 it work without relaxing, and the user can select whether to relax. 1368 Sometimes relaxing takes a lot of time. The linker runs around the 1369 relocations to see if any are attached to data which can be shrunk, if 1370 so it does it on a link_order by link_order basis. 1371 1372 1373 File: bfd.info, Node: typedef asection, Next: section prototypes, Prev: Section Output, Up: Sections 1374 1375 2.6.4 typedef asection 1376 ---------------------- 1377 1378 Here is the section structure: 1379 1380 1381 typedef struct bfd_section 1382 { 1383 /* The name of the section; the name isn't a copy, the pointer is 1384 the same as that passed to bfd_make_section. */ 1385 const char *name; 1386 1387 /* A unique sequence number. */ 1388 int id; 1389 1390 /* Which section in the bfd; 0..n-1 as sections are created in a bfd. */ 1391 int index; 1392 1393 /* The next section in the list belonging to the BFD, or NULL. */ 1394 struct bfd_section *next; 1395 1396 /* The previous section in the list belonging to the BFD, or NULL. */ 1397 struct bfd_section *prev; 1398 1399 /* The field flags contains attributes of the section. Some 1400 flags are read in from the object file, and some are 1401 synthesized from other information. */ 1402 flagword flags; 1403 1404 #define SEC_NO_FLAGS 0x000 1405 1406 /* Tells the OS to allocate space for this section when loading. 1407 This is clear for a section containing debug information only. */ 1408 #define SEC_ALLOC 0x001 1409 1410 /* Tells the OS to load the section from the file when loading. 1411 This is clear for a .bss section. */ 1412 #define SEC_LOAD 0x002 1413 1414 /* The section contains data still to be relocated, so there is 1415 some relocation information too. */ 1416 #define SEC_RELOC 0x004 1417 1418 /* A signal to the OS that the section contains read only data. */ 1419 #define SEC_READONLY 0x008 1420 1421 /* The section contains code only. */ 1422 #define SEC_CODE 0x010 1423 1424 /* The section contains data only. */ 1425 #define SEC_DATA 0x020 1426 1427 /* The section will reside in ROM. */ 1428 #define SEC_ROM 0x040 1429 1430 /* The section contains constructor information. This section 1431 type is used by the linker to create lists of constructors and 1432 destructors used by `g++'. When a back end sees a symbol 1433 which should be used in a constructor list, it creates a new 1434 section for the type of name (e.g., `__CTOR_LIST__'), attaches 1435 the symbol to it, and builds a relocation. To build the lists 1436 of constructors, all the linker has to do is catenate all the 1437 sections called `__CTOR_LIST__' and relocate the data 1438 contained within - exactly the operations it would peform on 1439 standard data. */ 1440 #define SEC_CONSTRUCTOR 0x080 1441 1442 /* The section has contents - a data section could be 1443 `SEC_ALLOC' | `SEC_HAS_CONTENTS'; a debug section could be 1444 `SEC_HAS_CONTENTS' */ 1445 #define SEC_HAS_CONTENTS 0x100 1446 1447 /* An instruction to the linker to not output the section 1448 even if it has information which would normally be written. */ 1449 #define SEC_NEVER_LOAD 0x200 1450 1451 /* The section contains thread local data. */ 1452 #define SEC_THREAD_LOCAL 0x400 1453 1454 /* The section has GOT references. This flag is only for the 1455 linker, and is currently only used by the elf32-hppa back end. 1456 It will be set if global offset table references were detected 1457 in this section, which indicate to the linker that the section 1458 contains PIC code, and must be handled specially when doing a 1459 static link. */ 1460 #define SEC_HAS_GOT_REF 0x800 1461 1462 /* The section contains common symbols (symbols may be defined 1463 multiple times, the value of a symbol is the amount of 1464 space it requires, and the largest symbol value is the one 1465 used). Most targets have exactly one of these (which we 1466 translate to bfd_com_section_ptr), but ECOFF has two. */ 1467 #define SEC_IS_COMMON 0x1000 1468 1469 /* The section contains only debugging information. For 1470 example, this is set for ELF .debug and .stab sections. 1471 strip tests this flag to see if a section can be 1472 discarded. */ 1473 #define SEC_DEBUGGING 0x2000 1474 1475 /* The contents of this section are held in memory pointed to 1476 by the contents field. This is checked by bfd_get_section_contents, 1477 and the data is retrieved from memory if appropriate. */ 1478 #define SEC_IN_MEMORY 0x4000 1479 1480 /* The contents of this section are to be excluded by the 1481 linker for executable and shared objects unless those 1482 objects are to be further relocated. */ 1483 #define SEC_EXCLUDE 0x8000 1484 1485 /* The contents of this section are to be sorted based on the sum of 1486 the symbol and addend values specified by the associated relocation 1487 entries. Entries without associated relocation entries will be 1488 appended to the end of the section in an unspecified order. */ 1489 #define SEC_SORT_ENTRIES 0x10000 1490 1491 /* When linking, duplicate sections of the same name should be 1492 discarded, rather than being combined into a single section as 1493 is usually done. This is similar to how common symbols are 1494 handled. See SEC_LINK_DUPLICATES below. */ 1495 #define SEC_LINK_ONCE 0x20000 1496 1497 /* If SEC_LINK_ONCE is set, this bitfield describes how the linker 1498 should handle duplicate sections. */ 1499 #define SEC_LINK_DUPLICATES 0xc0000 1500 1501 /* This value for SEC_LINK_DUPLICATES means that duplicate 1502 sections with the same name should simply be discarded. */ 1503 #define SEC_LINK_DUPLICATES_DISCARD 0x0 1504 1505 /* This value for SEC_LINK_DUPLICATES means that the linker 1506 should warn if there are any duplicate sections, although 1507 it should still only link one copy. */ 1508 #define SEC_LINK_DUPLICATES_ONE_ONLY 0x40000 1509 1510 /* This value for SEC_LINK_DUPLICATES means that the linker 1511 should warn if any duplicate sections are a different size. */ 1512 #define SEC_LINK_DUPLICATES_SAME_SIZE 0x80000 1513 1514 /* This value for SEC_LINK_DUPLICATES means that the linker 1515 should warn if any duplicate sections contain different 1516 contents. */ 1517 #define SEC_LINK_DUPLICATES_SAME_CONTENTS \ 1518 (SEC_LINK_DUPLICATES_ONE_ONLY | SEC_LINK_DUPLICATES_SAME_SIZE) 1519 1520 /* This section was created by the linker as part of dynamic 1521 relocation or other arcane processing. It is skipped when 1522 going through the first-pass output, trusting that someone 1523 else up the line will take care of it later. */ 1524 #define SEC_LINKER_CREATED 0x100000 1525 1526 /* This section should not be subject to garbage collection. 1527 Also set to inform the linker that this section should not be 1528 listed in the link map as discarded. */ 1529 #define SEC_KEEP 0x200000 1530 1531 /* This section contains "short" data, and should be placed 1532 "near" the GP. */ 1533 #define SEC_SMALL_DATA 0x400000 1534 1535 /* Attempt to merge identical entities in the section. 1536 Entity size is given in the entsize field. */ 1537 #define SEC_MERGE 0x800000 1538 1539 /* If given with SEC_MERGE, entities to merge are zero terminated 1540 strings where entsize specifies character size instead of fixed 1541 size entries. */ 1542 #define SEC_STRINGS 0x1000000 1543 1544 /* This section contains data about section groups. */ 1545 #define SEC_GROUP 0x2000000 1546 1547 /* The section is a COFF shared library section. This flag is 1548 only for the linker. If this type of section appears in 1549 the input file, the linker must copy it to the output file 1550 without changing the vma or size. FIXME: Although this 1551 was originally intended to be general, it really is COFF 1552 specific (and the flag was renamed to indicate this). It 1553 might be cleaner to have some more general mechanism to 1554 allow the back end to control what the linker does with 1555 sections. */ 1556 #define SEC_COFF_SHARED_LIBRARY 0x4000000 1557 1558 /* This section contains data which may be shared with other 1559 executables or shared objects. This is for COFF only. */ 1560 #define SEC_COFF_SHARED 0x8000000 1561 1562 /* When a section with this flag is being linked, then if the size of 1563 the input section is less than a page, it should not cross a page 1564 boundary. If the size of the input section is one page or more, 1565 it should be aligned on a page boundary. This is for TI 1566 TMS320C54X only. */ 1567 #define SEC_TIC54X_BLOCK 0x10000000 1568 1569 /* Conditionally link this section; do not link if there are no 1570 references found to any symbol in the section. This is for TI 1571 TMS320C54X only. */ 1572 #define SEC_TIC54X_CLINK 0x20000000 1573 1574 /* Indicate that section has the no read flag set. This happens 1575 when memory read flag isn't set. */ 1576 #define SEC_COFF_NOREAD 0x40000000 1577 1578 /* End of section flags. */ 1579 1580 /* Some internal packed boolean fields. */ 1581 1582 /* See the vma field. */ 1583 unsigned int user_set_vma : 1; 1584 1585 /* A mark flag used by some of the linker backends. */ 1586 unsigned int linker_mark : 1; 1587 1588 /* Another mark flag used by some of the linker backends. Set for 1589 output sections that have an input section. */ 1590 unsigned int linker_has_input : 1; 1591 1592 /* Mark flag used by some linker backends for garbage collection. */ 1593 unsigned int gc_mark : 1; 1594 1595 /* Section compression status. */ 1596 unsigned int compress_status : 2; 1597 #define COMPRESS_SECTION_NONE 0 1598 #define COMPRESS_SECTION_DONE 1 1599 #define DECOMPRESS_SECTION_SIZED 2 1600 1601 /* The following flags are used by the ELF linker. */ 1602 1603 /* Mark sections which have been allocated to segments. */ 1604 unsigned int segment_mark : 1; 1605 1606 /* Type of sec_info information. */ 1607 unsigned int sec_info_type:3; 1608 #define ELF_INFO_TYPE_NONE 0 1609 #define ELF_INFO_TYPE_STABS 1 1610 #define ELF_INFO_TYPE_MERGE 2 1611 #define ELF_INFO_TYPE_EH_FRAME 3 1612 #define ELF_INFO_TYPE_JUST_SYMS 4 1613 1614 /* Nonzero if this section uses RELA relocations, rather than REL. */ 1615 unsigned int use_rela_p:1; 1616 1617 /* Bits used by various backends. The generic code doesn't touch 1618 these fields. */ 1619 1620 unsigned int sec_flg0:1; 1621 unsigned int sec_flg1:1; 1622 unsigned int sec_flg2:1; 1623 unsigned int sec_flg3:1; 1624 unsigned int sec_flg4:1; 1625 unsigned int sec_flg5:1; 1626 1627 /* End of internal packed boolean fields. */ 1628 1629 /* The virtual memory address of the section - where it will be 1630 at run time. The symbols are relocated against this. The 1631 user_set_vma flag is maintained by bfd; if it's not set, the 1632 backend can assign addresses (for example, in `a.out', where 1633 the default address for `.data' is dependent on the specific 1634 target and various flags). */ 1635 bfd_vma vma; 1636 1637 /* The load address of the section - where it would be in a 1638 rom image; really only used for writing section header 1639 information. */ 1640 bfd_vma lma; 1641 1642 /* The size of the section in octets, as it will be output. 1643 Contains a value even if the section has no contents (e.g., the 1644 size of `.bss'). */ 1645 bfd_size_type size; 1646 1647 /* For input sections, the original size on disk of the section, in 1648 octets. This field should be set for any section whose size is 1649 changed by linker relaxation. It is required for sections where 1650 the linker relaxation scheme doesn't cache altered section and 1651 reloc contents (stabs, eh_frame, SEC_MERGE, some coff relaxing 1652 targets), and thus the original size needs to be kept to read the 1653 section multiple times. For output sections, rawsize holds the 1654 section size calculated on a previous linker relaxation pass. */ 1655 bfd_size_type rawsize; 1656 1657 /* The compressed size of the section in octets. */ 1658 bfd_size_type compressed_size; 1659 1660 /* Relaxation table. */ 1661 struct relax_table *relax; 1662 1663 /* Count of used relaxation table entries. */ 1664 int relax_count; 1665 1666 1667 /* If this section is going to be output, then this value is the 1668 offset in *bytes* into the output section of the first byte in the 1669 input section (byte ==> smallest addressable unit on the 1670 target). In most cases, if this was going to start at the 1671 100th octet (8-bit quantity) in the output section, this value 1672 would be 100. However, if the target byte size is 16 bits 1673 (bfd_octets_per_byte is "2"), this value would be 50. */ 1674 bfd_vma output_offset; 1675 1676 /* The output section through which to map on output. */ 1677 struct bfd_section *output_section; 1678 1679 /* The alignment requirement of the section, as an exponent of 2 - 1680 e.g., 3 aligns to 2^3 (or 8). */ 1681 unsigned int alignment_power; 1682 1683 /* If an input section, a pointer to a vector of relocation 1684 records for the data in this section. */ 1685 struct reloc_cache_entry *relocation; 1686 1687 /* If an output section, a pointer to a vector of pointers to 1688 relocation records for the data in this section. */ 1689 struct reloc_cache_entry **orelocation; 1690 1691 /* The number of relocation records in one of the above. */ 1692 unsigned reloc_count; 1693 1694 /* Information below is back end specific - and not always used 1695 or updated. */ 1696 1697 /* File position of section data. */ 1698 file_ptr filepos; 1699 1700 /* File position of relocation info. */ 1701 file_ptr rel_filepos; 1702 1703 /* File position of line data. */ 1704 file_ptr line_filepos; 1705 1706 /* Pointer to data for applications. */ 1707 void *userdata; 1708 1709 /* If the SEC_IN_MEMORY flag is set, this points to the actual 1710 contents. */ 1711 unsigned char *contents; 1712 1713 /* Attached line number information. */ 1714 alent *lineno; 1715 1716 /* Number of line number records. */ 1717 unsigned int lineno_count; 1718 1719 /* Entity size for merging purposes. */ 1720 unsigned int entsize; 1721 1722 /* Points to the kept section if this section is a link-once section, 1723 and is discarded. */ 1724 struct bfd_section *kept_section; 1725 1726 /* When a section is being output, this value changes as more 1727 linenumbers are written out. */ 1728 file_ptr moving_line_filepos; 1729 1730 /* What the section number is in the target world. */ 1731 int target_index; 1732 1733 void *used_by_bfd; 1734 1735 /* If this is a constructor section then here is a list of the 1736 relocations created to relocate items within it. */ 1737 struct relent_chain *constructor_chain; 1738 1739 /* The BFD which owns the section. */ 1740 bfd *owner; 1741 1742 /* A symbol which points at this section only. */ 1743 struct bfd_symbol *symbol; 1744 struct bfd_symbol **symbol_ptr_ptr; 1745 1746 /* Early in the link process, map_head and map_tail are used to build 1747 a list of input sections attached to an output section. Later, 1748 output sections use these fields for a list of bfd_link_order 1749 structs. */ 1750 union { 1751 struct bfd_link_order *link_order; 1752 struct bfd_section *s; 1753 } map_head, map_tail; 1754 } asection; 1755 1756 /* Relax table contains information about instructions which can 1757 be removed by relaxation -- replacing a long address with a 1758 short address. */ 1759 struct relax_table { 1760 /* Address where bytes may be deleted. */ 1761 bfd_vma addr; 1762 1763 /* Number of bytes to be deleted. */ 1764 int size; 1765 }; 1766 1767 /* These sections are global, and are managed by BFD. The application 1768 and target back end are not permitted to change the values in 1769 these sections. New code should use the section_ptr macros rather 1770 than referring directly to the const sections. The const sections 1771 may eventually vanish. */ 1772 #define BFD_ABS_SECTION_NAME "*ABS*" 1773 #define BFD_UND_SECTION_NAME "*UND*" 1774 #define BFD_COM_SECTION_NAME "*COM*" 1775 #define BFD_IND_SECTION_NAME "*IND*" 1776 1777 /* The absolute section. */ 1778 extern asection bfd_abs_section; 1779 #define bfd_abs_section_ptr ((asection *) &bfd_abs_section) 1780 #define bfd_is_abs_section(sec) ((sec) == bfd_abs_section_ptr) 1781 /* Pointer to the undefined section. */ 1782 extern asection bfd_und_section; 1783 #define bfd_und_section_ptr ((asection *) &bfd_und_section) 1784 #define bfd_is_und_section(sec) ((sec) == bfd_und_section_ptr) 1785 /* Pointer to the common section. */ 1786 extern asection bfd_com_section; 1787 #define bfd_com_section_ptr ((asection *) &bfd_com_section) 1788 /* Pointer to the indirect section. */ 1789 extern asection bfd_ind_section; 1790 #define bfd_ind_section_ptr ((asection *) &bfd_ind_section) 1791 #define bfd_is_ind_section(sec) ((sec) == bfd_ind_section_ptr) 1792 1793 #define bfd_is_const_section(SEC) \ 1794 ( ((SEC) == bfd_abs_section_ptr) \ 1795 || ((SEC) == bfd_und_section_ptr) \ 1796 || ((SEC) == bfd_com_section_ptr) \ 1797 || ((SEC) == bfd_ind_section_ptr)) 1798 1799 /* Macros to handle insertion and deletion of a bfd's sections. These 1800 only handle the list pointers, ie. do not adjust section_count, 1801 target_index etc. */ 1802 #define bfd_section_list_remove(ABFD, S) \ 1803 do \ 1804 { \ 1805 asection *_s = S; \ 1806 asection *_next = _s->next; \ 1807 asection *_prev = _s->prev; \ 1808 if (_prev) \ 1809 _prev->next = _next; \ 1810 else \ 1811 (ABFD)->sections = _next; \ 1812 if (_next) \ 1813 _next->prev = _prev; \ 1814 else \ 1815 (ABFD)->section_last = _prev; \ 1816 } \ 1817 while (0) 1818 #define bfd_section_list_append(ABFD, S) \ 1819 do \ 1820 { \ 1821 asection *_s = S; \ 1822 bfd *_abfd = ABFD; \ 1823 _s->next = NULL; \ 1824 if (_abfd->section_last) \ 1825 { \ 1826 _s->prev = _abfd->section_last; \ 1827 _abfd->section_last->next = _s; \ 1828 } \ 1829 else \ 1830 { \ 1831 _s->prev = NULL; \ 1832 _abfd->sections = _s; \ 1833 } \ 1834 _abfd->section_last = _s; \ 1835 } \ 1836 while (0) 1837 #define bfd_section_list_prepend(ABFD, S) \ 1838 do \ 1839 { \ 1840 asection *_s = S; \ 1841 bfd *_abfd = ABFD; \ 1842 _s->prev = NULL; \ 1843 if (_abfd->sections) \ 1844 { \ 1845 _s->next = _abfd->sections; \ 1846 _abfd->sections->prev = _s; \ 1847 } \ 1848 else \ 1849 { \ 1850 _s->next = NULL; \ 1851 _abfd->section_last = _s; \ 1852 } \ 1853 _abfd->sections = _s; \ 1854 } \ 1855 while (0) 1856 #define bfd_section_list_insert_after(ABFD, A, S) \ 1857 do \ 1858 { \ 1859 asection *_a = A; \ 1860 asection *_s = S; \ 1861 asection *_next = _a->next; \ 1862 _s->next = _next; \ 1863 _s->prev = _a; \ 1864 _a->next = _s; \ 1865 if (_next) \ 1866 _next->prev = _s; \ 1867 else \ 1868 (ABFD)->section_last = _s; \ 1869 } \ 1870 while (0) 1871 #define bfd_section_list_insert_before(ABFD, B, S) \ 1872 do \ 1873 { \ 1874 asection *_b = B; \ 1875 asection *_s = S; \ 1876 asection *_prev = _b->prev; \ 1877 _s->prev = _prev; \ 1878 _s->next = _b; \ 1879 _b->prev = _s; \ 1880 if (_prev) \ 1881 _prev->next = _s; \ 1882 else \ 1883 (ABFD)->sections = _s; \ 1884 } \ 1885 while (0) 1886 #define bfd_section_removed_from_list(ABFD, S) \ 1887 ((S)->next == NULL ? (ABFD)->section_last != (S) : (S)->next->prev != (S)) 1888 1889 #define BFD_FAKE_SECTION(SEC, FLAGS, SYM, NAME, IDX) \ 1890 /* name, id, index, next, prev, flags, user_set_vma, */ \ 1891 { NAME, IDX, 0, NULL, NULL, FLAGS, 0, \ 1892 \ 1893 /* linker_mark, linker_has_input, gc_mark, decompress_status, */ \ 1894 0, 0, 1, 0, \ 1895 \ 1896 /* segment_mark, sec_info_type, use_rela_p, */ \ 1897 0, 0, 0, \ 1898 \ 1899 /* sec_flg0, sec_flg1, sec_flg2, sec_flg3, sec_flg4, sec_flg5, */ \ 1900 0, 0, 0, 0, 0, 0, \ 1901 \ 1902 /* vma, lma, size, rawsize, compressed_size, relax, relax_count, */ \ 1903 0, 0, 0, 0, 0, 0, 0, \ 1904 \ 1905 /* output_offset, output_section, alignment_power, */ \ 1906 0, (struct bfd_section *) &SEC, 0, \ 1907 \ 1908 /* relocation, orelocation, reloc_count, filepos, rel_filepos, */ \ 1909 NULL, NULL, 0, 0, 0, \ 1910 \ 1911 /* line_filepos, userdata, contents, lineno, lineno_count, */ \ 1912 0, NULL, NULL, NULL, 0, \ 1913 \ 1914 /* entsize, kept_section, moving_line_filepos, */ \ 1915 0, NULL, 0, \ 1916 \ 1917 /* target_index, used_by_bfd, constructor_chain, owner, */ \ 1918 0, NULL, NULL, NULL, \ 1919 \ 1920 /* symbol, symbol_ptr_ptr, */ \ 1921 (struct bfd_symbol *) SYM, &SEC.symbol, \ 1922 \ 1923 /* map_head, map_tail */ \ 1924 { NULL }, { NULL } \ 1925 } 1926 1927 1928 File: bfd.info, Node: section prototypes, Prev: typedef asection, Up: Sections 1929 1930 2.6.5 Section prototypes 1931 ------------------------ 1932 1933 These are the functions exported by the section handling part of BFD. 1934 1935 2.6.5.1 `bfd_section_list_clear' 1936 ................................ 1937 1938 *Synopsis* 1939 void bfd_section_list_clear (bfd *); 1940 *Description* 1941 Clears the section list, and also resets the section count and hash 1942 table entries. 1943 1944 2.6.5.2 `bfd_get_section_by_name' 1945 ................................. 1946 1947 *Synopsis* 1948 asection *bfd_get_section_by_name (bfd *abfd, const char *name); 1949 *Description* 1950 Run through ABFD and return the one of the `asection's whose name 1951 matches NAME, otherwise `NULL'. *Note Sections::, for more information. 1952 1953 This should only be used in special cases; the normal way to process 1954 all sections of a given name is to use `bfd_map_over_sections' and 1955 `strcmp' on the name (or better yet, base it on the section flags or 1956 something else) for each section. 1957 1958 2.6.5.3 `bfd_get_section_by_name_if' 1959 .................................... 1960 1961 *Synopsis* 1962 asection *bfd_get_section_by_name_if 1963 (bfd *abfd, 1964 const char *name, 1965 bfd_boolean (*func) (bfd *abfd, asection *sect, void *obj), 1966 void *obj); 1967 *Description* 1968 Call the provided function FUNC for each section attached to the BFD 1969 ABFD whose name matches NAME, passing OBJ as an argument. The function 1970 will be called as if by 1971 1972 func (abfd, the_section, obj); 1973 1974 It returns the first section for which FUNC returns true, otherwise 1975 `NULL'. 1976 1977 2.6.5.4 `bfd_get_unique_section_name' 1978 ..................................... 1979 1980 *Synopsis* 1981 char *bfd_get_unique_section_name 1982 (bfd *abfd, const char *templat, int *count); 1983 *Description* 1984 Invent a section name that is unique in ABFD by tacking a dot and a 1985 digit suffix onto the original TEMPLAT. If COUNT is non-NULL, then it 1986 specifies the first number tried as a suffix to generate a unique name. 1987 The value pointed to by COUNT will be incremented in this case. 1988 1989 2.6.5.5 `bfd_make_section_old_way' 1990 .................................. 1991 1992 *Synopsis* 1993 asection *bfd_make_section_old_way (bfd *abfd, const char *name); 1994 *Description* 1995 Create a new empty section called NAME and attach it to the end of the 1996 chain of sections for the BFD ABFD. An attempt to create a section with 1997 a name which is already in use returns its pointer without changing the 1998 section chain. 1999 2000 It has the funny name since this is the way it used to be before it 2001 was rewritten.... 2002 2003 Possible errors are: 2004 * `bfd_error_invalid_operation' - If output has already started for 2005 this BFD. 2006 2007 * `bfd_error_no_memory' - If memory allocation fails. 2008 2009 2.6.5.6 `bfd_make_section_anyway_with_flags' 2010 ............................................ 2011 2012 *Synopsis* 2013 asection *bfd_make_section_anyway_with_flags 2014 (bfd *abfd, const char *name, flagword flags); 2015 *Description* 2016 Create a new empty section called NAME and attach it to the end of the 2017 chain of sections for ABFD. Create a new section even if there is 2018 already a section with that name. Also set the attributes of the new 2019 section to the value FLAGS. 2020 2021 Return `NULL' and set `bfd_error' on error; possible errors are: 2022 * `bfd_error_invalid_operation' - If output has already started for 2023 ABFD. 2024 2025 * `bfd_error_no_memory' - If memory allocation fails. 2026 2027 2.6.5.7 `bfd_make_section_anyway' 2028 ................................. 2029 2030 *Synopsis* 2031 asection *bfd_make_section_anyway (bfd *abfd, const char *name); 2032 *Description* 2033 Create a new empty section called NAME and attach it to the end of the 2034 chain of sections for ABFD. Create a new section even if there is 2035 already a section with that name. 2036 2037 Return `NULL' and set `bfd_error' on error; possible errors are: 2038 * `bfd_error_invalid_operation' - If output has already started for 2039 ABFD. 2040 2041 * `bfd_error_no_memory' - If memory allocation fails. 2042 2043 2.6.5.8 `bfd_make_section_with_flags' 2044 ..................................... 2045 2046 *Synopsis* 2047 asection *bfd_make_section_with_flags 2048 (bfd *, const char *name, flagword flags); 2049 *Description* 2050 Like `bfd_make_section_anyway', but return `NULL' (without calling 2051 bfd_set_error ()) without changing the section chain if there is 2052 already a section named NAME. Also set the attributes of the new 2053 section to the value FLAGS. If there is an error, return `NULL' and set 2054 `bfd_error'. 2055 2056 2.6.5.9 `bfd_make_section' 2057 .......................... 2058 2059 *Synopsis* 2060 asection *bfd_make_section (bfd *, const char *name); 2061 *Description* 2062 Like `bfd_make_section_anyway', but return `NULL' (without calling 2063 bfd_set_error ()) without changing the section chain if there is 2064 already a section named NAME. If there is an error, return `NULL' and 2065 set `bfd_error'. 2066 2067 2.6.5.10 `bfd_set_section_flags' 2068 ................................ 2069 2070 *Synopsis* 2071 bfd_boolean bfd_set_section_flags 2072 (bfd *abfd, asection *sec, flagword flags); 2073 *Description* 2074 Set the attributes of the section SEC in the BFD ABFD to the value 2075 FLAGS. Return `TRUE' on success, `FALSE' on error. Possible error 2076 returns are: 2077 2078 * `bfd_error_invalid_operation' - The section cannot have one or 2079 more of the attributes requested. For example, a .bss section in 2080 `a.out' may not have the `SEC_HAS_CONTENTS' field set. 2081 2082 2.6.5.11 `bfd_rename_section' 2083 ............................. 2084 2085 *Synopsis* 2086 void bfd_rename_section 2087 (bfd *abfd, asection *sec, const char *newname); 2088 *Description* 2089 Rename section SEC in ABFD to NEWNAME. 2090 2091 2.6.5.12 `bfd_map_over_sections' 2092 ................................ 2093 2094 *Synopsis* 2095 void bfd_map_over_sections 2096 (bfd *abfd, 2097 void (*func) (bfd *abfd, asection *sect, void *obj), 2098 void *obj); 2099 *Description* 2100 Call the provided function FUNC for each section attached to the BFD 2101 ABFD, passing OBJ as an argument. The function will be called as if by 2102 2103 func (abfd, the_section, obj); 2104 2105 This is the preferred method for iterating over sections; an 2106 alternative would be to use a loop: 2107 2108 section *p; 2109 for (p = abfd->sections; p != NULL; p = p->next) 2110 func (abfd, p, ...) 2111 2112 2.6.5.13 `bfd_sections_find_if' 2113 ............................... 2114 2115 *Synopsis* 2116 asection *bfd_sections_find_if 2117 (bfd *abfd, 2118 bfd_boolean (*operation) (bfd *abfd, asection *sect, void *obj), 2119 void *obj); 2120 *Description* 2121 Call the provided function OPERATION for each section attached to the 2122 BFD ABFD, passing OBJ as an argument. The function will be called as if 2123 by 2124 2125 operation (abfd, the_section, obj); 2126 2127 It returns the first section for which OPERATION returns true. 2128 2129 2.6.5.14 `bfd_set_section_size' 2130 ............................... 2131 2132 *Synopsis* 2133 bfd_boolean bfd_set_section_size 2134 (bfd *abfd, asection *sec, bfd_size_type val); 2135 *Description* 2136 Set SEC to the size VAL. If the operation is ok, then `TRUE' is 2137 returned, else `FALSE'. 2138 2139 Possible error returns: 2140 * `bfd_error_invalid_operation' - Writing has started to the BFD, so 2141 setting the size is invalid. 2142 2143 2.6.5.15 `bfd_set_section_contents' 2144 ................................... 2145 2146 *Synopsis* 2147 bfd_boolean bfd_set_section_contents 2148 (bfd *abfd, asection *section, const void *data, 2149 file_ptr offset, bfd_size_type count); 2150 *Description* 2151 Sets the contents of the section SECTION in BFD ABFD to the data 2152 starting in memory at DATA. The data is written to the output section 2153 starting at offset OFFSET for COUNT octets. 2154 2155 Normally `TRUE' is returned, else `FALSE'. Possible error returns 2156 are: 2157 * `bfd_error_no_contents' - The output section does not have the 2158 `SEC_HAS_CONTENTS' attribute, so nothing can be written to it. 2159 2160 * and some more too 2161 This routine is front end to the back end function 2162 `_bfd_set_section_contents'. 2163 2164 2.6.5.16 `bfd_get_section_contents' 2165 ................................... 2166 2167 *Synopsis* 2168 bfd_boolean bfd_get_section_contents 2169 (bfd *abfd, asection *section, void *location, file_ptr offset, 2170 bfd_size_type count); 2171 *Description* 2172 Read data from SECTION in BFD ABFD into memory starting at LOCATION. 2173 The data is read at an offset of OFFSET from the start of the input 2174 section, and is read for COUNT bytes. 2175 2176 If the contents of a constructor with the `SEC_CONSTRUCTOR' flag set 2177 are requested or if the section does not have the `SEC_HAS_CONTENTS' 2178 flag set, then the LOCATION is filled with zeroes. If no errors occur, 2179 `TRUE' is returned, else `FALSE'. 2180 2181 2.6.5.17 `bfd_malloc_and_get_section' 2182 ..................................... 2183 2184 *Synopsis* 2185 bfd_boolean bfd_malloc_and_get_section 2186 (bfd *abfd, asection *section, bfd_byte **buf); 2187 *Description* 2188 Read all data from SECTION in BFD ABFD into a buffer, *BUF, malloc'd by 2189 this function. 2190 2191 2.6.5.18 `bfd_copy_private_section_data' 2192 ........................................ 2193 2194 *Synopsis* 2195 bfd_boolean bfd_copy_private_section_data 2196 (bfd *ibfd, asection *isec, bfd *obfd, asection *osec); 2197 *Description* 2198 Copy private section information from ISEC in the BFD IBFD to the 2199 section OSEC in the BFD OBFD. Return `TRUE' on success, `FALSE' on 2200 error. Possible error returns are: 2201 2202 * `bfd_error_no_memory' - Not enough memory exists to create private 2203 data for OSEC. 2204 2205 #define bfd_copy_private_section_data(ibfd, isection, obfd, osection) \ 2206 BFD_SEND (obfd, _bfd_copy_private_section_data, \ 2207 (ibfd, isection, obfd, osection)) 2208 2209 2.6.5.19 `bfd_generic_is_group_section' 2210 ....................................... 2211 2212 *Synopsis* 2213 bfd_boolean bfd_generic_is_group_section (bfd *, const asection *sec); 2214 *Description* 2215 Returns TRUE if SEC is a member of a group. 2216 2217 2.6.5.20 `bfd_generic_discard_group' 2218 .................................... 2219 2220 *Synopsis* 2221 bfd_boolean bfd_generic_discard_group (bfd *abfd, asection *group); 2222 *Description* 2223 Remove all members of GROUP from the output. 2224 2225 2226 File: bfd.info, Node: Symbols, Next: Archives, Prev: Sections, Up: BFD front end 2227 2228 2.7 Symbols 2229 =========== 2230 2231 BFD tries to maintain as much symbol information as it can when it 2232 moves information from file to file. BFD passes information to 2233 applications though the `asymbol' structure. When the application 2234 requests the symbol table, BFD reads the table in the native form and 2235 translates parts of it into the internal format. To maintain more than 2236 the information passed to applications, some targets keep some 2237 information "behind the scenes" in a structure only the particular back 2238 end knows about. For example, the coff back end keeps the original 2239 symbol table structure as well as the canonical structure when a BFD is 2240 read in. On output, the coff back end can reconstruct the output symbol 2241 table so that no information is lost, even information unique to coff 2242 which BFD doesn't know or understand. If a coff symbol table were read, 2243 but were written through an a.out back end, all the coff specific 2244 information would be lost. The symbol table of a BFD is not necessarily 2245 read in until a canonicalize request is made. Then the BFD back end 2246 fills in a table provided by the application with pointers to the 2247 canonical information. To output symbols, the application provides BFD 2248 with a table of pointers to pointers to `asymbol's. This allows 2249 applications like the linker to output a symbol as it was read, since 2250 the "behind the scenes" information will be still available. 2251 2252 * Menu: 2253 2254 * Reading Symbols:: 2255 * Writing Symbols:: 2256 * Mini Symbols:: 2257 * typedef asymbol:: 2258 * symbol handling functions:: 2259 2260 2261 File: bfd.info, Node: Reading Symbols, Next: Writing Symbols, Prev: Symbols, Up: Symbols 2262 2263 2.7.1 Reading symbols 2264 --------------------- 2265 2266 There are two stages to reading a symbol table from a BFD: allocating 2267 storage, and the actual reading process. This is an excerpt from an 2268 application which reads the symbol table: 2269 2270 long storage_needed; 2271 asymbol **symbol_table; 2272 long number_of_symbols; 2273 long i; 2274 2275 storage_needed = bfd_get_symtab_upper_bound (abfd); 2276 2277 if (storage_needed < 0) 2278 FAIL 2279 2280 if (storage_needed == 0) 2281 return; 2282 2283 symbol_table = xmalloc (storage_needed); 2284 ... 2285 number_of_symbols = 2286 bfd_canonicalize_symtab (abfd, symbol_table); 2287 2288 if (number_of_symbols < 0) 2289 FAIL 2290 2291 for (i = 0; i < number_of_symbols; i++) 2292 process_symbol (symbol_table[i]); 2293 2294 All storage for the symbols themselves is in an objalloc connected 2295 to the BFD; it is freed when the BFD is closed. 2296 2297 2298 File: bfd.info, Node: Writing Symbols, Next: Mini Symbols, Prev: Reading Symbols, Up: Symbols 2299 2300 2.7.2 Writing symbols 2301 --------------------- 2302 2303 Writing of a symbol table is automatic when a BFD open for writing is 2304 closed. The application attaches a vector of pointers to pointers to 2305 symbols to the BFD being written, and fills in the symbol count. The 2306 close and cleanup code reads through the table provided and performs 2307 all the necessary operations. The BFD output code must always be 2308 provided with an "owned" symbol: one which has come from another BFD, 2309 or one which has been created using `bfd_make_empty_symbol'. Here is an 2310 example showing the creation of a symbol table with only one element: 2311 2312 #include "bfd.h" 2313 int main (void) 2314 { 2315 bfd *abfd; 2316 asymbol *ptrs[2]; 2317 asymbol *new; 2318 2319 abfd = bfd_openw ("foo","a.out-sunos-big"); 2320 bfd_set_format (abfd, bfd_object); 2321 new = bfd_make_empty_symbol (abfd); 2322 new->name = "dummy_symbol"; 2323 new->section = bfd_make_section_old_way (abfd, ".text"); 2324 new->flags = BSF_GLOBAL; 2325 new->value = 0x12345; 2326 2327 ptrs[0] = new; 2328 ptrs[1] = 0; 2329 2330 bfd_set_symtab (abfd, ptrs, 1); 2331 bfd_close (abfd); 2332 return 0; 2333 } 2334 2335 ./makesym 2336 nm foo 2337 00012345 A dummy_symbol 2338 2339 Many formats cannot represent arbitrary symbol information; for 2340 instance, the `a.out' object format does not allow an arbitrary number 2341 of sections. A symbol pointing to a section which is not one of 2342 `.text', `.data' or `.bss' cannot be described. 2343 2344 2345 File: bfd.info, Node: Mini Symbols, Next: typedef asymbol, Prev: Writing Symbols, Up: Symbols 2346 2347 2.7.3 Mini Symbols 2348 ------------------ 2349 2350 Mini symbols provide read-only access to the symbol table. They use 2351 less memory space, but require more time to access. They can be useful 2352 for tools like nm or objdump, which may have to handle symbol tables of 2353 extremely large executables. 2354 2355 The `bfd_read_minisymbols' function will read the symbols into 2356 memory in an internal form. It will return a `void *' pointer to a 2357 block of memory, a symbol count, and the size of each symbol. The 2358 pointer is allocated using `malloc', and should be freed by the caller 2359 when it is no longer needed. 2360 2361 The function `bfd_minisymbol_to_symbol' will take a pointer to a 2362 minisymbol, and a pointer to a structure returned by 2363 `bfd_make_empty_symbol', and return a `asymbol' structure. The return 2364 value may or may not be the same as the value from 2365 `bfd_make_empty_symbol' which was passed in. 2366 2367 2368 File: bfd.info, Node: typedef asymbol, Next: symbol handling functions, Prev: Mini Symbols, Up: Symbols 2369 2370 2.7.4 typedef asymbol 2371 --------------------- 2372 2373 An `asymbol' has the form: 2374 2375 2376 typedef struct bfd_symbol 2377 { 2378 /* A pointer to the BFD which owns the symbol. This information 2379 is necessary so that a back end can work out what additional 2380 information (invisible to the application writer) is carried 2381 with the symbol. 2382 2383 This field is *almost* redundant, since you can use section->owner 2384 instead, except that some symbols point to the global sections 2385 bfd_{abs,com,und}_section. This could be fixed by making 2386 these globals be per-bfd (or per-target-flavor). FIXME. */ 2387 struct bfd *the_bfd; /* Use bfd_asymbol_bfd(sym) to access this field. */ 2388 2389 /* The text of the symbol. The name is left alone, and not copied; the 2390 application may not alter it. */ 2391 const char *name; 2392 2393 /* The value of the symbol. This really should be a union of a 2394 numeric value with a pointer, since some flags indicate that 2395 a pointer to another symbol is stored here. */ 2396 symvalue value; 2397 2398 /* Attributes of a symbol. */ 2399 #define BSF_NO_FLAGS 0x00 2400 2401 /* The symbol has local scope; `static' in `C'. The value 2402 is the offset into the section of the data. */ 2403 #define BSF_LOCAL (1 << 0) 2404 2405 /* The symbol has global scope; initialized data in `C'. The 2406 value is the offset into the section of the data. */ 2407 #define BSF_GLOBAL (1 << 1) 2408 2409 /* The symbol has global scope and is exported. The value is 2410 the offset into the section of the data. */ 2411 #define BSF_EXPORT BSF_GLOBAL /* No real difference. */ 2412 2413 /* A normal C symbol would be one of: 2414 `BSF_LOCAL', `BSF_COMMON', `BSF_UNDEFINED' or 2415 `BSF_GLOBAL'. */ 2416 2417 /* The symbol is a debugging record. The value has an arbitrary 2418 meaning, unless BSF_DEBUGGING_RELOC is also set. */ 2419 #define BSF_DEBUGGING (1 << 2) 2420 2421 /* The symbol denotes a function entry point. Used in ELF, 2422 perhaps others someday. */ 2423 #define BSF_FUNCTION (1 << 3) 2424 2425 /* Used by the linker. */ 2426 #define BSF_KEEP (1 << 5) 2427 #define BSF_KEEP_G (1 << 6) 2428 2429 /* A weak global symbol, overridable without warnings by 2430 a regular global symbol of the same name. */ 2431 #define BSF_WEAK (1 << 7) 2432 2433 /* This symbol was created to point to a section, e.g. ELF's 2434 STT_SECTION symbols. */ 2435 #define BSF_SECTION_SYM (1 << 8) 2436 2437 /* The symbol used to be a common symbol, but now it is 2438 allocated. */ 2439 #define BSF_OLD_COMMON (1 << 9) 2440 2441 /* In some files the type of a symbol sometimes alters its 2442 location in an output file - ie in coff a `ISFCN' symbol 2443 which is also `C_EXT' symbol appears where it was 2444 declared and not at the end of a section. This bit is set 2445 by the target BFD part to convey this information. */ 2446 #define BSF_NOT_AT_END (1 << 10) 2447 2448 /* Signal that the symbol is the label of constructor section. */ 2449 #define BSF_CONSTRUCTOR (1 << 11) 2450 2451 /* Signal that the symbol is a warning symbol. The name is a 2452 warning. The name of the next symbol is the one to warn about; 2453 if a reference is made to a symbol with the same name as the next 2454 symbol, a warning is issued by the linker. */ 2455 #define BSF_WARNING (1 << 12) 2456 2457 /* Signal that the symbol is indirect. This symbol is an indirect 2458 pointer to the symbol with the same name as the next symbol. */ 2459 #define BSF_INDIRECT (1 << 13) 2460 2461 /* BSF_FILE marks symbols that contain a file name. This is used 2462 for ELF STT_FILE symbols. */ 2463 #define BSF_FILE (1 << 14) 2464 2465 /* Symbol is from dynamic linking information. */ 2466 #define BSF_DYNAMIC (1 << 15) 2467 2468 /* The symbol denotes a data object. Used in ELF, and perhaps 2469 others someday. */ 2470 #define BSF_OBJECT (1 << 16) 2471 2472 /* This symbol is a debugging symbol. The value is the offset 2473 into the section of the data. BSF_DEBUGGING should be set 2474 as well. */ 2475 #define BSF_DEBUGGING_RELOC (1 << 17) 2476 2477 /* This symbol is thread local. Used in ELF. */ 2478 #define BSF_THREAD_LOCAL (1 << 18) 2479 2480 /* This symbol represents a complex relocation expression, 2481 with the expression tree serialized in the symbol name. */ 2482 #define BSF_RELC (1 << 19) 2483 2484 /* This symbol represents a signed complex relocation expression, 2485 with the expression tree serialized in the symbol name. */ 2486 #define BSF_SRELC (1 << 20) 2487 2488 /* This symbol was created by bfd_get_synthetic_symtab. */ 2489 #define BSF_SYNTHETIC (1 << 21) 2490 2491 /* This symbol is an indirect code object. Unrelated to BSF_INDIRECT. 2492 The dynamic linker will compute the value of this symbol by 2493 calling the function that it points to. BSF_FUNCTION must 2494 also be also set. */ 2495 #define BSF_GNU_INDIRECT_FUNCTION (1 << 22) 2496 /* This symbol is a globally unique data object. The dynamic linker 2497 will make sure that in the entire process there is just one symbol 2498 with this name and type in use. BSF_OBJECT must also be set. */ 2499 #define BSF_GNU_UNIQUE (1 << 23) 2500 2501 flagword flags; 2502 2503 /* A pointer to the section to which this symbol is 2504 relative. This will always be non NULL, there are special 2505 sections for undefined and absolute symbols. */ 2506 struct bfd_section *section; 2507 2508 /* Back end special data. */ 2509 union 2510 { 2511 void *p; 2512 bfd_vma i; 2513 } 2514 udata; 2515 } 2516 asymbol; 2517 2518 2519 File: bfd.info, Node: symbol handling functions, Prev: typedef asymbol, Up: Symbols 2520 2521 2.7.5 Symbol handling functions 2522 ------------------------------- 2523 2524 2.7.5.1 `bfd_get_symtab_upper_bound' 2525 .................................... 2526 2527 *Description* 2528 Return the number of bytes required to store a vector of pointers to 2529 `asymbols' for all the symbols in the BFD ABFD, including a terminal 2530 NULL pointer. If there are no symbols in the BFD, then return 0. If an 2531 error occurs, return -1. 2532 #define bfd_get_symtab_upper_bound(abfd) \ 2533 BFD_SEND (abfd, _bfd_get_symtab_upper_bound, (abfd)) 2534 2535 2.7.5.2 `bfd_is_local_label' 2536 ............................ 2537 2538 *Synopsis* 2539 bfd_boolean bfd_is_local_label (bfd *abfd, asymbol *sym); 2540 *Description* 2541 Return TRUE if the given symbol SYM in the BFD ABFD is a compiler 2542 generated local label, else return FALSE. 2543 2544 2.7.5.3 `bfd_is_local_label_name' 2545 ................................. 2546 2547 *Synopsis* 2548 bfd_boolean bfd_is_local_label_name (bfd *abfd, const char *name); 2549 *Description* 2550 Return TRUE if a symbol with the name NAME in the BFD ABFD is a 2551 compiler generated local label, else return FALSE. This just checks 2552 whether the name has the form of a local label. 2553 #define bfd_is_local_label_name(abfd, name) \ 2554 BFD_SEND (abfd, _bfd_is_local_label_name, (abfd, name)) 2555 2556 2.7.5.4 `bfd_is_target_special_symbol' 2557 ...................................... 2558 2559 *Synopsis* 2560 bfd_boolean bfd_is_target_special_symbol (bfd *abfd, asymbol *sym); 2561 *Description* 2562 Return TRUE iff a symbol SYM in the BFD ABFD is something special to 2563 the particular target represented by the BFD. Such symbols should 2564 normally not be mentioned to the user. 2565 #define bfd_is_target_special_symbol(abfd, sym) \ 2566 BFD_SEND (abfd, _bfd_is_target_special_symbol, (abfd, sym)) 2567 2568 2.7.5.5 `bfd_canonicalize_symtab' 2569 ................................. 2570 2571 *Description* 2572 Read the symbols from the BFD ABFD, and fills in the vector LOCATION 2573 with pointers to the symbols and a trailing NULL. Return the actual 2574 number of symbol pointers, not including the NULL. 2575 #define bfd_canonicalize_symtab(abfd, location) \ 2576 BFD_SEND (abfd, _bfd_canonicalize_symtab, (abfd, location)) 2577 2578 2.7.5.6 `bfd_set_symtab' 2579 ........................ 2580 2581 *Synopsis* 2582 bfd_boolean bfd_set_symtab 2583 (bfd *abfd, asymbol **location, unsigned int count); 2584 *Description* 2585 Arrange that when the output BFD ABFD is closed, the table LOCATION of 2586 COUNT pointers to symbols will be written. 2587 2588 2.7.5.7 `bfd_print_symbol_vandf' 2589 ................................ 2590 2591 *Synopsis* 2592 void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol); 2593 *Description* 2594 Print the value and flags of the SYMBOL supplied to the stream FILE. 2595 2596 2.7.5.8 `bfd_make_empty_symbol' 2597 ............................... 2598 2599 *Description* 2600 Create a new `asymbol' structure for the BFD ABFD and return a pointer 2601 to it. 2602 2603 This routine is necessary because each back end has private 2604 information surrounding the `asymbol'. Building your own `asymbol' and 2605 pointing to it will not create the private information, and will cause 2606 problems later on. 2607 #define bfd_make_empty_symbol(abfd) \ 2608 BFD_SEND (abfd, _bfd_make_empty_symbol, (abfd)) 2609 2610 2.7.5.9 `_bfd_generic_make_empty_symbol' 2611 ........................................ 2612 2613 *Synopsis* 2614 asymbol *_bfd_generic_make_empty_symbol (bfd *); 2615 *Description* 2616 Create a new `asymbol' structure for the BFD ABFD and return a pointer 2617 to it. Used by core file routines, binary back-end and anywhere else 2618 where no private info is needed. 2619 2620 2.7.5.10 `bfd_make_debug_symbol' 2621 ................................ 2622 2623 *Description* 2624 Create a new `asymbol' structure for the BFD ABFD, to be used as a 2625 debugging symbol. Further details of its use have yet to be worked out. 2626 #define bfd_make_debug_symbol(abfd,ptr,size) \ 2627 BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size)) 2628 2629 2.7.5.11 `bfd_decode_symclass' 2630 .............................. 2631 2632 *Description* 2633 Return a character corresponding to the symbol class of SYMBOL, or '?' 2634 for an unknown class. 2635 2636 *Synopsis* 2637 int bfd_decode_symclass (asymbol *symbol); 2638 2639 2.7.5.12 `bfd_is_undefined_symclass' 2640 .................................... 2641 2642 *Description* 2643 Returns non-zero if the class symbol returned by bfd_decode_symclass 2644 represents an undefined symbol. Returns zero otherwise. 2645 2646 *Synopsis* 2647 bfd_boolean bfd_is_undefined_symclass (int symclass); 2648 2649 2.7.5.13 `bfd_symbol_info' 2650 .......................... 2651 2652 *Description* 2653 Fill in the basic info about symbol that nm needs. Additional info may 2654 be added by the back-ends after calling this function. 2655 2656 *Synopsis* 2657 void bfd_symbol_info (asymbol *symbol, symbol_info *ret); 2658 2659 2.7.5.14 `bfd_copy_private_symbol_data' 2660 ....................................... 2661 2662 *Synopsis* 2663 bfd_boolean bfd_copy_private_symbol_data 2664 (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym); 2665 *Description* 2666 Copy private symbol information from ISYM in the BFD IBFD to the symbol 2667 OSYM in the BFD OBFD. Return `TRUE' on success, `FALSE' on error. 2668 Possible error returns are: 2669 2670 * `bfd_error_no_memory' - Not enough memory exists to create private 2671 data for OSEC. 2672 2673 #define bfd_copy_private_symbol_data(ibfd, isymbol, obfd, osymbol) \ 2674 BFD_SEND (obfd, _bfd_copy_private_symbol_data, \ 2675 (ibfd, isymbol, obfd, osymbol)) 2676 2677 2678 File: bfd.info, Node: Archives, Next: Formats, Prev: Symbols, Up: BFD front end 2679 2680 2.8 Archives 2681 ============ 2682 2683 *Description* 2684 An archive (or library) is just another BFD. It has a symbol table, 2685 although there's not much a user program will do with it. 2686 2687 The big difference between an archive BFD and an ordinary BFD is 2688 that the archive doesn't have sections. Instead it has a chain of BFDs 2689 that are considered its contents. These BFDs can be manipulated like 2690 any other. The BFDs contained in an archive opened for reading will 2691 all be opened for reading. You may put either input or output BFDs 2692 into an archive opened for output; they will be handled correctly when 2693 the archive is closed. 2694 2695 Use `bfd_openr_next_archived_file' to step through the contents of 2696 an archive opened for input. You don't have to read the entire archive 2697 if you don't want to! Read it until you find what you want. 2698 2699 Archive contents of output BFDs are chained through the `next' 2700 pointer in a BFD. The first one is findable through the `archive_head' 2701 slot of the archive. Set it with `bfd_set_archive_head' (q.v.). A 2702 given BFD may be in only one open output archive at a time. 2703 2704 As expected, the BFD archive code is more general than the archive 2705 code of any given environment. BFD archives may contain files of 2706 different formats (e.g., a.out and coff) and even different 2707 architectures. You may even place archives recursively into archives! 2708 2709 This can cause unexpected confusion, since some archive formats are 2710 more expressive than others. For instance, Intel COFF archives can 2711 preserve long filenames; SunOS a.out archives cannot. If you move a 2712 file from the first to the second format and back again, the filename 2713 may be truncated. Likewise, different a.out environments have different 2714 conventions as to how they truncate filenames, whether they preserve 2715 directory names in filenames, etc. When interoperating with native 2716 tools, be sure your files are homogeneous. 2717 2718 Beware: most of these formats do not react well to the presence of 2719 spaces in filenames. We do the best we can, but can't always handle 2720 this case due to restrictions in the format of archives. Many Unix 2721 utilities are braindead in regards to spaces and such in filenames 2722 anyway, so this shouldn't be much of a restriction. 2723 2724 Archives are supported in BFD in `archive.c'. 2725 2726 2.8.1 Archive functions 2727 ----------------------- 2728 2729 2.8.1.1 `bfd_get_next_mapent' 2730 ............................. 2731 2732 *Synopsis* 2733 symindex bfd_get_next_mapent 2734 (bfd *abfd, symindex previous, carsym **sym); 2735 *Description* 2736 Step through archive ABFD's symbol table (if it has one). Successively 2737 update SYM with the next symbol's information, returning that symbol's 2738 (internal) index into the symbol table. 2739 2740 Supply `BFD_NO_MORE_SYMBOLS' as the PREVIOUS entry to get the first 2741 one; returns `BFD_NO_MORE_SYMBOLS' when you've already got the last one. 2742 2743 A `carsym' is a canonical archive symbol. The only user-visible 2744 element is its name, a null-terminated string. 2745 2746 2.8.1.2 `bfd_set_archive_head' 2747 .............................. 2748 2749 *Synopsis* 2750 bfd_boolean bfd_set_archive_head (bfd *output, bfd *new_head); 2751 *Description* 2752 Set the head of the chain of BFDs contained in the archive OUTPUT to 2753 NEW_HEAD. 2754 2755 2.8.1.3 `bfd_openr_next_archived_file' 2756 ...................................... 2757 2758 *Synopsis* 2759 bfd *bfd_openr_next_archived_file (bfd *archive, bfd *previous); 2760 *Description* 2761 Provided a BFD, ARCHIVE, containing an archive and NULL, open an input 2762 BFD on the first contained element and returns that. Subsequent calls 2763 should pass the archive and the previous return value to return a 2764 created BFD to the next contained element. NULL is returned when there 2765 are no more. 2766 2767 2768 File: bfd.info, Node: Formats, Next: Relocations, Prev: Archives, Up: BFD front end 2769 2770 2.9 File formats 2771 ================ 2772 2773 A format is a BFD concept of high level file contents type. The formats 2774 supported by BFD are: 2775 2776 * `bfd_object' 2777 The BFD may contain data, symbols, relocations and debug info. 2778 2779 * `bfd_archive' 2780 The BFD contains other BFDs and an optional index. 2781 2782 * `bfd_core' 2783 The BFD contains the result of an executable core dump. 2784 2785 2.9.1 File format functions 2786 --------------------------- 2787 2788 2.9.1.1 `bfd_check_format' 2789 .......................... 2790 2791 *Synopsis* 2792 bfd_boolean bfd_check_format (bfd *abfd, bfd_format format); 2793 *Description* 2794 Verify if the file attached to the BFD ABFD is compatible with the 2795 format FORMAT (i.e., one of `bfd_object', `bfd_archive' or `bfd_core'). 2796 2797 If the BFD has been set to a specific target before the call, only 2798 the named target and format combination is checked. If the target has 2799 not been set, or has been set to `default', then all the known target 2800 backends is interrogated to determine a match. If the default target 2801 matches, it is used. If not, exactly one target must recognize the 2802 file, or an error results. 2803 2804 The function returns `TRUE' on success, otherwise `FALSE' with one 2805 of the following error codes: 2806 2807 * `bfd_error_invalid_operation' - if `format' is not one of 2808 `bfd_object', `bfd_archive' or `bfd_core'. 2809 2810 * `bfd_error_system_call' - if an error occured during a read - even 2811 some file mismatches can cause bfd_error_system_calls. 2812 2813 * `file_not_recognised' - none of the backends recognised the file 2814 format. 2815 2816 * `bfd_error_file_ambiguously_recognized' - more than one backend 2817 recognised the file format. 2818 2819 2.9.1.2 `bfd_check_format_matches' 2820 .................................. 2821 2822 *Synopsis* 2823 bfd_boolean bfd_check_format_matches 2824 (bfd *abfd, bfd_format format, char ***matching); 2825 *Description* 2826 Like `bfd_check_format', except when it returns FALSE with `bfd_errno' 2827 set to `bfd_error_file_ambiguously_recognized'. In that case, if 2828 MATCHING is not NULL, it will be filled in with a NULL-terminated list 2829 of the names of the formats that matched, allocated with `malloc'. 2830 Then the user may choose a format and try again. 2831 2832 When done with the list that MATCHING points to, the caller should 2833 free it. 2834 2835 2.9.1.3 `bfd_set_format' 2836 ........................ 2837 2838 *Synopsis* 2839 bfd_boolean bfd_set_format (bfd *abfd, bfd_format format); 2840 *Description* 2841 This function sets the file format of the BFD ABFD to the format 2842 FORMAT. If the target set in the BFD does not support the format 2843 requested, the format is invalid, or the BFD is not open for writing, 2844 then an error occurs. 2845 2846 2.9.1.4 `bfd_format_string' 2847 ........................... 2848 2849 *Synopsis* 2850 const char *bfd_format_string (bfd_format format); 2851 *Description* 2852 Return a pointer to a const string `invalid', `object', `archive', 2853 `core', or `unknown', depending upon the value of FORMAT. 2854 2855 2856 File: bfd.info, Node: Relocations, Next: Core Files, Prev: Formats, Up: BFD front end 2857 2858 2.10 Relocations 2859 ================ 2860 2861 BFD maintains relocations in much the same way it maintains symbols: 2862 they are left alone until required, then read in en-masse and 2863 translated into an internal form. A common routine 2864 `bfd_perform_relocation' acts upon the canonical form to do the fixup. 2865 2866 Relocations are maintained on a per section basis, while symbols are 2867 maintained on a per BFD basis. 2868 2869 All that a back end has to do to fit the BFD interface is to create 2870 a `struct reloc_cache_entry' for each relocation in a particular 2871 section, and fill in the right bits of the structures. 2872 2873 * Menu: 2874 2875 * typedef arelent:: 2876 * howto manager:: 2877 2878 2879 File: bfd.info, Node: typedef arelent, Next: howto manager, Prev: Relocations, Up: Relocations 2880 2881 2.10.1 typedef arelent 2882 ---------------------- 2883 2884 This is the structure of a relocation entry: 2885 2886 2887 typedef enum bfd_reloc_status 2888 { 2889 /* No errors detected. */ 2890 bfd_reloc_ok, 2891 2892 /* The relocation was performed, but there was an overflow. */ 2893 bfd_reloc_overflow, 2894 2895 /* The address to relocate was not within the section supplied. */ 2896 bfd_reloc_outofrange, 2897 2898 /* Used by special functions. */ 2899 bfd_reloc_continue, 2900 2901 /* Unsupported relocation size requested. */ 2902 bfd_reloc_notsupported, 2903 2904 /* Unused. */ 2905 bfd_reloc_other, 2906 2907 /* The symbol to relocate against was undefined. */ 2908 bfd_reloc_undefined, 2909 2910 /* The relocation was performed, but may not be ok - presently 2911 generated only when linking i960 coff files with i960 b.out 2912 symbols. If this type is returned, the error_message argument 2913 to bfd_perform_relocation will be set. */ 2914 bfd_reloc_dangerous 2915 } 2916 bfd_reloc_status_type; 2917 2918 2919 typedef struct reloc_cache_entry 2920 { 2921 /* A pointer into the canonical table of pointers. */ 2922 struct bfd_symbol **sym_ptr_ptr; 2923 2924 /* offset in section. */ 2925 bfd_size_type address; 2926 2927 /* addend for relocation value. */ 2928 bfd_vma addend; 2929 2930 /* Pointer to how to perform the required relocation. */ 2931 reloc_howto_type *howto; 2932 2933 } 2934 arelent; 2935 *Description* 2936 Here is a description of each of the fields within an `arelent': 2937 2938 * `sym_ptr_ptr' 2939 The symbol table pointer points to a pointer to the symbol 2940 associated with the relocation request. It is the pointer into the 2941 table returned by the back end's `canonicalize_symtab' action. *Note 2942 Symbols::. The symbol is referenced through a pointer to a pointer so 2943 that tools like the linker can fix up all the symbols of the same name 2944 by modifying only one pointer. The relocation routine looks in the 2945 symbol and uses the base of the section the symbol is attached to and 2946 the value of the symbol as the initial relocation offset. If the symbol 2947 pointer is zero, then the section provided is looked up. 2948 2949 * `address' 2950 The `address' field gives the offset in bytes from the base of the 2951 section data which owns the relocation record to the first byte of 2952 relocatable information. The actual data relocated will be relative to 2953 this point; for example, a relocation type which modifies the bottom 2954 two bytes of a four byte word would not touch the first byte pointed to 2955 in a big endian world. 2956 2957 * `addend' 2958 The `addend' is a value provided by the back end to be added (!) to 2959 the relocation offset. Its interpretation is dependent upon the howto. 2960 For example, on the 68k the code: 2961 2962 char foo[]; 2963 main() 2964 { 2965 return foo[0x12345678]; 2966 } 2967 2968 Could be compiled into: 2969 2970 linkw fp,#-4 2971 moveb @#12345678,d0 2972 extbl d0 2973 unlk fp 2974 rts 2975 2976 This could create a reloc pointing to `foo', but leave the offset in 2977 the data, something like: 2978 2979 RELOCATION RECORDS FOR [.text]: 2980 offset type value 2981 00000006 32 _foo 2982 2983 00000000 4e56 fffc ; linkw fp,#-4 2984 00000004 1039 1234 5678 ; moveb @#12345678,d0 2985 0000000a 49c0 ; extbl d0 2986 0000000c 4e5e ; unlk fp 2987 0000000e 4e75 ; rts 2988 2989 Using coff and an 88k, some instructions don't have enough space in 2990 them to represent the full address range, and pointers have to be 2991 loaded in two parts. So you'd get something like: 2992 2993 or.u r13,r0,hi16(_foo+0x12345678) 2994 ld.b r2,r13,lo16(_foo+0x12345678) 2995 jmp r1 2996 2997 This should create two relocs, both pointing to `_foo', and with 2998 0x12340000 in their addend field. The data would consist of: 2999 3000 RELOCATION RECORDS FOR [.text]: 3001 offset type value 3002 00000002 HVRT16 _foo+0x12340000 3003 00000006 LVRT16 _foo+0x12340000 3004 3005 00000000 5da05678 ; or.u r13,r0,0x5678 3006 00000004 1c4d5678 ; ld.b r2,r13,0x5678 3007 00000008 f400c001 ; jmp r1 3008 3009 The relocation routine digs out the value from the data, adds it to 3010 the addend to get the original offset, and then adds the value of 3011 `_foo'. Note that all 32 bits have to be kept around somewhere, to cope 3012 with carry from bit 15 to bit 16. 3013 3014 One further example is the sparc and the a.out format. The sparc has 3015 a similar problem to the 88k, in that some instructions don't have room 3016 for an entire offset, but on the sparc the parts are created in odd 3017 sized lumps. The designers of the a.out format chose to not use the 3018 data within the section for storing part of the offset; all the offset 3019 is kept within the reloc. Anything in the data should be ignored. 3020 3021 save %sp,-112,%sp 3022 sethi %hi(_foo+0x12345678),%g2 3023 ldsb [%g2+%lo(_foo+0x12345678)],%i0 3024 ret 3025 restore 3026 3027 Both relocs contain a pointer to `foo', and the offsets contain junk. 3028 3029 RELOCATION RECORDS FOR [.text]: 3030 offset type value 3031 00000004 HI22 _foo+0x12345678 3032 00000008 LO10 _foo+0x12345678 3033 3034 00000000 9de3bf90 ; save %sp,-112,%sp 3035 00000004 05000000 ; sethi %hi(_foo+0),%g2 3036 00000008 f048a000 ; ldsb [%g2+%lo(_foo+0)],%i0 3037 0000000c 81c7e008 ; ret 3038 00000010 81e80000 ; restore 3039 3040 * `howto' 3041 The `howto' field can be imagined as a relocation instruction. It is 3042 a pointer to a structure which contains information on what to do with 3043 all of the other information in the reloc record and data section. A 3044 back end would normally have a relocation instruction set and turn 3045 relocations into pointers to the correct structure on input - but it 3046 would be possible to create each howto field on demand. 3047 3048 2.10.1.1 `enum complain_overflow' 3049 ................................. 3050 3051 Indicates what sort of overflow checking should be done when performing 3052 a relocation. 3053 3054 3055 enum complain_overflow 3056 { 3057 /* Do not complain on overflow. */ 3058 complain_overflow_dont, 3059 3060 /* Complain if the value overflows when considered as a signed 3061 number one bit larger than the field. ie. A bitfield of N bits 3062 is allowed to represent -2**n to 2**n-1. */ 3063 complain_overflow_bitfield, 3064 3065 /* Complain if the value overflows when considered as a signed 3066 number. */ 3067 complain_overflow_signed, 3068 3069 /* Complain if the value overflows when considered as an 3070 unsigned number. */ 3071 complain_overflow_unsigned 3072 }; 3073 3074 2.10.1.2 `reloc_howto_type' 3075 ........................... 3076 3077 The `reloc_howto_type' is a structure which contains all the 3078 information that libbfd needs to know to tie up a back end's data. 3079 3080 struct bfd_symbol; /* Forward declaration. */ 3081 3082 struct reloc_howto_struct 3083 { 3084 /* The type field has mainly a documentary use - the back end can 3085 do what it wants with it, though normally the back end's 3086 external idea of what a reloc number is stored 3087 in this field. For example, a PC relative word relocation 3088 in a coff environment has the type 023 - because that's 3089 what the outside world calls a R_PCRWORD reloc. */ 3090 unsigned int type; 3091 3092 /* The value the final relocation is shifted right by. This drops 3093 unwanted data from the relocation. */ 3094 unsigned int rightshift; 3095 3096 /* The size of the item to be relocated. This is *not* a 3097 power-of-two measure. To get the number of bytes operated 3098 on by a type of relocation, use bfd_get_reloc_size. */ 3099 int size; 3100 3101 /* The number of bits in the item to be relocated. This is used 3102 when doing overflow checking. */ 3103 unsigned int bitsize; 3104 3105 /* The relocation is relative to the field being relocated. */ 3106 bfd_boolean pc_relative; 3107 3108 /* The bit position of the reloc value in the destination. 3109 The relocated value is left shifted by this amount. */ 3110 unsigned int bitpos; 3111 3112 /* What type of overflow error should be checked for when 3113 relocating. */ 3114 enum complain_overflow complain_on_overflow; 3115 3116 /* If this field is non null, then the supplied function is 3117 called rather than the normal function. This allows really 3118 strange relocation methods to be accommodated (e.g., i960 callj 3119 instructions). */ 3120 bfd_reloc_status_type (*special_function) 3121 (bfd *, arelent *, struct bfd_symbol *, void *, asection *, 3122 bfd *, char **); 3123 3124 /* The textual name of the relocation type. */ 3125 char *name; 3126 3127 /* Some formats record a relocation addend in the section contents 3128 rather than with the relocation. For ELF formats this is the 3129 distinction between USE_REL and USE_RELA (though the code checks 3130 for USE_REL == 1/0). The value of this field is TRUE if the 3131 addend is recorded with the section contents; when performing a 3132 partial link (ld -r) the section contents (the data) will be 3133 modified. The value of this field is FALSE if addends are 3134 recorded with the relocation (in arelent.addend); when performing 3135 a partial link the relocation will be modified. 3136 All relocations for all ELF USE_RELA targets should set this field 3137 to FALSE (values of TRUE should be looked on with suspicion). 3138 However, the converse is not true: not all relocations of all ELF 3139 USE_REL targets set this field to TRUE. Why this is so is peculiar 3140 to each particular target. For relocs that aren't used in partial 3141 links (e.g. GOT stuff) it doesn't matter what this is set to. */ 3142 bfd_boolean partial_inplace; 3143 3144 /* src_mask selects the part of the instruction (or data) to be used 3145 in the relocation sum. If the target relocations don't have an 3146 addend in the reloc, eg. ELF USE_REL, src_mask will normally equal 3147 dst_mask to extract the addend from the section contents. If 3148 relocations do have an addend in the reloc, eg. ELF USE_RELA, this 3149 field should be zero. Non-zero values for ELF USE_RELA targets are 3150 bogus as in those cases the value in the dst_mask part of the 3151 section contents should be treated as garbage. */ 3152 bfd_vma src_mask; 3153 3154 /* dst_mask selects which parts of the instruction (or data) are 3155 replaced with a relocated value. */ 3156 bfd_vma dst_mask; 3157 3158 /* When some formats create PC relative instructions, they leave 3159 the value of the pc of the place being relocated in the offset 3160 slot of the instruction, so that a PC relative relocation can 3161 be made just by adding in an ordinary offset (e.g., sun3 a.out). 3162 Some formats leave the displacement part of an instruction 3163 empty (e.g., m88k bcs); this flag signals the fact. */ 3164 bfd_boolean pcrel_offset; 3165 }; 3166 3167 2.10.1.3 `The HOWTO Macro' 3168 .......................... 3169 3170 *Description* 3171 The HOWTO define is horrible and will go away. 3172 #define HOWTO(C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC) \ 3173 { (unsigned) C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC } 3174 3175 *Description* 3176 And will be replaced with the totally magic way. But for the moment, we 3177 are compatible, so do it this way. 3178 #define NEWHOWTO(FUNCTION, NAME, SIZE, REL, IN) \ 3179 HOWTO (0, 0, SIZE, 0, REL, 0, complain_overflow_dont, FUNCTION, \ 3180 NAME, FALSE, 0, 0, IN) 3181 3182 *Description* 3183 This is used to fill in an empty howto entry in an array. 3184 #define EMPTY_HOWTO(C) \ 3185 HOWTO ((C), 0, 0, 0, FALSE, 0, complain_overflow_dont, NULL, \ 3186 NULL, FALSE, 0, 0, FALSE) 3187 3188 *Description* 3189 Helper routine to turn a symbol into a relocation value. 3190 #define HOWTO_PREPARE(relocation, symbol) \ 3191 { \ 3192 if (symbol != NULL) \ 3193 { \ 3194 if (bfd_is_com_section (symbol->section)) \ 3195 { \ 3196 relocation = 0; \ 3197 } \ 3198 else \ 3199 { \ 3200 relocation = symbol->value; \ 3201 } \ 3202 } \ 3203 } 3204 3205 2.10.1.4 `bfd_get_reloc_size' 3206 ............................. 3207 3208 *Synopsis* 3209 unsigned int bfd_get_reloc_size (reloc_howto_type *); 3210 *Description* 3211 For a reloc_howto_type that operates on a fixed number of bytes, this 3212 returns the number of bytes operated on. 3213 3214 2.10.1.5 `arelent_chain' 3215 ........................ 3216 3217 *Description* 3218 How relocs are tied together in an `asection': 3219 typedef struct relent_chain 3220 { 3221 arelent relent; 3222 struct relent_chain *next; 3223 } 3224 arelent_chain; 3225 3226 2.10.1.6 `bfd_check_overflow' 3227 ............................. 3228 3229 *Synopsis* 3230 bfd_reloc_status_type bfd_check_overflow 3231 (enum complain_overflow how, 3232 unsigned int bitsize, 3233 unsigned int rightshift, 3234 unsigned int addrsize, 3235 bfd_vma relocation); 3236 *Description* 3237 Perform overflow checking on RELOCATION which has BITSIZE significant 3238 bits and will be shifted right by RIGHTSHIFT bits, on a machine with 3239 addresses containing ADDRSIZE significant bits. The result is either of 3240 `bfd_reloc_ok' or `bfd_reloc_overflow'. 3241 3242 2.10.1.7 `bfd_perform_relocation' 3243 ................................. 3244 3245 *Synopsis* 3246 bfd_reloc_status_type bfd_perform_relocation 3247 (bfd *abfd, 3248 arelent *reloc_entry, 3249 void *data, 3250 asection *input_section, 3251 bfd *output_bfd, 3252 char **error_message); 3253 *Description* 3254 If OUTPUT_BFD is supplied to this function, the generated image will be 3255 relocatable; the relocations are copied to the output file after they 3256 have been changed to reflect the new state of the world. There are two 3257 ways of reflecting the results of partial linkage in an output file: by 3258 modifying the output data in place, and by modifying the relocation 3259 record. Some native formats (e.g., basic a.out and basic coff) have no 3260 way of specifying an addend in the relocation type, so the addend has 3261 to go in the output data. This is no big deal since in these formats 3262 the output data slot will always be big enough for the addend. Complex 3263 reloc types with addends were invented to solve just this problem. The 3264 ERROR_MESSAGE argument is set to an error message if this return 3265 `bfd_reloc_dangerous'. 3266 3267 2.10.1.8 `bfd_install_relocation' 3268 ................................. 3269 3270 *Synopsis* 3271 bfd_reloc_status_type bfd_install_relocation 3272 (bfd *abfd, 3273 arelent *reloc_entry, 3274 void *data, bfd_vma data_start, 3275 asection *input_section, 3276 char **error_message); 3277 *Description* 3278 This looks remarkably like `bfd_perform_relocation', except it does not 3279 expect that the section contents have been filled in. I.e., it's 3280 suitable for use when creating, rather than applying a relocation. 3281 3282 For now, this function should be considered reserved for the 3283 assembler. 3284 3285 3286 File: bfd.info, Node: howto manager, Prev: typedef arelent, Up: Relocations 3287 3288 2.10.2 The howto manager 3289 ------------------------ 3290 3291 When an application wants to create a relocation, but doesn't know what 3292 the target machine might call it, it can find out by using this bit of 3293 code. 3294 3295 2.10.2.1 `bfd_reloc_code_type' 3296 .............................. 3297 3298 *Description* 3299 The insides of a reloc code. The idea is that, eventually, there will 3300 be one enumerator for every type of relocation we ever do. Pass one of 3301 these values to `bfd_reloc_type_lookup', and it'll return a howto 3302 pointer. 3303 3304 This does mean that the application must determine the correct 3305 enumerator value; you can't get a howto pointer from a random set of 3306 attributes. 3307 3308 Here are the possible values for `enum bfd_reloc_code_real': 3309 3310 -- : BFD_RELOC_64 3311 -- : BFD_RELOC_32 3312 -- : BFD_RELOC_26 3313 -- : BFD_RELOC_24 3314 -- : BFD_RELOC_16 3315 -- : BFD_RELOC_14 3316 -- : BFD_RELOC_8 3317 Basic absolute relocations of N bits. 3318 3319 -- : BFD_RELOC_64_PCREL 3320 -- : BFD_RELOC_32_PCREL 3321 -- : BFD_RELOC_24_PCREL 3322 -- : BFD_RELOC_16_PCREL 3323 -- : BFD_RELOC_12_PCREL 3324 -- : BFD_RELOC_8_PCREL 3325 PC-relative relocations. Sometimes these are relative to the 3326 address of the relocation itself; sometimes they are relative to 3327 the start of the section containing the relocation. It depends on 3328 the specific target. 3329 3330 The 24-bit relocation is used in some Intel 960 configurations. 3331 3332 -- : BFD_RELOC_32_SECREL 3333 Section relative relocations. Some targets need this for DWARF2. 3334 3335 -- : BFD_RELOC_32_GOT_PCREL 3336 -- : BFD_RELOC_16_GOT_PCREL 3337 -- : BFD_RELOC_8_GOT_PCREL 3338 -- : BFD_RELOC_32_GOTOFF 3339 -- : BFD_RELOC_16_GOTOFF 3340 -- : BFD_RELOC_LO16_GOTOFF 3341 -- : BFD_RELOC_HI16_GOTOFF 3342 -- : BFD_RELOC_HI16_S_GOTOFF 3343 -- : BFD_RELOC_8_GOTOFF 3344 -- : BFD_RELOC_64_PLT_PCREL 3345 -- : BFD_RELOC_32_PLT_PCREL 3346 -- : BFD_RELOC_24_PLT_PCREL 3347 -- : BFD_RELOC_16_PLT_PCREL 3348 -- : BFD_RELOC_8_PLT_PCREL 3349 -- : BFD_RELOC_64_PLTOFF 3350 -- : BFD_RELOC_32_PLTOFF 3351 -- : BFD_RELOC_16_PLTOFF 3352 -- : BFD_RELOC_LO16_PLTOFF 3353 -- : BFD_RELOC_HI16_PLTOFF 3354 -- : BFD_RELOC_HI16_S_PLTOFF 3355 -- : BFD_RELOC_8_PLTOFF 3356 For ELF. 3357 3358 -- : BFD_RELOC_68K_GLOB_DAT 3359 -- : BFD_RELOC_68K_JMP_SLOT 3360 -- : BFD_RELOC_68K_RELATIVE 3361 -- : BFD_RELOC_68K_TLS_GD32 3362 -- : BFD_RELOC_68K_TLS_GD16 3363 -- : BFD_RELOC_68K_TLS_GD8 3364 -- : BFD_RELOC_68K_TLS_LDM32 3365 -- : BFD_RELOC_68K_TLS_LDM16 3366 -- : BFD_RELOC_68K_TLS_LDM8 3367 -- : BFD_RELOC_68K_TLS_LDO32 3368 -- : BFD_RELOC_68K_TLS_LDO16 3369 -- : BFD_RELOC_68K_TLS_LDO8 3370 -- : BFD_RELOC_68K_TLS_IE32 3371 -- : BFD_RELOC_68K_TLS_IE16 3372 -- : BFD_RELOC_68K_TLS_IE8 3373 -- : BFD_RELOC_68K_TLS_LE32 3374 -- : BFD_RELOC_68K_TLS_LE16 3375 -- : BFD_RELOC_68K_TLS_LE8 3376 Relocations used by 68K ELF. 3377 3378 -- : BFD_RELOC_32_BASEREL 3379 -- : BFD_RELOC_16_BASEREL 3380 -- : BFD_RELOC_LO16_BASEREL 3381 -- : BFD_RELOC_HI16_BASEREL 3382 -- : BFD_RELOC_HI16_S_BASEREL 3383 -- : BFD_RELOC_8_BASEREL 3384 -- : BFD_RELOC_RVA 3385 Linkage-table relative. 3386 3387 -- : BFD_RELOC_8_FFnn 3388 Absolute 8-bit relocation, but used to form an address like 0xFFnn. 3389 3390 -- : BFD_RELOC_32_PCREL_S2 3391 -- : BFD_RELOC_16_PCREL_S2 3392 -- : BFD_RELOC_23_PCREL_S2 3393 These PC-relative relocations are stored as word displacements - 3394 i.e., byte displacements shifted right two bits. The 30-bit word 3395 displacement (<<32_PCREL_S2>> - 32 bits, shifted 2) is used on the 3396 SPARC. (SPARC tools generally refer to this as <<WDISP30>>.) The 3397 signed 16-bit displacement is used on the MIPS, and the 23-bit 3398 displacement is used on the Alpha. 3399 3400 -- : BFD_RELOC_HI22 3401 -- : BFD_RELOC_LO10 3402 High 22 bits and low 10 bits of 32-bit value, placed into lower 3403 bits of the target word. These are used on the SPARC. 3404 3405 -- : BFD_RELOC_GPREL16 3406 -- : BFD_RELOC_GPREL32 3407 For systems that allocate a Global Pointer register, these are 3408 displacements off that register. These relocation types are 3409 handled specially, because the value the register will have is 3410 decided relatively late. 3411 3412 -- : BFD_RELOC_I960_CALLJ 3413 Reloc types used for i960/b.out. 3414 3415 -- : BFD_RELOC_NONE 3416 -- : BFD_RELOC_SPARC_WDISP22 3417 -- : BFD_RELOC_SPARC22 3418 -- : BFD_RELOC_SPARC13 3419 -- : BFD_RELOC_SPARC_GOT10 3420 -- : BFD_RELOC_SPARC_GOT13 3421 -- : BFD_RELOC_SPARC_GOT22 3422 -- : BFD_RELOC_SPARC_PC10 3423 -- : BFD_RELOC_SPARC_PC22 3424 -- : BFD_RELOC_SPARC_WPLT30 3425 -- : BFD_RELOC_SPARC_COPY 3426 -- : BFD_RELOC_SPARC_GLOB_DAT 3427 -- : BFD_RELOC_SPARC_JMP_SLOT 3428 -- : BFD_RELOC_SPARC_RELATIVE 3429 -- : BFD_RELOC_SPARC_UA16 3430 -- : BFD_RELOC_SPARC_UA32 3431 -- : BFD_RELOC_SPARC_UA64 3432 -- : BFD_RELOC_SPARC_GOTDATA_HIX22 3433 -- : BFD_RELOC_SPARC_GOTDATA_LOX10 3434 -- : BFD_RELOC_SPARC_GOTDATA_OP_HIX22 3435 -- : BFD_RELOC_SPARC_GOTDATA_OP_LOX10 3436 -- : BFD_RELOC_SPARC_GOTDATA_OP 3437 -- : BFD_RELOC_SPARC_JMP_IREL 3438 -- : BFD_RELOC_SPARC_IRELATIVE 3439 SPARC ELF relocations. There is probably some overlap with other 3440 relocation types already defined. 3441 3442 -- : BFD_RELOC_SPARC_BASE13 3443 -- : BFD_RELOC_SPARC_BASE22 3444 I think these are specific to SPARC a.out (e.g., Sun 4). 3445 3446 -- : BFD_RELOC_SPARC_64 3447 -- : BFD_RELOC_SPARC_10 3448 -- : BFD_RELOC_SPARC_11 3449 -- : BFD_RELOC_SPARC_OLO10 3450 -- : BFD_RELOC_SPARC_HH22 3451 -- : BFD_RELOC_SPARC_HM10 3452 -- : BFD_RELOC_SPARC_LM22 3453 -- : BFD_RELOC_SPARC_PC_HH22 3454 -- : BFD_RELOC_SPARC_PC_HM10 3455 -- : BFD_RELOC_SPARC_PC_LM22 3456 -- : BFD_RELOC_SPARC_WDISP16 3457 -- : BFD_RELOC_SPARC_WDISP19 3458 -- : BFD_RELOC_SPARC_7 3459 -- : BFD_RELOC_SPARC_6 3460 -- : BFD_RELOC_SPARC_5 3461 -- : BFD_RELOC_SPARC_DISP64 3462 -- : BFD_RELOC_SPARC_PLT32 3463 -- : BFD_RELOC_SPARC_PLT64 3464 -- : BFD_RELOC_SPARC_HIX22 3465 -- : BFD_RELOC_SPARC_LOX10 3466 -- : BFD_RELOC_SPARC_H44 3467 -- : BFD_RELOC_SPARC_M44 3468 -- : BFD_RELOC_SPARC_L44 3469 -- : BFD_RELOC_SPARC_REGISTER 3470 SPARC64 relocations 3471 3472 -- : BFD_RELOC_SPARC_REV32 3473 SPARC little endian relocation 3474 3475 -- : BFD_RELOC_SPARC_TLS_GD_HI22 3476 -- : BFD_RELOC_SPARC_TLS_GD_LO10 3477 -- : BFD_RELOC_SPARC_TLS_GD_ADD 3478 -- : BFD_RELOC_SPARC_TLS_GD_CALL 3479 -- : BFD_RELOC_SPARC_TLS_LDM_HI22 3480 -- : BFD_RELOC_SPARC_TLS_LDM_LO10 3481 -- : BFD_RELOC_SPARC_TLS_LDM_ADD 3482 -- : BFD_RELOC_SPARC_TLS_LDM_CALL 3483 -- : BFD_RELOC_SPARC_TLS_LDO_HIX22 3484 -- : BFD_RELOC_SPARC_TLS_LDO_LOX10 3485 -- : BFD_RELOC_SPARC_TLS_LDO_ADD 3486 -- : BFD_RELOC_SPARC_TLS_IE_HI22 3487 -- : BFD_RELOC_SPARC_TLS_IE_LO10 3488 -- : BFD_RELOC_SPARC_TLS_IE_LD 3489 -- : BFD_RELOC_SPARC_TLS_IE_LDX 3490 -- : BFD_RELOC_SPARC_TLS_IE_ADD 3491 -- : BFD_RELOC_SPARC_TLS_LE_HIX22 3492 -- : BFD_RELOC_SPARC_TLS_LE_LOX10 3493 -- : BFD_RELOC_SPARC_TLS_DTPMOD32 3494 -- : BFD_RELOC_SPARC_TLS_DTPMOD64 3495 -- : BFD_RELOC_SPARC_TLS_DTPOFF32 3496 -- : BFD_RELOC_SPARC_TLS_DTPOFF64 3497 -- : BFD_RELOC_SPARC_TLS_TPOFF32 3498 -- : BFD_RELOC_SPARC_TLS_TPOFF64 3499 SPARC TLS relocations 3500 3501 -- : BFD_RELOC_SPU_IMM7 3502 -- : BFD_RELOC_SPU_IMM8 3503 -- : BFD_RELOC_SPU_IMM10 3504 -- : BFD_RELOC_SPU_IMM10W 3505 -- : BFD_RELOC_SPU_IMM16 3506 -- : BFD_RELOC_SPU_IMM16W 3507 -- : BFD_RELOC_SPU_IMM18 3508 -- : BFD_RELOC_SPU_PCREL9a 3509 -- : BFD_RELOC_SPU_PCREL9b 3510 -- : BFD_RELOC_SPU_PCREL16 3511 -- : BFD_RELOC_SPU_LO16 3512 -- : BFD_RELOC_SPU_HI16 3513 -- : BFD_RELOC_SPU_PPU32 3514 -- : BFD_RELOC_SPU_PPU64 3515 -- : BFD_RELOC_SPU_ADD_PIC 3516 SPU Relocations. 3517 3518 -- : BFD_RELOC_ALPHA_GPDISP_HI16 3519 Alpha ECOFF and ELF relocations. Some of these treat the symbol or 3520 "addend" in some special way. For GPDISP_HI16 ("gpdisp") 3521 relocations, the symbol is ignored when writing; when reading, it 3522 will be the absolute section symbol. The addend is the 3523 displacement in bytes of the "lda" instruction from the "ldah" 3524 instruction (which is at the address of this reloc). 3525 3526 -- : BFD_RELOC_ALPHA_GPDISP_LO16 3527 For GPDISP_LO16 ("ignore") relocations, the symbol is handled as 3528 with GPDISP_HI16 relocs. The addend is ignored when writing the 3529 relocations out, and is filled in with the file's GP value on 3530 reading, for convenience. 3531 3532 -- : BFD_RELOC_ALPHA_GPDISP 3533 The ELF GPDISP relocation is exactly the same as the GPDISP_HI16 3534 relocation except that there is no accompanying GPDISP_LO16 3535 relocation. 3536 3537 -- : BFD_RELOC_ALPHA_LITERAL 3538 -- : BFD_RELOC_ALPHA_ELF_LITERAL 3539 -- : BFD_RELOC_ALPHA_LITUSE 3540 The Alpha LITERAL/LITUSE relocs are produced by a symbol reference; 3541 the assembler turns it into a LDQ instruction to load the address 3542 of the symbol, and then fills in a register in the real 3543 instruction. 3544 3545 The LITERAL reloc, at the LDQ instruction, refers to the .lita 3546 section symbol. The addend is ignored when writing, but is filled 3547 in with the file's GP value on reading, for convenience, as with 3548 the GPDISP_LO16 reloc. 3549 3550 The ELF_LITERAL reloc is somewhere between 16_GOTOFF and 3551 GPDISP_LO16. It should refer to the symbol to be referenced, as 3552 with 16_GOTOFF, but it generates output not based on the position 3553 within the .got section, but relative to the GP value chosen for 3554 the file during the final link stage. 3555 3556 The LITUSE reloc, on the instruction using the loaded address, 3557 gives information to the linker that it might be able to use to 3558 optimize away some literal section references. The symbol is 3559 ignored (read as the absolute section symbol), and the "addend" 3560 indicates the type of instruction using the register: 1 - "memory" 3561 fmt insn 2 - byte-manipulation (byte offset reg) 3 - jsr (target 3562 of branch) 3563 3564 -- : BFD_RELOC_ALPHA_HINT 3565 The HINT relocation indicates a value that should be filled into 3566 the "hint" field of a jmp/jsr/ret instruction, for possible branch- 3567 prediction logic which may be provided on some processors. 3568 3569 -- : BFD_RELOC_ALPHA_LINKAGE 3570 The LINKAGE relocation outputs a linkage pair in the object file, 3571 which is filled by the linker. 3572 3573 -- : BFD_RELOC_ALPHA_CODEADDR 3574 The CODEADDR relocation outputs a STO_CA in the object file, which 3575 is filled by the linker. 3576 3577 -- : BFD_RELOC_ALPHA_GPREL_HI16 3578 -- : BFD_RELOC_ALPHA_GPREL_LO16 3579 The GPREL_HI/LO relocations together form a 32-bit offset from the 3580 GP register. 3581 3582 -- : BFD_RELOC_ALPHA_BRSGP 3583 Like BFD_RELOC_23_PCREL_S2, except that the source and target must 3584 share a common GP, and the target address is adjusted for 3585 STO_ALPHA_STD_GPLOAD. 3586 3587 -- : BFD_RELOC_ALPHA_NOP 3588 The NOP relocation outputs a NOP if the longword displacement 3589 between two procedure entry points is < 2^21. 3590 3591 -- : BFD_RELOC_ALPHA_BSR 3592 The BSR relocation outputs a BSR if the longword displacement 3593 between two procedure entry points is < 2^21. 3594 3595 -- : BFD_RELOC_ALPHA_LDA 3596 The LDA relocation outputs a LDA if the longword displacement 3597 between two procedure entry points is < 2^16. 3598 3599 -- : BFD_RELOC_ALPHA_BOH 3600 The BOH relocation outputs a BSR if the longword displacement 3601 between two procedure entry points is < 2^21, or else a hint. 3602 3603 -- : BFD_RELOC_ALPHA_TLSGD 3604 -- : BFD_RELOC_ALPHA_TLSLDM 3605 -- : BFD_RELOC_ALPHA_DTPMOD64 3606 -- : BFD_RELOC_ALPHA_GOTDTPREL16 3607 -- : BFD_RELOC_ALPHA_DTPREL64 3608 -- : BFD_RELOC_ALPHA_DTPREL_HI16 3609 -- : BFD_RELOC_ALPHA_DTPREL_LO16 3610 -- : BFD_RELOC_ALPHA_DTPREL16 3611 -- : BFD_RELOC_ALPHA_GOTTPREL16 3612 -- : BFD_RELOC_ALPHA_TPREL64 3613 -- : BFD_RELOC_ALPHA_TPREL_HI16 3614 -- : BFD_RELOC_ALPHA_TPREL_LO16 3615 -- : BFD_RELOC_ALPHA_TPREL16 3616 Alpha thread-local storage relocations. 3617 3618 -- : BFD_RELOC_MIPS_JMP 3619 Bits 27..2 of the relocation address shifted right 2 bits; simple 3620 reloc otherwise. 3621 3622 -- : BFD_RELOC_MIPS16_JMP 3623 The MIPS16 jump instruction. 3624 3625 -- : BFD_RELOC_MIPS16_GPREL 3626 MIPS16 GP relative reloc. 3627 3628 -- : BFD_RELOC_HI16 3629 High 16 bits of 32-bit value; simple reloc. 3630 3631 -- : BFD_RELOC_HI16_S 3632 High 16 bits of 32-bit value but the low 16 bits will be sign 3633 extended and added to form the final result. If the low 16 bits 3634 form a negative number, we need to add one to the high value to 3635 compensate for the borrow when the low bits are added. 3636 3637 -- : BFD_RELOC_LO16 3638 Low 16 bits. 3639 3640 -- : BFD_RELOC_HI16_PCREL 3641 High 16 bits of 32-bit pc-relative value 3642 3643 -- : BFD_RELOC_HI16_S_PCREL 3644 High 16 bits of 32-bit pc-relative value, adjusted 3645 3646 -- : BFD_RELOC_LO16_PCREL 3647 Low 16 bits of pc-relative value 3648 3649 -- : BFD_RELOC_MIPS16_GOT16 3650 -- : BFD_RELOC_MIPS16_CALL16 3651 Equivalent of BFD_RELOC_MIPS_*, but with the MIPS16 layout of 3652 16-bit immediate fields 3653 3654 -- : BFD_RELOC_MIPS16_HI16 3655 MIPS16 high 16 bits of 32-bit value. 3656 3657 -- : BFD_RELOC_MIPS16_HI16_S 3658 MIPS16 high 16 bits of 32-bit value but the low 16 bits will be 3659 sign extended and added to form the final result. If the low 16 3660 bits form a negative number, we need to add one to the high value 3661 to compensate for the borrow when the low bits are added. 3662 3663 -- : BFD_RELOC_MIPS16_LO16 3664 MIPS16 low 16 bits. 3665 3666 -- : BFD_RELOC_MIPS_LITERAL 3667 Relocation against a MIPS literal section. 3668 3669 -- : BFD_RELOC_MIPS_GOT16 3670 -- : BFD_RELOC_MIPS_CALL16 3671 -- : BFD_RELOC_MIPS_GOT_HI16 3672 -- : BFD_RELOC_MIPS_GOT_LO16 3673 -- : BFD_RELOC_MIPS_CALL_HI16 3674 -- : BFD_RELOC_MIPS_CALL_LO16 3675 -- : BFD_RELOC_MIPS_SUB 3676 -- : BFD_RELOC_MIPS_GOT_PAGE 3677 -- : BFD_RELOC_MIPS_GOT_OFST 3678 -- : BFD_RELOC_MIPS_GOT_DISP 3679 -- : BFD_RELOC_MIPS_SHIFT5 3680 -- : BFD_RELOC_MIPS_SHIFT6 3681 -- : BFD_RELOC_MIPS_INSERT_A 3682 -- : BFD_RELOC_MIPS_INSERT_B 3683 -- : BFD_RELOC_MIPS_DELETE 3684 -- : BFD_RELOC_MIPS_HIGHEST 3685 -- : BFD_RELOC_MIPS_HIGHER 3686 -- : BFD_RELOC_MIPS_SCN_DISP 3687 -- : BFD_RELOC_MIPS_REL16 3688 -- : BFD_RELOC_MIPS_RELGOT 3689 -- : BFD_RELOC_MIPS_JALR 3690 -- : BFD_RELOC_MIPS_TLS_DTPMOD32 3691 -- : BFD_RELOC_MIPS_TLS_DTPREL32 3692 -- : BFD_RELOC_MIPS_TLS_DTPMOD64 3693 -- : BFD_RELOC_MIPS_TLS_DTPREL64 3694 -- : BFD_RELOC_MIPS_TLS_GD 3695 -- : BFD_RELOC_MIPS_TLS_LDM 3696 -- : BFD_RELOC_MIPS_TLS_DTPREL_HI16 3697 -- : BFD_RELOC_MIPS_TLS_DTPREL_LO16 3698 -- : BFD_RELOC_MIPS_TLS_GOTTPREL 3699 -- : BFD_RELOC_MIPS_TLS_TPREL32 3700 -- : BFD_RELOC_MIPS_TLS_TPREL64 3701 -- : BFD_RELOC_MIPS_TLS_TPREL_HI16 3702 -- : BFD_RELOC_MIPS_TLS_TPREL_LO16 3703 MIPS ELF relocations. 3704 3705 -- : BFD_RELOC_MIPS_COPY 3706 -- : BFD_RELOC_MIPS_JUMP_SLOT 3707 MIPS ELF relocations (VxWorks and PLT extensions). 3708 3709 -- : BFD_RELOC_MOXIE_10_PCREL 3710 Moxie ELF relocations. 3711 3712 -- : BFD_RELOC_FRV_LABEL16 3713 -- : BFD_RELOC_FRV_LABEL24 3714 -- : BFD_RELOC_FRV_LO16 3715 -- : BFD_RELOC_FRV_HI16 3716 -- : BFD_RELOC_FRV_GPREL12 3717 -- : BFD_RELOC_FRV_GPRELU12 3718 -- : BFD_RELOC_FRV_GPREL32 3719 -- : BFD_RELOC_FRV_GPRELHI 3720 -- : BFD_RELOC_FRV_GPRELLO 3721 -- : BFD_RELOC_FRV_GOT12 3722 -- : BFD_RELOC_FRV_GOTHI 3723 -- : BFD_RELOC_FRV_GOTLO 3724 -- : BFD_RELOC_FRV_FUNCDESC 3725 -- : BFD_RELOC_FRV_FUNCDESC_GOT12 3726 -- : BFD_RELOC_FRV_FUNCDESC_GOTHI 3727 -- : BFD_RELOC_FRV_FUNCDESC_GOTLO 3728 -- : BFD_RELOC_FRV_FUNCDESC_VALUE 3729 -- : BFD_RELOC_FRV_FUNCDESC_GOTOFF12 3730 -- : BFD_RELOC_FRV_FUNCDESC_GOTOFFHI 3731 -- : BFD_RELOC_FRV_FUNCDESC_GOTOFFLO 3732 -- : BFD_RELOC_FRV_GOTOFF12 3733 -- : BFD_RELOC_FRV_GOTOFFHI 3734 -- : BFD_RELOC_FRV_GOTOFFLO 3735 -- : BFD_RELOC_FRV_GETTLSOFF 3736 -- : BFD_RELOC_FRV_TLSDESC_VALUE 3737 -- : BFD_RELOC_FRV_GOTTLSDESC12 3738 -- : BFD_RELOC_FRV_GOTTLSDESCHI 3739 -- : BFD_RELOC_FRV_GOTTLSDESCLO 3740 -- : BFD_RELOC_FRV_TLSMOFF12 3741 -- : BFD_RELOC_FRV_TLSMOFFHI 3742 -- : BFD_RELOC_FRV_TLSMOFFLO 3743 -- : BFD_RELOC_FRV_GOTTLSOFF12 3744 -- : BFD_RELOC_FRV_GOTTLSOFFHI 3745 -- : BFD_RELOC_FRV_GOTTLSOFFLO 3746 -- : BFD_RELOC_FRV_TLSOFF 3747 -- : BFD_RELOC_FRV_TLSDESC_RELAX 3748 -- : BFD_RELOC_FRV_GETTLSOFF_RELAX 3749 -- : BFD_RELOC_FRV_TLSOFF_RELAX 3750 -- : BFD_RELOC_FRV_TLSMOFF 3751 Fujitsu Frv Relocations. 3752 3753 -- : BFD_RELOC_MN10300_GOTOFF24 3754 This is a 24bit GOT-relative reloc for the mn10300. 3755 3756 -- : BFD_RELOC_MN10300_GOT32 3757 This is a 32bit GOT-relative reloc for the mn10300, offset by two 3758 bytes in the instruction. 3759 3760 -- : BFD_RELOC_MN10300_GOT24 3761 This is a 24bit GOT-relative reloc for the mn10300, offset by two 3762 bytes in the instruction. 3763 3764 -- : BFD_RELOC_MN10300_GOT16 3765 This is a 16bit GOT-relative reloc for the mn10300, offset by two 3766 bytes in the instruction. 3767 3768 -- : BFD_RELOC_MN10300_COPY 3769 Copy symbol at runtime. 3770 3771 -- : BFD_RELOC_MN10300_GLOB_DAT 3772 Create GOT entry. 3773 3774 -- : BFD_RELOC_MN10300_JMP_SLOT 3775 Create PLT entry. 3776 3777 -- : BFD_RELOC_MN10300_RELATIVE 3778 Adjust by program base. 3779 3780 -- : BFD_RELOC_MN10300_SYM_DIFF 3781 Together with another reloc targeted at the same location, allows 3782 for a value that is the difference of two symbols in the same 3783 section. 3784 3785 -- : BFD_RELOC_MN10300_ALIGN 3786 The addend of this reloc is an alignment power that must be 3787 honoured at the offset's location, regardless of linker relaxation. 3788 3789 -- : BFD_RELOC_386_GOT32 3790 -- : BFD_RELOC_386_PLT32 3791 -- : BFD_RELOC_386_COPY 3792 -- : BFD_RELOC_386_GLOB_DAT 3793 -- : BFD_RELOC_386_JUMP_SLOT 3794 -- : BFD_RELOC_386_RELATIVE 3795 -- : BFD_RELOC_386_GOTOFF 3796 -- : BFD_RELOC_386_GOTPC 3797 -- : BFD_RELOC_386_TLS_TPOFF 3798 -- : BFD_RELOC_386_TLS_IE 3799 -- : BFD_RELOC_386_TLS_GOTIE 3800 -- : BFD_RELOC_386_TLS_LE 3801 -- : BFD_RELOC_386_TLS_GD 3802 -- : BFD_RELOC_386_TLS_LDM 3803 -- : BFD_RELOC_386_TLS_LDO_32 3804 -- : BFD_RELOC_386_TLS_IE_32 3805 -- : BFD_RELOC_386_TLS_LE_32 3806 -- : BFD_RELOC_386_TLS_DTPMOD32 3807 -- : BFD_RELOC_386_TLS_DTPOFF32 3808 -- : BFD_RELOC_386_TLS_TPOFF32 3809 -- : BFD_RELOC_386_TLS_GOTDESC 3810 -- : BFD_RELOC_386_TLS_DESC_CALL 3811 -- : BFD_RELOC_386_TLS_DESC 3812 -- : BFD_RELOC_386_IRELATIVE 3813 i386/elf relocations 3814 3815 -- : BFD_RELOC_X86_64_GOT32 3816 -- : BFD_RELOC_X86_64_PLT32 3817 -- : BFD_RELOC_X86_64_COPY 3818 -- : BFD_RELOC_X86_64_GLOB_DAT 3819 -- : BFD_RELOC_X86_64_JUMP_SLOT 3820 -- : BFD_RELOC_X86_64_RELATIVE 3821 -- : BFD_RELOC_X86_64_GOTPCREL 3822 -- : BFD_RELOC_X86_64_32S 3823 -- : BFD_RELOC_X86_64_DTPMOD64 3824 -- : BFD_RELOC_X86_64_DTPOFF64 3825 -- : BFD_RELOC_X86_64_TPOFF64 3826 -- : BFD_RELOC_X86_64_TLSGD 3827 -- : BFD_RELOC_X86_64_TLSLD 3828 -- : BFD_RELOC_X86_64_DTPOFF32 3829 -- : BFD_RELOC_X86_64_GOTTPOFF 3830 -- : BFD_RELOC_X86_64_TPOFF32 3831 -- : BFD_RELOC_X86_64_GOTOFF64 3832 -- : BFD_RELOC_X86_64_GOTPC32 3833 -- : BFD_RELOC_X86_64_GOT64 3834 -- : BFD_RELOC_X86_64_GOTPCREL64 3835 -- : BFD_RELOC_X86_64_GOTPC64 3836 -- : BFD_RELOC_X86_64_GOTPLT64 3837 -- : BFD_RELOC_X86_64_PLTOFF64 3838 -- : BFD_RELOC_X86_64_GOTPC32_TLSDESC 3839 -- : BFD_RELOC_X86_64_TLSDESC_CALL 3840 -- : BFD_RELOC_X86_64_TLSDESC 3841 -- : BFD_RELOC_X86_64_IRELATIVE 3842 x86-64/elf relocations 3843 3844 -- : BFD_RELOC_NS32K_IMM_8 3845 -- : BFD_RELOC_NS32K_IMM_16 3846 -- : BFD_RELOC_NS32K_IMM_32 3847 -- : BFD_RELOC_NS32K_IMM_8_PCREL 3848 -- : BFD_RELOC_NS32K_IMM_16_PCREL 3849 -- : BFD_RELOC_NS32K_IMM_32_PCREL 3850 -- : BFD_RELOC_NS32K_DISP_8 3851 -- : BFD_RELOC_NS32K_DISP_16 3852 -- : BFD_RELOC_NS32K_DISP_32 3853 -- : BFD_RELOC_NS32K_DISP_8_PCREL 3854 -- : BFD_RELOC_NS32K_DISP_16_PCREL 3855 -- : BFD_RELOC_NS32K_DISP_32_PCREL 3856 ns32k relocations 3857 3858 -- : BFD_RELOC_PDP11_DISP_8_PCREL 3859 -- : BFD_RELOC_PDP11_DISP_6_PCREL 3860 PDP11 relocations 3861 3862 -- : BFD_RELOC_PJ_CODE_HI16 3863 -- : BFD_RELOC_PJ_CODE_LO16 3864 -- : BFD_RELOC_PJ_CODE_DIR16 3865 -- : BFD_RELOC_PJ_CODE_DIR32 3866 -- : BFD_RELOC_PJ_CODE_REL16 3867 -- : BFD_RELOC_PJ_CODE_REL32 3868 Picojava relocs. Not all of these appear in object files. 3869 3870 -- : BFD_RELOC_PPC_B26 3871 -- : BFD_RELOC_PPC_BA26 3872 -- : BFD_RELOC_PPC_TOC16 3873 -- : BFD_RELOC_PPC_B16 3874 -- : BFD_RELOC_PPC_B16_BRTAKEN 3875 -- : BFD_RELOC_PPC_B16_BRNTAKEN 3876 -- : BFD_RELOC_PPC_BA16 3877 -- : BFD_RELOC_PPC_BA16_BRTAKEN 3878 -- : BFD_RELOC_PPC_BA16_BRNTAKEN 3879 -- : BFD_RELOC_PPC_COPY 3880 -- : BFD_RELOC_PPC_GLOB_DAT 3881 -- : BFD_RELOC_PPC_JMP_SLOT 3882 -- : BFD_RELOC_PPC_RELATIVE 3883 -- : BFD_RELOC_PPC_LOCAL24PC 3884 -- : BFD_RELOC_PPC_EMB_NADDR32 3885 -- : BFD_RELOC_PPC_EMB_NADDR16 3886 -- : BFD_RELOC_PPC_EMB_NADDR16_LO 3887 -- : BFD_RELOC_PPC_EMB_NADDR16_HI 3888 -- : BFD_RELOC_PPC_EMB_NADDR16_HA 3889 -- : BFD_RELOC_PPC_EMB_SDAI16 3890 -- : BFD_RELOC_PPC_EMB_SDA2I16 3891 -- : BFD_RELOC_PPC_EMB_SDA2REL 3892 -- : BFD_RELOC_PPC_EMB_SDA21 3893 -- : BFD_RELOC_PPC_EMB_MRKREF 3894 -- : BFD_RELOC_PPC_EMB_RELSEC16 3895 -- : BFD_RELOC_PPC_EMB_RELST_LO 3896 -- : BFD_RELOC_PPC_EMB_RELST_HI 3897 -- : BFD_RELOC_PPC_EMB_RELST_HA 3898 -- : BFD_RELOC_PPC_EMB_BIT_FLD 3899 -- : BFD_RELOC_PPC_EMB_RELSDA 3900 -- : BFD_RELOC_PPC64_HIGHER 3901 -- : BFD_RELOC_PPC64_HIGHER_S 3902 -- : BFD_RELOC_PPC64_HIGHEST 3903 -- : BFD_RELOC_PPC64_HIGHEST_S 3904 -- : BFD_RELOC_PPC64_TOC16_LO 3905 -- : BFD_RELOC_PPC64_TOC16_HI 3906 -- : BFD_RELOC_PPC64_TOC16_HA 3907 -- : BFD_RELOC_PPC64_TOC 3908 -- : BFD_RELOC_PPC64_PLTGOT16 3909 -- : BFD_RELOC_PPC64_PLTGOT16_LO 3910 -- : BFD_RELOC_PPC64_PLTGOT16_HI 3911 -- : BFD_RELOC_PPC64_PLTGOT16_HA 3912 -- : BFD_RELOC_PPC64_ADDR16_DS 3913 -- : BFD_RELOC_PPC64_ADDR16_LO_DS 3914 -- : BFD_RELOC_PPC64_GOT16_DS 3915 -- : BFD_RELOC_PPC64_GOT16_LO_DS 3916 -- : BFD_RELOC_PPC64_PLT16_LO_DS 3917 -- : BFD_RELOC_PPC64_SECTOFF_DS 3918 -- : BFD_RELOC_PPC64_SECTOFF_LO_DS 3919 -- : BFD_RELOC_PPC64_TOC16_DS 3920 -- : BFD_RELOC_PPC64_TOC16_LO_DS 3921 -- : BFD_RELOC_PPC64_PLTGOT16_DS 3922 -- : BFD_RELOC_PPC64_PLTGOT16_LO_DS 3923 Power(rs6000) and PowerPC relocations. 3924 3925 -- : BFD_RELOC_PPC_TLS 3926 -- : BFD_RELOC_PPC_TLSGD 3927 -- : BFD_RELOC_PPC_TLSLD 3928 -- : BFD_RELOC_PPC_DTPMOD 3929 -- : BFD_RELOC_PPC_TPREL16 3930 -- : BFD_RELOC_PPC_TPREL16_LO 3931 -- : BFD_RELOC_PPC_TPREL16_HI 3932 -- : BFD_RELOC_PPC_TPREL16_HA 3933 -- : BFD_RELOC_PPC_TPREL 3934 -- : BFD_RELOC_PPC_DTPREL16 3935 -- : BFD_RELOC_PPC_DTPREL16_LO 3936 -- : BFD_RELOC_PPC_DTPREL16_HI 3937 -- : BFD_RELOC_PPC_DTPREL16_HA 3938 -- : BFD_RELOC_PPC_DTPREL 3939 -- : BFD_RELOC_PPC_GOT_TLSGD16 3940 -- : BFD_RELOC_PPC_GOT_TLSGD16_LO 3941 -- : BFD_RELOC_PPC_GOT_TLSGD16_HI 3942 -- : BFD_RELOC_PPC_GOT_TLSGD16_HA 3943 -- : BFD_RELOC_PPC_GOT_TLSLD16 3944 -- : BFD_RELOC_PPC_GOT_TLSLD16_LO 3945 -- : BFD_RELOC_PPC_GOT_TLSLD16_HI 3946 -- : BFD_RELOC_PPC_GOT_TLSLD16_HA 3947 -- : BFD_RELOC_PPC_GOT_TPREL16 3948 -- : BFD_RELOC_PPC_GOT_TPREL16_LO 3949 -- : BFD_RELOC_PPC_GOT_TPREL16_HI 3950 -- : BFD_RELOC_PPC_GOT_TPREL16_HA 3951 -- : BFD_RELOC_PPC_GOT_DTPREL16 3952 -- : BFD_RELOC_PPC_GOT_DTPREL16_LO 3953 -- : BFD_RELOC_PPC_GOT_DTPREL16_HI 3954 -- : BFD_RELOC_PPC_GOT_DTPREL16_HA 3955 -- : BFD_RELOC_PPC64_TPREL16_DS 3956 -- : BFD_RELOC_PPC64_TPREL16_LO_DS 3957 -- : BFD_RELOC_PPC64_TPREL16_HIGHER 3958 -- : BFD_RELOC_PPC64_TPREL16_HIGHERA 3959 -- : BFD_RELOC_PPC64_TPREL16_HIGHEST 3960 -- : BFD_RELOC_PPC64_TPREL16_HIGHESTA 3961 -- : BFD_RELOC_PPC64_DTPREL16_DS 3962 -- : BFD_RELOC_PPC64_DTPREL16_LO_DS 3963 -- : BFD_RELOC_PPC64_DTPREL16_HIGHER 3964 -- : BFD_RELOC_PPC64_DTPREL16_HIGHERA 3965 -- : BFD_RELOC_PPC64_DTPREL16_HIGHEST 3966 -- : BFD_RELOC_PPC64_DTPREL16_HIGHESTA 3967 PowerPC and PowerPC64 thread-local storage relocations. 3968 3969 -- : BFD_RELOC_I370_D12 3970 IBM 370/390 relocations 3971 3972 -- : BFD_RELOC_CTOR 3973 The type of reloc used to build a constructor table - at the moment 3974 probably a 32 bit wide absolute relocation, but the target can 3975 choose. It generally does map to one of the other relocation 3976 types. 3977 3978 -- : BFD_RELOC_ARM_PCREL_BRANCH 3979 ARM 26 bit pc-relative branch. The lowest two bits must be zero 3980 and are not stored in the instruction. 3981 3982 -- : BFD_RELOC_ARM_PCREL_BLX 3983 ARM 26 bit pc-relative branch. The lowest bit must be zero and is 3984 not stored in the instruction. The 2nd lowest bit comes from a 1 3985 bit field in the instruction. 3986 3987 -- : BFD_RELOC_THUMB_PCREL_BLX 3988 Thumb 22 bit pc-relative branch. The lowest bit must be zero and 3989 is not stored in the instruction. The 2nd lowest bit comes from a 3990 1 bit field in the instruction. 3991 3992 -- : BFD_RELOC_ARM_PCREL_CALL 3993 ARM 26-bit pc-relative branch for an unconditional BL or BLX 3994 instruction. 3995 3996 -- : BFD_RELOC_ARM_PCREL_JUMP 3997 ARM 26-bit pc-relative branch for B or conditional BL instruction. 3998 3999 -- : BFD_RELOC_THUMB_PCREL_BRANCH7 4000 -- : BFD_RELOC_THUMB_PCREL_BRANCH9 4001 -- : BFD_RELOC_THUMB_PCREL_BRANCH12 4002 -- : BFD_RELOC_THUMB_PCREL_BRANCH20 4003 -- : BFD_RELOC_THUMB_PCREL_BRANCH23 4004 -- : BFD_RELOC_THUMB_PCREL_BRANCH25 4005 Thumb 7-, 9-, 12-, 20-, 23-, and 25-bit pc-relative branches. The 4006 lowest bit must be zero and is not stored in the instruction. 4007 Note that the corresponding ELF R_ARM_THM_JUMPnn constant has an 4008 "nn" one smaller in all cases. Note further that BRANCH23 4009 corresponds to R_ARM_THM_CALL. 4010 4011 -- : BFD_RELOC_ARM_OFFSET_IMM 4012 12-bit immediate offset, used in ARM-format ldr and str 4013 instructions. 4014 4015 -- : BFD_RELOC_ARM_THUMB_OFFSET 4016 5-bit immediate offset, used in Thumb-format ldr and str 4017 instructions. 4018 4019 -- : BFD_RELOC_ARM_TARGET1 4020 Pc-relative or absolute relocation depending on target. Used for 4021 entries in .init_array sections. 4022 4023 -- : BFD_RELOC_ARM_ROSEGREL32 4024 Read-only segment base relative address. 4025 4026 -- : BFD_RELOC_ARM_SBREL32 4027 Data segment base relative address. 4028 4029 -- : BFD_RELOC_ARM_TARGET2 4030 This reloc is used for references to RTTI data from exception 4031 handling tables. The actual definition depends on the target. It 4032 may be a pc-relative or some form of GOT-indirect relocation. 4033 4034 -- : BFD_RELOC_ARM_PREL31 4035 31-bit PC relative address. 4036 4037 -- : BFD_RELOC_ARM_MOVW 4038 -- : BFD_RELOC_ARM_MOVT 4039 -- : BFD_RELOC_ARM_MOVW_PCREL 4040 -- : BFD_RELOC_ARM_MOVT_PCREL 4041 -- : BFD_RELOC_ARM_THUMB_MOVW 4042 -- : BFD_RELOC_ARM_THUMB_MOVT 4043 -- : BFD_RELOC_ARM_THUMB_MOVW_PCREL 4044 -- : BFD_RELOC_ARM_THUMB_MOVT_PCREL 4045 Low and High halfword relocations for MOVW and MOVT instructions. 4046 4047 -- : BFD_RELOC_ARM_JUMP_SLOT 4048 -- : BFD_RELOC_ARM_GLOB_DAT 4049 -- : BFD_RELOC_ARM_GOT32 4050 -- : BFD_RELOC_ARM_PLT32 4051 -- : BFD_RELOC_ARM_RELATIVE 4052 -- : BFD_RELOC_ARM_GOTOFF 4053 -- : BFD_RELOC_ARM_GOTPC 4054 -- : BFD_RELOC_ARM_GOT_PREL 4055 Relocations for setting up GOTs and PLTs for shared libraries. 4056 4057 -- : BFD_RELOC_ARM_TLS_GD32 4058 -- : BFD_RELOC_ARM_TLS_LDO32 4059 -- : BFD_RELOC_ARM_TLS_LDM32 4060 -- : BFD_RELOC_ARM_TLS_DTPOFF32 4061 -- : BFD_RELOC_ARM_TLS_DTPMOD32 4062 -- : BFD_RELOC_ARM_TLS_TPOFF32 4063 -- : BFD_RELOC_ARM_TLS_IE32 4064 -- : BFD_RELOC_ARM_TLS_LE32 4065 -- : BFD_RELOC_ARM_TLS_GOTDESC 4066 -- : BFD_RELOC_ARM_TLS_CALL 4067 -- : BFD_RELOC_ARM_THM_TLS_CALL 4068 -- : BFD_RELOC_ARM_TLS_DESCSEQ 4069 -- : BFD_RELOC_ARM_THM_TLS_DESCSEQ 4070 -- : BFD_RELOC_ARM_TLS_DESC 4071 ARM thread-local storage relocations. 4072 4073 -- : BFD_RELOC_ARM_ALU_PC_G0_NC 4074 -- : BFD_RELOC_ARM_ALU_PC_G0 4075 -- : BFD_RELOC_ARM_ALU_PC_G1_NC 4076 -- : BFD_RELOC_ARM_ALU_PC_G1 4077 -- : BFD_RELOC_ARM_ALU_PC_G2 4078 -- : BFD_RELOC_ARM_LDR_PC_G0 4079 -- : BFD_RELOC_ARM_LDR_PC_G1 4080 -- : BFD_RELOC_ARM_LDR_PC_G2 4081 -- : BFD_RELOC_ARM_LDRS_PC_G0 4082 -- : BFD_RELOC_ARM_LDRS_PC_G1 4083 -- : BFD_RELOC_ARM_LDRS_PC_G2 4084 -- : BFD_RELOC_ARM_LDC_PC_G0 4085 -- : BFD_RELOC_ARM_LDC_PC_G1 4086 -- : BFD_RELOC_ARM_LDC_PC_G2 4087 -- : BFD_RELOC_ARM_ALU_SB_G0_NC 4088 -- : BFD_RELOC_ARM_ALU_SB_G0 4089 -- : BFD_RELOC_ARM_ALU_SB_G1_NC 4090 -- : BFD_RELOC_ARM_ALU_SB_G1 4091 -- : BFD_RELOC_ARM_ALU_SB_G2 4092 -- : BFD_RELOC_ARM_LDR_SB_G0 4093 -- : BFD_RELOC_ARM_LDR_SB_G1 4094 -- : BFD_RELOC_ARM_LDR_SB_G2 4095 -- : BFD_RELOC_ARM_LDRS_SB_G0 4096 -- : BFD_RELOC_ARM_LDRS_SB_G1 4097 -- : BFD_RELOC_ARM_LDRS_SB_G2 4098 -- : BFD_RELOC_ARM_LDC_SB_G0 4099 -- : BFD_RELOC_ARM_LDC_SB_G1 4100 -- : BFD_RELOC_ARM_LDC_SB_G2 4101 ARM group relocations. 4102 4103 -- : BFD_RELOC_ARM_V4BX 4104 Annotation of BX instructions. 4105 4106 -- : BFD_RELOC_ARM_IRELATIVE 4107 ARM support for STT_GNU_IFUNC. 4108 4109 -- : BFD_RELOC_ARM_IMMEDIATE 4110 -- : BFD_RELOC_ARM_ADRL_IMMEDIATE 4111 -- : BFD_RELOC_ARM_T32_IMMEDIATE 4112 -- : BFD_RELOC_ARM_T32_ADD_IMM 4113 -- : BFD_RELOC_ARM_T32_IMM12 4114 -- : BFD_RELOC_ARM_T32_ADD_PC12 4115 -- : BFD_RELOC_ARM_SHIFT_IMM 4116 -- : BFD_RELOC_ARM_SMC 4117 -- : BFD_RELOC_ARM_HVC 4118 -- : BFD_RELOC_ARM_SWI 4119 -- : BFD_RELOC_ARM_MULTI 4120 -- : BFD_RELOC_ARM_CP_OFF_IMM 4121 -- : BFD_RELOC_ARM_CP_OFF_IMM_S2 4122 -- : BFD_RELOC_ARM_T32_CP_OFF_IMM 4123 -- : BFD_RELOC_ARM_T32_CP_OFF_IMM_S2 4124 -- : BFD_RELOC_ARM_ADR_IMM 4125 -- : BFD_RELOC_ARM_LDR_IMM 4126 -- : BFD_RELOC_ARM_LITERAL 4127 -- : BFD_RELOC_ARM_IN_POOL 4128 -- : BFD_RELOC_ARM_OFFSET_IMM8 4129 -- : BFD_RELOC_ARM_T32_OFFSET_U8 4130 -- : BFD_RELOC_ARM_T32_OFFSET_IMM 4131 -- : BFD_RELOC_ARM_HWLITERAL 4132 -- : BFD_RELOC_ARM_THUMB_ADD 4133 -- : BFD_RELOC_ARM_THUMB_IMM 4134 -- : BFD_RELOC_ARM_THUMB_SHIFT 4135 These relocs are only used within the ARM assembler. They are not 4136 (at present) written to any object files. 4137 4138 -- : BFD_RELOC_SH_PCDISP8BY2 4139 -- : BFD_RELOC_SH_PCDISP12BY2 4140 -- : BFD_RELOC_SH_IMM3 4141 -- : BFD_RELOC_SH_IMM3U 4142 -- : BFD_RELOC_SH_DISP12 4143 -- : BFD_RELOC_SH_DISP12BY2 4144 -- : BFD_RELOC_SH_DISP12BY4 4145 -- : BFD_RELOC_SH_DISP12BY8 4146 -- : BFD_RELOC_SH_DISP20 4147 -- : BFD_RELOC_SH_DISP20BY8 4148 -- : BFD_RELOC_SH_IMM4 4149 -- : BFD_RELOC_SH_IMM4BY2 4150 -- : BFD_RELOC_SH_IMM4BY4 4151 -- : BFD_RELOC_SH_IMM8 4152 -- : BFD_RELOC_SH_IMM8BY2 4153 -- : BFD_RELOC_SH_IMM8BY4 4154 -- : BFD_RELOC_SH_PCRELIMM8BY2 4155 -- : BFD_RELOC_SH_PCRELIMM8BY4 4156 -- : BFD_RELOC_SH_SWITCH16 4157 -- : BFD_RELOC_SH_SWITCH32 4158 -- : BFD_RELOC_SH_USES 4159 -- : BFD_RELOC_SH_COUNT 4160 -- : BFD_RELOC_SH_ALIGN 4161 -- : BFD_RELOC_SH_CODE 4162 -- : BFD_RELOC_SH_DATA 4163 -- : BFD_RELOC_SH_LABEL 4164 -- : BFD_RELOC_SH_LOOP_START 4165 -- : BFD_RELOC_SH_LOOP_END 4166 -- : BFD_RELOC_SH_COPY 4167 -- : BFD_RELOC_SH_GLOB_DAT 4168 -- : BFD_RELOC_SH_JMP_SLOT 4169 -- : BFD_RELOC_SH_RELATIVE 4170 -- : BFD_RELOC_SH_GOTPC 4171 -- : BFD_RELOC_SH_GOT_LOW16 4172 -- : BFD_RELOC_SH_GOT_MEDLOW16 4173 -- : BFD_RELOC_SH_GOT_MEDHI16 4174 -- : BFD_RELOC_SH_GOT_HI16 4175 -- : BFD_RELOC_SH_GOTPLT_LOW16 4176 -- : BFD_RELOC_SH_GOTPLT_MEDLOW16 4177 -- : BFD_RELOC_SH_GOTPLT_MEDHI16 4178 -- : BFD_RELOC_SH_GOTPLT_HI16 4179 -- : BFD_RELOC_SH_PLT_LOW16 4180 -- : BFD_RELOC_SH_PLT_MEDLOW16 4181 -- : BFD_RELOC_SH_PLT_MEDHI16 4182 -- : BFD_RELOC_SH_PLT_HI16 4183 -- : BFD_RELOC_SH_GOTOFF_LOW16 4184 -- : BFD_RELOC_SH_GOTOFF_MEDLOW16 4185 -- : BFD_RELOC_SH_GOTOFF_MEDHI16 4186 -- : BFD_RELOC_SH_GOTOFF_HI16 4187 -- : BFD_RELOC_SH_GOTPC_LOW16 4188 -- : BFD_RELOC_SH_GOTPC_MEDLOW16 4189 -- : BFD_RELOC_SH_GOTPC_MEDHI16 4190 -- : BFD_RELOC_SH_GOTPC_HI16 4191 -- : BFD_RELOC_SH_COPY64 4192 -- : BFD_RELOC_SH_GLOB_DAT64 4193 -- : BFD_RELOC_SH_JMP_SLOT64 4194 -- : BFD_RELOC_SH_RELATIVE64 4195 -- : BFD_RELOC_SH_GOT10BY4 4196 -- : BFD_RELOC_SH_GOT10BY8 4197 -- : BFD_RELOC_SH_GOTPLT10BY4 4198 -- : BFD_RELOC_SH_GOTPLT10BY8 4199 -- : BFD_RELOC_SH_GOTPLT32 4200 -- : BFD_RELOC_SH_SHMEDIA_CODE 4201 -- : BFD_RELOC_SH_IMMU5 4202 -- : BFD_RELOC_SH_IMMS6 4203 -- : BFD_RELOC_SH_IMMS6BY32 4204 -- : BFD_RELOC_SH_IMMU6 4205 -- : BFD_RELOC_SH_IMMS10 4206 -- : BFD_RELOC_SH_IMMS10BY2 4207 -- : BFD_RELOC_SH_IMMS10BY4 4208 -- : BFD_RELOC_SH_IMMS10BY8 4209 -- : BFD_RELOC_SH_IMMS16 4210 -- : BFD_RELOC_SH_IMMU16 4211 -- : BFD_RELOC_SH_IMM_LOW16 4212 -- : BFD_RELOC_SH_IMM_LOW16_PCREL 4213 -- : BFD_RELOC_SH_IMM_MEDLOW16 4214 -- : BFD_RELOC_SH_IMM_MEDLOW16_PCREL 4215 -- : BFD_RELOC_SH_IMM_MEDHI16 4216 -- : BFD_RELOC_SH_IMM_MEDHI16_PCREL 4217 -- : BFD_RELOC_SH_IMM_HI16 4218 -- : BFD_RELOC_SH_IMM_HI16_PCREL 4219 -- : BFD_RELOC_SH_PT_16 4220 -- : BFD_RELOC_SH_TLS_GD_32 4221 -- : BFD_RELOC_SH_TLS_LD_32 4222 -- : BFD_RELOC_SH_TLS_LDO_32 4223 -- : BFD_RELOC_SH_TLS_IE_32 4224 -- : BFD_RELOC_SH_TLS_LE_32 4225 -- : BFD_RELOC_SH_TLS_DTPMOD32 4226 -- : BFD_RELOC_SH_TLS_DTPOFF32 4227 -- : BFD_RELOC_SH_TLS_TPOFF32 4228 -- : BFD_RELOC_SH_GOT20 4229 -- : BFD_RELOC_SH_GOTOFF20 4230 -- : BFD_RELOC_SH_GOTFUNCDESC 4231 -- : BFD_RELOC_SH_GOTFUNCDESC20 4232 -- : BFD_RELOC_SH_GOTOFFFUNCDESC 4233 -- : BFD_RELOC_SH_GOTOFFFUNCDESC20 4234 -- : BFD_RELOC_SH_FUNCDESC 4235 Renesas / SuperH SH relocs. Not all of these appear in object 4236 files. 4237 4238 -- : BFD_RELOC_ARC_B22_PCREL 4239 ARC Cores relocs. ARC 22 bit pc-relative branch. The lowest two 4240 bits must be zero and are not stored in the instruction. The high 4241 20 bits are installed in bits 26 through 7 of the instruction. 4242 4243 -- : BFD_RELOC_ARC_B26 4244 ARC 26 bit absolute branch. The lowest two bits must be zero and 4245 are not stored in the instruction. The high 24 bits are installed 4246 in bits 23 through 0. 4247 4248 -- : BFD_RELOC_BFIN_16_IMM 4249 ADI Blackfin 16 bit immediate absolute reloc. 4250 4251 -- : BFD_RELOC_BFIN_16_HIGH 4252 ADI Blackfin 16 bit immediate absolute reloc higher 16 bits. 4253 4254 -- : BFD_RELOC_BFIN_4_PCREL 4255 ADI Blackfin 'a' part of LSETUP. 4256 4257 -- : BFD_RELOC_BFIN_5_PCREL 4258 ADI Blackfin. 4259 4260 -- : BFD_RELOC_BFIN_16_LOW 4261 ADI Blackfin 16 bit immediate absolute reloc lower 16 bits. 4262 4263 -- : BFD_RELOC_BFIN_10_PCREL 4264 ADI Blackfin. 4265 4266 -- : BFD_RELOC_BFIN_11_PCREL 4267 ADI Blackfin 'b' part of LSETUP. 4268 4269 -- : BFD_RELOC_BFIN_12_PCREL_JUMP 4270 ADI Blackfin. 4271 4272 -- : BFD_RELOC_BFIN_12_PCREL_JUMP_S 4273 ADI Blackfin Short jump, pcrel. 4274 4275 -- : BFD_RELOC_BFIN_24_PCREL_CALL_X 4276 ADI Blackfin Call.x not implemented. 4277 4278 -- : BFD_RELOC_BFIN_24_PCREL_JUMP_L 4279 ADI Blackfin Long Jump pcrel. 4280 4281 -- : BFD_RELOC_BFIN_GOT17M4 4282 -- : BFD_RELOC_BFIN_GOTHI 4283 -- : BFD_RELOC_BFIN_GOTLO 4284 -- : BFD_RELOC_BFIN_FUNCDESC 4285 -- : BFD_RELOC_BFIN_FUNCDESC_GOT17M4 4286 -- : BFD_RELOC_BFIN_FUNCDESC_GOTHI 4287 -- : BFD_RELOC_BFIN_FUNCDESC_GOTLO 4288 -- : BFD_RELOC_BFIN_FUNCDESC_VALUE 4289 -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4 4290 -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI 4291 -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO 4292 -- : BFD_RELOC_BFIN_GOTOFF17M4 4293 -- : BFD_RELOC_BFIN_GOTOFFHI 4294 -- : BFD_RELOC_BFIN_GOTOFFLO 4295 ADI Blackfin FD-PIC relocations. 4296 4297 -- : BFD_RELOC_BFIN_GOT 4298 ADI Blackfin GOT relocation. 4299 4300 -- : BFD_RELOC_BFIN_PLTPC 4301 ADI Blackfin PLTPC relocation. 4302 4303 -- : BFD_ARELOC_BFIN_PUSH 4304 ADI Blackfin arithmetic relocation. 4305 4306 -- : BFD_ARELOC_BFIN_CONST 4307 ADI Blackfin arithmetic relocation. 4308 4309 -- : BFD_ARELOC_BFIN_ADD 4310 ADI Blackfin arithmetic relocation. 4311 4312 -- : BFD_ARELOC_BFIN_SUB 4313 ADI Blackfin arithmetic relocation. 4314 4315 -- : BFD_ARELOC_BFIN_MULT 4316 ADI Blackfin arithmetic relocation. 4317 4318 -- : BFD_ARELOC_BFIN_DIV 4319 ADI Blackfin arithmetic relocation. 4320 4321 -- : BFD_ARELOC_BFIN_MOD 4322 ADI Blackfin arithmetic relocation. 4323 4324 -- : BFD_ARELOC_BFIN_LSHIFT 4325 ADI Blackfin arithmetic relocation. 4326 4327 -- : BFD_ARELOC_BFIN_RSHIFT 4328 ADI Blackfin arithmetic relocation. 4329 4330 -- : BFD_ARELOC_BFIN_AND 4331 ADI Blackfin arithmetic relocation. 4332 4333 -- : BFD_ARELOC_BFIN_OR 4334 ADI Blackfin arithmetic relocation. 4335 4336 -- : BFD_ARELOC_BFIN_XOR 4337 ADI Blackfin arithmetic relocation. 4338 4339 -- : BFD_ARELOC_BFIN_LAND 4340 ADI Blackfin arithmetic relocation. 4341 4342 -- : BFD_ARELOC_BFIN_LOR 4343 ADI Blackfin arithmetic relocation. 4344 4345 -- : BFD_ARELOC_BFIN_LEN 4346 ADI Blackfin arithmetic relocation. 4347 4348 -- : BFD_ARELOC_BFIN_NEG 4349 ADI Blackfin arithmetic relocation. 4350 4351 -- : BFD_ARELOC_BFIN_COMP 4352 ADI Blackfin arithmetic relocation. 4353 4354 -- : BFD_ARELOC_BFIN_PAGE 4355 ADI Blackfin arithmetic relocation. 4356 4357 -- : BFD_ARELOC_BFIN_HWPAGE 4358 ADI Blackfin arithmetic relocation. 4359 4360 -- : BFD_ARELOC_BFIN_ADDR 4361 ADI Blackfin arithmetic relocation. 4362 4363 -- : BFD_RELOC_D10V_10_PCREL_R 4364 Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2 4365 bits assumed to be 0. 4366 4367 -- : BFD_RELOC_D10V_10_PCREL_L 4368 Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2 4369 bits assumed to be 0. This is the same as the previous reloc 4370 except it is in the left container, i.e., shifted left 15 bits. 4371 4372 -- : BFD_RELOC_D10V_18 4373 This is an 18-bit reloc with the right 2 bits assumed to be 0. 4374 4375 -- : BFD_RELOC_D10V_18_PCREL 4376 This is an 18-bit reloc with the right 2 bits assumed to be 0. 4377 4378 -- : BFD_RELOC_D30V_6 4379 Mitsubishi D30V relocs. This is a 6-bit absolute reloc. 4380 4381 -- : BFD_RELOC_D30V_9_PCREL 4382 This is a 6-bit pc-relative reloc with the right 3 bits assumed to 4383 be 0. 4384 4385 -- : BFD_RELOC_D30V_9_PCREL_R 4386 This is a 6-bit pc-relative reloc with the right 3 bits assumed to 4387 be 0. Same as the previous reloc but on the right side of the 4388 container. 4389 4390 -- : BFD_RELOC_D30V_15 4391 This is a 12-bit absolute reloc with the right 3 bitsassumed to be 4392 0. 4393 4394 -- : BFD_RELOC_D30V_15_PCREL 4395 This is a 12-bit pc-relative reloc with the right 3 bits assumed 4396 to be 0. 4397 4398 -- : BFD_RELOC_D30V_15_PCREL_R 4399 This is a 12-bit pc-relative reloc with the right 3 bits assumed 4400 to be 0. Same as the previous reloc but on the right side of the 4401 container. 4402 4403 -- : BFD_RELOC_D30V_21 4404 This is an 18-bit absolute reloc with the right 3 bits assumed to 4405 be 0. 4406 4407 -- : BFD_RELOC_D30V_21_PCREL 4408 This is an 18-bit pc-relative reloc with the right 3 bits assumed 4409 to be 0. 4410 4411 -- : BFD_RELOC_D30V_21_PCREL_R 4412 This is an 18-bit pc-relative reloc with the right 3 bits assumed 4413 to be 0. Same as the previous reloc but on the right side of the 4414 container. 4415 4416 -- : BFD_RELOC_D30V_32 4417 This is a 32-bit absolute reloc. 4418 4419 -- : BFD_RELOC_D30V_32_PCREL 4420 This is a 32-bit pc-relative reloc. 4421 4422 -- : BFD_RELOC_DLX_HI16_S 4423 DLX relocs 4424 4425 -- : BFD_RELOC_DLX_LO16 4426 DLX relocs 4427 4428 -- : BFD_RELOC_DLX_JMP26 4429 DLX relocs 4430 4431 -- : BFD_RELOC_M32C_HI8 4432 -- : BFD_RELOC_M32C_RL_JUMP 4433 -- : BFD_RELOC_M32C_RL_1ADDR 4434 -- : BFD_RELOC_M32C_RL_2ADDR 4435 Renesas M16C/M32C Relocations. 4436 4437 -- : BFD_RELOC_M32R_24 4438 Renesas M32R (formerly Mitsubishi M32R) relocs. This is a 24 bit 4439 absolute address. 4440 4441 -- : BFD_RELOC_M32R_10_PCREL 4442 This is a 10-bit pc-relative reloc with the right 2 bits assumed 4443 to be 0. 4444 4445 -- : BFD_RELOC_M32R_18_PCREL 4446 This is an 18-bit reloc with the right 2 bits assumed to be 0. 4447 4448 -- : BFD_RELOC_M32R_26_PCREL 4449 This is a 26-bit reloc with the right 2 bits assumed to be 0. 4450 4451 -- : BFD_RELOC_M32R_HI16_ULO 4452 This is a 16-bit reloc containing the high 16 bits of an address 4453 used when the lower 16 bits are treated as unsigned. 4454 4455 -- : BFD_RELOC_M32R_HI16_SLO 4456 This is a 16-bit reloc containing the high 16 bits of an address 4457 used when the lower 16 bits are treated as signed. 4458 4459 -- : BFD_RELOC_M32R_LO16 4460 This is a 16-bit reloc containing the lower 16 bits of an address. 4461 4462 -- : BFD_RELOC_M32R_SDA16 4463 This is a 16-bit reloc containing the small data area offset for 4464 use in add3, load, and store instructions. 4465 4466 -- : BFD_RELOC_M32R_GOT24 4467 -- : BFD_RELOC_M32R_26_PLTREL 4468 -- : BFD_RELOC_M32R_COPY 4469 -- : BFD_RELOC_M32R_GLOB_DAT 4470 -- : BFD_RELOC_M32R_JMP_SLOT 4471 -- : BFD_RELOC_M32R_RELATIVE 4472 -- : BFD_RELOC_M32R_GOTOFF 4473 -- : BFD_RELOC_M32R_GOTOFF_HI_ULO 4474 -- : BFD_RELOC_M32R_GOTOFF_HI_SLO 4475 -- : BFD_RELOC_M32R_GOTOFF_LO 4476 -- : BFD_RELOC_M32R_GOTPC24 4477 -- : BFD_RELOC_M32R_GOT16_HI_ULO 4478 -- : BFD_RELOC_M32R_GOT16_HI_SLO 4479 -- : BFD_RELOC_M32R_GOT16_LO 4480 -- : BFD_RELOC_M32R_GOTPC_HI_ULO 4481 -- : BFD_RELOC_M32R_GOTPC_HI_SLO 4482 -- : BFD_RELOC_M32R_GOTPC_LO 4483 For PIC. 4484 4485 -- : BFD_RELOC_V850_9_PCREL 4486 This is a 9-bit reloc 4487 4488 -- : BFD_RELOC_V850_22_PCREL 4489 This is a 22-bit reloc 4490 4491 -- : BFD_RELOC_V850_SDA_16_16_OFFSET 4492 This is a 16 bit offset from the short data area pointer. 4493 4494 -- : BFD_RELOC_V850_SDA_15_16_OFFSET 4495 This is a 16 bit offset (of which only 15 bits are used) from the 4496 short data area pointer. 4497 4498 -- : BFD_RELOC_V850_ZDA_16_16_OFFSET 4499 This is a 16 bit offset from the zero data area pointer. 4500 4501 -- : BFD_RELOC_V850_ZDA_15_16_OFFSET 4502 This is a 16 bit offset (of which only 15 bits are used) from the 4503 zero data area pointer. 4504 4505 -- : BFD_RELOC_V850_TDA_6_8_OFFSET 4506 This is an 8 bit offset (of which only 6 bits are used) from the 4507 tiny data area pointer. 4508 4509 -- : BFD_RELOC_V850_TDA_7_8_OFFSET 4510 This is an 8bit offset (of which only 7 bits are used) from the 4511 tiny data area pointer. 4512 4513 -- : BFD_RELOC_V850_TDA_7_7_OFFSET 4514 This is a 7 bit offset from the tiny data area pointer. 4515 4516 -- : BFD_RELOC_V850_TDA_16_16_OFFSET 4517 This is a 16 bit offset from the tiny data area pointer. 4518 4519 -- : BFD_RELOC_V850_TDA_4_5_OFFSET 4520 This is a 5 bit offset (of which only 4 bits are used) from the 4521 tiny data area pointer. 4522 4523 -- : BFD_RELOC_V850_TDA_4_4_OFFSET 4524 This is a 4 bit offset from the tiny data area pointer. 4525 4526 -- : BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET 4527 This is a 16 bit offset from the short data area pointer, with the 4528 bits placed non-contiguously in the instruction. 4529 4530 -- : BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET 4531 This is a 16 bit offset from the zero data area pointer, with the 4532 bits placed non-contiguously in the instruction. 4533 4534 -- : BFD_RELOC_V850_CALLT_6_7_OFFSET 4535 This is a 6 bit offset from the call table base pointer. 4536 4537 -- : BFD_RELOC_V850_CALLT_16_16_OFFSET 4538 This is a 16 bit offset from the call table base pointer. 4539 4540 -- : BFD_RELOC_V850_LONGCALL 4541 Used for relaxing indirect function calls. 4542 4543 -- : BFD_RELOC_V850_LONGJUMP 4544 Used for relaxing indirect jumps. 4545 4546 -- : BFD_RELOC_V850_ALIGN 4547 Used to maintain alignment whilst relaxing. 4548 4549 -- : BFD_RELOC_V850_LO16_SPLIT_OFFSET 4550 This is a variation of BFD_RELOC_LO16 that can be used in v850e 4551 ld.bu instructions. 4552 4553 -- : BFD_RELOC_V850_16_PCREL 4554 This is a 16-bit reloc. 4555 4556 -- : BFD_RELOC_V850_17_PCREL 4557 This is a 17-bit reloc. 4558 4559 -- : BFD_RELOC_V850_23 4560 This is a 23-bit reloc. 4561 4562 -- : BFD_RELOC_V850_32_PCREL 4563 This is a 32-bit reloc. 4564 4565 -- : BFD_RELOC_V850_32_ABS 4566 This is a 32-bit reloc. 4567 4568 -- : BFD_RELOC_V850_16_SPLIT_OFFSET 4569 This is a 16-bit reloc. 4570 4571 -- : BFD_RELOC_V850_16_S1 4572 This is a 16-bit reloc. 4573 4574 -- : BFD_RELOC_V850_LO16_S1 4575 Low 16 bits. 16 bit shifted by 1. 4576 4577 -- : BFD_RELOC_V850_CALLT_15_16_OFFSET 4578 This is a 16 bit offset from the call table base pointer. 4579 4580 -- : BFD_RELOC_V850_32_GOTPCREL 4581 DSO relocations. 4582 4583 -- : BFD_RELOC_V850_16_GOT 4584 DSO relocations. 4585 4586 -- : BFD_RELOC_V850_32_GOT 4587 DSO relocations. 4588 4589 -- : BFD_RELOC_V850_22_PLT_PCREL 4590 DSO relocations. 4591 4592 -- : BFD_RELOC_V850_32_PLT_PCREL 4593 DSO relocations. 4594 4595 -- : BFD_RELOC_V850_COPY 4596 DSO relocations. 4597 4598 -- : BFD_RELOC_V850_GLOB_DAT 4599 DSO relocations. 4600 4601 -- : BFD_RELOC_V850_JMP_SLOT 4602 DSO relocations. 4603 4604 -- : BFD_RELOC_V850_RELATIVE 4605 DSO relocations. 4606 4607 -- : BFD_RELOC_V850_16_GOTOFF 4608 DSO relocations. 4609 4610 -- : BFD_RELOC_V850_32_GOTOFF 4611 DSO relocations. 4612 4613 -- : BFD_RELOC_V850_CODE 4614 start code. 4615 4616 -- : BFD_RELOC_V850_DATA 4617 start data in text. 4618 4619 -- : BFD_RELOC_MN10300_32_PCREL 4620 This is a 32bit pcrel reloc for the mn10300, offset by two bytes 4621 in the instruction. 4622 4623 -- : BFD_RELOC_MN10300_16_PCREL 4624 This is a 16bit pcrel reloc for the mn10300, offset by two bytes 4625 in the instruction. 4626 4627 -- : BFD_RELOC_TIC30_LDP 4628 This is a 8bit DP reloc for the tms320c30, where the most 4629 significant 8 bits of a 24 bit word are placed into the least 4630 significant 8 bits of the opcode. 4631 4632 -- : BFD_RELOC_TIC54X_PARTLS7 4633 This is a 7bit reloc for the tms320c54x, where the least 4634 significant 7 bits of a 16 bit word are placed into the least 4635 significant 7 bits of the opcode. 4636 4637 -- : BFD_RELOC_TIC54X_PARTMS9 4638 This is a 9bit DP reloc for the tms320c54x, where the most 4639 significant 9 bits of a 16 bit word are placed into the least 4640 significant 9 bits of the opcode. 4641 4642 -- : BFD_RELOC_TIC54X_23 4643 This is an extended address 23-bit reloc for the tms320c54x. 4644 4645 -- : BFD_RELOC_TIC54X_16_OF_23 4646 This is a 16-bit reloc for the tms320c54x, where the least 4647 significant 16 bits of a 23-bit extended address are placed into 4648 the opcode. 4649 4650 -- : BFD_RELOC_TIC54X_MS7_OF_23 4651 This is a reloc for the tms320c54x, where the most significant 7 4652 bits of a 23-bit extended address are placed into the opcode. 4653 4654 -- : BFD_RELOC_C6000_PCR_S21 4655 -- : BFD_RELOC_C6000_PCR_S12 4656 -- : BFD_RELOC_C6000_PCR_S10 4657 -- : BFD_RELOC_C6000_PCR_S7 4658 -- : BFD_RELOC_C6000_ABS_S16 4659 -- : BFD_RELOC_C6000_ABS_L16 4660 -- : BFD_RELOC_C6000_ABS_H16 4661 -- : BFD_RELOC_C6000_SBR_U15_B 4662 -- : BFD_RELOC_C6000_SBR_U15_H 4663 -- : BFD_RELOC_C6000_SBR_U15_W 4664 -- : BFD_RELOC_C6000_SBR_S16 4665 -- : BFD_RELOC_C6000_SBR_L16_B 4666 -- : BFD_RELOC_C6000_SBR_L16_H 4667 -- : BFD_RELOC_C6000_SBR_L16_W 4668 -- : BFD_RELOC_C6000_SBR_H16_B 4669 -- : BFD_RELOC_C6000_SBR_H16_H 4670 -- : BFD_RELOC_C6000_SBR_H16_W 4671 -- : BFD_RELOC_C6000_SBR_GOT_U15_W 4672 -- : BFD_RELOC_C6000_SBR_GOT_L16_W 4673 -- : BFD_RELOC_C6000_SBR_GOT_H16_W 4674 -- : BFD_RELOC_C6000_DSBT_INDEX 4675 -- : BFD_RELOC_C6000_PREL31 4676 -- : BFD_RELOC_C6000_COPY 4677 -- : BFD_RELOC_C6000_JUMP_SLOT 4678 -- : BFD_RELOC_C6000_EHTYPE 4679 -- : BFD_RELOC_C6000_PCR_H16 4680 -- : BFD_RELOC_C6000_PCR_L16 4681 -- : BFD_RELOC_C6000_ALIGN 4682 -- : BFD_RELOC_C6000_FPHEAD 4683 -- : BFD_RELOC_C6000_NOCMP 4684 TMS320C6000 relocations. 4685 4686 -- : BFD_RELOC_FR30_48 4687 This is a 48 bit reloc for the FR30 that stores 32 bits. 4688 4689 -- : BFD_RELOC_FR30_20 4690 This is a 32 bit reloc for the FR30 that stores 20 bits split up 4691 into two sections. 4692 4693 -- : BFD_RELOC_FR30_6_IN_4 4694 This is a 16 bit reloc for the FR30 that stores a 6 bit word 4695 offset in 4 bits. 4696 4697 -- : BFD_RELOC_FR30_8_IN_8 4698 This is a 16 bit reloc for the FR30 that stores an 8 bit byte 4699 offset into 8 bits. 4700 4701 -- : BFD_RELOC_FR30_9_IN_8 4702 This is a 16 bit reloc for the FR30 that stores a 9 bit short 4703 offset into 8 bits. 4704 4705 -- : BFD_RELOC_FR30_10_IN_8 4706 This is a 16 bit reloc for the FR30 that stores a 10 bit word 4707 offset into 8 bits. 4708 4709 -- : BFD_RELOC_FR30_9_PCREL 4710 This is a 16 bit reloc for the FR30 that stores a 9 bit pc relative 4711 short offset into 8 bits. 4712 4713 -- : BFD_RELOC_FR30_12_PCREL 4714 This is a 16 bit reloc for the FR30 that stores a 12 bit pc 4715 relative short offset into 11 bits. 4716 4717 -- : BFD_RELOC_MCORE_PCREL_IMM8BY4 4718 -- : BFD_RELOC_MCORE_PCREL_IMM11BY2 4719 -- : BFD_RELOC_MCORE_PCREL_IMM4BY2 4720 -- : BFD_RELOC_MCORE_PCREL_32 4721 -- : BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2 4722 -- : BFD_RELOC_MCORE_RVA 4723 Motorola Mcore relocations. 4724 4725 -- : BFD_RELOC_MEP_8 4726 -- : BFD_RELOC_MEP_16 4727 -- : BFD_RELOC_MEP_32 4728 -- : BFD_RELOC_MEP_PCREL8A2 4729 -- : BFD_RELOC_MEP_PCREL12A2 4730 -- : BFD_RELOC_MEP_PCREL17A2 4731 -- : BFD_RELOC_MEP_PCREL24A2 4732 -- : BFD_RELOC_MEP_PCABS24A2 4733 -- : BFD_RELOC_MEP_LOW16 4734 -- : BFD_RELOC_MEP_HI16U 4735 -- : BFD_RELOC_MEP_HI16S 4736 -- : BFD_RELOC_MEP_GPREL 4737 -- : BFD_RELOC_MEP_TPREL 4738 -- : BFD_RELOC_MEP_TPREL7 4739 -- : BFD_RELOC_MEP_TPREL7A2 4740 -- : BFD_RELOC_MEP_TPREL7A4 4741 -- : BFD_RELOC_MEP_UIMM24 4742 -- : BFD_RELOC_MEP_ADDR24A4 4743 -- : BFD_RELOC_MEP_GNU_VTINHERIT 4744 -- : BFD_RELOC_MEP_GNU_VTENTRY 4745 Toshiba Media Processor Relocations. 4746 4747 -- : BFD_RELOC_MMIX_GETA 4748 -- : BFD_RELOC_MMIX_GETA_1 4749 -- : BFD_RELOC_MMIX_GETA_2 4750 -- : BFD_RELOC_MMIX_GETA_3 4751 These are relocations for the GETA instruction. 4752 4753 -- : BFD_RELOC_MMIX_CBRANCH 4754 -- : BFD_RELOC_MMIX_CBRANCH_J 4755 -- : BFD_RELOC_MMIX_CBRANCH_1 4756 -- : BFD_RELOC_MMIX_CBRANCH_2 4757 -- : BFD_RELOC_MMIX_CBRANCH_3 4758 These are relocations for a conditional branch instruction. 4759 4760 -- : BFD_RELOC_MMIX_PUSHJ 4761 -- : BFD_RELOC_MMIX_PUSHJ_1 4762 -- : BFD_RELOC_MMIX_PUSHJ_2 4763 -- : BFD_RELOC_MMIX_PUSHJ_3 4764 -- : BFD_RELOC_MMIX_PUSHJ_STUBBABLE 4765 These are relocations for the PUSHJ instruction. 4766 4767 -- : BFD_RELOC_MMIX_JMP 4768 -- : BFD_RELOC_MMIX_JMP_1 4769 -- : BFD_RELOC_MMIX_JMP_2 4770 -- : BFD_RELOC_MMIX_JMP_3 4771 These are relocations for the JMP instruction. 4772 4773 -- : BFD_RELOC_MMIX_ADDR19 4774 This is a relocation for a relative address as in a GETA 4775 instruction or a branch. 4776 4777 -- : BFD_RELOC_MMIX_ADDR27 4778 This is a relocation for a relative address as in a JMP 4779 instruction. 4780 4781 -- : BFD_RELOC_MMIX_REG_OR_BYTE 4782 This is a relocation for an instruction field that may be a general 4783 register or a value 0..255. 4784 4785 -- : BFD_RELOC_MMIX_REG 4786 This is a relocation for an instruction field that may be a general 4787 register. 4788 4789 -- : BFD_RELOC_MMIX_BASE_PLUS_OFFSET 4790 This is a relocation for two instruction fields holding a register 4791 and an offset, the equivalent of the relocation. 4792 4793 -- : BFD_RELOC_MMIX_LOCAL 4794 This relocation is an assertion that the expression is not 4795 allocated as a global register. It does not modify contents. 4796 4797 -- : BFD_RELOC_AVR_7_PCREL 4798 This is a 16 bit reloc for the AVR that stores 8 bit pc relative 4799 short offset into 7 bits. 4800 4801 -- : BFD_RELOC_AVR_13_PCREL 4802 This is a 16 bit reloc for the AVR that stores 13 bit pc relative 4803 short offset into 12 bits. 4804 4805 -- : BFD_RELOC_AVR_16_PM 4806 This is a 16 bit reloc for the AVR that stores 17 bit value 4807 (usually program memory address) into 16 bits. 4808 4809 -- : BFD_RELOC_AVR_LO8_LDI 4810 This is a 16 bit reloc for the AVR that stores 8 bit value (usually 4811 data memory address) into 8 bit immediate value of LDI insn. 4812 4813 -- : BFD_RELOC_AVR_HI8_LDI 4814 This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 4815 bit of data memory address) into 8 bit immediate value of LDI insn. 4816 4817 -- : BFD_RELOC_AVR_HH8_LDI 4818 This is a 16 bit reloc for the AVR that stores 8 bit value (most 4819 high 8 bit of program memory address) into 8 bit immediate value 4820 of LDI insn. 4821 4822 -- : BFD_RELOC_AVR_MS8_LDI 4823 This is a 16 bit reloc for the AVR that stores 8 bit value (most 4824 high 8 bit of 32 bit value) into 8 bit immediate value of LDI insn. 4825 4826 -- : BFD_RELOC_AVR_LO8_LDI_NEG 4827 This is a 16 bit reloc for the AVR that stores negated 8 bit value 4828 (usually data memory address) into 8 bit immediate value of SUBI 4829 insn. 4830 4831 -- : BFD_RELOC_AVR_HI8_LDI_NEG 4832 This is a 16 bit reloc for the AVR that stores negated 8 bit value 4833 (high 8 bit of data memory address) into 8 bit immediate value of 4834 SUBI insn. 4835 4836 -- : BFD_RELOC_AVR_HH8_LDI_NEG 4837 This is a 16 bit reloc for the AVR that stores negated 8 bit value 4838 (most high 8 bit of program memory address) into 8 bit immediate 4839 value of LDI or SUBI insn. 4840 4841 -- : BFD_RELOC_AVR_MS8_LDI_NEG 4842 This is a 16 bit reloc for the AVR that stores negated 8 bit value 4843 (msb of 32 bit value) into 8 bit immediate value of LDI insn. 4844 4845 -- : BFD_RELOC_AVR_LO8_LDI_PM 4846 This is a 16 bit reloc for the AVR that stores 8 bit value (usually 4847 command address) into 8 bit immediate value of LDI insn. 4848 4849 -- : BFD_RELOC_AVR_LO8_LDI_GS 4850 This is a 16 bit reloc for the AVR that stores 8 bit value 4851 (command address) into 8 bit immediate value of LDI insn. If the 4852 address is beyond the 128k boundary, the linker inserts a jump 4853 stub for this reloc in the lower 128k. 4854 4855 -- : BFD_RELOC_AVR_HI8_LDI_PM 4856 This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 4857 bit of command address) into 8 bit immediate value of LDI insn. 4858 4859 -- : BFD_RELOC_AVR_HI8_LDI_GS 4860 This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 4861 bit of command address) into 8 bit immediate value of LDI insn. 4862 If the address is beyond the 128k boundary, the linker inserts a 4863 jump stub for this reloc below 128k. 4864 4865 -- : BFD_RELOC_AVR_HH8_LDI_PM 4866 This is a 16 bit reloc for the AVR that stores 8 bit value (most 4867 high 8 bit of command address) into 8 bit immediate value of LDI 4868 insn. 4869 4870 -- : BFD_RELOC_AVR_LO8_LDI_PM_NEG 4871 This is a 16 bit reloc for the AVR that stores negated 8 bit value 4872 (usually command address) into 8 bit immediate value of SUBI insn. 4873 4874 -- : BFD_RELOC_AVR_HI8_LDI_PM_NEG 4875 This is a 16 bit reloc for the AVR that stores negated 8 bit value 4876 (high 8 bit of 16 bit command address) into 8 bit immediate value 4877 of SUBI insn. 4878 4879 -- : BFD_RELOC_AVR_HH8_LDI_PM_NEG 4880 This is a 16 bit reloc for the AVR that stores negated 8 bit value 4881 (high 6 bit of 22 bit command address) into 8 bit immediate value 4882 of SUBI insn. 4883 4884 -- : BFD_RELOC_AVR_CALL 4885 This is a 32 bit reloc for the AVR that stores 23 bit value into 4886 22 bits. 4887 4888 -- : BFD_RELOC_AVR_LDI 4889 This is a 16 bit reloc for the AVR that stores all needed bits for 4890 absolute addressing with ldi with overflow check to linktime 4891 4892 -- : BFD_RELOC_AVR_6 4893 This is a 6 bit reloc for the AVR that stores offset for ldd/std 4894 instructions 4895 4896 -- : BFD_RELOC_AVR_6_ADIW 4897 This is a 6 bit reloc for the AVR that stores offset for adiw/sbiw 4898 instructions 4899 4900 -- : BFD_RELOC_RX_NEG8 4901 -- : BFD_RELOC_RX_NEG16 4902 -- : BFD_RELOC_RX_NEG24 4903 -- : BFD_RELOC_RX_NEG32 4904 -- : BFD_RELOC_RX_16_OP 4905 -- : BFD_RELOC_RX_24_OP 4906 -- : BFD_RELOC_RX_32_OP 4907 -- : BFD_RELOC_RX_8U 4908 -- : BFD_RELOC_RX_16U 4909 -- : BFD_RELOC_RX_24U 4910 -- : BFD_RELOC_RX_DIR3U_PCREL 4911 -- : BFD_RELOC_RX_DIFF 4912 -- : BFD_RELOC_RX_GPRELB 4913 -- : BFD_RELOC_RX_GPRELW 4914 -- : BFD_RELOC_RX_GPRELL 4915 -- : BFD_RELOC_RX_SYM 4916 -- : BFD_RELOC_RX_OP_SUBTRACT 4917 -- : BFD_RELOC_RX_OP_NEG 4918 -- : BFD_RELOC_RX_ABS8 4919 -- : BFD_RELOC_RX_ABS16 4920 -- : BFD_RELOC_RX_ABS16_REV 4921 -- : BFD_RELOC_RX_ABS32 4922 -- : BFD_RELOC_RX_ABS32_REV 4923 -- : BFD_RELOC_RX_ABS16U 4924 -- : BFD_RELOC_RX_ABS16UW 4925 -- : BFD_RELOC_RX_ABS16UL 4926 -- : BFD_RELOC_RX_RELAX 4927 Renesas RX Relocations. 4928 4929 -- : BFD_RELOC_390_12 4930 Direct 12 bit. 4931 4932 -- : BFD_RELOC_390_GOT12 4933 12 bit GOT offset. 4934 4935 -- : BFD_RELOC_390_PLT32 4936 32 bit PC relative PLT address. 4937 4938 -- : BFD_RELOC_390_COPY 4939 Copy symbol at runtime. 4940 4941 -- : BFD_RELOC_390_GLOB_DAT 4942 Create GOT entry. 4943 4944 -- : BFD_RELOC_390_JMP_SLOT 4945 Create PLT entry. 4946 4947 -- : BFD_RELOC_390_RELATIVE 4948 Adjust by program base. 4949 4950 -- : BFD_RELOC_390_GOTPC 4951 32 bit PC relative offset to GOT. 4952 4953 -- : BFD_RELOC_390_GOT16 4954 16 bit GOT offset. 4955 4956 -- : BFD_RELOC_390_PC16DBL 4957 PC relative 16 bit shifted by 1. 4958 4959 -- : BFD_RELOC_390_PLT16DBL 4960 16 bit PC rel. PLT shifted by 1. 4961 4962 -- : BFD_RELOC_390_PC32DBL 4963 PC relative 32 bit shifted by 1. 4964 4965 -- : BFD_RELOC_390_PLT32DBL 4966 32 bit PC rel. PLT shifted by 1. 4967 4968 -- : BFD_RELOC_390_GOTPCDBL 4969 32 bit PC rel. GOT shifted by 1. 4970 4971 -- : BFD_RELOC_390_GOT64 4972 64 bit GOT offset. 4973 4974 -- : BFD_RELOC_390_PLT64 4975 64 bit PC relative PLT address. 4976 4977 -- : BFD_RELOC_390_GOTENT 4978 32 bit rel. offset to GOT entry. 4979 4980 -- : BFD_RELOC_390_GOTOFF64 4981 64 bit offset to GOT. 4982 4983 -- : BFD_RELOC_390_GOTPLT12 4984 12-bit offset to symbol-entry within GOT, with PLT handling. 4985 4986 -- : BFD_RELOC_390_GOTPLT16 4987 16-bit offset to symbol-entry within GOT, with PLT handling. 4988 4989 -- : BFD_RELOC_390_GOTPLT32 4990 32-bit offset to symbol-entry within GOT, with PLT handling. 4991 4992 -- : BFD_RELOC_390_GOTPLT64 4993 64-bit offset to symbol-entry within GOT, with PLT handling. 4994 4995 -- : BFD_RELOC_390_GOTPLTENT 4996 32-bit rel. offset to symbol-entry within GOT, with PLT handling. 4997 4998 -- : BFD_RELOC_390_PLTOFF16 4999 16-bit rel. offset from the GOT to a PLT entry. 5000 5001 -- : BFD_RELOC_390_PLTOFF32 5002 32-bit rel. offset from the GOT to a PLT entry. 5003 5004 -- : BFD_RELOC_390_PLTOFF64 5005 64-bit rel. offset from the GOT to a PLT entry. 5006 5007 -- : BFD_RELOC_390_TLS_LOAD 5008 -- : BFD_RELOC_390_TLS_GDCALL 5009 -- : BFD_RELOC_390_TLS_LDCALL 5010 -- : BFD_RELOC_390_TLS_GD32 5011 -- : BFD_RELOC_390_TLS_GD64 5012 -- : BFD_RELOC_390_TLS_GOTIE12 5013 -- : BFD_RELOC_390_TLS_GOTIE32 5014 -- : BFD_RELOC_390_TLS_GOTIE64 5015 -- : BFD_RELOC_390_TLS_LDM32 5016 -- : BFD_RELOC_390_TLS_LDM64 5017 -- : BFD_RELOC_390_TLS_IE32 5018 -- : BFD_RELOC_390_TLS_IE64 5019 -- : BFD_RELOC_390_TLS_IEENT 5020 -- : BFD_RELOC_390_TLS_LE32 5021 -- : BFD_RELOC_390_TLS_LE64 5022 -- : BFD_RELOC_390_TLS_LDO32 5023 -- : BFD_RELOC_390_TLS_LDO64 5024 -- : BFD_RELOC_390_TLS_DTPMOD 5025 -- : BFD_RELOC_390_TLS_DTPOFF 5026 -- : BFD_RELOC_390_TLS_TPOFF 5027 s390 tls relocations. 5028 5029 -- : BFD_RELOC_390_20 5030 -- : BFD_RELOC_390_GOT20 5031 -- : BFD_RELOC_390_GOTPLT20 5032 -- : BFD_RELOC_390_TLS_GOTIE20 5033 Long displacement extension. 5034 5035 -- : BFD_RELOC_SCORE_GPREL15 5036 Score relocations Low 16 bit for load/store 5037 5038 -- : BFD_RELOC_SCORE_DUMMY2 5039 -- : BFD_RELOC_SCORE_JMP 5040 This is a 24-bit reloc with the right 1 bit assumed to be 0 5041 5042 -- : BFD_RELOC_SCORE_BRANCH 5043 This is a 19-bit reloc with the right 1 bit assumed to be 0 5044 5045 -- : BFD_RELOC_SCORE_IMM30 5046 This is a 32-bit reloc for 48-bit instructions. 5047 5048 -- : BFD_RELOC_SCORE_IMM32 5049 This is a 32-bit reloc for 48-bit instructions. 5050 5051 -- : BFD_RELOC_SCORE16_JMP 5052 This is a 11-bit reloc with the right 1 bit assumed to be 0 5053 5054 -- : BFD_RELOC_SCORE16_BRANCH 5055 This is a 8-bit reloc with the right 1 bit assumed to be 0 5056 5057 -- : BFD_RELOC_SCORE_BCMP 5058 This is a 9-bit reloc with the right 1 bit assumed to be 0 5059 5060 -- : BFD_RELOC_SCORE_GOT15 5061 -- : BFD_RELOC_SCORE_GOT_LO16 5062 -- : BFD_RELOC_SCORE_CALL15 5063 -- : BFD_RELOC_SCORE_DUMMY_HI16 5064 Undocumented Score relocs 5065 5066 -- : BFD_RELOC_IP2K_FR9 5067 Scenix IP2K - 9-bit register number / data address 5068 5069 -- : BFD_RELOC_IP2K_BANK 5070 Scenix IP2K - 4-bit register/data bank number 5071 5072 -- : BFD_RELOC_IP2K_ADDR16CJP 5073 Scenix IP2K - low 13 bits of instruction word address 5074 5075 -- : BFD_RELOC_IP2K_PAGE3 5076 Scenix IP2K - high 3 bits of instruction word address 5077 5078 -- : BFD_RELOC_IP2K_LO8DATA 5079 -- : BFD_RELOC_IP2K_HI8DATA 5080 -- : BFD_RELOC_IP2K_EX8DATA 5081 Scenix IP2K - ext/low/high 8 bits of data address 5082 5083 -- : BFD_RELOC_IP2K_LO8INSN 5084 -- : BFD_RELOC_IP2K_HI8INSN 5085 Scenix IP2K - low/high 8 bits of instruction word address 5086 5087 -- : BFD_RELOC_IP2K_PC_SKIP 5088 Scenix IP2K - even/odd PC modifier to modify snb pcl.0 5089 5090 -- : BFD_RELOC_IP2K_TEXT 5091 Scenix IP2K - 16 bit word address in text section. 5092 5093 -- : BFD_RELOC_IP2K_FR_OFFSET 5094 Scenix IP2K - 7-bit sp or dp offset 5095 5096 -- : BFD_RELOC_VPE4KMATH_DATA 5097 -- : BFD_RELOC_VPE4KMATH_INSN 5098 Scenix VPE4K coprocessor - data/insn-space addressing 5099 5100 -- : BFD_RELOC_VTABLE_INHERIT 5101 -- : BFD_RELOC_VTABLE_ENTRY 5102 These two relocations are used by the linker to determine which of 5103 the entries in a C++ virtual function table are actually used. 5104 When the -gc-sections option is given, the linker will zero out 5105 the entries that are not used, so that the code for those 5106 functions need not be included in the output. 5107 5108 VTABLE_INHERIT is a zero-space relocation used to describe to the 5109 linker the inheritance tree of a C++ virtual function table. The 5110 relocation's symbol should be the parent class' vtable, and the 5111 relocation should be located at the child vtable. 5112 5113 VTABLE_ENTRY is a zero-space relocation that describes the use of a 5114 virtual function table entry. The reloc's symbol should refer to 5115 the table of the class mentioned in the code. Off of that base, 5116 an offset describes the entry that is being used. For Rela hosts, 5117 this offset is stored in the reloc's addend. For Rel hosts, we 5118 are forced to put this offset in the reloc's section offset. 5119 5120 -- : BFD_RELOC_IA64_IMM14 5121 -- : BFD_RELOC_IA64_IMM22 5122 -- : BFD_RELOC_IA64_IMM64 5123 -- : BFD_RELOC_IA64_DIR32MSB 5124 -- : BFD_RELOC_IA64_DIR32LSB 5125 -- : BFD_RELOC_IA64_DIR64MSB 5126 -- : BFD_RELOC_IA64_DIR64LSB 5127 -- : BFD_RELOC_IA64_GPREL22 5128 -- : BFD_RELOC_IA64_GPREL64I 5129 -- : BFD_RELOC_IA64_GPREL32MSB 5130 -- : BFD_RELOC_IA64_GPREL32LSB 5131 -- : BFD_RELOC_IA64_GPREL64MSB 5132 -- : BFD_RELOC_IA64_GPREL64LSB 5133 -- : BFD_RELOC_IA64_LTOFF22 5134 -- : BFD_RELOC_IA64_LTOFF64I 5135 -- : BFD_RELOC_IA64_PLTOFF22 5136 -- : BFD_RELOC_IA64_PLTOFF64I 5137 -- : BFD_RELOC_IA64_PLTOFF64MSB 5138 -- : BFD_RELOC_IA64_PLTOFF64LSB 5139 -- : BFD_RELOC_IA64_FPTR64I 5140 -- : BFD_RELOC_IA64_FPTR32MSB 5141 -- : BFD_RELOC_IA64_FPTR32LSB 5142 -- : BFD_RELOC_IA64_FPTR64MSB 5143 -- : BFD_RELOC_IA64_FPTR64LSB 5144 -- : BFD_RELOC_IA64_PCREL21B 5145 -- : BFD_RELOC_IA64_PCREL21BI 5146 -- : BFD_RELOC_IA64_PCREL21M 5147 -- : BFD_RELOC_IA64_PCREL21F 5148 -- : BFD_RELOC_IA64_PCREL22 5149 -- : BFD_RELOC_IA64_PCREL60B 5150 -- : BFD_RELOC_IA64_PCREL64I 5151 -- : BFD_RELOC_IA64_PCREL32MSB 5152 -- : BFD_RELOC_IA64_PCREL32LSB 5153 -- : BFD_RELOC_IA64_PCREL64MSB 5154 -- : BFD_RELOC_IA64_PCREL64LSB 5155 -- : BFD_RELOC_IA64_LTOFF_FPTR22 5156 -- : BFD_RELOC_IA64_LTOFF_FPTR64I 5157 -- : BFD_RELOC_IA64_LTOFF_FPTR32MSB 5158 -- : BFD_RELOC_IA64_LTOFF_FPTR32LSB 5159 -- : BFD_RELOC_IA64_LTOFF_FPTR64MSB 5160 -- : BFD_RELOC_IA64_LTOFF_FPTR64LSB 5161 -- : BFD_RELOC_IA64_SEGREL32MSB 5162 -- : BFD_RELOC_IA64_SEGREL32LSB 5163 -- : BFD_RELOC_IA64_SEGREL64MSB 5164 -- : BFD_RELOC_IA64_SEGREL64LSB 5165 -- : BFD_RELOC_IA64_SECREL32MSB 5166 -- : BFD_RELOC_IA64_SECREL32LSB 5167 -- : BFD_RELOC_IA64_SECREL64MSB 5168 -- : BFD_RELOC_IA64_SECREL64LSB 5169 -- : BFD_RELOC_IA64_REL32MSB 5170 -- : BFD_RELOC_IA64_REL32LSB 5171 -- : BFD_RELOC_IA64_REL64MSB 5172 -- : BFD_RELOC_IA64_REL64LSB 5173 -- : BFD_RELOC_IA64_LTV32MSB 5174 -- : BFD_RELOC_IA64_LTV32LSB 5175 -- : BFD_RELOC_IA64_LTV64MSB 5176 -- : BFD_RELOC_IA64_LTV64LSB 5177 -- : BFD_RELOC_IA64_IPLTMSB 5178 -- : BFD_RELOC_IA64_IPLTLSB 5179 -- : BFD_RELOC_IA64_COPY 5180 -- : BFD_RELOC_IA64_LTOFF22X 5181 -- : BFD_RELOC_IA64_LDXMOV 5182 -- : BFD_RELOC_IA64_TPREL14 5183 -- : BFD_RELOC_IA64_TPREL22 5184 -- : BFD_RELOC_IA64_TPREL64I 5185 -- : BFD_RELOC_IA64_TPREL64MSB 5186 -- : BFD_RELOC_IA64_TPREL64LSB 5187 -- : BFD_RELOC_IA64_LTOFF_TPREL22 5188 -- : BFD_RELOC_IA64_DTPMOD64MSB 5189 -- : BFD_RELOC_IA64_DTPMOD64LSB 5190 -- : BFD_RELOC_IA64_LTOFF_DTPMOD22 5191 -- : BFD_RELOC_IA64_DTPREL14 5192 -- : BFD_RELOC_IA64_DTPREL22 5193 -- : BFD_RELOC_IA64_DTPREL64I 5194 -- : BFD_RELOC_IA64_DTPREL32MSB 5195 -- : BFD_RELOC_IA64_DTPREL32LSB 5196 -- : BFD_RELOC_IA64_DTPREL64MSB 5197 -- : BFD_RELOC_IA64_DTPREL64LSB 5198 -- : BFD_RELOC_IA64_LTOFF_DTPREL22 5199 Intel IA64 Relocations. 5200 5201 -- : BFD_RELOC_M68HC11_HI8 5202 Motorola 68HC11 reloc. This is the 8 bit high part of an absolute 5203 address. 5204 5205 -- : BFD_RELOC_M68HC11_LO8 5206 Motorola 68HC11 reloc. This is the 8 bit low part of an absolute 5207 address. 5208 5209 -- : BFD_RELOC_M68HC11_3B 5210 Motorola 68HC11 reloc. This is the 3 bit of a value. 5211 5212 -- : BFD_RELOC_M68HC11_RL_JUMP 5213 Motorola 68HC11 reloc. This reloc marks the beginning of a 5214 jump/call instruction. It is used for linker relaxation to 5215 correctly identify beginning of instruction and change some 5216 branches to use PC-relative addressing mode. 5217 5218 -- : BFD_RELOC_M68HC11_RL_GROUP 5219 Motorola 68HC11 reloc. This reloc marks a group of several 5220 instructions that gcc generates and for which the linker 5221 relaxation pass can modify and/or remove some of them. 5222 5223 -- : BFD_RELOC_M68HC11_LO16 5224 Motorola 68HC11 reloc. This is the 16-bit lower part of an 5225 address. It is used for 'call' instruction to specify the symbol 5226 address without any special transformation (due to memory bank 5227 window). 5228 5229 -- : BFD_RELOC_M68HC11_PAGE 5230 Motorola 68HC11 reloc. This is a 8-bit reloc that specifies the 5231 page number of an address. It is used by 'call' instruction to 5232 specify the page number of the symbol. 5233 5234 -- : BFD_RELOC_M68HC11_24 5235 Motorola 68HC11 reloc. This is a 24-bit reloc that represents the 5236 address with a 16-bit value and a 8-bit page number. The symbol 5237 address is transformed to follow the 16K memory bank of 68HC12 5238 (seen as mapped in the window). 5239 5240 -- : BFD_RELOC_M68HC12_5B 5241 Motorola 68HC12 reloc. This is the 5 bits of a value. 5242 5243 -- : BFD_RELOC_16C_NUM08 5244 -- : BFD_RELOC_16C_NUM08_C 5245 -- : BFD_RELOC_16C_NUM16 5246 -- : BFD_RELOC_16C_NUM16_C 5247 -- : BFD_RELOC_16C_NUM32 5248 -- : BFD_RELOC_16C_NUM32_C 5249 -- : BFD_RELOC_16C_DISP04 5250 -- : BFD_RELOC_16C_DISP04_C 5251 -- : BFD_RELOC_16C_DISP08 5252 -- : BFD_RELOC_16C_DISP08_C 5253 -- : BFD_RELOC_16C_DISP16 5254 -- : BFD_RELOC_16C_DISP16_C 5255 -- : BFD_RELOC_16C_DISP24 5256 -- : BFD_RELOC_16C_DISP24_C 5257 -- : BFD_RELOC_16C_DISP24a 5258 -- : BFD_RELOC_16C_DISP24a_C 5259 -- : BFD_RELOC_16C_REG04 5260 -- : BFD_RELOC_16C_REG04_C 5261 -- : BFD_RELOC_16C_REG04a 5262 -- : BFD_RELOC_16C_REG04a_C 5263 -- : BFD_RELOC_16C_REG14 5264 -- : BFD_RELOC_16C_REG14_C 5265 -- : BFD_RELOC_16C_REG16 5266 -- : BFD_RELOC_16C_REG16_C 5267 -- : BFD_RELOC_16C_REG20 5268 -- : BFD_RELOC_16C_REG20_C 5269 -- : BFD_RELOC_16C_ABS20 5270 -- : BFD_RELOC_16C_ABS20_C 5271 -- : BFD_RELOC_16C_ABS24 5272 -- : BFD_RELOC_16C_ABS24_C 5273 -- : BFD_RELOC_16C_IMM04 5274 -- : BFD_RELOC_16C_IMM04_C 5275 -- : BFD_RELOC_16C_IMM16 5276 -- : BFD_RELOC_16C_IMM16_C 5277 -- : BFD_RELOC_16C_IMM20 5278 -- : BFD_RELOC_16C_IMM20_C 5279 -- : BFD_RELOC_16C_IMM24 5280 -- : BFD_RELOC_16C_IMM24_C 5281 -- : BFD_RELOC_16C_IMM32 5282 -- : BFD_RELOC_16C_IMM32_C 5283 NS CR16C Relocations. 5284 5285 -- : BFD_RELOC_CR16_NUM8 5286 -- : BFD_RELOC_CR16_NUM16 5287 -- : BFD_RELOC_CR16_NUM32 5288 -- : BFD_RELOC_CR16_NUM32a 5289 -- : BFD_RELOC_CR16_REGREL0 5290 -- : BFD_RELOC_CR16_REGREL4 5291 -- : BFD_RELOC_CR16_REGREL4a 5292 -- : BFD_RELOC_CR16_REGREL14 5293 -- : BFD_RELOC_CR16_REGREL14a 5294 -- : BFD_RELOC_CR16_REGREL16 5295 -- : BFD_RELOC_CR16_REGREL20 5296 -- : BFD_RELOC_CR16_REGREL20a 5297 -- : BFD_RELOC_CR16_ABS20 5298 -- : BFD_RELOC_CR16_ABS24 5299 -- : BFD_RELOC_CR16_IMM4 5300 -- : BFD_RELOC_CR16_IMM8 5301 -- : BFD_RELOC_CR16_IMM16 5302 -- : BFD_RELOC_CR16_IMM20 5303 -- : BFD_RELOC_CR16_IMM24 5304 -- : BFD_RELOC_CR16_IMM32 5305 -- : BFD_RELOC_CR16_IMM32a 5306 -- : BFD_RELOC_CR16_DISP4 5307 -- : BFD_RELOC_CR16_DISP8 5308 -- : BFD_RELOC_CR16_DISP16 5309 -- : BFD_RELOC_CR16_DISP20 5310 -- : BFD_RELOC_CR16_DISP24 5311 -- : BFD_RELOC_CR16_DISP24a 5312 -- : BFD_RELOC_CR16_SWITCH8 5313 -- : BFD_RELOC_CR16_SWITCH16 5314 -- : BFD_RELOC_CR16_SWITCH32 5315 -- : BFD_RELOC_CR16_GOT_REGREL20 5316 -- : BFD_RELOC_CR16_GOTC_REGREL20 5317 -- : BFD_RELOC_CR16_GLOB_DAT 5318 NS CR16 Relocations. 5319 5320 -- : BFD_RELOC_CRX_REL4 5321 -- : BFD_RELOC_CRX_REL8 5322 -- : BFD_RELOC_CRX_REL8_CMP 5323 -- : BFD_RELOC_CRX_REL16 5324 -- : BFD_RELOC_CRX_REL24 5325 -- : BFD_RELOC_CRX_REL32 5326 -- : BFD_RELOC_CRX_REGREL12 5327 -- : BFD_RELOC_CRX_REGREL22 5328 -- : BFD_RELOC_CRX_REGREL28 5329 -- : BFD_RELOC_CRX_REGREL32 5330 -- : BFD_RELOC_CRX_ABS16 5331 -- : BFD_RELOC_CRX_ABS32 5332 -- : BFD_RELOC_CRX_NUM8 5333 -- : BFD_RELOC_CRX_NUM16 5334 -- : BFD_RELOC_CRX_NUM32 5335 -- : BFD_RELOC_CRX_IMM16 5336 -- : BFD_RELOC_CRX_IMM32 5337 -- : BFD_RELOC_CRX_SWITCH8 5338 -- : BFD_RELOC_CRX_SWITCH16 5339 -- : BFD_RELOC_CRX_SWITCH32 5340 NS CRX Relocations. 5341 5342 -- : BFD_RELOC_CRIS_BDISP8 5343 -- : BFD_RELOC_CRIS_UNSIGNED_5 5344 -- : BFD_RELOC_CRIS_SIGNED_6 5345 -- : BFD_RELOC_CRIS_UNSIGNED_6 5346 -- : BFD_RELOC_CRIS_SIGNED_8 5347 -- : BFD_RELOC_CRIS_UNSIGNED_8 5348 -- : BFD_RELOC_CRIS_SIGNED_16 5349 -- : BFD_RELOC_CRIS_UNSIGNED_16 5350 -- : BFD_RELOC_CRIS_LAPCQ_OFFSET 5351 -- : BFD_RELOC_CRIS_UNSIGNED_4 5352 These relocs are only used within the CRIS assembler. They are not 5353 (at present) written to any object files. 5354 5355 -- : BFD_RELOC_CRIS_COPY 5356 -- : BFD_RELOC_CRIS_GLOB_DAT 5357 -- : BFD_RELOC_CRIS_JUMP_SLOT 5358 -- : BFD_RELOC_CRIS_RELATIVE 5359 Relocs used in ELF shared libraries for CRIS. 5360 5361 -- : BFD_RELOC_CRIS_32_GOT 5362 32-bit offset to symbol-entry within GOT. 5363 5364 -- : BFD_RELOC_CRIS_16_GOT 5365 16-bit offset to symbol-entry within GOT. 5366 5367 -- : BFD_RELOC_CRIS_32_GOTPLT 5368 32-bit offset to symbol-entry within GOT, with PLT handling. 5369 5370 -- : BFD_RELOC_CRIS_16_GOTPLT 5371 16-bit offset to symbol-entry within GOT, with PLT handling. 5372 5373 -- : BFD_RELOC_CRIS_32_GOTREL 5374 32-bit offset to symbol, relative to GOT. 5375 5376 -- : BFD_RELOC_CRIS_32_PLT_GOTREL 5377 32-bit offset to symbol with PLT entry, relative to GOT. 5378 5379 -- : BFD_RELOC_CRIS_32_PLT_PCREL 5380 32-bit offset to symbol with PLT entry, relative to this 5381 relocation. 5382 5383 -- : BFD_RELOC_CRIS_32_GOT_GD 5384 -- : BFD_RELOC_CRIS_16_GOT_GD 5385 -- : BFD_RELOC_CRIS_32_GD 5386 -- : BFD_RELOC_CRIS_DTP 5387 -- : BFD_RELOC_CRIS_32_DTPREL 5388 -- : BFD_RELOC_CRIS_16_DTPREL 5389 -- : BFD_RELOC_CRIS_32_GOT_TPREL 5390 -- : BFD_RELOC_CRIS_16_GOT_TPREL 5391 -- : BFD_RELOC_CRIS_32_TPREL 5392 -- : BFD_RELOC_CRIS_16_TPREL 5393 -- : BFD_RELOC_CRIS_DTPMOD 5394 -- : BFD_RELOC_CRIS_32_IE 5395 Relocs used in TLS code for CRIS. 5396 5397 -- : BFD_RELOC_860_COPY 5398 -- : BFD_RELOC_860_GLOB_DAT 5399 -- : BFD_RELOC_860_JUMP_SLOT 5400 -- : BFD_RELOC_860_RELATIVE 5401 -- : BFD_RELOC_860_PC26 5402 -- : BFD_RELOC_860_PLT26 5403 -- : BFD_RELOC_860_PC16 5404 -- : BFD_RELOC_860_LOW0 5405 -- : BFD_RELOC_860_SPLIT0 5406 -- : BFD_RELOC_860_LOW1 5407 -- : BFD_RELOC_860_SPLIT1 5408 -- : BFD_RELOC_860_LOW2 5409 -- : BFD_RELOC_860_SPLIT2 5410 -- : BFD_RELOC_860_LOW3 5411 -- : BFD_RELOC_860_LOGOT0 5412 -- : BFD_RELOC_860_SPGOT0 5413 -- : BFD_RELOC_860_LOGOT1 5414 -- : BFD_RELOC_860_SPGOT1 5415 -- : BFD_RELOC_860_LOGOTOFF0 5416 -- : BFD_RELOC_860_SPGOTOFF0 5417 -- : BFD_RELOC_860_LOGOTOFF1 5418 -- : BFD_RELOC_860_SPGOTOFF1 5419 -- : BFD_RELOC_860_LOGOTOFF2 5420 -- : BFD_RELOC_860_LOGOTOFF3 5421 -- : BFD_RELOC_860_LOPC 5422 -- : BFD_RELOC_860_HIGHADJ 5423 -- : BFD_RELOC_860_HAGOT 5424 -- : BFD_RELOC_860_HAGOTOFF 5425 -- : BFD_RELOC_860_HAPC 5426 -- : BFD_RELOC_860_HIGH 5427 -- : BFD_RELOC_860_HIGOT 5428 -- : BFD_RELOC_860_HIGOTOFF 5429 Intel i860 Relocations. 5430 5431 -- : BFD_RELOC_OPENRISC_ABS_26 5432 -- : BFD_RELOC_OPENRISC_REL_26 5433 OpenRISC Relocations. 5434 5435 -- : BFD_RELOC_H8_DIR16A8 5436 -- : BFD_RELOC_H8_DIR16R8 5437 -- : BFD_RELOC_H8_DIR24A8 5438 -- : BFD_RELOC_H8_DIR24R8 5439 -- : BFD_RELOC_H8_DIR32A16 5440 H8 elf Relocations. 5441 5442 -- : BFD_RELOC_XSTORMY16_REL_12 5443 -- : BFD_RELOC_XSTORMY16_12 5444 -- : BFD_RELOC_XSTORMY16_24 5445 -- : BFD_RELOC_XSTORMY16_FPTR16 5446 Sony Xstormy16 Relocations. 5447 5448 -- : BFD_RELOC_RELC 5449 Self-describing complex relocations. 5450 5451 -- : BFD_RELOC_XC16X_PAG 5452 -- : BFD_RELOC_XC16X_POF 5453 -- : BFD_RELOC_XC16X_SEG 5454 -- : BFD_RELOC_XC16X_SOF 5455 Infineon Relocations. 5456 5457 -- : BFD_RELOC_VAX_GLOB_DAT 5458 -- : BFD_RELOC_VAX_JMP_SLOT 5459 -- : BFD_RELOC_VAX_RELATIVE 5460 Relocations used by VAX ELF. 5461 5462 -- : BFD_RELOC_MT_PC16 5463 Morpho MT - 16 bit immediate relocation. 5464 5465 -- : BFD_RELOC_MT_HI16 5466 Morpho MT - Hi 16 bits of an address. 5467 5468 -- : BFD_RELOC_MT_LO16 5469 Morpho MT - Low 16 bits of an address. 5470 5471 -- : BFD_RELOC_MT_GNU_VTINHERIT 5472 Morpho MT - Used to tell the linker which vtable entries are used. 5473 5474 -- : BFD_RELOC_MT_GNU_VTENTRY 5475 Morpho MT - Used to tell the linker which vtable entries are used. 5476 5477 -- : BFD_RELOC_MT_PCINSN8 5478 Morpho MT - 8 bit immediate relocation. 5479 5480 -- : BFD_RELOC_MSP430_10_PCREL 5481 -- : BFD_RELOC_MSP430_16_PCREL 5482 -- : BFD_RELOC_MSP430_16 5483 -- : BFD_RELOC_MSP430_16_PCREL_BYTE 5484 -- : BFD_RELOC_MSP430_16_BYTE 5485 -- : BFD_RELOC_MSP430_2X_PCREL 5486 -- : BFD_RELOC_MSP430_RL_PCREL 5487 msp430 specific relocation codes 5488 5489 -- : BFD_RELOC_IQ2000_OFFSET_16 5490 -- : BFD_RELOC_IQ2000_OFFSET_21 5491 -- : BFD_RELOC_IQ2000_UHI16 5492 IQ2000 Relocations. 5493 5494 -- : BFD_RELOC_XTENSA_RTLD 5495 Special Xtensa relocation used only by PLT entries in ELF shared 5496 objects to indicate that the runtime linker should set the value 5497 to one of its own internal functions or data structures. 5498 5499 -- : BFD_RELOC_XTENSA_GLOB_DAT 5500 -- : BFD_RELOC_XTENSA_JMP_SLOT 5501 -- : BFD_RELOC_XTENSA_RELATIVE 5502 Xtensa relocations for ELF shared objects. 5503 5504 -- : BFD_RELOC_XTENSA_PLT 5505 Xtensa relocation used in ELF object files for symbols that may 5506 require PLT entries. Otherwise, this is just a generic 32-bit 5507 relocation. 5508 5509 -- : BFD_RELOC_XTENSA_DIFF8 5510 -- : BFD_RELOC_XTENSA_DIFF16 5511 -- : BFD_RELOC_XTENSA_DIFF32 5512 Xtensa relocations to mark the difference of two local symbols. 5513 These are only needed to support linker relaxation and can be 5514 ignored when not relaxing. The field is set to the value of the 5515 difference assuming no relaxation. The relocation encodes the 5516 position of the first symbol so the linker can determine whether 5517 to adjust the field value. 5518 5519 -- : BFD_RELOC_XTENSA_SLOT0_OP 5520 -- : BFD_RELOC_XTENSA_SLOT1_OP 5521 -- : BFD_RELOC_XTENSA_SLOT2_OP 5522 -- : BFD_RELOC_XTENSA_SLOT3_OP 5523 -- : BFD_RELOC_XTENSA_SLOT4_OP 5524 -- : BFD_RELOC_XTENSA_SLOT5_OP 5525 -- : BFD_RELOC_XTENSA_SLOT6_OP 5526 -- : BFD_RELOC_XTENSA_SLOT7_OP 5527 -- : BFD_RELOC_XTENSA_SLOT8_OP 5528 -- : BFD_RELOC_XTENSA_SLOT9_OP 5529 -- : BFD_RELOC_XTENSA_SLOT10_OP 5530 -- : BFD_RELOC_XTENSA_SLOT11_OP 5531 -- : BFD_RELOC_XTENSA_SLOT12_OP 5532 -- : BFD_RELOC_XTENSA_SLOT13_OP 5533 -- : BFD_RELOC_XTENSA_SLOT14_OP 5534 Generic Xtensa relocations for instruction operands. Only the slot 5535 number is encoded in the relocation. The relocation applies to the 5536 last PC-relative immediate operand, or if there are no PC-relative 5537 immediates, to the last immediate operand. 5538 5539 -- : BFD_RELOC_XTENSA_SLOT0_ALT 5540 -- : BFD_RELOC_XTENSA_SLOT1_ALT 5541 -- : BFD_RELOC_XTENSA_SLOT2_ALT 5542 -- : BFD_RELOC_XTENSA_SLOT3_ALT 5543 -- : BFD_RELOC_XTENSA_SLOT4_ALT 5544 -- : BFD_RELOC_XTENSA_SLOT5_ALT 5545 -- : BFD_RELOC_XTENSA_SLOT6_ALT 5546 -- : BFD_RELOC_XTENSA_SLOT7_ALT 5547 -- : BFD_RELOC_XTENSA_SLOT8_ALT 5548 -- : BFD_RELOC_XTENSA_SLOT9_ALT 5549 -- : BFD_RELOC_XTENSA_SLOT10_ALT 5550 -- : BFD_RELOC_XTENSA_SLOT11_ALT 5551 -- : BFD_RELOC_XTENSA_SLOT12_ALT 5552 -- : BFD_RELOC_XTENSA_SLOT13_ALT 5553 -- : BFD_RELOC_XTENSA_SLOT14_ALT 5554 Alternate Xtensa relocations. Only the slot is encoded in the 5555 relocation. The meaning of these relocations is opcode-specific. 5556 5557 -- : BFD_RELOC_XTENSA_OP0 5558 -- : BFD_RELOC_XTENSA_OP1 5559 -- : BFD_RELOC_XTENSA_OP2 5560 Xtensa relocations for backward compatibility. These have all been 5561 replaced by BFD_RELOC_XTENSA_SLOT0_OP. 5562 5563 -- : BFD_RELOC_XTENSA_ASM_EXPAND 5564 Xtensa relocation to mark that the assembler expanded the 5565 instructions from an original target. The expansion size is 5566 encoded in the reloc size. 5567 5568 -- : BFD_RELOC_XTENSA_ASM_SIMPLIFY 5569 Xtensa relocation to mark that the linker should simplify 5570 assembler-expanded instructions. This is commonly used internally 5571 by the linker after analysis of a BFD_RELOC_XTENSA_ASM_EXPAND. 5572 5573 -- : BFD_RELOC_XTENSA_TLSDESC_FN 5574 -- : BFD_RELOC_XTENSA_TLSDESC_ARG 5575 -- : BFD_RELOC_XTENSA_TLS_DTPOFF 5576 -- : BFD_RELOC_XTENSA_TLS_TPOFF 5577 -- : BFD_RELOC_XTENSA_TLS_FUNC 5578 -- : BFD_RELOC_XTENSA_TLS_ARG 5579 -- : BFD_RELOC_XTENSA_TLS_CALL 5580 Xtensa TLS relocations. 5581 5582 -- : BFD_RELOC_Z80_DISP8 5583 8 bit signed offset in (ix+d) or (iy+d). 5584 5585 -- : BFD_RELOC_Z8K_DISP7 5586 DJNZ offset. 5587 5588 -- : BFD_RELOC_Z8K_CALLR 5589 CALR offset. 5590 5591 -- : BFD_RELOC_Z8K_IMM4L 5592 4 bit value. 5593 5594 -- : BFD_RELOC_LM32_CALL 5595 -- : BFD_RELOC_LM32_BRANCH 5596 -- : BFD_RELOC_LM32_16_GOT 5597 -- : BFD_RELOC_LM32_GOTOFF_HI16 5598 -- : BFD_RELOC_LM32_GOTOFF_LO16 5599 -- : BFD_RELOC_LM32_COPY 5600 -- : BFD_RELOC_LM32_GLOB_DAT 5601 -- : BFD_RELOC_LM32_JMP_SLOT 5602 -- : BFD_RELOC_LM32_RELATIVE 5603 Lattice Mico32 relocations. 5604 5605 -- : BFD_RELOC_MACH_O_SECTDIFF 5606 Difference between two section addreses. Must be followed by a 5607 BFD_RELOC_MACH_O_PAIR. 5608 5609 -- : BFD_RELOC_MACH_O_PAIR 5610 Pair of relocation. Contains the first symbol. 5611 5612 -- : BFD_RELOC_MACH_O_X86_64_BRANCH32 5613 -- : BFD_RELOC_MACH_O_X86_64_BRANCH8 5614 PCREL relocations. They are marked as branch to create PLT entry 5615 if required. 5616 5617 -- : BFD_RELOC_MACH_O_X86_64_GOT 5618 Used when referencing a GOT entry. 5619 5620 -- : BFD_RELOC_MACH_O_X86_64_GOT_LOAD 5621 Used when loading a GOT entry with movq. It is specially marked 5622 so that the linker could optimize the movq to a leaq if possible. 5623 5624 -- : BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32 5625 Symbol will be substracted. Must be followed by a BFD_RELOC_64. 5626 5627 -- : BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64 5628 Symbol will be substracted. Must be followed by a BFD_RELOC_64. 5629 5630 -- : BFD_RELOC_MACH_O_X86_64_PCREL32_1 5631 Same as BFD_RELOC_32_PCREL but with an implicit -1 addend. 5632 5633 -- : BFD_RELOC_MACH_O_X86_64_PCREL32_2 5634 Same as BFD_RELOC_32_PCREL but with an implicit -2 addend. 5635 5636 -- : BFD_RELOC_MACH_O_X86_64_PCREL32_4 5637 Same as BFD_RELOC_32_PCREL but with an implicit -4 addend. 5638 5639 -- : BFD_RELOC_MICROBLAZE_32_LO 5640 This is a 32 bit reloc for the microblaze that stores the low 16 5641 bits of a value 5642 5643 -- : BFD_RELOC_MICROBLAZE_32_LO_PCREL 5644 This is a 32 bit pc-relative reloc for the microblaze that stores 5645 the low 16 bits of a value 5646 5647 -- : BFD_RELOC_MICROBLAZE_32_ROSDA 5648 This is a 32 bit reloc for the microblaze that stores a value 5649 relative to the read-only small data area anchor 5650 5651 -- : BFD_RELOC_MICROBLAZE_32_RWSDA 5652 This is a 32 bit reloc for the microblaze that stores a value 5653 relative to the read-write small data area anchor 5654 5655 -- : BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM 5656 This is a 32 bit reloc for the microblaze to handle expressions of 5657 the form "Symbol Op Symbol" 5658 5659 -- : BFD_RELOC_MICROBLAZE_64_NONE 5660 This is a 64 bit reloc that stores the 32 bit pc relative value in 5661 two words (with an imm instruction). No relocation is done here - 5662 only used for relaxing 5663 5664 -- : BFD_RELOC_MICROBLAZE_64_GOTPC 5665 This is a 64 bit reloc that stores the 32 bit pc relative value in 5666 two words (with an imm instruction). The relocation is 5667 PC-relative GOT offset 5668 5669 -- : BFD_RELOC_MICROBLAZE_64_GOT 5670 This is a 64 bit reloc that stores the 32 bit pc relative value in 5671 two words (with an imm instruction). The relocation is GOT offset 5672 5673 -- : BFD_RELOC_MICROBLAZE_64_PLT 5674 This is a 64 bit reloc that stores the 32 bit pc relative value in 5675 two words (with an imm instruction). The relocation is 5676 PC-relative offset into PLT 5677 5678 -- : BFD_RELOC_MICROBLAZE_64_GOTOFF 5679 This is a 64 bit reloc that stores the 32 bit GOT relative value 5680 in two words (with an imm instruction). The relocation is 5681 relative offset from _GLOBAL_OFFSET_TABLE_ 5682 5683 -- : BFD_RELOC_MICROBLAZE_32_GOTOFF 5684 This is a 32 bit reloc that stores the 32 bit GOT relative value 5685 in a word. The relocation is relative offset from 5686 5687 -- : BFD_RELOC_MICROBLAZE_COPY 5688 This is used to tell the dynamic linker to copy the value out of 5689 the dynamic object into the runtime process image. 5690 5691 5692 typedef enum bfd_reloc_code_real bfd_reloc_code_real_type; 5693 5694 2.10.2.2 `bfd_reloc_type_lookup' 5695 ................................ 5696 5697 *Synopsis* 5698 reloc_howto_type *bfd_reloc_type_lookup 5699 (bfd *abfd, bfd_reloc_code_real_type code); 5700 reloc_howto_type *bfd_reloc_name_lookup 5701 (bfd *abfd, const char *reloc_name); 5702 *Description* 5703 Return a pointer to a howto structure which, when invoked, will perform 5704 the relocation CODE on data from the architecture noted. 5705 5706 2.10.2.3 `bfd_default_reloc_type_lookup' 5707 ........................................ 5708 5709 *Synopsis* 5710 reloc_howto_type *bfd_default_reloc_type_lookup 5711 (bfd *abfd, bfd_reloc_code_real_type code); 5712 *Description* 5713 Provides a default relocation lookup routine for any architecture. 5714 5715 2.10.2.4 `bfd_get_reloc_code_name' 5716 .................................. 5717 5718 *Synopsis* 5719 const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code); 5720 *Description* 5721 Provides a printable name for the supplied relocation code. Useful 5722 mainly for printing error messages. 5723 5724 2.10.2.5 `bfd_generic_relax_section' 5725 .................................... 5726 5727 *Synopsis* 5728 bfd_boolean bfd_generic_relax_section 5729 (bfd *abfd, 5730 asection *section, 5731 struct bfd_link_info *, 5732 bfd_boolean *); 5733 *Description* 5734 Provides default handling for relaxing for back ends which don't do 5735 relaxing. 5736 5737 2.10.2.6 `bfd_generic_gc_sections' 5738 .................................. 5739 5740 *Synopsis* 5741 bfd_boolean bfd_generic_gc_sections 5742 (bfd *, struct bfd_link_info *); 5743 *Description* 5744 Provides default handling for relaxing for back ends which don't do 5745 section gc - i.e., does nothing. 5746 5747 2.10.2.7 `bfd_generic_merge_sections' 5748 ..................................... 5749 5750 *Synopsis* 5751 bfd_boolean bfd_generic_merge_sections 5752 (bfd *, struct bfd_link_info *); 5753 *Description* 5754 Provides default handling for SEC_MERGE section merging for back ends 5755 which don't have SEC_MERGE support - i.e., does nothing. 5756 5757 2.10.2.8 `bfd_generic_get_relocated_section_contents' 5758 ..................................................... 5759 5760 *Synopsis* 5761 bfd_byte *bfd_generic_get_relocated_section_contents 5762 (bfd *abfd, 5763 struct bfd_link_info *link_info, 5764 struct bfd_link_order *link_order, 5765 bfd_byte *data, 5766 bfd_boolean relocatable, 5767 asymbol **symbols); 5768 *Description* 5769 Provides default handling of relocation effort for back ends which 5770 can't be bothered to do it efficiently. 5771 5772 5773 File: bfd.info, Node: Core Files, Next: Targets, Prev: Relocations, Up: BFD front end 5774 5775 2.11 Core files 5776 =============== 5777 5778 2.11.1 Core file functions 5779 -------------------------- 5780 5781 *Description* 5782 These are functions pertaining to core files. 5783 5784 2.11.1.1 `bfd_core_file_failing_command' 5785 ........................................ 5786 5787 *Synopsis* 5788 const char *bfd_core_file_failing_command (bfd *abfd); 5789 *Description* 5790 Return a read-only string explaining which program was running when it 5791 failed and produced the core file ABFD. 5792 5793 2.11.1.2 `bfd_core_file_failing_signal' 5794 ....................................... 5795 5796 *Synopsis* 5797 int bfd_core_file_failing_signal (bfd *abfd); 5798 *Description* 5799 Returns the signal number which caused the core dump which generated 5800 the file the BFD ABFD is attached to. 5801 5802 2.11.1.3 `bfd_core_file_pid' 5803 ............................ 5804 5805 *Synopsis* 5806 int bfd_core_file_pid (bfd *abfd); 5807 *Description* 5808 Returns the PID of the process the core dump the BFD ABFD is attached 5809 to was generated from. 5810 5811 2.11.1.4 `core_file_matches_executable_p' 5812 ......................................... 5813 5814 *Synopsis* 5815 bfd_boolean core_file_matches_executable_p 5816 (bfd *core_bfd, bfd *exec_bfd); 5817 *Description* 5818 Return `TRUE' if the core file attached to CORE_BFD was generated by a 5819 run of the executable file attached to EXEC_BFD, `FALSE' otherwise. 5820 5821 2.11.1.5 `generic_core_file_matches_executable_p' 5822 ................................................. 5823 5824 *Synopsis* 5825 bfd_boolean generic_core_file_matches_executable_p 5826 (bfd *core_bfd, bfd *exec_bfd); 5827 *Description* 5828 Return TRUE if the core file attached to CORE_BFD was generated by a 5829 run of the executable file attached to EXEC_BFD. The match is based on 5830 executable basenames only. 5831 5832 Note: When not able to determine the core file failing command or 5833 the executable name, we still return TRUE even though we're not sure 5834 that core file and executable match. This is to avoid generating a 5835 false warning in situations where we really don't know whether they 5836 match or not. 5837 5838 5839 File: bfd.info, Node: Targets, Next: Architectures, Prev: Core Files, Up: BFD front end 5840 5841 2.12 Targets 5842 ============ 5843 5844 *Description* 5845 Each port of BFD to a different machine requires the creation of a 5846 target back end. All the back end provides to the root part of BFD is a 5847 structure containing pointers to functions which perform certain low 5848 level operations on files. BFD translates the applications's requests 5849 through a pointer into calls to the back end routines. 5850 5851 When a file is opened with `bfd_openr', its format and target are 5852 unknown. BFD uses various mechanisms to determine how to interpret the 5853 file. The operations performed are: 5854 5855 * Create a BFD by calling the internal routine `_bfd_new_bfd', then 5856 call `bfd_find_target' with the target string supplied to 5857 `bfd_openr' and the new BFD pointer. 5858 5859 * If a null target string was provided to `bfd_find_target', look up 5860 the environment variable `GNUTARGET' and use that as the target 5861 string. 5862 5863 * If the target string is still `NULL', or the target string is 5864 `default', then use the first item in the target vector as the 5865 target type, and set `target_defaulted' in the BFD to cause 5866 `bfd_check_format' to loop through all the targets. *Note 5867 bfd_target::. *Note Formats::. 5868 5869 * Otherwise, inspect the elements in the target vector one by one, 5870 until a match on target name is found. When found, use it. 5871 5872 * Otherwise return the error `bfd_error_invalid_target' to 5873 `bfd_openr'. 5874 5875 * `bfd_openr' attempts to open the file using `bfd_open_file', and 5876 returns the BFD. 5877 Once the BFD has been opened and the target selected, the file 5878 format may be determined. This is done by calling `bfd_check_format' on 5879 the BFD with a suggested format. If `target_defaulted' has been set, 5880 each possible target type is tried to see if it recognizes the 5881 specified format. `bfd_check_format' returns `TRUE' when the caller 5882 guesses right. 5883 5884 * Menu: 5885 5886 * bfd_target:: 5887 5888 5889 File: bfd.info, Node: bfd_target, Prev: Targets, Up: Targets 5890 5891 2.12.1 bfd_target 5892 ----------------- 5893 5894 *Description* 5895 This structure contains everything that BFD knows about a target. It 5896 includes things like its byte order, name, and which routines to call 5897 to do various operations. 5898 5899 Every BFD points to a target structure with its `xvec' member. 5900 5901 The macros below are used to dispatch to functions through the 5902 `bfd_target' vector. They are used in a number of macros further down 5903 in `bfd.h', and are also used when calling various routines by hand 5904 inside the BFD implementation. The ARGLIST argument must be 5905 parenthesized; it contains all the arguments to the called function. 5906 5907 They make the documentation (more) unpleasant to read, so if someone 5908 wants to fix this and not break the above, please do. 5909 #define BFD_SEND(bfd, message, arglist) \ 5910 ((*((bfd)->xvec->message)) arglist) 5911 5912 #ifdef DEBUG_BFD_SEND 5913 #undef BFD_SEND 5914 #define BFD_SEND(bfd, message, arglist) \ 5915 (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \ 5916 ((*((bfd)->xvec->message)) arglist) : \ 5917 (bfd_assert (__FILE__,__LINE__), NULL)) 5918 #endif 5919 For operations which index on the BFD format: 5920 #define BFD_SEND_FMT(bfd, message, arglist) \ 5921 (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist) 5922 5923 #ifdef DEBUG_BFD_SEND 5924 #undef BFD_SEND_FMT 5925 #define BFD_SEND_FMT(bfd, message, arglist) \ 5926 (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \ 5927 (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist) : \ 5928 (bfd_assert (__FILE__,__LINE__), NULL)) 5929 #endif 5930 This is the structure which defines the type of BFD this is. The 5931 `xvec' member of the struct `bfd' itself points here. Each module that 5932 implements access to a different target under BFD, defines one of these. 5933 5934 FIXME, these names should be rationalised with the names of the 5935 entry points which call them. Too bad we can't have one macro to define 5936 them both! 5937 enum bfd_flavour 5938 { 5939 bfd_target_unknown_flavour, 5940 bfd_target_aout_flavour, 5941 bfd_target_coff_flavour, 5942 bfd_target_ecoff_flavour, 5943 bfd_target_xcoff_flavour, 5944 bfd_target_elf_flavour, 5945 bfd_target_ieee_flavour, 5946 bfd_target_nlm_flavour, 5947 bfd_target_oasys_flavour, 5948 bfd_target_tekhex_flavour, 5949 bfd_target_srec_flavour, 5950 bfd_target_verilog_flavour, 5951 bfd_target_ihex_flavour, 5952 bfd_target_som_flavour, 5953 bfd_target_os9k_flavour, 5954 bfd_target_versados_flavour, 5955 bfd_target_msdos_flavour, 5956 bfd_target_ovax_flavour, 5957 bfd_target_evax_flavour, 5958 bfd_target_mmo_flavour, 5959 bfd_target_mach_o_flavour, 5960 bfd_target_pef_flavour, 5961 bfd_target_pef_xlib_flavour, 5962 bfd_target_sym_flavour 5963 }; 5964 5965 enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN }; 5966 5967 /* Forward declaration. */ 5968 typedef struct bfd_link_info _bfd_link_info; 5969 5970 typedef struct bfd_target 5971 { 5972 /* Identifies the kind of target, e.g., SunOS4, Ultrix, etc. */ 5973 char *name; 5974 5975 /* The "flavour" of a back end is a general indication about 5976 the contents of a file. */ 5977 enum bfd_flavour flavour; 5978 5979 /* The order of bytes within the data area of a file. */ 5980 enum bfd_endian byteorder; 5981 5982 /* The order of bytes within the header parts of a file. */ 5983 enum bfd_endian header_byteorder; 5984 5985 /* A mask of all the flags which an executable may have set - 5986 from the set `BFD_NO_FLAGS', `HAS_RELOC', ...`D_PAGED'. */ 5987 flagword object_flags; 5988 5989 /* A mask of all the flags which a section may have set - from 5990 the set `SEC_NO_FLAGS', `SEC_ALLOC', ...`SET_NEVER_LOAD'. */ 5991 flagword section_flags; 5992 5993 /* The character normally found at the front of a symbol. 5994 (if any), perhaps `_'. */ 5995 char symbol_leading_char; 5996 5997 /* The pad character for file names within an archive header. */ 5998 char ar_pad_char; 5999 6000 /* The maximum number of characters in an archive header. */ 6001 unsigned short ar_max_namelen; 6002 6003 /* Entries for byte swapping for data. These are different from the 6004 other entry points, since they don't take a BFD as the first argument. 6005 Certain other handlers could do the same. */ 6006 bfd_uint64_t (*bfd_getx64) (const void *); 6007 bfd_int64_t (*bfd_getx_signed_64) (const void *); 6008 void (*bfd_putx64) (bfd_uint64_t, void *); 6009 bfd_vma (*bfd_getx32) (const void *); 6010 bfd_signed_vma (*bfd_getx_signed_32) (const void *); 6011 void (*bfd_putx32) (bfd_vma, void *); 6012 bfd_vma (*bfd_getx16) (const void *); 6013 bfd_signed_vma (*bfd_getx_signed_16) (const void *); 6014 void (*bfd_putx16) (bfd_vma, void *); 6015 6016 /* Byte swapping for the headers. */ 6017 bfd_uint64_t (*bfd_h_getx64) (const void *); 6018 bfd_int64_t (*bfd_h_getx_signed_64) (const void *); 6019 void (*bfd_h_putx64) (bfd_uint64_t, void *); 6020 bfd_vma (*bfd_h_getx32) (const void *); 6021 bfd_signed_vma (*bfd_h_getx_signed_32) (const void *); 6022 void (*bfd_h_putx32) (bfd_vma, void *); 6023 bfd_vma (*bfd_h_getx16) (const void *); 6024 bfd_signed_vma (*bfd_h_getx_signed_16) (const void *); 6025 void (*bfd_h_putx16) (bfd_vma, void *); 6026 6027 /* Format dependent routines: these are vectors of entry points 6028 within the target vector structure, one for each format to check. */ 6029 6030 /* Check the format of a file being read. Return a `bfd_target *' or zero. */ 6031 const struct bfd_target *(*_bfd_check_format[bfd_type_end]) (bfd *); 6032 6033 /* Set the format of a file being written. */ 6034 bfd_boolean (*_bfd_set_format[bfd_type_end]) (bfd *); 6035 6036 /* Write cached information into a file being written, at `bfd_close'. */ 6037 bfd_boolean (*_bfd_write_contents[bfd_type_end]) (bfd *); 6038 The general target vector. These vectors are initialized using the 6039 BFD_JUMP_TABLE macros. 6040 6041 /* Generic entry points. */ 6042 #define BFD_JUMP_TABLE_GENERIC(NAME) \ 6043 NAME##_close_and_cleanup, \ 6044 NAME##_bfd_free_cached_info, \ 6045 NAME##_new_section_hook, \ 6046 NAME##_get_section_contents, \ 6047 NAME##_get_section_contents_in_window 6048 6049 /* Called when the BFD is being closed to do any necessary cleanup. */ 6050 bfd_boolean (*_close_and_cleanup) (bfd *); 6051 /* Ask the BFD to free all cached information. */ 6052 bfd_boolean (*_bfd_free_cached_info) (bfd *); 6053 /* Called when a new section is created. */ 6054 bfd_boolean (*_new_section_hook) (bfd *, sec_ptr); 6055 /* Read the contents of a section. */ 6056 bfd_boolean (*_bfd_get_section_contents) 6057 (bfd *, sec_ptr, void *, file_ptr, bfd_size_type); 6058 bfd_boolean (*_bfd_get_section_contents_in_window) 6059 (bfd *, sec_ptr, bfd_window *, file_ptr, bfd_size_type); 6060 6061 /* Entry points to copy private data. */ 6062 #define BFD_JUMP_TABLE_COPY(NAME) \ 6063 NAME##_bfd_copy_private_bfd_data, \ 6064 NAME##_bfd_merge_private_bfd_data, \ 6065 _bfd_generic_init_private_section_data, \ 6066 NAME##_bfd_copy_private_section_data, \ 6067 NAME##_bfd_copy_private_symbol_data, \ 6068 NAME##_bfd_copy_private_header_data, \ 6069 NAME##_bfd_set_private_flags, \ 6070 NAME##_bfd_print_private_bfd_data 6071 6072 /* Called to copy BFD general private data from one object file 6073 to another. */ 6074 bfd_boolean (*_bfd_copy_private_bfd_data) (bfd *, bfd *); 6075 /* Called to merge BFD general private data from one object file 6076 to a common output file when linking. */ 6077 bfd_boolean (*_bfd_merge_private_bfd_data) (bfd *, bfd *); 6078 /* Called to initialize BFD private section data from one object file 6079 to another. */ 6080 #define bfd_init_private_section_data(ibfd, isec, obfd, osec, link_info) \ 6081 BFD_SEND (obfd, _bfd_init_private_section_data, (ibfd, isec, obfd, osec, link_info)) 6082 bfd_boolean (*_bfd_init_private_section_data) 6083 (bfd *, sec_ptr, bfd *, sec_ptr, struct bfd_link_info *); 6084 /* Called to copy BFD private section data from one object file 6085 to another. */ 6086 bfd_boolean (*_bfd_copy_private_section_data) 6087 (bfd *, sec_ptr, bfd *, sec_ptr); 6088 /* Called to copy BFD private symbol data from one symbol 6089 to another. */ 6090 bfd_boolean (*_bfd_copy_private_symbol_data) 6091 (bfd *, asymbol *, bfd *, asymbol *); 6092 /* Called to copy BFD private header data from one object file 6093 to another. */ 6094 bfd_boolean (*_bfd_copy_private_header_data) 6095 (bfd *, bfd *); 6096 /* Called to set private backend flags. */ 6097 bfd_boolean (*_bfd_set_private_flags) (bfd *, flagword); 6098 6099 /* Called to print private BFD data. */ 6100 bfd_boolean (*_bfd_print_private_bfd_data) (bfd *, void *); 6101 6102 /* Core file entry points. */ 6103 #define BFD_JUMP_TABLE_CORE(NAME) \ 6104 NAME##_core_file_failing_command, \ 6105 NAME##_core_file_failing_signal, \ 6106 NAME##_core_file_matches_executable_p, \ 6107 NAME##_core_file_pid 6108 6109 char * (*_core_file_failing_command) (bfd *); 6110 int (*_core_file_failing_signal) (bfd *); 6111 bfd_boolean (*_core_file_matches_executable_p) (bfd *, bfd *); 6112 int (*_core_file_pid) (bfd *); 6113 6114 /* Archive entry points. */ 6115 #define BFD_JUMP_TABLE_ARCHIVE(NAME) \ 6116 NAME##_slurp_armap, \ 6117 NAME##_slurp_extended_name_table, \ 6118 NAME##_construct_extended_name_table, \ 6119 NAME##_truncate_arname, \ 6120 NAME##_write_armap, \ 6121 NAME##_read_ar_hdr, \ 6122 NAME##_write_ar_hdr, \ 6123 NAME##_openr_next_archived_file, \ 6124 NAME##_get_elt_at_index, \ 6125 NAME##_generic_stat_arch_elt, \ 6126 NAME##_update_armap_timestamp 6127 6128 bfd_boolean (*_bfd_slurp_armap) (bfd *); 6129 bfd_boolean (*_bfd_slurp_extended_name_table) (bfd *); 6130 bfd_boolean (*_bfd_construct_extended_name_table) 6131 (bfd *, char **, bfd_size_type *, const char **); 6132 void (*_bfd_truncate_arname) (bfd *, const char *, char *); 6133 bfd_boolean (*write_armap) 6134 (bfd *, unsigned int, struct orl *, unsigned int, int); 6135 void * (*_bfd_read_ar_hdr_fn) (bfd *); 6136 bfd_boolean (*_bfd_write_ar_hdr_fn) (bfd *, bfd *); 6137 bfd * (*openr_next_archived_file) (bfd *, bfd *); 6138 #define bfd_get_elt_at_index(b,i) BFD_SEND (b, _bfd_get_elt_at_index, (b,i)) 6139 bfd * (*_bfd_get_elt_at_index) (bfd *, symindex); 6140 int (*_bfd_stat_arch_elt) (bfd *, struct stat *); 6141 bfd_boolean (*_bfd_update_armap_timestamp) (bfd *); 6142 6143 /* Entry points used for symbols. */ 6144 #define BFD_JUMP_TABLE_SYMBOLS(NAME) \ 6145 NAME##_get_symtab_upper_bound, \ 6146 NAME##_canonicalize_symtab, \ 6147 NAME##_make_empty_symbol, \ 6148 NAME##_print_symbol, \ 6149 NAME##_get_symbol_info, \ 6150 NAME##_bfd_is_local_label_name, \ 6151 NAME##_bfd_is_target_special_symbol, \ 6152 NAME##_get_lineno, \ 6153 NAME##_find_nearest_line, \ 6154 _bfd_generic_find_line, \ 6155 NAME##_find_inliner_info, \ 6156 NAME##_bfd_make_debug_symbol, \ 6157 NAME##_read_minisymbols, \ 6158 NAME##_minisymbol_to_symbol 6159 6160 long (*_bfd_get_symtab_upper_bound) (bfd *); 6161 long (*_bfd_canonicalize_symtab) 6162 (bfd *, struct bfd_symbol **); 6163 struct bfd_symbol * 6164 (*_bfd_make_empty_symbol) (bfd *); 6165 void (*_bfd_print_symbol) 6166 (bfd *, void *, struct bfd_symbol *, bfd_print_symbol_type); 6167 #define bfd_print_symbol(b,p,s,e) BFD_SEND (b, _bfd_print_symbol, (b,p,s,e)) 6168 void (*_bfd_get_symbol_info) 6169 (bfd *, struct bfd_symbol *, symbol_info *); 6170 #define bfd_get_symbol_info(b,p,e) BFD_SEND (b, _bfd_get_symbol_info, (b,p,e)) 6171 bfd_boolean (*_bfd_is_local_label_name) (bfd *, const char *); 6172 bfd_boolean (*_bfd_is_target_special_symbol) (bfd *, asymbol *); 6173 alent * (*_get_lineno) (bfd *, struct bfd_symbol *); 6174 bfd_boolean (*_bfd_find_nearest_line) 6175 (bfd *, struct bfd_section *, struct bfd_symbol **, bfd_vma, 6176 const char **, const char **, unsigned int *); 6177 bfd_boolean (*_bfd_find_line) 6178 (bfd *, struct bfd_symbol **, struct bfd_symbol *, 6179 const char **, unsigned int *); 6180 bfd_boolean (*_bfd_find_inliner_info) 6181 (bfd *, const char **, const char **, unsigned int *); 6182 /* Back-door to allow format-aware applications to create debug symbols 6183 while using BFD for everything else. Currently used by the assembler 6184 when creating COFF files. */ 6185 asymbol * (*_bfd_make_debug_symbol) 6186 (bfd *, void *, unsigned long size); 6187 #define bfd_read_minisymbols(b, d, m, s) \ 6188 BFD_SEND (b, _read_minisymbols, (b, d, m, s)) 6189 long (*_read_minisymbols) 6190 (bfd *, bfd_boolean, void **, unsigned int *); 6191 #define bfd_minisymbol_to_symbol(b, d, m, f) \ 6192 BFD_SEND (b, _minisymbol_to_symbol, (b, d, m, f)) 6193 asymbol * (*_minisymbol_to_symbol) 6194 (bfd *, bfd_boolean, const void *, asymbol *); 6195 6196 /* Routines for relocs. */ 6197 #define BFD_JUMP_TABLE_RELOCS(NAME) \ 6198 NAME##_get_reloc_upper_bound, \ 6199 NAME##_canonicalize_reloc, \ 6200 NAME##_bfd_reloc_type_lookup, \ 6201 NAME##_bfd_reloc_name_lookup 6202 6203 long (*_get_reloc_upper_bound) (bfd *, sec_ptr); 6204 long (*_bfd_canonicalize_reloc) 6205 (bfd *, sec_ptr, arelent **, struct bfd_symbol **); 6206 /* See documentation on reloc types. */ 6207 reloc_howto_type * 6208 (*reloc_type_lookup) (bfd *, bfd_reloc_code_real_type); 6209 reloc_howto_type * 6210 (*reloc_name_lookup) (bfd *, const char *); 6211 6212 6213 /* Routines used when writing an object file. */ 6214 #define BFD_JUMP_TABLE_WRITE(NAME) \ 6215 NAME##_set_arch_mach, \ 6216 NAME##_set_section_contents 6217 6218 bfd_boolean (*_bfd_set_arch_mach) 6219 (bfd *, enum bfd_architecture, unsigned long); 6220 bfd_boolean (*_bfd_set_section_contents) 6221 (bfd *, sec_ptr, const void *, file_ptr, bfd_size_type); 6222 6223 /* Routines used by the linker. */ 6224 #define BFD_JUMP_TABLE_LINK(NAME) \ 6225 NAME##_sizeof_headers, \ 6226 NAME##_bfd_get_relocated_section_contents, \ 6227 NAME##_bfd_relax_section, \ 6228 NAME##_bfd_link_hash_table_create, \ 6229 NAME##_bfd_link_hash_table_free, \ 6230 NAME##_bfd_link_add_symbols, \ 6231 NAME##_bfd_link_just_syms, \ 6232 NAME##_bfd_copy_link_hash_symbol_type, \ 6233 NAME##_bfd_final_link, \ 6234 NAME##_bfd_link_split_section, \ 6235 NAME##_bfd_gc_sections, \ 6236 NAME##_bfd_merge_sections, \ 6237 NAME##_bfd_is_group_section, \ 6238 NAME##_bfd_discard_group, \ 6239 NAME##_section_already_linked, \ 6240 NAME##_bfd_define_common_symbol 6241 6242 int (*_bfd_sizeof_headers) (bfd *, struct bfd_link_info *); 6243 bfd_byte * (*_bfd_get_relocated_section_contents) 6244 (bfd *, struct bfd_link_info *, struct bfd_link_order *, 6245 bfd_byte *, bfd_boolean, struct bfd_symbol **); 6246 6247 bfd_boolean (*_bfd_relax_section) 6248 (bfd *, struct bfd_section *, struct bfd_link_info *, bfd_boolean *); 6249 6250 /* Create a hash table for the linker. Different backends store 6251 different information in this table. */ 6252 struct bfd_link_hash_table * 6253 (*_bfd_link_hash_table_create) (bfd *); 6254 6255 /* Release the memory associated with the linker hash table. */ 6256 void (*_bfd_link_hash_table_free) (struct bfd_link_hash_table *); 6257 6258 /* Add symbols from this object file into the hash table. */ 6259 bfd_boolean (*_bfd_link_add_symbols) (bfd *, struct bfd_link_info *); 6260 6261 /* Indicate that we are only retrieving symbol values from this section. */ 6262 void (*_bfd_link_just_syms) (asection *, struct bfd_link_info *); 6263 6264 /* Copy the symbol type of a linker hash table entry. */ 6265 #define bfd_copy_link_hash_symbol_type(b, t, f) \ 6266 BFD_SEND (b, _bfd_copy_link_hash_symbol_type, (b, t, f)) 6267 void (*_bfd_copy_link_hash_symbol_type) 6268 (bfd *, struct bfd_link_hash_entry *, struct bfd_link_hash_entry *); 6269 6270 /* Do a link based on the link_order structures attached to each 6271 section of the BFD. */ 6272 bfd_boolean (*_bfd_final_link) (bfd *, struct bfd_link_info *); 6273 6274 /* Should this section be split up into smaller pieces during linking. */ 6275 bfd_boolean (*_bfd_link_split_section) (bfd *, struct bfd_section *); 6276 6277 /* Remove sections that are not referenced from the output. */ 6278 bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *); 6279 6280 /* Attempt to merge SEC_MERGE sections. */ 6281 bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *); 6282 6283 /* Is this section a member of a group? */ 6284 bfd_boolean (*_bfd_is_group_section) (bfd *, const struct bfd_section *); 6285 6286 /* Discard members of a group. */ 6287 bfd_boolean (*_bfd_discard_group) (bfd *, struct bfd_section *); 6288 6289 /* Check if SEC has been already linked during a reloceatable or 6290 final link. */ 6291 void (*_section_already_linked) (bfd *, struct bfd_section *, 6292 struct bfd_link_info *); 6293 6294 /* Define a common symbol. */ 6295 bfd_boolean (*_bfd_define_common_symbol) (bfd *, struct bfd_link_info *, 6296 struct bfd_link_hash_entry *); 6297 6298 /* Routines to handle dynamic symbols and relocs. */ 6299 #define BFD_JUMP_TABLE_DYNAMIC(NAME) \ 6300 NAME##_get_dynamic_symtab_upper_bound, \ 6301 NAME##_canonicalize_dynamic_symtab, \ 6302 NAME##_get_synthetic_symtab, \ 6303 NAME##_get_dynamic_reloc_upper_bound, \ 6304 NAME##_canonicalize_dynamic_reloc 6305 6306 /* Get the amount of memory required to hold the dynamic symbols. */ 6307 long (*_bfd_get_dynamic_symtab_upper_bound) (bfd *); 6308 /* Read in the dynamic symbols. */ 6309 long (*_bfd_canonicalize_dynamic_symtab) 6310 (bfd *, struct bfd_symbol **); 6311 /* Create synthetized symbols. */ 6312 long (*_bfd_get_synthetic_symtab) 6313 (bfd *, long, struct bfd_symbol **, long, struct bfd_symbol **, 6314 struct bfd_symbol **); 6315 /* Get the amount of memory required to hold the dynamic relocs. */ 6316 long (*_bfd_get_dynamic_reloc_upper_bound) (bfd *); 6317 /* Read in the dynamic relocs. */ 6318 long (*_bfd_canonicalize_dynamic_reloc) 6319 (bfd *, arelent **, struct bfd_symbol **); 6320 A pointer to an alternative bfd_target in case the current one is not 6321 satisfactory. This can happen when the target cpu supports both big 6322 and little endian code, and target chosen by the linker has the wrong 6323 endianness. The function open_output() in ld/ldlang.c uses this field 6324 to find an alternative output format that is suitable. 6325 /* Opposite endian version of this target. */ 6326 const struct bfd_target * alternative_target; 6327 6328 /* Data for use by back-end routines, which isn't 6329 generic enough to belong in this structure. */ 6330 const void *backend_data; 6331 6332 } bfd_target; 6333 6334 2.12.1.1 `bfd_set_default_target' 6335 ................................. 6336 6337 *Synopsis* 6338 bfd_boolean bfd_set_default_target (const char *name); 6339 *Description* 6340 Set the default target vector to use when recognizing a BFD. This 6341 takes the name of the target, which may be a BFD target name or a 6342 configuration triplet. 6343 6344 2.12.1.2 `bfd_find_target' 6345 .......................... 6346 6347 *Synopsis* 6348 const bfd_target *bfd_find_target (const char *target_name, bfd *abfd); 6349 *Description* 6350 Return a pointer to the transfer vector for the object target named 6351 TARGET_NAME. If TARGET_NAME is `NULL', choose the one in the 6352 environment variable `GNUTARGET'; if that is null or not defined, then 6353 choose the first entry in the target list. Passing in the string 6354 "default" or setting the environment variable to "default" will cause 6355 the first entry in the target list to be returned, and 6356 "target_defaulted" will be set in the BFD if ABFD isn't `NULL'. This 6357 causes `bfd_check_format' to loop over all the targets to find the one 6358 that matches the file being read. 6359 6360 2.12.1.3 `bfd_get_target_info' 6361 .............................. 6362 6363 *Synopsis* 6364 const bfd_target *bfd_get_target_info (const char *target_name, 6365 bfd *abfd, 6366 bfd_boolean *is_bigendian, 6367 int *underscoring, 6368 const char **def_target_arch); 6369 *Description* 6370 Return a pointer to the transfer vector for the object target named 6371 TARGET_NAME. If TARGET_NAME is `NULL', choose the one in the 6372 environment variable `GNUTARGET'; if that is null or not defined, then 6373 choose the first entry in the target list. Passing in the string 6374 "default" or setting the environment variable to "default" will cause 6375 the first entry in the target list to be returned, and 6376 "target_defaulted" will be set in the BFD if ABFD isn't `NULL'. This 6377 causes `bfd_check_format' to loop over all the targets to find the one 6378 that matches the file being read. If IS_BIGENDIAN is not `NULL', then 6379 set this value to target's endian mode. True for big-endian, FALSE for 6380 little-endian or for invalid target. If UNDERSCORING is not `NULL', 6381 then set this value to target's underscoring mode. Zero for 6382 none-underscoring, -1 for invalid target, else the value of target 6383 vector's symbol underscoring. If DEF_TARGET_ARCH is not `NULL', then 6384 set it to the architecture string specified by the target_name. 6385 6386 2.12.1.4 `bfd_target_list' 6387 .......................... 6388 6389 *Synopsis* 6390 const char ** bfd_target_list (void); 6391 *Description* 6392 Return a freshly malloced NULL-terminated vector of the names of all 6393 the valid BFD targets. Do not modify the names. 6394 6395 2.12.1.5 `bfd_seach_for_target' 6396 ............................... 6397 6398 *Synopsis* 6399 const bfd_target *bfd_search_for_target 6400 (int (*search_func) (const bfd_target *, void *), 6401 void *); 6402 *Description* 6403 Return a pointer to the first transfer vector in the list of transfer 6404 vectors maintained by BFD that produces a non-zero result when passed 6405 to the function SEARCH_FUNC. The parameter DATA is passed, unexamined, 6406 to the search function. 6407 6408 6409 File: bfd.info, Node: Architectures, Next: Opening and Closing, Prev: Targets, Up: BFD front end 6410 6411 2.13 Architectures 6412 ================== 6413 6414 BFD keeps one atom in a BFD describing the architecture of the data 6415 attached to the BFD: a pointer to a `bfd_arch_info_type'. 6416 6417 Pointers to structures can be requested independently of a BFD so 6418 that an architecture's information can be interrogated without access 6419 to an open BFD. 6420 6421 The architecture information is provided by each architecture 6422 package. The set of default architectures is selected by the macro 6423 `SELECT_ARCHITECTURES'. This is normally set up in the 6424 `config/TARGET.mt' file of your choice. If the name is not defined, 6425 then all the architectures supported are included. 6426 6427 When BFD starts up, all the architectures are called with an 6428 initialize method. It is up to the architecture back end to insert as 6429 many items into the list of architectures as it wants to; generally 6430 this would be one for each machine and one for the default case (an 6431 item with a machine field of 0). 6432 6433 BFD's idea of an architecture is implemented in `archures.c'. 6434 6435 2.13.1 bfd_architecture 6436 ----------------------- 6437 6438 *Description* 6439 This enum gives the object file's CPU architecture, in a global 6440 sense--i.e., what processor family does it belong to? Another field 6441 indicates which processor within the family is in use. The machine 6442 gives a number which distinguishes different versions of the 6443 architecture, containing, for example, 2 and 3 for Intel i960 KA and 6444 i960 KB, and 68020 and 68030 for Motorola 68020 and 68030. 6445 enum bfd_architecture 6446 { 6447 bfd_arch_unknown, /* File arch not known. */ 6448 bfd_arch_obscure, /* Arch known, not one of these. */ 6449 bfd_arch_m68k, /* Motorola 68xxx */ 6450 #define bfd_mach_m68000 1 6451 #define bfd_mach_m68008 2 6452 #define bfd_mach_m68010 3 6453 #define bfd_mach_m68020 4 6454 #define bfd_mach_m68030 5 6455 #define bfd_mach_m68040 6 6456 #define bfd_mach_m68060 7 6457 #define bfd_mach_cpu32 8 6458 #define bfd_mach_fido 9 6459 #define bfd_mach_mcf_isa_a_nodiv 10 6460 #define bfd_mach_mcf_isa_a 11 6461 #define bfd_mach_mcf_isa_a_mac 12 6462 #define bfd_mach_mcf_isa_a_emac 13 6463 #define bfd_mach_mcf_isa_aplus 14 6464 #define bfd_mach_mcf_isa_aplus_mac 15 6465 #define bfd_mach_mcf_isa_aplus_emac 16 6466 #define bfd_mach_mcf_isa_b_nousp 17 6467 #define bfd_mach_mcf_isa_b_nousp_mac 18 6468 #define bfd_mach_mcf_isa_b_nousp_emac 19 6469 #define bfd_mach_mcf_isa_b 20 6470 #define bfd_mach_mcf_isa_b_mac 21 6471 #define bfd_mach_mcf_isa_b_emac 22 6472 #define bfd_mach_mcf_isa_b_float 23 6473 #define bfd_mach_mcf_isa_b_float_mac 24 6474 #define bfd_mach_mcf_isa_b_float_emac 25 6475 #define bfd_mach_mcf_isa_c 26 6476 #define bfd_mach_mcf_isa_c_mac 27 6477 #define bfd_mach_mcf_isa_c_emac 28 6478 #define bfd_mach_mcf_isa_c_nodiv 29 6479 #define bfd_mach_mcf_isa_c_nodiv_mac 30 6480 #define bfd_mach_mcf_isa_c_nodiv_emac 31 6481 bfd_arch_vax, /* DEC Vax */ 6482 bfd_arch_i960, /* Intel 960 */ 6483 /* The order of the following is important. 6484 lower number indicates a machine type that 6485 only accepts a subset of the instructions 6486 available to machines with higher numbers. 6487 The exception is the "ca", which is 6488 incompatible with all other machines except 6489 "core". */ 6490 6491 #define bfd_mach_i960_core 1 6492 #define bfd_mach_i960_ka_sa 2 6493 #define bfd_mach_i960_kb_sb 3 6494 #define bfd_mach_i960_mc 4 6495 #define bfd_mach_i960_xa 5 6496 #define bfd_mach_i960_ca 6 6497 #define bfd_mach_i960_jx 7 6498 #define bfd_mach_i960_hx 8 6499 6500 bfd_arch_or32, /* OpenRISC 32 */ 6501 6502 bfd_arch_sparc, /* SPARC */ 6503 #define bfd_mach_sparc 1 6504 /* The difference between v8plus and v9 is that v9 is a true 64 bit env. */ 6505 #define bfd_mach_sparc_sparclet 2 6506 #define bfd_mach_sparc_sparclite 3 6507 #define bfd_mach_sparc_v8plus 4 6508 #define bfd_mach_sparc_v8plusa 5 /* with ultrasparc add'ns. */ 6509 #define bfd_mach_sparc_sparclite_le 6 6510 #define bfd_mach_sparc_v9 7 6511 #define bfd_mach_sparc_v9a 8 /* with ultrasparc add'ns. */ 6512 #define bfd_mach_sparc_v8plusb 9 /* with cheetah add'ns. */ 6513 #define bfd_mach_sparc_v9b 10 /* with cheetah add'ns. */ 6514 /* Nonzero if MACH has the v9 instruction set. */ 6515 #define bfd_mach_sparc_v9_p(mach) \ 6516 ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9b \ 6517 && (mach) != bfd_mach_sparc_sparclite_le) 6518 /* Nonzero if MACH is a 64 bit sparc architecture. */ 6519 #define bfd_mach_sparc_64bit_p(mach) \ 6520 ((mach) >= bfd_mach_sparc_v9 && (mach) != bfd_mach_sparc_v8plusb) 6521 bfd_arch_spu, /* PowerPC SPU */ 6522 #define bfd_mach_spu 256 6523 bfd_arch_mips, /* MIPS Rxxxx */ 6524 #define bfd_mach_mips3000 3000 6525 #define bfd_mach_mips3900 3900 6526 #define bfd_mach_mips4000 4000 6527 #define bfd_mach_mips4010 4010 6528 #define bfd_mach_mips4100 4100 6529 #define bfd_mach_mips4111 4111 6530 #define bfd_mach_mips4120 4120 6531 #define bfd_mach_mips4300 4300 6532 #define bfd_mach_mips4400 4400 6533 #define bfd_mach_mips4600 4600 6534 #define bfd_mach_mips4650 4650 6535 #define bfd_mach_mips5000 5000 6536 #define bfd_mach_mips5400 5400 6537 #define bfd_mach_mips5500 5500 6538 #define bfd_mach_mips6000 6000 6539 #define bfd_mach_mips7000 7000 6540 #define bfd_mach_mips8000 8000 6541 #define bfd_mach_mips9000 9000 6542 #define bfd_mach_mips10000 10000 6543 #define bfd_mach_mips12000 12000 6544 #define bfd_mach_mips14000 14000 6545 #define bfd_mach_mips16000 16000 6546 #define bfd_mach_mips16 16 6547 #define bfd_mach_mips5 5 6548 #define bfd_mach_mips_loongson_2e 3001 6549 #define bfd_mach_mips_loongson_2f 3002 6550 #define bfd_mach_mips_loongson_3a 3003 6551 #define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01 */ 6552 #define bfd_mach_mips_octeon 6501 6553 #define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */ 6554 #define bfd_mach_mipsisa32 32 6555 #define bfd_mach_mipsisa32r2 33 6556 #define bfd_mach_mipsisa64 64 6557 #define bfd_mach_mipsisa64r2 65 6558 bfd_arch_i386, /* Intel 386 */ 6559 #define bfd_mach_i386_i386 1 6560 #define bfd_mach_i386_i8086 2 6561 #define bfd_mach_i386_i386_intel_syntax 3 6562 #define bfd_mach_x64_32 32 6563 #define bfd_mach_x64_32_intel_syntax 33 6564 #define bfd_mach_x86_64 64 6565 #define bfd_mach_x86_64_intel_syntax 65 6566 bfd_arch_l1om, /* Intel L1OM */ 6567 #define bfd_mach_l1om 66 6568 #define bfd_mach_l1om_intel_syntax 67 6569 bfd_arch_we32k, /* AT&T WE32xxx */ 6570 bfd_arch_tahoe, /* CCI/Harris Tahoe */ 6571 bfd_arch_i860, /* Intel 860 */ 6572 bfd_arch_i370, /* IBM 360/370 Mainframes */ 6573 bfd_arch_romp, /* IBM ROMP PC/RT */ 6574 bfd_arch_convex, /* Convex */ 6575 bfd_arch_m88k, /* Motorola 88xxx */ 6576 bfd_arch_m98k, /* Motorola 98xxx */ 6577 bfd_arch_pyramid, /* Pyramid Technology */ 6578 bfd_arch_h8300, /* Renesas H8/300 (formerly Hitachi H8/300) */ 6579 #define bfd_mach_h8300 1 6580 #define bfd_mach_h8300h 2 6581 #define bfd_mach_h8300s 3 6582 #define bfd_mach_h8300hn 4 6583 #define bfd_mach_h8300sn 5 6584 #define bfd_mach_h8300sx 6 6585 #define bfd_mach_h8300sxn 7 6586 bfd_arch_pdp11, /* DEC PDP-11 */ 6587 bfd_arch_plugin, 6588 bfd_arch_powerpc, /* PowerPC */ 6589 #define bfd_mach_ppc 32 6590 #define bfd_mach_ppc64 64 6591 #define bfd_mach_ppc_403 403 6592 #define bfd_mach_ppc_403gc 4030 6593 #define bfd_mach_ppc_405 405 6594 #define bfd_mach_ppc_505 505 6595 #define bfd_mach_ppc_601 601 6596 #define bfd_mach_ppc_602 602 6597 #define bfd_mach_ppc_603 603 6598 #define bfd_mach_ppc_ec603e 6031 6599 #define bfd_mach_ppc_604 604 6600 #define bfd_mach_ppc_620 620 6601 #define bfd_mach_ppc_630 630 6602 #define bfd_mach_ppc_750 750 6603 #define bfd_mach_ppc_860 860 6604 #define bfd_mach_ppc_a35 35 6605 #define bfd_mach_ppc_rs64ii 642 6606 #define bfd_mach_ppc_rs64iii 643 6607 #define bfd_mach_ppc_7400 7400 6608 #define bfd_mach_ppc_e500 500 6609 #define bfd_mach_ppc_e500mc 5001 6610 #define bfd_mach_ppc_e500mc64 5005 6611 #define bfd_mach_ppc_titan 83 6612 bfd_arch_rs6000, /* IBM RS/6000 */ 6613 #define bfd_mach_rs6k 6000 6614 #define bfd_mach_rs6k_rs1 6001 6615 #define bfd_mach_rs6k_rsc 6003 6616 #define bfd_mach_rs6k_rs2 6002 6617 bfd_arch_hppa, /* HP PA RISC */ 6618 #define bfd_mach_hppa10 10 6619 #define bfd_mach_hppa11 11 6620 #define bfd_mach_hppa20 20 6621 #define bfd_mach_hppa20w 25 6622 bfd_arch_d10v, /* Mitsubishi D10V */ 6623 #define bfd_mach_d10v 1 6624 #define bfd_mach_d10v_ts2 2 6625 #define bfd_mach_d10v_ts3 3 6626 bfd_arch_d30v, /* Mitsubishi D30V */ 6627 bfd_arch_dlx, /* DLX */ 6628 bfd_arch_m68hc11, /* Motorola 68HC11 */ 6629 bfd_arch_m68hc12, /* Motorola 68HC12 */ 6630 #define bfd_mach_m6812_default 0 6631 #define bfd_mach_m6812 1 6632 #define bfd_mach_m6812s 2 6633 bfd_arch_z8k, /* Zilog Z8000 */ 6634 #define bfd_mach_z8001 1 6635 #define bfd_mach_z8002 2 6636 bfd_arch_h8500, /* Renesas H8/500 (formerly Hitachi H8/500) */ 6637 bfd_arch_sh, /* Renesas / SuperH SH (formerly Hitachi SH) */ 6638 #define bfd_mach_sh 1 6639 #define bfd_mach_sh2 0x20 6640 #define bfd_mach_sh_dsp 0x2d 6641 #define bfd_mach_sh2a 0x2a 6642 #define bfd_mach_sh2a_nofpu 0x2b 6643 #define bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu 0x2a1 6644 #define bfd_mach_sh2a_nofpu_or_sh3_nommu 0x2a2 6645 #define bfd_mach_sh2a_or_sh4 0x2a3 6646 #define bfd_mach_sh2a_or_sh3e 0x2a4 6647 #define bfd_mach_sh2e 0x2e 6648 #define bfd_mach_sh3 0x30 6649 #define bfd_mach_sh3_nommu 0x31 6650 #define bfd_mach_sh3_dsp 0x3d 6651 #define bfd_mach_sh3e 0x3e 6652 #define bfd_mach_sh4 0x40 6653 #define bfd_mach_sh4_nofpu 0x41 6654 #define bfd_mach_sh4_nommu_nofpu 0x42 6655 #define bfd_mach_sh4a 0x4a 6656 #define bfd_mach_sh4a_nofpu 0x4b 6657 #define bfd_mach_sh4al_dsp 0x4d 6658 #define bfd_mach_sh5 0x50 6659 bfd_arch_alpha, /* Dec Alpha */ 6660 #define bfd_mach_alpha_ev4 0x10 6661 #define bfd_mach_alpha_ev5 0x20 6662 #define bfd_mach_alpha_ev6 0x30 6663 bfd_arch_arm, /* Advanced Risc Machines ARM. */ 6664 #define bfd_mach_arm_unknown 0 6665 #define bfd_mach_arm_2 1 6666 #define bfd_mach_arm_2a 2 6667 #define bfd_mach_arm_3 3 6668 #define bfd_mach_arm_3M 4 6669 #define bfd_mach_arm_4 5 6670 #define bfd_mach_arm_4T 6 6671 #define bfd_mach_arm_5 7 6672 #define bfd_mach_arm_5T 8 6673 #define bfd_mach_arm_5TE 9 6674 #define bfd_mach_arm_XScale 10 6675 #define bfd_mach_arm_ep9312 11 6676 #define bfd_mach_arm_iWMMXt 12 6677 #define bfd_mach_arm_iWMMXt2 13 6678 bfd_arch_ns32k, /* National Semiconductors ns32000 */ 6679 bfd_arch_w65, /* WDC 65816 */ 6680 bfd_arch_tic30, /* Texas Instruments TMS320C30 */ 6681 bfd_arch_tic4x, /* Texas Instruments TMS320C3X/4X */ 6682 #define bfd_mach_tic3x 30 6683 #define bfd_mach_tic4x 40 6684 bfd_arch_tic54x, /* Texas Instruments TMS320C54X */ 6685 bfd_arch_tic6x, /* Texas Instruments TMS320C6X */ 6686 bfd_arch_tic80, /* TI TMS320c80 (MVP) */ 6687 bfd_arch_v850, /* NEC V850 */ 6688 #define bfd_mach_v850 1 6689 #define bfd_mach_v850e 'E' 6690 #define bfd_mach_v850e1 '1' 6691 #define bfd_mach_v850e2 0x4532 6692 #define bfd_mach_v850e2v3 0x45325633 6693 bfd_arch_arc, /* ARC Cores */ 6694 #define bfd_mach_arc_5 5 6695 #define bfd_mach_arc_6 6 6696 #define bfd_mach_arc_7 7 6697 #define bfd_mach_arc_8 8 6698 bfd_arch_m32c, /* Renesas M16C/M32C. */ 6699 #define bfd_mach_m16c 0x75 6700 #define bfd_mach_m32c 0x78 6701 bfd_arch_m32r, /* Renesas M32R (formerly Mitsubishi M32R/D) */ 6702 #define bfd_mach_m32r 1 /* For backwards compatibility. */ 6703 #define bfd_mach_m32rx 'x' 6704 #define bfd_mach_m32r2 '2' 6705 bfd_arch_mn10200, /* Matsushita MN10200 */ 6706 bfd_arch_mn10300, /* Matsushita MN10300 */ 6707 #define bfd_mach_mn10300 300 6708 #define bfd_mach_am33 330 6709 #define bfd_mach_am33_2 332 6710 bfd_arch_fr30, 6711 #define bfd_mach_fr30 0x46523330 6712 bfd_arch_frv, 6713 #define bfd_mach_frv 1 6714 #define bfd_mach_frvsimple 2 6715 #define bfd_mach_fr300 300 6716 #define bfd_mach_fr400 400 6717 #define bfd_mach_fr450 450 6718 #define bfd_mach_frvtomcat 499 /* fr500 prototype */ 6719 #define bfd_mach_fr500 500 6720 #define bfd_mach_fr550 550 6721 bfd_arch_moxie, /* The moxie processor */ 6722 #define bfd_mach_moxie 1 6723 bfd_arch_mcore, 6724 bfd_arch_mep, 6725 #define bfd_mach_mep 1 6726 #define bfd_mach_mep_h1 0x6831 6727 #define bfd_mach_mep_c5 0x6335 6728 bfd_arch_ia64, /* HP/Intel ia64 */ 6729 #define bfd_mach_ia64_elf64 64 6730 #define bfd_mach_ia64_elf32 32 6731 bfd_arch_ip2k, /* Ubicom IP2K microcontrollers. */ 6732 #define bfd_mach_ip2022 1 6733 #define bfd_mach_ip2022ext 2 6734 bfd_arch_iq2000, /* Vitesse IQ2000. */ 6735 #define bfd_mach_iq2000 1 6736 #define bfd_mach_iq10 2 6737 bfd_arch_mt, 6738 #define bfd_mach_ms1 1 6739 #define bfd_mach_mrisc2 2 6740 #define bfd_mach_ms2 3 6741 bfd_arch_pj, 6742 bfd_arch_avr, /* Atmel AVR microcontrollers. */ 6743 #define bfd_mach_avr1 1 6744 #define bfd_mach_avr2 2 6745 #define bfd_mach_avr25 25 6746 #define bfd_mach_avr3 3 6747 #define bfd_mach_avr31 31 6748 #define bfd_mach_avr35 35 6749 #define bfd_mach_avr4 4 6750 #define bfd_mach_avr5 5 6751 #define bfd_mach_avr51 51 6752 #define bfd_mach_avr6 6 6753 #define bfd_mach_avrxmega1 101 6754 #define bfd_mach_avrxmega2 102 6755 #define bfd_mach_avrxmega3 103 6756 #define bfd_mach_avrxmega4 104 6757 #define bfd_mach_avrxmega5 105 6758 #define bfd_mach_avrxmega6 106 6759 #define bfd_mach_avrxmega7 107 6760 bfd_arch_bfin, /* ADI Blackfin */ 6761 #define bfd_mach_bfin 1 6762 bfd_arch_cr16, /* National Semiconductor CompactRISC (ie CR16). */ 6763 #define bfd_mach_cr16 1 6764 bfd_arch_cr16c, /* National Semiconductor CompactRISC. */ 6765 #define bfd_mach_cr16c 1 6766 bfd_arch_crx, /* National Semiconductor CRX. */ 6767 #define bfd_mach_crx 1 6768 bfd_arch_cris, /* Axis CRIS */ 6769 #define bfd_mach_cris_v0_v10 255 6770 #define bfd_mach_cris_v32 32 6771 #define bfd_mach_cris_v10_v32 1032 6772 bfd_arch_rx, /* Renesas RX. */ 6773 #define bfd_mach_rx 0x75 6774 bfd_arch_s390, /* IBM s390 */ 6775 #define bfd_mach_s390_31 31 6776 #define bfd_mach_s390_64 64 6777 bfd_arch_score, /* Sunplus score */ 6778 #define bfd_mach_score3 3 6779 #define bfd_mach_score7 7 6780 bfd_arch_openrisc, /* OpenRISC */ 6781 bfd_arch_mmix, /* Donald Knuth's educational processor. */ 6782 bfd_arch_xstormy16, 6783 #define bfd_mach_xstormy16 1 6784 bfd_arch_msp430, /* Texas Instruments MSP430 architecture. */ 6785 #define bfd_mach_msp11 11 6786 #define bfd_mach_msp110 110 6787 #define bfd_mach_msp12 12 6788 #define bfd_mach_msp13 13 6789 #define bfd_mach_msp14 14 6790 #define bfd_mach_msp15 15 6791 #define bfd_mach_msp16 16 6792 #define bfd_mach_msp21 21 6793 #define bfd_mach_msp31 31 6794 #define bfd_mach_msp32 32 6795 #define bfd_mach_msp33 33 6796 #define bfd_mach_msp41 41 6797 #define bfd_mach_msp42 42 6798 #define bfd_mach_msp43 43 6799 #define bfd_mach_msp44 44 6800 bfd_arch_xc16x, /* Infineon's XC16X Series. */ 6801 #define bfd_mach_xc16x 1 6802 #define bfd_mach_xc16xl 2 6803 #define bfd_mach_xc16xs 3 6804 bfd_arch_xtensa, /* Tensilica's Xtensa cores. */ 6805 #define bfd_mach_xtensa 1 6806 bfd_arch_z80, 6807 #define bfd_mach_z80strict 1 /* No undocumented opcodes. */ 6808 #define bfd_mach_z80 3 /* With ixl, ixh, iyl, and iyh. */ 6809 #define bfd_mach_z80full 7 /* All undocumented instructions. */ 6810 #define bfd_mach_r800 11 /* R800: successor with multiplication. */ 6811 bfd_arch_lm32, /* Lattice Mico32 */ 6812 #define bfd_mach_lm32 1 6813 bfd_arch_microblaze,/* Xilinx MicroBlaze. */ 6814 bfd_arch_last 6815 }; 6816 6817 2.13.2 bfd_arch_info 6818 -------------------- 6819 6820 *Description* 6821 This structure contains information on architectures for use within BFD. 6822 6823 typedef struct bfd_arch_info 6824 { 6825 int bits_per_word; 6826 int bits_per_address; 6827 int bits_per_byte; 6828 enum bfd_architecture arch; 6829 unsigned long mach; 6830 const char *arch_name; 6831 const char *printable_name; 6832 unsigned int section_align_power; 6833 /* TRUE if this is the default machine for the architecture. 6834 The default arch should be the first entry for an arch so that 6835 all the entries for that arch can be accessed via `next'. */ 6836 bfd_boolean the_default; 6837 const struct bfd_arch_info * (*compatible) 6838 (const struct bfd_arch_info *a, const struct bfd_arch_info *b); 6839 6840 bfd_boolean (*scan) (const struct bfd_arch_info *, const char *); 6841 6842 const struct bfd_arch_info *next; 6843 } 6844 bfd_arch_info_type; 6845 6846 2.13.2.1 `bfd_printable_name' 6847 ............................. 6848 6849 *Synopsis* 6850 const char *bfd_printable_name (bfd *abfd); 6851 *Description* 6852 Return a printable string representing the architecture and machine 6853 from the pointer to the architecture info structure. 6854 6855 2.13.2.2 `bfd_scan_arch' 6856 ........................ 6857 6858 *Synopsis* 6859 const bfd_arch_info_type *bfd_scan_arch (const char *string); 6860 *Description* 6861 Figure out if BFD supports any cpu which could be described with the 6862 name STRING. Return a pointer to an `arch_info' structure if a machine 6863 is found, otherwise NULL. 6864 6865 2.13.2.3 `bfd_arch_list' 6866 ........................ 6867 6868 *Synopsis* 6869 const char **bfd_arch_list (void); 6870 *Description* 6871 Return a freshly malloced NULL-terminated vector of the names of all 6872 the valid BFD architectures. Do not modify the names. 6873 6874 2.13.2.4 `bfd_arch_get_compatible' 6875 .................................. 6876 6877 *Synopsis* 6878 const bfd_arch_info_type *bfd_arch_get_compatible 6879 (const bfd *abfd, const bfd *bbfd, bfd_boolean accept_unknowns); 6880 *Description* 6881 Determine whether two BFDs' architectures and machine types are 6882 compatible. Calculates the lowest common denominator between the two 6883 architectures and machine types implied by the BFDs and returns a 6884 pointer to an `arch_info' structure describing the compatible machine. 6885 6886 2.13.2.5 `bfd_default_arch_struct' 6887 .................................. 6888 6889 *Description* 6890 The `bfd_default_arch_struct' is an item of `bfd_arch_info_type' which 6891 has been initialized to a fairly generic state. A BFD starts life by 6892 pointing to this structure, until the correct back end has determined 6893 the real architecture of the file. 6894 extern const bfd_arch_info_type bfd_default_arch_struct; 6895 6896 2.13.2.6 `bfd_set_arch_info' 6897 ............................ 6898 6899 *Synopsis* 6900 void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg); 6901 *Description* 6902 Set the architecture info of ABFD to ARG. 6903 6904 2.13.2.7 `bfd_default_set_arch_mach' 6905 .................................... 6906 6907 *Synopsis* 6908 bfd_boolean bfd_default_set_arch_mach 6909 (bfd *abfd, enum bfd_architecture arch, unsigned long mach); 6910 *Description* 6911 Set the architecture and machine type in BFD ABFD to ARCH and MACH. 6912 Find the correct pointer to a structure and insert it into the 6913 `arch_info' pointer. 6914 6915 2.13.2.8 `bfd_get_arch' 6916 ....................... 6917 6918 *Synopsis* 6919 enum bfd_architecture bfd_get_arch (bfd *abfd); 6920 *Description* 6921 Return the enumerated type which describes the BFD ABFD's architecture. 6922 6923 2.13.2.9 `bfd_get_mach' 6924 ....................... 6925 6926 *Synopsis* 6927 unsigned long bfd_get_mach (bfd *abfd); 6928 *Description* 6929 Return the long type which describes the BFD ABFD's machine. 6930 6931 2.13.2.10 `bfd_arch_bits_per_byte' 6932 .................................. 6933 6934 *Synopsis* 6935 unsigned int bfd_arch_bits_per_byte (bfd *abfd); 6936 *Description* 6937 Return the number of bits in one of the BFD ABFD's architecture's bytes. 6938 6939 2.13.2.11 `bfd_arch_bits_per_address' 6940 ..................................... 6941 6942 *Synopsis* 6943 unsigned int bfd_arch_bits_per_address (bfd *abfd); 6944 *Description* 6945 Return the number of bits in one of the BFD ABFD's architecture's 6946 addresses. 6947 6948 2.13.2.12 `bfd_default_compatible' 6949 .................................. 6950 6951 *Synopsis* 6952 const bfd_arch_info_type *bfd_default_compatible 6953 (const bfd_arch_info_type *a, const bfd_arch_info_type *b); 6954 *Description* 6955 The default function for testing for compatibility. 6956 6957 2.13.2.13 `bfd_default_scan' 6958 ............................ 6959 6960 *Synopsis* 6961 bfd_boolean bfd_default_scan 6962 (const struct bfd_arch_info *info, const char *string); 6963 *Description* 6964 The default function for working out whether this is an architecture 6965 hit and a machine hit. 6966 6967 2.13.2.14 `bfd_get_arch_info' 6968 ............................. 6969 6970 *Synopsis* 6971 const bfd_arch_info_type *bfd_get_arch_info (bfd *abfd); 6972 *Description* 6973 Return the architecture info struct in ABFD. 6974 6975 2.13.2.15 `bfd_lookup_arch' 6976 ........................... 6977 6978 *Synopsis* 6979 const bfd_arch_info_type *bfd_lookup_arch 6980 (enum bfd_architecture arch, unsigned long machine); 6981 *Description* 6982 Look for the architecture info structure which matches the arguments 6983 ARCH and MACHINE. A machine of 0 matches the machine/architecture 6984 structure which marks itself as the default. 6985 6986 2.13.2.16 `bfd_printable_arch_mach' 6987 ................................... 6988 6989 *Synopsis* 6990 const char *bfd_printable_arch_mach 6991 (enum bfd_architecture arch, unsigned long machine); 6992 *Description* 6993 Return a printable string representing the architecture and machine 6994 type. 6995 6996 This routine is depreciated. 6997 6998 2.13.2.17 `bfd_octets_per_byte' 6999 ............................... 7000 7001 *Synopsis* 7002 unsigned int bfd_octets_per_byte (bfd *abfd); 7003 *Description* 7004 Return the number of octets (8-bit quantities) per target byte (minimum 7005 addressable unit). In most cases, this will be one, but some DSP 7006 targets have 16, 32, or even 48 bits per byte. 7007 7008 2.13.2.18 `bfd_arch_mach_octets_per_byte' 7009 ......................................... 7010 7011 *Synopsis* 7012 unsigned int bfd_arch_mach_octets_per_byte 7013 (enum bfd_architecture arch, unsigned long machine); 7014 *Description* 7015 See bfd_octets_per_byte. 7016 7017 This routine is provided for those cases where a bfd * is not 7018 available 7019 7020 7021 File: bfd.info, Node: Opening and Closing, Next: Internal, Prev: Architectures, Up: BFD front end 7022 7023 /* Set to N to open the next N BFDs using an alternate id space. */ 7024 extern unsigned int bfd_use_reserved_id; 7025 7026 2.14 Opening and closing BFDs 7027 ============================= 7028 7029 2.14.1 Functions for opening and closing 7030 ---------------------------------------- 7031 7032 2.14.1.1 `bfd_fopen' 7033 .................... 7034 7035 *Synopsis* 7036 bfd *bfd_fopen (const char *filename, const char *target, 7037 const char *mode, int fd); 7038 *Description* 7039 Open the file FILENAME with the target TARGET. Return a pointer to the 7040 created BFD. If FD is not -1, then `fdopen' is used to open the file; 7041 otherwise, `fopen' is used. MODE is passed directly to `fopen' or 7042 `fdopen'. 7043 7044 Calls `bfd_find_target', so TARGET is interpreted as by that 7045 function. 7046 7047 The new BFD is marked as cacheable iff FD is -1. 7048 7049 If `NULL' is returned then an error has occured. Possible errors 7050 are `bfd_error_no_memory', `bfd_error_invalid_target' or `system_call' 7051 error. 7052 7053 2.14.1.2 `bfd_openr' 7054 .................... 7055 7056 *Synopsis* 7057 bfd *bfd_openr (const char *filename, const char *target); 7058 *Description* 7059 Open the file FILENAME (using `fopen') with the target TARGET. Return 7060 a pointer to the created BFD. 7061 7062 Calls `bfd_find_target', so TARGET is interpreted as by that 7063 function. 7064 7065 If `NULL' is returned then an error has occured. Possible errors 7066 are `bfd_error_no_memory', `bfd_error_invalid_target' or `system_call' 7067 error. 7068 7069 2.14.1.3 `bfd_fdopenr' 7070 ...................... 7071 7072 *Synopsis* 7073 bfd *bfd_fdopenr (const char *filename, const char *target, int fd); 7074 *Description* 7075 `bfd_fdopenr' is to `bfd_fopenr' much like `fdopen' is to `fopen'. It 7076 opens a BFD on a file already described by the FD supplied. 7077 7078 When the file is later `bfd_close'd, the file descriptor will be 7079 closed. If the caller desires that this file descriptor be cached by 7080 BFD (opened as needed, closed as needed to free descriptors for other 7081 opens), with the supplied FD used as an initial file descriptor (but 7082 subject to closure at any time), call bfd_set_cacheable(bfd, 1) on the 7083 returned BFD. The default is to assume no caching; the file descriptor 7084 will remain open until `bfd_close', and will not be affected by BFD 7085 operations on other files. 7086 7087 Possible errors are `bfd_error_no_memory', 7088 `bfd_error_invalid_target' and `bfd_error_system_call'. 7089 7090 2.14.1.4 `bfd_openstreamr' 7091 .......................... 7092 7093 *Synopsis* 7094 bfd *bfd_openstreamr (const char *, const char *, void *); 7095 *Description* 7096 Open a BFD for read access on an existing stdio stream. When the BFD 7097 is passed to `bfd_close', the stream will be closed. 7098 7099 2.14.1.5 `bfd_openr_iovec' 7100 .......................... 7101 7102 *Synopsis* 7103 bfd *bfd_openr_iovec (const char *filename, const char *target, 7104 void *(*open_func) (struct bfd *nbfd, 7105 void *open_closure), 7106 void *open_closure, 7107 file_ptr (*pread_func) (struct bfd *nbfd, 7108 void *stream, 7109 void *buf, 7110 file_ptr nbytes, 7111 file_ptr offset), 7112 int (*close_func) (struct bfd *nbfd, 7113 void *stream), 7114 int (*stat_func) (struct bfd *abfd, 7115 void *stream, 7116 struct stat *sb)); 7117 *Description* 7118 Create and return a BFD backed by a read-only STREAM. The STREAM is 7119 created using OPEN_FUNC, accessed using PREAD_FUNC and destroyed using 7120 CLOSE_FUNC. 7121 7122 Calls `bfd_find_target', so TARGET is interpreted as by that 7123 function. 7124 7125 Calls OPEN_FUNC (which can call `bfd_zalloc' and `bfd_get_filename') 7126 to obtain the read-only stream backing the BFD. OPEN_FUNC either 7127 succeeds returning the non-`NULL' STREAM, or fails returning `NULL' 7128 (setting `bfd_error'). 7129 7130 Calls PREAD_FUNC to request NBYTES of data from STREAM starting at 7131 OFFSET (e.g., via a call to `bfd_read'). PREAD_FUNC either succeeds 7132 returning the number of bytes read (which can be less than NBYTES when 7133 end-of-file), or fails returning -1 (setting `bfd_error'). 7134 7135 Calls CLOSE_FUNC when the BFD is later closed using `bfd_close'. 7136 CLOSE_FUNC either succeeds returning 0, or fails returning -1 (setting 7137 `bfd_error'). 7138 7139 Calls STAT_FUNC to fill in a stat structure for bfd_stat, 7140 bfd_get_size, and bfd_get_mtime calls. STAT_FUNC returns 0 on success, 7141 or returns -1 on failure (setting `bfd_error'). 7142 7143 If `bfd_openr_iovec' returns `NULL' then an error has occurred. 7144 Possible errors are `bfd_error_no_memory', `bfd_error_invalid_target' 7145 and `bfd_error_system_call'. 7146 7147 2.14.1.6 `bfd_openw' 7148 .................... 7149 7150 *Synopsis* 7151 bfd *bfd_openw (const char *filename, const char *target); 7152 *Description* 7153 Create a BFD, associated with file FILENAME, using the file format 7154 TARGET, and return a pointer to it. 7155 7156 Possible errors are `bfd_error_system_call', `bfd_error_no_memory', 7157 `bfd_error_invalid_target'. 7158 7159 2.14.1.7 `bfd_close' 7160 .................... 7161 7162 *Synopsis* 7163 bfd_boolean bfd_close (bfd *abfd); 7164 *Description* 7165 Close a BFD. If the BFD was open for writing, then pending operations 7166 are completed and the file written out and closed. If the created file 7167 is executable, then `chmod' is called to mark it as such. 7168 7169 All memory attached to the BFD is released. 7170 7171 The file descriptor associated with the BFD is closed (even if it 7172 was passed in to BFD by `bfd_fdopenr'). 7173 7174 *Returns* 7175 `TRUE' is returned if all is ok, otherwise `FALSE'. 7176 7177 2.14.1.8 `bfd_close_all_done' 7178 ............................. 7179 7180 *Synopsis* 7181 bfd_boolean bfd_close_all_done (bfd *); 7182 *Description* 7183 Close a BFD. Differs from `bfd_close' since it does not complete any 7184 pending operations. This routine would be used if the application had 7185 just used BFD for swapping and didn't want to use any of the writing 7186 code. 7187 7188 If the created file is executable, then `chmod' is called to mark it 7189 as such. 7190 7191 All memory attached to the BFD is released. 7192 7193 *Returns* 7194 `TRUE' is returned if all is ok, otherwise `FALSE'. 7195 7196 2.14.1.9 `bfd_create' 7197 ..................... 7198 7199 *Synopsis* 7200 bfd *bfd_create (const char *filename, bfd *templ); 7201 *Description* 7202 Create a new BFD in the manner of `bfd_openw', but without opening a 7203 file. The new BFD takes the target from the target used by TEMPL. The 7204 format is always set to `bfd_object'. 7205 7206 2.14.1.10 `bfd_make_writable' 7207 ............................. 7208 7209 *Synopsis* 7210 bfd_boolean bfd_make_writable (bfd *abfd); 7211 *Description* 7212 Takes a BFD as created by `bfd_create' and converts it into one like as 7213 returned by `bfd_openw'. It does this by converting the BFD to 7214 BFD_IN_MEMORY. It's assumed that you will call `bfd_make_readable' on 7215 this bfd later. 7216 7217 *Returns* 7218 `TRUE' is returned if all is ok, otherwise `FALSE'. 7219 7220 2.14.1.11 `bfd_make_readable' 7221 ............................. 7222 7223 *Synopsis* 7224 bfd_boolean bfd_make_readable (bfd *abfd); 7225 *Description* 7226 Takes a BFD as created by `bfd_create' and `bfd_make_writable' and 7227 converts it into one like as returned by `bfd_openr'. It does this by 7228 writing the contents out to the memory buffer, then reversing the 7229 direction. 7230 7231 *Returns* 7232 `TRUE' is returned if all is ok, otherwise `FALSE'. 7233 7234 2.14.1.12 `bfd_alloc' 7235 ..................... 7236 7237 *Synopsis* 7238 void *bfd_alloc (bfd *abfd, bfd_size_type wanted); 7239 *Description* 7240 Allocate a block of WANTED bytes of memory attached to `abfd' and 7241 return a pointer to it. 7242 7243 2.14.1.13 `bfd_alloc2' 7244 ...................... 7245 7246 *Synopsis* 7247 void *bfd_alloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size); 7248 *Description* 7249 Allocate a block of NMEMB elements of SIZE bytes each of memory 7250 attached to `abfd' and return a pointer to it. 7251 7252 2.14.1.14 `bfd_zalloc' 7253 ...................... 7254 7255 *Synopsis* 7256 void *bfd_zalloc (bfd *abfd, bfd_size_type wanted); 7257 *Description* 7258 Allocate a block of WANTED bytes of zeroed memory attached to `abfd' 7259 and return a pointer to it. 7260 7261 2.14.1.15 `bfd_zalloc2' 7262 ....................... 7263 7264 *Synopsis* 7265 void *bfd_zalloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size); 7266 *Description* 7267 Allocate a block of NMEMB elements of SIZE bytes each of zeroed memory 7268 attached to `abfd' and return a pointer to it. 7269 7270 2.14.1.16 `bfd_calc_gnu_debuglink_crc32' 7271 ........................................ 7272 7273 *Synopsis* 7274 unsigned long bfd_calc_gnu_debuglink_crc32 7275 (unsigned long crc, const unsigned char *buf, bfd_size_type len); 7276 *Description* 7277 Computes a CRC value as used in the .gnu_debuglink section. Advances 7278 the previously computed CRC value by computing and adding in the crc32 7279 for LEN bytes of BUF. 7280 7281 *Returns* 7282 Return the updated CRC32 value. 7283 7284 2.14.1.17 `get_debug_link_info' 7285 ............................... 7286 7287 *Synopsis* 7288 char *get_debug_link_info (bfd *abfd, unsigned long *crc32_out); 7289 *Description* 7290 fetch the filename and CRC32 value for any separate debuginfo 7291 associated with ABFD. Return NULL if no such info found, otherwise 7292 return filename and update CRC32_OUT. 7293 7294 2.14.1.18 `separate_debug_file_exists' 7295 ...................................... 7296 7297 *Synopsis* 7298 bfd_boolean separate_debug_file_exists 7299 (char *name, unsigned long crc32); 7300 *Description* 7301 Checks to see if NAME is a file and if its contents match CRC32. 7302 7303 2.14.1.19 `find_separate_debug_file' 7304 .................................... 7305 7306 *Synopsis* 7307 char *find_separate_debug_file (bfd *abfd); 7308 *Description* 7309 Searches ABFD for a reference to separate debugging information, scans 7310 various locations in the filesystem, including the file tree rooted at 7311 DEBUG_FILE_DIRECTORY, and returns a filename of such debugging 7312 information if the file is found and has matching CRC32. Returns NULL 7313 if no reference to debugging file exists, or file cannot be found. 7314 7315 2.14.1.20 `bfd_follow_gnu_debuglink' 7316 .................................... 7317 7318 *Synopsis* 7319 char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir); 7320 *Description* 7321 Takes a BFD and searches it for a .gnu_debuglink section. If this 7322 section is found, it examines the section for the name and checksum of 7323 a '.debug' file containing auxiliary debugging information. It then 7324 searches the filesystem for this .debug file in some standard 7325 locations, including the directory tree rooted at DIR, and if found 7326 returns the full filename. 7327 7328 If DIR is NULL, it will search a default path configured into libbfd 7329 at build time. [XXX this feature is not currently implemented]. 7330 7331 *Returns* 7332 `NULL' on any errors or failure to locate the .debug file, otherwise a 7333 pointer to a heap-allocated string containing the filename. The caller 7334 is responsible for freeing this string. 7335 7336 2.14.1.21 `bfd_create_gnu_debuglink_section' 7337 ............................................ 7338 7339 *Synopsis* 7340 struct bfd_section *bfd_create_gnu_debuglink_section 7341 (bfd *abfd, const char *filename); 7342 *Description* 7343 Takes a BFD and adds a .gnu_debuglink section to it. The section is 7344 sized to be big enough to contain a link to the specified FILENAME. 7345 7346 *Returns* 7347 A pointer to the new section is returned if all is ok. Otherwise 7348 `NULL' is returned and bfd_error is set. 7349 7350 2.14.1.22 `bfd_fill_in_gnu_debuglink_section' 7351 ............................................. 7352 7353 *Synopsis* 7354 bfd_boolean bfd_fill_in_gnu_debuglink_section 7355 (bfd *abfd, struct bfd_section *sect, const char *filename); 7356 *Description* 7357 Takes a BFD and containing a .gnu_debuglink section SECT and fills in 7358 the contents of the section to contain a link to the specified 7359 FILENAME. The filename should be relative to the current directory. 7360 7361 *Returns* 7362 `TRUE' is returned if all is ok. Otherwise `FALSE' is returned and 7363 bfd_error is set. 7364 7365 7366 File: bfd.info, Node: Internal, Next: File Caching, Prev: Opening and Closing, Up: BFD front end 7367 7368 2.15 Implementation details 7369 =========================== 7370 7371 2.15.1 Internal functions 7372 ------------------------- 7373 7374 *Description* 7375 These routines are used within BFD. They are not intended for export, 7376 but are documented here for completeness. 7377 7378 2.15.1.1 `bfd_write_bigendian_4byte_int' 7379 ........................................ 7380 7381 *Synopsis* 7382 bfd_boolean bfd_write_bigendian_4byte_int (bfd *, unsigned int); 7383 *Description* 7384 Write a 4 byte integer I to the output BFD ABFD, in big endian order 7385 regardless of what else is going on. This is useful in archives. 7386 7387 2.15.1.2 `bfd_put_size' 7388 ....................... 7389 7390 2.15.1.3 `bfd_get_size' 7391 ....................... 7392 7393 *Description* 7394 These macros as used for reading and writing raw data in sections; each 7395 access (except for bytes) is vectored through the target format of the 7396 BFD and mangled accordingly. The mangling performs any necessary endian 7397 translations and removes alignment restrictions. Note that types 7398 accepted and returned by these macros are identical so they can be 7399 swapped around in macros--for example, `libaout.h' defines `GET_WORD' 7400 to either `bfd_get_32' or `bfd_get_64'. 7401 7402 In the put routines, VAL must be a `bfd_vma'. If we are on a system 7403 without prototypes, the caller is responsible for making sure that is 7404 true, with a cast if necessary. We don't cast them in the macro 7405 definitions because that would prevent `lint' or `gcc -Wall' from 7406 detecting sins such as passing a pointer. To detect calling these with 7407 less than a `bfd_vma', use `gcc -Wconversion' on a host with 64 bit 7408 `bfd_vma''s. 7409 7410 /* Byte swapping macros for user section data. */ 7411 7412 #define bfd_put_8(abfd, val, ptr) \ 7413 ((void) (*((unsigned char *) (ptr)) = (val) & 0xff)) 7414 #define bfd_put_signed_8 \ 7415 bfd_put_8 7416 #define bfd_get_8(abfd, ptr) \ 7417 (*(unsigned char *) (ptr) & 0xff) 7418 #define bfd_get_signed_8(abfd, ptr) \ 7419 (((*(unsigned char *) (ptr) & 0xff) ^ 0x80) - 0x80) 7420 7421 #define bfd_put_16(abfd, val, ptr) \ 7422 BFD_SEND (abfd, bfd_putx16, ((val),(ptr))) 7423 #define bfd_put_signed_16 \ 7424 bfd_put_16 7425 #define bfd_get_16(abfd, ptr) \ 7426 BFD_SEND (abfd, bfd_getx16, (ptr)) 7427 #define bfd_get_signed_16(abfd, ptr) \ 7428 BFD_SEND (abfd, bfd_getx_signed_16, (ptr)) 7429 7430 #define bfd_put_32(abfd, val, ptr) \ 7431 BFD_SEND (abfd, bfd_putx32, ((val),(ptr))) 7432 #define bfd_put_signed_32 \ 7433 bfd_put_32 7434 #define bfd_get_32(abfd, ptr) \ 7435 BFD_SEND (abfd, bfd_getx32, (ptr)) 7436 #define bfd_get_signed_32(abfd, ptr) \ 7437 BFD_SEND (abfd, bfd_getx_signed_32, (ptr)) 7438 7439 #define bfd_put_64(abfd, val, ptr) \ 7440 BFD_SEND (abfd, bfd_putx64, ((val), (ptr))) 7441 #define bfd_put_signed_64 \ 7442 bfd_put_64 7443 #define bfd_get_64(abfd, ptr) \ 7444 BFD_SEND (abfd, bfd_getx64, (ptr)) 7445 #define bfd_get_signed_64(abfd, ptr) \ 7446 BFD_SEND (abfd, bfd_getx_signed_64, (ptr)) 7447 7448 #define bfd_get(bits, abfd, ptr) \ 7449 ((bits) == 8 ? (bfd_vma) bfd_get_8 (abfd, ptr) \ 7450 : (bits) == 16 ? bfd_get_16 (abfd, ptr) \ 7451 : (bits) == 32 ? bfd_get_32 (abfd, ptr) \ 7452 : (bits) == 64 ? bfd_get_64 (abfd, ptr) \ 7453 : (abort (), (bfd_vma) - 1)) 7454 7455 #define bfd_put(bits, abfd, val, ptr) \ 7456 ((bits) == 8 ? bfd_put_8 (abfd, val, ptr) \ 7457 : (bits) == 16 ? bfd_put_16 (abfd, val, ptr) \ 7458 : (bits) == 32 ? bfd_put_32 (abfd, val, ptr) \ 7459 : (bits) == 64 ? bfd_put_64 (abfd, val, ptr) \ 7460 : (abort (), (void) 0)) 7461 7462 2.15.1.4 `bfd_h_put_size' 7463 ......................... 7464 7465 *Description* 7466 These macros have the same function as their `bfd_get_x' brethren, 7467 except that they are used for removing information for the header 7468 records of object files. Believe it or not, some object files keep 7469 their header records in big endian order and their data in little 7470 endian order. 7471 7472 /* Byte swapping macros for file header data. */ 7473 7474 #define bfd_h_put_8(abfd, val, ptr) \ 7475 bfd_put_8 (abfd, val, ptr) 7476 #define bfd_h_put_signed_8(abfd, val, ptr) \ 7477 bfd_put_8 (abfd, val, ptr) 7478 #define bfd_h_get_8(abfd, ptr) \ 7479 bfd_get_8 (abfd, ptr) 7480 #define bfd_h_get_signed_8(abfd, ptr) \ 7481 bfd_get_signed_8 (abfd, ptr) 7482 7483 #define bfd_h_put_16(abfd, val, ptr) \ 7484 BFD_SEND (abfd, bfd_h_putx16, (val, ptr)) 7485 #define bfd_h_put_signed_16 \ 7486 bfd_h_put_16 7487 #define bfd_h_get_16(abfd, ptr) \ 7488 BFD_SEND (abfd, bfd_h_getx16, (ptr)) 7489 #define bfd_h_get_signed_16(abfd, ptr) \ 7490 BFD_SEND (abfd, bfd_h_getx_signed_16, (ptr)) 7491 7492 #define bfd_h_put_32(abfd, val, ptr) \ 7493 BFD_SEND (abfd, bfd_h_putx32, (val, ptr)) 7494 #define bfd_h_put_signed_32 \ 7495 bfd_h_put_32 7496 #define bfd_h_get_32(abfd, ptr) \ 7497 BFD_SEND (abfd, bfd_h_getx32, (ptr)) 7498 #define bfd_h_get_signed_32(abfd, ptr) \ 7499 BFD_SEND (abfd, bfd_h_getx_signed_32, (ptr)) 7500 7501 #define bfd_h_put_64(abfd, val, ptr) \ 7502 BFD_SEND (abfd, bfd_h_putx64, (val, ptr)) 7503 #define bfd_h_put_signed_64 \ 7504 bfd_h_put_64 7505 #define bfd_h_get_64(abfd, ptr) \ 7506 BFD_SEND (abfd, bfd_h_getx64, (ptr)) 7507 #define bfd_h_get_signed_64(abfd, ptr) \ 7508 BFD_SEND (abfd, bfd_h_getx_signed_64, (ptr)) 7509 7510 /* Aliases for the above, which should eventually go away. */ 7511 7512 #define H_PUT_64 bfd_h_put_64 7513 #define H_PUT_32 bfd_h_put_32 7514 #define H_PUT_16 bfd_h_put_16 7515 #define H_PUT_8 bfd_h_put_8 7516 #define H_PUT_S64 bfd_h_put_signed_64 7517 #define H_PUT_S32 bfd_h_put_signed_32 7518 #define H_PUT_S16 bfd_h_put_signed_16 7519 #define H_PUT_S8 bfd_h_put_signed_8 7520 #define H_GET_64 bfd_h_get_64 7521 #define H_GET_32 bfd_h_get_32 7522 #define H_GET_16 bfd_h_get_16 7523 #define H_GET_8 bfd_h_get_8 7524 #define H_GET_S64 bfd_h_get_signed_64 7525 #define H_GET_S32 bfd_h_get_signed_32 7526 #define H_GET_S16 bfd_h_get_signed_16 7527 #define H_GET_S8 bfd_h_get_signed_8 7528 7529 2.15.1.5 `bfd_log2' 7530 ................... 7531 7532 *Synopsis* 7533 unsigned int bfd_log2 (bfd_vma x); 7534 *Description* 7535 Return the log base 2 of the value supplied, rounded up. E.g., an X of 7536 1025 returns 11. A X of 0 returns 0. 7537 7538 7539 File: bfd.info, Node: File Caching, Next: Linker Functions, Prev: Internal, Up: BFD front end 7540 7541 2.16 File caching 7542 ================= 7543 7544 The file caching mechanism is embedded within BFD and allows the 7545 application to open as many BFDs as it wants without regard to the 7546 underlying operating system's file descriptor limit (often as low as 20 7547 open files). The module in `cache.c' maintains a least recently used 7548 list of `BFD_CACHE_MAX_OPEN' files, and exports the name 7549 `bfd_cache_lookup', which runs around and makes sure that the required 7550 BFD is open. If not, then it chooses a file to close, closes it and 7551 opens the one wanted, returning its file handle. 7552 7553 2.16.1 Caching functions 7554 ------------------------ 7555 7556 2.16.1.1 `bfd_cache_init' 7557 ......................... 7558 7559 *Synopsis* 7560 bfd_boolean bfd_cache_init (bfd *abfd); 7561 *Description* 7562 Add a newly opened BFD to the cache. 7563 7564 2.16.1.2 `bfd_cache_close' 7565 .......................... 7566 7567 *Synopsis* 7568 bfd_boolean bfd_cache_close (bfd *abfd); 7569 *Description* 7570 Remove the BFD ABFD from the cache. If the attached file is open, then 7571 close it too. 7572 7573 *Returns* 7574 `FALSE' is returned if closing the file fails, `TRUE' is returned if 7575 all is well. 7576 7577 2.16.1.3 `bfd_cache_close_all' 7578 .............................. 7579 7580 *Synopsis* 7581 bfd_boolean bfd_cache_close_all (void); 7582 *Description* 7583 Remove all BFDs from the cache. If the attached file is open, then 7584 close it too. 7585 7586 *Returns* 7587 `FALSE' is returned if closing one of the file fails, `TRUE' is 7588 returned if all is well. 7589 7590 2.16.1.4 `bfd_open_file' 7591 ........................ 7592 7593 *Synopsis* 7594 FILE* bfd_open_file (bfd *abfd); 7595 *Description* 7596 Call the OS to open a file for ABFD. Return the `FILE *' (possibly 7597 `NULL') that results from this operation. Set up the BFD so that 7598 future accesses know the file is open. If the `FILE *' returned is 7599 `NULL', then it won't have been put in the cache, so it won't have to 7600 be removed from it. 7601 7602 7603 File: bfd.info, Node: Linker Functions, Next: Hash Tables, Prev: File Caching, Up: BFD front end 7604 7605 2.17 Linker Functions 7606 ===================== 7607 7608 The linker uses three special entry points in the BFD target vector. 7609 It is not necessary to write special routines for these entry points 7610 when creating a new BFD back end, since generic versions are provided. 7611 However, writing them can speed up linking and make it use 7612 significantly less runtime memory. 7613 7614 The first routine creates a hash table used by the other routines. 7615 The second routine adds the symbols from an object file to the hash 7616 table. The third routine takes all the object files and links them 7617 together to create the output file. These routines are designed so 7618 that the linker proper does not need to know anything about the symbols 7619 in the object files that it is linking. The linker merely arranges the 7620 sections as directed by the linker script and lets BFD handle the 7621 details of symbols and relocs. 7622 7623 The second routine and third routines are passed a pointer to a 7624 `struct bfd_link_info' structure (defined in `bfdlink.h') which holds 7625 information relevant to the link, including the linker hash table 7626 (which was created by the first routine) and a set of callback 7627 functions to the linker proper. 7628 7629 The generic linker routines are in `linker.c', and use the header 7630 file `genlink.h'. As of this writing, the only back ends which have 7631 implemented versions of these routines are a.out (in `aoutx.h') and 7632 ECOFF (in `ecoff.c'). The a.out routines are used as examples 7633 throughout this section. 7634 7635 * Menu: 7636 7637 * Creating a Linker Hash Table:: 7638 * Adding Symbols to the Hash Table:: 7639 * Performing the Final Link:: 7640 7641 7642 File: bfd.info, Node: Creating a Linker Hash Table, Next: Adding Symbols to the Hash Table, Prev: Linker Functions, Up: Linker Functions 7643 7644 2.17.1 Creating a linker hash table 7645 ----------------------------------- 7646 7647 The linker routines must create a hash table, which must be derived 7648 from `struct bfd_link_hash_table' described in `bfdlink.c'. *Note Hash 7649 Tables::, for information on how to create a derived hash table. This 7650 entry point is called using the target vector of the linker output file. 7651 7652 The `_bfd_link_hash_table_create' entry point must allocate and 7653 initialize an instance of the desired hash table. If the back end does 7654 not require any additional information to be stored with the entries in 7655 the hash table, the entry point may simply create a `struct 7656 bfd_link_hash_table'. Most likely, however, some additional 7657 information will be needed. 7658 7659 For example, with each entry in the hash table the a.out linker 7660 keeps the index the symbol has in the final output file (this index 7661 number is used so that when doing a relocatable link the symbol index 7662 used in the output file can be quickly filled in when copying over a 7663 reloc). The a.out linker code defines the required structures and 7664 functions for a hash table derived from `struct bfd_link_hash_table'. 7665 The a.out linker hash table is created by the function 7666 `NAME(aout,link_hash_table_create)'; it simply allocates space for the 7667 hash table, initializes it, and returns a pointer to it. 7668 7669 When writing the linker routines for a new back end, you will 7670 generally not know exactly which fields will be required until you have 7671 finished. You should simply create a new hash table which defines no 7672 additional fields, and then simply add fields as they become necessary. 7673 7674 7675 File: bfd.info, Node: Adding Symbols to the Hash Table, Next: Performing the Final Link, Prev: Creating a Linker Hash Table, Up: Linker Functions 7676 7677 2.17.2 Adding symbols to the hash table 7678 --------------------------------------- 7679 7680 The linker proper will call the `_bfd_link_add_symbols' entry point for 7681 each object file or archive which is to be linked (typically these are 7682 the files named on the command line, but some may also come from the 7683 linker script). The entry point is responsible for examining the file. 7684 For an object file, BFD must add any relevant symbol information to the 7685 hash table. For an archive, BFD must determine which elements of the 7686 archive should be used and adding them to the link. 7687 7688 The a.out version of this entry point is 7689 `NAME(aout,link_add_symbols)'. 7690 7691 * Menu: 7692 7693 * Differing file formats:: 7694 * Adding symbols from an object file:: 7695 * Adding symbols from an archive:: 7696 7697 7698 File: bfd.info, Node: Differing file formats, Next: Adding symbols from an object file, Prev: Adding Symbols to the Hash Table, Up: Adding Symbols to the Hash Table 7699 7700 2.17.2.1 Differing file formats 7701 ............................... 7702 7703 Normally all the files involved in a link will be of the same format, 7704 but it is also possible to link together different format object files, 7705 and the back end must support that. The `_bfd_link_add_symbols' entry 7706 point is called via the target vector of the file to be added. This 7707 has an important consequence: the function may not assume that the hash 7708 table is the type created by the corresponding 7709 `_bfd_link_hash_table_create' vector. All the `_bfd_link_add_symbols' 7710 function can assume about the hash table is that it is derived from 7711 `struct bfd_link_hash_table'. 7712 7713 Sometimes the `_bfd_link_add_symbols' function must store some 7714 information in the hash table entry to be used by the `_bfd_final_link' 7715 function. In such a case the output bfd xvec must be checked to make 7716 sure that the hash table was created by an object file of the same 7717 format. 7718 7719 The `_bfd_final_link' routine must be prepared to handle a hash 7720 entry without any extra information added by the 7721 `_bfd_link_add_symbols' function. A hash entry without extra 7722 information will also occur when the linker script directs the linker 7723 to create a symbol. Note that, regardless of how a hash table entry is 7724 added, all the fields will be initialized to some sort of null value by 7725 the hash table entry initialization function. 7726 7727 See `ecoff_link_add_externals' for an example of how to check the 7728 output bfd before saving information (in this case, the ECOFF external 7729 symbol debugging information) in a hash table entry. 7730 7731 7732 File: bfd.info, Node: Adding symbols from an object file, Next: Adding symbols from an archive, Prev: Differing file formats, Up: Adding Symbols to the Hash Table 7733 7734 2.17.2.2 Adding symbols from an object file 7735 ........................................... 7736 7737 When the `_bfd_link_add_symbols' routine is passed an object file, it 7738 must add all externally visible symbols in that object file to the hash 7739 table. The actual work of adding the symbol to the hash table is 7740 normally handled by the function `_bfd_generic_link_add_one_symbol'. 7741 The `_bfd_link_add_symbols' routine is responsible for reading all the 7742 symbols from the object file and passing the correct information to 7743 `_bfd_generic_link_add_one_symbol'. 7744 7745 The `_bfd_link_add_symbols' routine should not use 7746 `bfd_canonicalize_symtab' to read the symbols. The point of providing 7747 this routine is to avoid the overhead of converting the symbols into 7748 generic `asymbol' structures. 7749 7750 `_bfd_generic_link_add_one_symbol' handles the details of combining 7751 common symbols, warning about multiple definitions, and so forth. It 7752 takes arguments which describe the symbol to add, notably symbol flags, 7753 a section, and an offset. The symbol flags include such things as 7754 `BSF_WEAK' or `BSF_INDIRECT'. The section is a section in the object 7755 file, or something like `bfd_und_section_ptr' for an undefined symbol 7756 or `bfd_com_section_ptr' for a common symbol. 7757 7758 If the `_bfd_final_link' routine is also going to need to read the 7759 symbol information, the `_bfd_link_add_symbols' routine should save it 7760 somewhere attached to the object file BFD. However, the information 7761 should only be saved if the `keep_memory' field of the `info' argument 7762 is TRUE, so that the `-no-keep-memory' linker switch is effective. 7763 7764 The a.out function which adds symbols from an object file is 7765 `aout_link_add_object_symbols', and most of the interesting work is in 7766 `aout_link_add_symbols'. The latter saves pointers to the hash tables 7767 entries created by `_bfd_generic_link_add_one_symbol' indexed by symbol 7768 number, so that the `_bfd_final_link' routine does not have to call the 7769 hash table lookup routine to locate the entry. 7770 7771 7772 File: bfd.info, Node: Adding symbols from an archive, Prev: Adding symbols from an object file, Up: Adding Symbols to the Hash Table 7773 7774 2.17.2.3 Adding symbols from an archive 7775 ....................................... 7776 7777 When the `_bfd_link_add_symbols' routine is passed an archive, it must 7778 look through the symbols defined by the archive and decide which 7779 elements of the archive should be included in the link. For each such 7780 element it must call the `add_archive_element' linker callback, and it 7781 must add the symbols from the object file to the linker hash table. 7782 (The callback may in fact indicate that a replacement BFD should be 7783 used, in which case the symbols from that BFD should be added to the 7784 linker hash table instead.) 7785 7786 In most cases the work of looking through the symbols in the archive 7787 should be done by the `_bfd_generic_link_add_archive_symbols' function. 7788 This function builds a hash table from the archive symbol table and 7789 looks through the list of undefined symbols to see which elements 7790 should be included. `_bfd_generic_link_add_archive_symbols' is passed 7791 a function to call to make the final decision about adding an archive 7792 element to the link and to do the actual work of adding the symbols to 7793 the linker hash table. 7794 7795 The function passed to `_bfd_generic_link_add_archive_symbols' must 7796 read the symbols of the archive element and decide whether the archive 7797 element should be included in the link. If the element is to be 7798 included, the `add_archive_element' linker callback routine must be 7799 called with the element as an argument, and the element's symbols must 7800 be added to the linker hash table just as though the element had itself 7801 been passed to the `_bfd_link_add_symbols' function. The 7802 `add_archive_element' callback has the option to indicate that it would 7803 like to replace the element archive with a substitute BFD, in which 7804 case it is the symbols of that substitute BFD that must be added to the 7805 linker hash table instead. 7806 7807 When the a.out `_bfd_link_add_symbols' function receives an archive, 7808 it calls `_bfd_generic_link_add_archive_symbols' passing 7809 `aout_link_check_archive_element' as the function argument. 7810 `aout_link_check_archive_element' calls `aout_link_check_ar_symbols'. 7811 If the latter decides to add the element (an element is only added if 7812 it provides a real, non-common, definition for a previously undefined 7813 or common symbol) it calls the `add_archive_element' callback and then 7814 `aout_link_check_archive_element' calls `aout_link_add_symbols' to 7815 actually add the symbols to the linker hash table - possibly those of a 7816 substitute BFD, if the `add_archive_element' callback avails itself of 7817 that option. 7818 7819 The ECOFF back end is unusual in that it does not normally call 7820 `_bfd_generic_link_add_archive_symbols', because ECOFF archives already 7821 contain a hash table of symbols. The ECOFF back end searches the 7822 archive itself to avoid the overhead of creating a new hash table. 7823 7824 7825 File: bfd.info, Node: Performing the Final Link, Prev: Adding Symbols to the Hash Table, Up: Linker Functions 7826 7827 2.17.3 Performing the final link 7828 -------------------------------- 7829 7830 When all the input files have been processed, the linker calls the 7831 `_bfd_final_link' entry point of the output BFD. This routine is 7832 responsible for producing the final output file, which has several 7833 aspects. It must relocate the contents of the input sections and copy 7834 the data into the output sections. It must build an output symbol 7835 table including any local symbols from the input files and the global 7836 symbols from the hash table. When producing relocatable output, it must 7837 modify the input relocs and write them into the output file. There may 7838 also be object format dependent work to be done. 7839 7840 The linker will also call the `write_object_contents' entry point 7841 when the BFD is closed. The two entry points must work together in 7842 order to produce the correct output file. 7843 7844 The details of how this works are inevitably dependent upon the 7845 specific object file format. The a.out `_bfd_final_link' routine is 7846 `NAME(aout,final_link)'. 7847 7848 * Menu: 7849 7850 * Information provided by the linker:: 7851 * Relocating the section contents:: 7852 * Writing the symbol table:: 7853 7854 7855 File: bfd.info, Node: Information provided by the linker, Next: Relocating the section contents, Prev: Performing the Final Link, Up: Performing the Final Link 7856 7857 2.17.3.1 Information provided by the linker 7858 ........................................... 7859 7860 Before the linker calls the `_bfd_final_link' entry point, it sets up 7861 some data structures for the function to use. 7862 7863 The `input_bfds' field of the `bfd_link_info' structure will point 7864 to a list of all the input files included in the link. These files are 7865 linked through the `link_next' field of the `bfd' structure. 7866 7867 Each section in the output file will have a list of `link_order' 7868 structures attached to the `map_head.link_order' field (the 7869 `link_order' structure is defined in `bfdlink.h'). These structures 7870 describe how to create the contents of the output section in terms of 7871 the contents of various input sections, fill constants, and, 7872 eventually, other types of information. They also describe relocs that 7873 must be created by the BFD backend, but do not correspond to any input 7874 file; this is used to support -Ur, which builds constructors while 7875 generating a relocatable object file. 7876 7877 7878 File: bfd.info, Node: Relocating the section contents, Next: Writing the symbol table, Prev: Information provided by the linker, Up: Performing the Final Link 7879 7880 2.17.3.2 Relocating the section contents 7881 ........................................ 7882 7883 The `_bfd_final_link' function should look through the `link_order' 7884 structures attached to each section of the output file. Each 7885 `link_order' structure should either be handled specially, or it should 7886 be passed to the function `_bfd_default_link_order' which will do the 7887 right thing (`_bfd_default_link_order' is defined in `linker.c'). 7888 7889 For efficiency, a `link_order' of type `bfd_indirect_link_order' 7890 whose associated section belongs to a BFD of the same format as the 7891 output BFD must be handled specially. This type of `link_order' 7892 describes part of an output section in terms of a section belonging to 7893 one of the input files. The `_bfd_final_link' function should read the 7894 contents of the section and any associated relocs, apply the relocs to 7895 the section contents, and write out the modified section contents. If 7896 performing a relocatable link, the relocs themselves must also be 7897 modified and written out. 7898 7899 The functions `_bfd_relocate_contents' and 7900 `_bfd_final_link_relocate' provide some general support for performing 7901 the actual relocations, notably overflow checking. Their arguments 7902 include information about the symbol the relocation is against and a 7903 `reloc_howto_type' argument which describes the relocation to perform. 7904 These functions are defined in `reloc.c'. 7905 7906 The a.out function which handles reading, relocating, and writing 7907 section contents is `aout_link_input_section'. The actual relocation 7908 is done in `aout_link_input_section_std' and 7909 `aout_link_input_section_ext'. 7910 7911 7912 File: bfd.info, Node: Writing the symbol table, Prev: Relocating the section contents, Up: Performing the Final Link 7913 7914 2.17.3.3 Writing the symbol table 7915 ................................. 7916 7917 The `_bfd_final_link' function must gather all the symbols in the input 7918 files and write them out. It must also write out all the symbols in 7919 the global hash table. This must be controlled by the `strip' and 7920 `discard' fields of the `bfd_link_info' structure. 7921 7922 The local symbols of the input files will not have been entered into 7923 the linker hash table. The `_bfd_final_link' routine must consider 7924 each input file and include the symbols in the output file. It may be 7925 convenient to do this when looking through the `link_order' structures, 7926 or it may be done by stepping through the `input_bfds' list. 7927 7928 The `_bfd_final_link' routine must also traverse the global hash 7929 table to gather all the externally visible symbols. It is possible 7930 that most of the externally visible symbols may be written out when 7931 considering the symbols of each input file, but it is still necessary 7932 to traverse the hash table since the linker script may have defined 7933 some symbols that are not in any of the input files. 7934 7935 The `strip' field of the `bfd_link_info' structure controls which 7936 symbols are written out. The possible values are listed in 7937 `bfdlink.h'. If the value is `strip_some', then the `keep_hash' field 7938 of the `bfd_link_info' structure is a hash table of symbols to keep; 7939 each symbol should be looked up in this hash table, and only symbols 7940 which are present should be included in the output file. 7941 7942 If the `strip' field of the `bfd_link_info' structure permits local 7943 symbols to be written out, the `discard' field is used to further 7944 controls which local symbols are included in the output file. If the 7945 value is `discard_l', then all local symbols which begin with a certain 7946 prefix are discarded; this is controlled by the 7947 `bfd_is_local_label_name' entry point. 7948 7949 The a.out backend handles symbols by calling 7950 `aout_link_write_symbols' on each input BFD and then traversing the 7951 global hash table with the function `aout_link_write_other_symbol'. It 7952 builds a string table while writing out the symbols, which is written 7953 to the output file at the end of `NAME(aout,final_link)'. 7954 7955 2.17.3.4 `bfd_link_split_section' 7956 ................................. 7957 7958 *Synopsis* 7959 bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec); 7960 *Description* 7961 Return nonzero if SEC should be split during a reloceatable or final 7962 link. 7963 #define bfd_link_split_section(abfd, sec) \ 7964 BFD_SEND (abfd, _bfd_link_split_section, (abfd, sec)) 7965 7966 2.17.3.5 `bfd_section_already_linked' 7967 ..................................... 7968 7969 *Synopsis* 7970 void bfd_section_already_linked (bfd *abfd, asection *sec, 7971 struct bfd_link_info *info); 7972 *Description* 7973 Check if SEC has been already linked during a reloceatable or final 7974 link. 7975 #define bfd_section_already_linked(abfd, sec, info) \ 7976 BFD_SEND (abfd, _section_already_linked, (abfd, sec, info)) 7977 7978 2.17.3.6 `bfd_generic_define_common_symbol' 7979 ........................................... 7980 7981 *Synopsis* 7982 bfd_boolean bfd_generic_define_common_symbol 7983 (bfd *output_bfd, struct bfd_link_info *info, 7984 struct bfd_link_hash_entry *h); 7985 *Description* 7986 Convert common symbol H into a defined symbol. Return TRUE on success 7987 and FALSE on failure. 7988 #define bfd_define_common_symbol(output_bfd, info, h) \ 7989 BFD_SEND (output_bfd, _bfd_define_common_symbol, (output_bfd, info, h)) 7990 7991 2.17.3.7 `bfd_find_version_for_sym ' 7992 .................................... 7993 7994 *Synopsis* 7995 struct bfd_elf_version_tree * bfd_find_version_for_sym 7996 (struct bfd_elf_version_tree *verdefs, 7997 const char *sym_name, bfd_boolean *hide); 7998 *Description* 7999 Search an elf version script tree for symbol versioning info and export 8000 / don't-export status for a given symbol. Return non-NULL on success 8001 and NULL on failure; also sets the output `hide' boolean parameter. 8002 8003 8004 File: bfd.info, Node: Hash Tables, Prev: Linker Functions, Up: BFD front end 8005 8006 2.18 Hash Tables 8007 ================ 8008 8009 BFD provides a simple set of hash table functions. Routines are 8010 provided to initialize a hash table, to free a hash table, to look up a 8011 string in a hash table and optionally create an entry for it, and to 8012 traverse a hash table. There is currently no routine to delete an 8013 string from a hash table. 8014 8015 The basic hash table does not permit any data to be stored with a 8016 string. However, a hash table is designed to present a base class from 8017 which other types of hash tables may be derived. These derived types 8018 may store additional information with the string. Hash tables were 8019 implemented in this way, rather than simply providing a data pointer in 8020 a hash table entry, because they were designed for use by the linker 8021 back ends. The linker may create thousands of hash table entries, and 8022 the overhead of allocating private data and storing and following 8023 pointers becomes noticeable. 8024 8025 The basic hash table code is in `hash.c'. 8026 8027 * Menu: 8028 8029 * Creating and Freeing a Hash Table:: 8030 * Looking Up or Entering a String:: 8031 * Traversing a Hash Table:: 8032 * Deriving a New Hash Table Type:: 8033 8034 8035 File: bfd.info, Node: Creating and Freeing a Hash Table, Next: Looking Up or Entering a String, Prev: Hash Tables, Up: Hash Tables 8036 8037 2.18.1 Creating and freeing a hash table 8038 ---------------------------------------- 8039 8040 To create a hash table, create an instance of a `struct bfd_hash_table' 8041 (defined in `bfd.h') and call `bfd_hash_table_init' (if you know 8042 approximately how many entries you will need, the function 8043 `bfd_hash_table_init_n', which takes a SIZE argument, may be used). 8044 `bfd_hash_table_init' returns `FALSE' if some sort of error occurs. 8045 8046 The function `bfd_hash_table_init' take as an argument a function to 8047 use to create new entries. For a basic hash table, use the function 8048 `bfd_hash_newfunc'. *Note Deriving a New Hash Table Type::, for why 8049 you would want to use a different value for this argument. 8050 8051 `bfd_hash_table_init' will create an objalloc which will be used to 8052 allocate new entries. You may allocate memory on this objalloc using 8053 `bfd_hash_allocate'. 8054 8055 Use `bfd_hash_table_free' to free up all the memory that has been 8056 allocated for a hash table. This will not free up the `struct 8057 bfd_hash_table' itself, which you must provide. 8058 8059 Use `bfd_hash_set_default_size' to set the default size of hash 8060 table to use. 8061 8062 8063 File: bfd.info, Node: Looking Up or Entering a String, Next: Traversing a Hash Table, Prev: Creating and Freeing a Hash Table, Up: Hash Tables 8064 8065 2.18.2 Looking up or entering a string 8066 -------------------------------------- 8067 8068 The function `bfd_hash_lookup' is used both to look up a string in the 8069 hash table and to create a new entry. 8070 8071 If the CREATE argument is `FALSE', `bfd_hash_lookup' will look up a 8072 string. If the string is found, it will returns a pointer to a `struct 8073 bfd_hash_entry'. If the string is not found in the table 8074 `bfd_hash_lookup' will return `NULL'. You should not modify any of the 8075 fields in the returns `struct bfd_hash_entry'. 8076 8077 If the CREATE argument is `TRUE', the string will be entered into 8078 the hash table if it is not already there. Either way a pointer to a 8079 `struct bfd_hash_entry' will be returned, either to the existing 8080 structure or to a newly created one. In this case, a `NULL' return 8081 means that an error occurred. 8082 8083 If the CREATE argument is `TRUE', and a new entry is created, the 8084 COPY argument is used to decide whether to copy the string onto the 8085 hash table objalloc or not. If COPY is passed as `FALSE', you must be 8086 careful not to deallocate or modify the string as long as the hash table 8087 exists. 8088 8089 8090 File: bfd.info, Node: Traversing a Hash Table, Next: Deriving a New Hash Table Type, Prev: Looking Up or Entering a String, Up: Hash Tables 8091 8092 2.18.3 Traversing a hash table 8093 ------------------------------ 8094 8095 The function `bfd_hash_traverse' may be used to traverse a hash table, 8096 calling a function on each element. The traversal is done in a random 8097 order. 8098 8099 `bfd_hash_traverse' takes as arguments a function and a generic 8100 `void *' pointer. The function is called with a hash table entry (a 8101 `struct bfd_hash_entry *') and the generic pointer passed to 8102 `bfd_hash_traverse'. The function must return a `boolean' value, which 8103 indicates whether to continue traversing the hash table. If the 8104 function returns `FALSE', `bfd_hash_traverse' will stop the traversal 8105 and return immediately. 8106 8107 8108 File: bfd.info, Node: Deriving a New Hash Table Type, Prev: Traversing a Hash Table, Up: Hash Tables 8109 8110 2.18.4 Deriving a new hash table type 8111 ------------------------------------- 8112 8113 Many uses of hash tables want to store additional information which 8114 each entry in the hash table. Some also find it convenient to store 8115 additional information with the hash table itself. This may be done 8116 using a derived hash table. 8117 8118 Since C is not an object oriented language, creating a derived hash 8119 table requires sticking together some boilerplate routines with a few 8120 differences specific to the type of hash table you want to create. 8121 8122 An example of a derived hash table is the linker hash table. The 8123 structures for this are defined in `bfdlink.h'. The functions are in 8124 `linker.c'. 8125 8126 You may also derive a hash table from an already derived hash table. 8127 For example, the a.out linker backend code uses a hash table derived 8128 from the linker hash table. 8129 8130 * Menu: 8131 8132 * Define the Derived Structures:: 8133 * Write the Derived Creation Routine:: 8134 * Write Other Derived Routines:: 8135 8136 8137 File: bfd.info, Node: Define the Derived Structures, Next: Write the Derived Creation Routine, Prev: Deriving a New Hash Table Type, Up: Deriving a New Hash Table Type 8138 8139 2.18.4.1 Define the derived structures 8140 ...................................... 8141 8142 You must define a structure for an entry in the hash table, and a 8143 structure for the hash table itself. 8144 8145 The first field in the structure for an entry in the hash table must 8146 be of the type used for an entry in the hash table you are deriving 8147 from. If you are deriving from a basic hash table this is `struct 8148 bfd_hash_entry', which is defined in `bfd.h'. The first field in the 8149 structure for the hash table itself must be of the type of the hash 8150 table you are deriving from itself. If you are deriving from a basic 8151 hash table, this is `struct bfd_hash_table'. 8152 8153 For example, the linker hash table defines `struct 8154 bfd_link_hash_entry' (in `bfdlink.h'). The first field, `root', is of 8155 type `struct bfd_hash_entry'. Similarly, the first field in `struct 8156 bfd_link_hash_table', `table', is of type `struct bfd_hash_table'. 8157 8158 8159 File: bfd.info, Node: Write the Derived Creation Routine, Next: Write Other Derived Routines, Prev: Define the Derived Structures, Up: Deriving a New Hash Table Type 8160 8161 2.18.4.2 Write the derived creation routine 8162 ........................................... 8163 8164 You must write a routine which will create and initialize an entry in 8165 the hash table. This routine is passed as the function argument to 8166 `bfd_hash_table_init'. 8167 8168 In order to permit other hash tables to be derived from the hash 8169 table you are creating, this routine must be written in a standard way. 8170 8171 The first argument to the creation routine is a pointer to a hash 8172 table entry. This may be `NULL', in which case the routine should 8173 allocate the right amount of space. Otherwise the space has already 8174 been allocated by a hash table type derived from this one. 8175 8176 After allocating space, the creation routine must call the creation 8177 routine of the hash table type it is derived from, passing in a pointer 8178 to the space it just allocated. This will initialize any fields used 8179 by the base hash table. 8180 8181 Finally the creation routine must initialize any local fields for 8182 the new hash table type. 8183 8184 Here is a boilerplate example of a creation routine. FUNCTION_NAME 8185 is the name of the routine. ENTRY_TYPE is the type of an entry in the 8186 hash table you are creating. BASE_NEWFUNC is the name of the creation 8187 routine of the hash table type your hash table is derived from. 8188 8189 struct bfd_hash_entry * 8190 FUNCTION_NAME (struct bfd_hash_entry *entry, 8191 struct bfd_hash_table *table, 8192 const char *string) 8193 { 8194 struct ENTRY_TYPE *ret = (ENTRY_TYPE *) entry; 8195 8196 /* Allocate the structure if it has not already been allocated by a 8197 derived class. */ 8198 if (ret == NULL) 8199 { 8200 ret = bfd_hash_allocate (table, sizeof (* ret)); 8201 if (ret == NULL) 8202 return NULL; 8203 } 8204 8205 /* Call the allocation method of the base class. */ 8206 ret = ((ENTRY_TYPE *) 8207 BASE_NEWFUNC ((struct bfd_hash_entry *) ret, table, string)); 8208 8209 /* Initialize the local fields here. */ 8210 8211 return (struct bfd_hash_entry *) ret; 8212 } 8213 *Description* 8214 The creation routine for the linker hash table, which is in `linker.c', 8215 looks just like this example. FUNCTION_NAME is 8216 `_bfd_link_hash_newfunc'. ENTRY_TYPE is `struct bfd_link_hash_entry'. 8217 BASE_NEWFUNC is `bfd_hash_newfunc', the creation routine for a basic 8218 hash table. 8219 8220 `_bfd_link_hash_newfunc' also initializes the local fields in a 8221 linker hash table entry: `type', `written' and `next'. 8222 8223 8224 File: bfd.info, Node: Write Other Derived Routines, Prev: Write the Derived Creation Routine, Up: Deriving a New Hash Table Type 8225 8226 2.18.4.3 Write other derived routines 8227 ..................................... 8228 8229 You will want to write other routines for your new hash table, as well. 8230 8231 You will want an initialization routine which calls the 8232 initialization routine of the hash table you are deriving from and 8233 initializes any other local fields. For the linker hash table, this is 8234 `_bfd_link_hash_table_init' in `linker.c'. 8235 8236 You will want a lookup routine which calls the lookup routine of the 8237 hash table you are deriving from and casts the result. The linker hash 8238 table uses `bfd_link_hash_lookup' in `linker.c' (this actually takes an 8239 additional argument which it uses to decide how to return the looked up 8240 value). 8241 8242 You may want a traversal routine. This should just call the 8243 traversal routine of the hash table you are deriving from with 8244 appropriate casts. The linker hash table uses `bfd_link_hash_traverse' 8245 in `linker.c'. 8246 8247 These routines may simply be defined as macros. For example, the 8248 a.out backend linker hash table, which is derived from the linker hash 8249 table, uses macros for the lookup and traversal routines. These are 8250 `aout_link_hash_lookup' and `aout_link_hash_traverse' in aoutx.h. 8251 8252 8253 File: bfd.info, Node: BFD back ends, Next: GNU Free Documentation License, Prev: BFD front end, Up: Top 8254 8255 3 BFD back ends 8256 *************** 8257 8258 * Menu: 8259 8260 * What to Put Where:: 8261 * aout :: a.out backends 8262 * coff :: coff backends 8263 * elf :: elf backends 8264 * mmo :: mmo backend 8265 8266 8267 File: bfd.info, Node: What to Put Where, Next: aout, Prev: BFD back ends, Up: BFD back ends 8268 8269 3.1 What to Put Where 8270 ===================== 8271 8272 All of BFD lives in one directory. 8273 8274 8275 File: bfd.info, Node: aout, Next: coff, Prev: What to Put Where, Up: BFD back ends 8276 8277 3.2 a.out backends 8278 ================== 8279 8280 *Description* 8281 BFD supports a number of different flavours of a.out format, though the 8282 major differences are only the sizes of the structures on disk, and the 8283 shape of the relocation information. 8284 8285 The support is split into a basic support file `aoutx.h' and other 8286 files which derive functions from the base. One derivation file is 8287 `aoutf1.h' (for a.out flavour 1), and adds to the basic a.out functions 8288 support for sun3, sun4, 386 and 29k a.out files, to create a target 8289 jump vector for a specific target. 8290 8291 This information is further split out into more specific files for 8292 each machine, including `sunos.c' for sun3 and sun4, `newsos3.c' for 8293 the Sony NEWS, and `demo64.c' for a demonstration of a 64 bit a.out 8294 format. 8295 8296 The base file `aoutx.h' defines general mechanisms for reading and 8297 writing records to and from disk and various other methods which BFD 8298 requires. It is included by `aout32.c' and `aout64.c' to form the names 8299 `aout_32_swap_exec_header_in', `aout_64_swap_exec_header_in', etc. 8300 8301 As an example, this is what goes on to make the back end for a sun4, 8302 from `aout32.c': 8303 8304 #define ARCH_SIZE 32 8305 #include "aoutx.h" 8306 8307 Which exports names: 8308 8309 ... 8310 aout_32_canonicalize_reloc 8311 aout_32_find_nearest_line 8312 aout_32_get_lineno 8313 aout_32_get_reloc_upper_bound 8314 ... 8315 8316 from `sunos.c': 8317 8318 #define TARGET_NAME "a.out-sunos-big" 8319 #define VECNAME sunos_big_vec 8320 #include "aoutf1.h" 8321 8322 requires all the names from `aout32.c', and produces the jump vector 8323 8324 sunos_big_vec 8325 8326 The file `host-aout.c' is a special case. It is for a large set of 8327 hosts that use "more or less standard" a.out files, and for which 8328 cross-debugging is not interesting. It uses the standard 32-bit a.out 8329 support routines, but determines the file offsets and addresses of the 8330 text, data, and BSS sections, the machine architecture and machine 8331 type, and the entry point address, in a host-dependent manner. Once 8332 these values have been determined, generic code is used to handle the 8333 object file. 8334 8335 When porting it to run on a new system, you must supply: 8336 8337 HOST_PAGE_SIZE 8338 HOST_SEGMENT_SIZE 8339 HOST_MACHINE_ARCH (optional) 8340 HOST_MACHINE_MACHINE (optional) 8341 HOST_TEXT_START_ADDR 8342 HOST_STACK_END_ADDR 8343 8344 in the file `../include/sys/h-XXX.h' (for your host). These values, 8345 plus the structures and macros defined in `a.out.h' on your host 8346 system, will produce a BFD target that will access ordinary a.out files 8347 on your host. To configure a new machine to use `host-aout.c', specify: 8348 8349 TDEFAULTS = -DDEFAULT_VECTOR=host_aout_big_vec 8350 TDEPFILES= host-aout.o trad-core.o 8351 8352 in the `config/XXX.mt' file, and modify `configure.in' to use the 8353 `XXX.mt' file (by setting "`bfd_target=XXX'") when your configuration 8354 is selected. 8355 8356 3.2.1 Relocations 8357 ----------------- 8358 8359 *Description* 8360 The file `aoutx.h' provides for both the _standard_ and _extended_ 8361 forms of a.out relocation records. 8362 8363 The standard records contain only an address, a symbol index, and a 8364 type field. The extended records (used on 29ks and sparcs) also have a 8365 full integer for an addend. 8366 8367 3.2.2 Internal entry points 8368 --------------------------- 8369 8370 *Description* 8371 `aoutx.h' exports several routines for accessing the contents of an 8372 a.out file, which are gathered and exported in turn by various format 8373 specific files (eg sunos.c). 8374 8375 3.2.2.1 `aout_SIZE_swap_exec_header_in' 8376 ....................................... 8377 8378 *Synopsis* 8379 void aout_SIZE_swap_exec_header_in, 8380 (bfd *abfd, 8381 struct external_exec *bytes, 8382 struct internal_exec *execp); 8383 *Description* 8384 Swap the information in an executable header RAW_BYTES taken from a raw 8385 byte stream memory image into the internal exec header structure EXECP. 8386 8387 3.2.2.2 `aout_SIZE_swap_exec_header_out' 8388 ........................................ 8389 8390 *Synopsis* 8391 void aout_SIZE_swap_exec_header_out 8392 (bfd *abfd, 8393 struct internal_exec *execp, 8394 struct external_exec *raw_bytes); 8395 *Description* 8396 Swap the information in an internal exec header structure EXECP into 8397 the buffer RAW_BYTES ready for writing to disk. 8398 8399 3.2.2.3 `aout_SIZE_some_aout_object_p' 8400 ...................................... 8401 8402 *Synopsis* 8403 const bfd_target *aout_SIZE_some_aout_object_p 8404 (bfd *abfd, 8405 struct internal_exec *execp, 8406 const bfd_target *(*callback_to_real_object_p) (bfd *)); 8407 *Description* 8408 Some a.out variant thinks that the file open in ABFD checking is an 8409 a.out file. Do some more checking, and set up for access if it really 8410 is. Call back to the calling environment's "finish up" function just 8411 before returning, to handle any last-minute setup. 8412 8413 3.2.2.4 `aout_SIZE_mkobject' 8414 ............................ 8415 8416 *Synopsis* 8417 bfd_boolean aout_SIZE_mkobject, (bfd *abfd); 8418 *Description* 8419 Initialize BFD ABFD for use with a.out files. 8420 8421 3.2.2.5 `aout_SIZE_machine_type' 8422 ................................ 8423 8424 *Synopsis* 8425 enum machine_type aout_SIZE_machine_type 8426 (enum bfd_architecture arch, 8427 unsigned long machine, 8428 bfd_boolean *unknown); 8429 *Description* 8430 Keep track of machine architecture and machine type for a.out's. Return 8431 the `machine_type' for a particular architecture and machine, or 8432 `M_UNKNOWN' if that exact architecture and machine can't be represented 8433 in a.out format. 8434 8435 If the architecture is understood, machine type 0 (default) is 8436 always understood. 8437 8438 3.2.2.6 `aout_SIZE_set_arch_mach' 8439 ................................. 8440 8441 *Synopsis* 8442 bfd_boolean aout_SIZE_set_arch_mach, 8443 (bfd *, 8444 enum bfd_architecture arch, 8445 unsigned long machine); 8446 *Description* 8447 Set the architecture and the machine of the BFD ABFD to the values ARCH 8448 and MACHINE. Verify that ABFD's format can support the architecture 8449 required. 8450 8451 3.2.2.7 `aout_SIZE_new_section_hook' 8452 .................................... 8453 8454 *Synopsis* 8455 bfd_boolean aout_SIZE_new_section_hook, 8456 (bfd *abfd, 8457 asection *newsect); 8458 *Description* 8459 Called by the BFD in response to a `bfd_make_section' request. 8460 8461 8462 File: bfd.info, Node: coff, Next: elf, Prev: aout, Up: BFD back ends 8463 8464 3.3 coff backends 8465 ================= 8466 8467 BFD supports a number of different flavours of coff format. The major 8468 differences between formats are the sizes and alignments of fields in 8469 structures on disk, and the occasional extra field. 8470 8471 Coff in all its varieties is implemented with a few common files and 8472 a number of implementation specific files. For example, The 88k bcs 8473 coff format is implemented in the file `coff-m88k.c'. This file 8474 `#include's `coff/m88k.h' which defines the external structure of the 8475 coff format for the 88k, and `coff/internal.h' which defines the 8476 internal structure. `coff-m88k.c' also defines the relocations used by 8477 the 88k format *Note Relocations::. 8478 8479 The Intel i960 processor version of coff is implemented in 8480 `coff-i960.c'. This file has the same structure as `coff-m88k.c', 8481 except that it includes `coff/i960.h' rather than `coff-m88k.h'. 8482 8483 3.3.1 Porting to a new version of coff 8484 -------------------------------------- 8485 8486 The recommended method is to select from the existing implementations 8487 the version of coff which is most like the one you want to use. For 8488 example, we'll say that i386 coff is the one you select, and that your 8489 coff flavour is called foo. Copy `i386coff.c' to `foocoff.c', copy 8490 `../include/coff/i386.h' to `../include/coff/foo.h', and add the lines 8491 to `targets.c' and `Makefile.in' so that your new back end is used. 8492 Alter the shapes of the structures in `../include/coff/foo.h' so that 8493 they match what you need. You will probably also have to add `#ifdef's 8494 to the code in `coff/internal.h' and `coffcode.h' if your version of 8495 coff is too wild. 8496 8497 You can verify that your new BFD backend works quite simply by 8498 building `objdump' from the `binutils' directory, and making sure that 8499 its version of what's going on and your host system's idea (assuming it 8500 has the pretty standard coff dump utility, usually called `att-dump' or 8501 just `dump') are the same. Then clean up your code, and send what 8502 you've done to Cygnus. Then your stuff will be in the next release, and 8503 you won't have to keep integrating it. 8504 8505 3.3.2 How the coff backend works 8506 -------------------------------- 8507 8508 3.3.2.1 File layout 8509 ................... 8510 8511 The Coff backend is split into generic routines that are applicable to 8512 any Coff target and routines that are specific to a particular target. 8513 The target-specific routines are further split into ones which are 8514 basically the same for all Coff targets except that they use the 8515 external symbol format or use different values for certain constants. 8516 8517 The generic routines are in `coffgen.c'. These routines work for 8518 any Coff target. They use some hooks into the target specific code; 8519 the hooks are in a `bfd_coff_backend_data' structure, one of which 8520 exists for each target. 8521 8522 The essentially similar target-specific routines are in 8523 `coffcode.h'. This header file includes executable C code. The 8524 various Coff targets first include the appropriate Coff header file, 8525 make any special defines that are needed, and then include `coffcode.h'. 8526 8527 Some of the Coff targets then also have additional routines in the 8528 target source file itself. 8529 8530 For example, `coff-i960.c' includes `coff/internal.h' and 8531 `coff/i960.h'. It then defines a few constants, such as `I960', and 8532 includes `coffcode.h'. Since the i960 has complex relocation types, 8533 `coff-i960.c' also includes some code to manipulate the i960 relocs. 8534 This code is not in `coffcode.h' because it would not be used by any 8535 other target. 8536 8537 3.3.2.2 Coff long section names 8538 ............................... 8539 8540 In the standard Coff object format, section names are limited to the 8541 eight bytes available in the `s_name' field of the `SCNHDR' section 8542 header structure. The format requires the field to be NUL-padded, but 8543 not necessarily NUL-terminated, so the longest section names permitted 8544 are a full eight characters. 8545 8546 The Microsoft PE variants of the Coff object file format add an 8547 extension to support the use of long section names. This extension is 8548 defined in section 4 of the Microsoft PE/COFF specification (rev 8.1). 8549 If a section name is too long to fit into the section header's `s_name' 8550 field, it is instead placed into the string table, and the `s_name' 8551 field is filled with a slash ("/") followed by the ASCII decimal 8552 representation of the offset of the full name relative to the string 8553 table base. 8554 8555 Note that this implies that the extension can only be used in object 8556 files, as executables do not contain a string table. The standard 8557 specifies that long section names from objects emitted into executable 8558 images are to be truncated. 8559 8560 However, as a GNU extension, BFD can generate executable images that 8561 contain a string table and long section names. This would appear to be 8562 technically valid, as the standard only says that Coff debugging 8563 information is deprecated, not forbidden, and in practice it works, 8564 although some tools that parse PE files expecting the MS standard 8565 format may become confused; `PEview' is one known example. 8566 8567 The functionality is supported in BFD by code implemented under the 8568 control of the macro `COFF_LONG_SECTION_NAMES'. If not defined, the 8569 format does not support long section names in any way. If defined, it 8570 is used to initialise a flag, `_bfd_coff_long_section_names', and a 8571 hook function pointer, `_bfd_coff_set_long_section_names', in the Coff 8572 backend data structure. The flag controls the generation of long 8573 section names in output BFDs at runtime; if it is false, as it will be 8574 by default when generating an executable image, long section names are 8575 truncated; if true, the long section names extension is employed. The 8576 hook points to a function that allows the value of the flag to be 8577 altered at runtime, on formats that support long section names at all; 8578 on other formats it points to a stub that returns an error indication. 8579 With input BFDs, the flag is set according to whether any long section 8580 names are detected while reading the section headers. For a completely 8581 new BFD, the flag is set to the default for the target format. This 8582 information can be used by a client of the BFD library when deciding 8583 what output format to generate, and means that a BFD that is opened for 8584 read and subsequently converted to a writeable BFD and modified 8585 in-place will retain whatever format it had on input. 8586 8587 If `COFF_LONG_SECTION_NAMES' is simply defined (blank), or is 8588 defined to the value "1", then long section names are enabled by 8589 default; if it is defined to the value zero, they are disabled by 8590 default (but still accepted in input BFDs). The header `coffcode.h' 8591 defines a macro, `COFF_DEFAULT_LONG_SECTION_NAMES', which is used in 8592 the backends to initialise the backend data structure fields 8593 appropriately; see the comments for further detail. 8594 8595 3.3.2.3 Bit twiddling 8596 ..................... 8597 8598 Each flavour of coff supported in BFD has its own header file 8599 describing the external layout of the structures. There is also an 8600 internal description of the coff layout, in `coff/internal.h'. A major 8601 function of the coff backend is swapping the bytes and twiddling the 8602 bits to translate the external form of the structures into the normal 8603 internal form. This is all performed in the `bfd_swap'_thing_direction 8604 routines. Some elements are different sizes between different versions 8605 of coff; it is the duty of the coff version specific include file to 8606 override the definitions of various packing routines in `coffcode.h'. 8607 E.g., the size of line number entry in coff is sometimes 16 bits, and 8608 sometimes 32 bits. `#define'ing `PUT_LNSZ_LNNO' and `GET_LNSZ_LNNO' 8609 will select the correct one. No doubt, some day someone will find a 8610 version of coff which has a varying field size not catered to at the 8611 moment. To port BFD, that person will have to add more `#defines'. 8612 Three of the bit twiddling routines are exported to `gdb'; 8613 `coff_swap_aux_in', `coff_swap_sym_in' and `coff_swap_lineno_in'. `GDB' 8614 reads the symbol table on its own, but uses BFD to fix things up. More 8615 of the bit twiddlers are exported for `gas'; `coff_swap_aux_out', 8616 `coff_swap_sym_out', `coff_swap_lineno_out', `coff_swap_reloc_out', 8617 `coff_swap_filehdr_out', `coff_swap_aouthdr_out', 8618 `coff_swap_scnhdr_out'. `Gas' currently keeps track of all the symbol 8619 table and reloc drudgery itself, thereby saving the internal BFD 8620 overhead, but uses BFD to swap things on the way out, making cross 8621 ports much safer. Doing so also allows BFD (and thus the linker) to 8622 use the same header files as `gas', which makes one avenue to disaster 8623 disappear. 8624 8625 3.3.2.4 Symbol reading 8626 ...................... 8627 8628 The simple canonical form for symbols used by BFD is not rich enough to 8629 keep all the information available in a coff symbol table. The back end 8630 gets around this problem by keeping the original symbol table around, 8631 "behind the scenes". 8632 8633 When a symbol table is requested (through a call to 8634 `bfd_canonicalize_symtab'), a request gets through to 8635 `coff_get_normalized_symtab'. This reads the symbol table from the coff 8636 file and swaps all the structures inside into the internal form. It 8637 also fixes up all the pointers in the table (represented in the file by 8638 offsets from the first symbol in the table) into physical pointers to 8639 elements in the new internal table. This involves some work since the 8640 meanings of fields change depending upon context: a field that is a 8641 pointer to another structure in the symbol table at one moment may be 8642 the size in bytes of a structure at the next. Another pass is made 8643 over the table. All symbols which mark file names (`C_FILE' symbols) 8644 are modified so that the internal string points to the value in the 8645 auxent (the real filename) rather than the normal text associated with 8646 the symbol (`".file"'). 8647 8648 At this time the symbol names are moved around. Coff stores all 8649 symbols less than nine characters long physically within the symbol 8650 table; longer strings are kept at the end of the file in the string 8651 table. This pass moves all strings into memory and replaces them with 8652 pointers to the strings. 8653 8654 The symbol table is massaged once again, this time to create the 8655 canonical table used by the BFD application. Each symbol is inspected 8656 in turn, and a decision made (using the `sclass' field) about the 8657 various flags to set in the `asymbol'. *Note Symbols::. The generated 8658 canonical table shares strings with the hidden internal symbol table. 8659 8660 Any linenumbers are read from the coff file too, and attached to the 8661 symbols which own the functions the linenumbers belong to. 8662 8663 3.3.2.5 Symbol writing 8664 ...................... 8665 8666 Writing a symbol to a coff file which didn't come from a coff file will 8667 lose any debugging information. The `asymbol' structure remembers the 8668 BFD from which the symbol was taken, and on output the back end makes 8669 sure that the same destination target as source target is present. 8670 8671 When the symbols have come from a coff file then all the debugging 8672 information is preserved. 8673 8674 Symbol tables are provided for writing to the back end in a vector 8675 of pointers to pointers. This allows applications like the linker to 8676 accumulate and output large symbol tables without having to do too much 8677 byte copying. 8678 8679 This function runs through the provided symbol table and patches 8680 each symbol marked as a file place holder (`C_FILE') to point to the 8681 next file place holder in the list. It also marks each `offset' field 8682 in the list with the offset from the first symbol of the current symbol. 8683 8684 Another function of this procedure is to turn the canonical value 8685 form of BFD into the form used by coff. Internally, BFD expects symbol 8686 values to be offsets from a section base; so a symbol physically at 8687 0x120, but in a section starting at 0x100, would have the value 0x20. 8688 Coff expects symbols to contain their final value, so symbols have 8689 their values changed at this point to reflect their sum with their 8690 owning section. This transformation uses the `output_section' field of 8691 the `asymbol''s `asection' *Note Sections::. 8692 8693 * `coff_mangle_symbols' 8694 This routine runs though the provided symbol table and uses the 8695 offsets generated by the previous pass and the pointers generated when 8696 the symbol table was read in to create the structured hierarchy 8697 required by coff. It changes each pointer to a symbol into the index 8698 into the symbol table of the asymbol. 8699 8700 * `coff_write_symbols' 8701 This routine runs through the symbol table and patches up the 8702 symbols from their internal form into the coff way, calls the bit 8703 twiddlers, and writes out the table to the file. 8704 8705 3.3.2.6 `coff_symbol_type' 8706 .......................... 8707 8708 *Description* 8709 The hidden information for an `asymbol' is described in a 8710 `combined_entry_type': 8711 8712 8713 typedef struct coff_ptr_struct 8714 { 8715 /* Remembers the offset from the first symbol in the file for 8716 this symbol. Generated by coff_renumber_symbols. */ 8717 unsigned int offset; 8718 8719 /* Should the value of this symbol be renumbered. Used for 8720 XCOFF C_BSTAT symbols. Set by coff_slurp_symbol_table. */ 8721 unsigned int fix_value : 1; 8722 8723 /* Should the tag field of this symbol be renumbered. 8724 Created by coff_pointerize_aux. */ 8725 unsigned int fix_tag : 1; 8726 8727 /* Should the endidx field of this symbol be renumbered. 8728 Created by coff_pointerize_aux. */ 8729 unsigned int fix_end : 1; 8730 8731 /* Should the x_csect.x_scnlen field be renumbered. 8732 Created by coff_pointerize_aux. */ 8733 unsigned int fix_scnlen : 1; 8734 8735 /* Fix up an XCOFF C_BINCL/C_EINCL symbol. The value is the 8736 index into the line number entries. Set by coff_slurp_symbol_table. */ 8737 unsigned int fix_line : 1; 8738 8739 /* The container for the symbol structure as read and translated 8740 from the file. */ 8741 union 8742 { 8743 union internal_auxent auxent; 8744 struct internal_syment syment; 8745 } u; 8746 } combined_entry_type; 8747 8748 8749 /* Each canonical asymbol really looks like this: */ 8750 8751 typedef struct coff_symbol_struct 8752 { 8753 /* The actual symbol which the rest of BFD works with */ 8754 asymbol symbol; 8755 8756 /* A pointer to the hidden information for this symbol */ 8757 combined_entry_type *native; 8758 8759 /* A pointer to the linenumber information for this symbol */ 8760 struct lineno_cache_entry *lineno; 8761 8762 /* Have the line numbers been relocated yet ? */ 8763 bfd_boolean done_lineno; 8764 } coff_symbol_type; 8765 8766 3.3.2.7 `bfd_coff_backend_data' 8767 ............................... 8768 8769 /* COFF symbol classifications. */ 8770 8771 enum coff_symbol_classification 8772 { 8773 /* Global symbol. */ 8774 COFF_SYMBOL_GLOBAL, 8775 /* Common symbol. */ 8776 COFF_SYMBOL_COMMON, 8777 /* Undefined symbol. */ 8778 COFF_SYMBOL_UNDEFINED, 8779 /* Local symbol. */ 8780 COFF_SYMBOL_LOCAL, 8781 /* PE section symbol. */ 8782 COFF_SYMBOL_PE_SECTION 8783 }; 8784 Special entry points for gdb to swap in coff symbol table parts: 8785 typedef struct 8786 { 8787 void (*_bfd_coff_swap_aux_in) 8788 (bfd *, void *, int, int, int, int, void *); 8789 8790 void (*_bfd_coff_swap_sym_in) 8791 (bfd *, void *, void *); 8792 8793 void (*_bfd_coff_swap_lineno_in) 8794 (bfd *, void *, void *); 8795 8796 unsigned int (*_bfd_coff_swap_aux_out) 8797 (bfd *, void *, int, int, int, int, void *); 8798 8799 unsigned int (*_bfd_coff_swap_sym_out) 8800 (bfd *, void *, void *); 8801 8802 unsigned int (*_bfd_coff_swap_lineno_out) 8803 (bfd *, void *, void *); 8804 8805 unsigned int (*_bfd_coff_swap_reloc_out) 8806 (bfd *, void *, void *); 8807 8808 unsigned int (*_bfd_coff_swap_filehdr_out) 8809 (bfd *, void *, void *); 8810 8811 unsigned int (*_bfd_coff_swap_aouthdr_out) 8812 (bfd *, void *, void *); 8813 8814 unsigned int (*_bfd_coff_swap_scnhdr_out) 8815 (bfd *, void *, void *); 8816 8817 unsigned int _bfd_filhsz; 8818 unsigned int _bfd_aoutsz; 8819 unsigned int _bfd_scnhsz; 8820 unsigned int _bfd_symesz; 8821 unsigned int _bfd_auxesz; 8822 unsigned int _bfd_relsz; 8823 unsigned int _bfd_linesz; 8824 unsigned int _bfd_filnmlen; 8825 bfd_boolean _bfd_coff_long_filenames; 8826 8827 bfd_boolean _bfd_coff_long_section_names; 8828 bfd_boolean (*_bfd_coff_set_long_section_names) 8829 (bfd *, int); 8830 8831 unsigned int _bfd_coff_default_section_alignment_power; 8832 bfd_boolean _bfd_coff_force_symnames_in_strings; 8833 unsigned int _bfd_coff_debug_string_prefix_length; 8834 8835 void (*_bfd_coff_swap_filehdr_in) 8836 (bfd *, void *, void *); 8837 8838 void (*_bfd_coff_swap_aouthdr_in) 8839 (bfd *, void *, void *); 8840 8841 void (*_bfd_coff_swap_scnhdr_in) 8842 (bfd *, void *, void *); 8843 8844 void (*_bfd_coff_swap_reloc_in) 8845 (bfd *abfd, void *, void *); 8846 8847 bfd_boolean (*_bfd_coff_bad_format_hook) 8848 (bfd *, void *); 8849 8850 bfd_boolean (*_bfd_coff_set_arch_mach_hook) 8851 (bfd *, void *); 8852 8853 void * (*_bfd_coff_mkobject_hook) 8854 (bfd *, void *, void *); 8855 8856 bfd_boolean (*_bfd_styp_to_sec_flags_hook) 8857 (bfd *, void *, const char *, asection *, flagword *); 8858 8859 void (*_bfd_set_alignment_hook) 8860 (bfd *, asection *, void *); 8861 8862 bfd_boolean (*_bfd_coff_slurp_symbol_table) 8863 (bfd *); 8864 8865 bfd_boolean (*_bfd_coff_symname_in_debug) 8866 (bfd *, struct internal_syment *); 8867 8868 bfd_boolean (*_bfd_coff_pointerize_aux_hook) 8869 (bfd *, combined_entry_type *, combined_entry_type *, 8870 unsigned int, combined_entry_type *); 8871 8872 bfd_boolean (*_bfd_coff_print_aux) 8873 (bfd *, FILE *, combined_entry_type *, combined_entry_type *, 8874 combined_entry_type *, unsigned int); 8875 8876 void (*_bfd_coff_reloc16_extra_cases) 8877 (bfd *, struct bfd_link_info *, struct bfd_link_order *, arelent *, 8878 bfd_byte *, unsigned int *, unsigned int *); 8879 8880 int (*_bfd_coff_reloc16_estimate) 8881 (bfd *, asection *, arelent *, unsigned int, 8882 struct bfd_link_info *); 8883 8884 enum coff_symbol_classification (*_bfd_coff_classify_symbol) 8885 (bfd *, struct internal_syment *); 8886 8887 bfd_boolean (*_bfd_coff_compute_section_file_positions) 8888 (bfd *); 8889 8890 bfd_boolean (*_bfd_coff_start_final_link) 8891 (bfd *, struct bfd_link_info *); 8892 8893 bfd_boolean (*_bfd_coff_relocate_section) 8894 (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, 8895 struct internal_reloc *, struct internal_syment *, asection **); 8896 8897 reloc_howto_type *(*_bfd_coff_rtype_to_howto) 8898 (bfd *, asection *, struct internal_reloc *, 8899 struct coff_link_hash_entry *, struct internal_syment *, 8900 bfd_vma *); 8901 8902 bfd_boolean (*_bfd_coff_adjust_symndx) 8903 (bfd *, struct bfd_link_info *, bfd *, asection *, 8904 struct internal_reloc *, bfd_boolean *); 8905 8906 bfd_boolean (*_bfd_coff_link_add_one_symbol) 8907 (struct bfd_link_info *, bfd *, const char *, flagword, 8908 asection *, bfd_vma, const char *, bfd_boolean, bfd_boolean, 8909 struct bfd_link_hash_entry **); 8910 8911 bfd_boolean (*_bfd_coff_link_output_has_begun) 8912 (bfd *, struct coff_final_link_info *); 8913 8914 bfd_boolean (*_bfd_coff_final_link_postscript) 8915 (bfd *, struct coff_final_link_info *); 8916 8917 bfd_boolean (*_bfd_coff_print_pdata) 8918 (bfd *, void *); 8919 8920 } bfd_coff_backend_data; 8921 8922 #define coff_backend_info(abfd) \ 8923 ((bfd_coff_backend_data *) (abfd)->xvec->backend_data) 8924 8925 #define bfd_coff_swap_aux_in(a,e,t,c,ind,num,i) \ 8926 ((coff_backend_info (a)->_bfd_coff_swap_aux_in) (a,e,t,c,ind,num,i)) 8927 8928 #define bfd_coff_swap_sym_in(a,e,i) \ 8929 ((coff_backend_info (a)->_bfd_coff_swap_sym_in) (a,e,i)) 8930 8931 #define bfd_coff_swap_lineno_in(a,e,i) \ 8932 ((coff_backend_info ( a)->_bfd_coff_swap_lineno_in) (a,e,i)) 8933 8934 #define bfd_coff_swap_reloc_out(abfd, i, o) \ 8935 ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_out) (abfd, i, o)) 8936 8937 #define bfd_coff_swap_lineno_out(abfd, i, o) \ 8938 ((coff_backend_info (abfd)->_bfd_coff_swap_lineno_out) (abfd, i, o)) 8939 8940 #define bfd_coff_swap_aux_out(a,i,t,c,ind,num,o) \ 8941 ((coff_backend_info (a)->_bfd_coff_swap_aux_out) (a,i,t,c,ind,num,o)) 8942 8943 #define bfd_coff_swap_sym_out(abfd, i,o) \ 8944 ((coff_backend_info (abfd)->_bfd_coff_swap_sym_out) (abfd, i, o)) 8945 8946 #define bfd_coff_swap_scnhdr_out(abfd, i,o) \ 8947 ((coff_backend_info (abfd)->_bfd_coff_swap_scnhdr_out) (abfd, i, o)) 8948 8949 #define bfd_coff_swap_filehdr_out(abfd, i,o) \ 8950 ((coff_backend_info (abfd)->_bfd_coff_swap_filehdr_out) (abfd, i, o)) 8951 8952 #define bfd_coff_swap_aouthdr_out(abfd, i,o) \ 8953 ((coff_backend_info (abfd)->_bfd_coff_swap_aouthdr_out) (abfd, i, o)) 8954 8955 #define bfd_coff_filhsz(abfd) (coff_backend_info (abfd)->_bfd_filhsz) 8956 #define bfd_coff_aoutsz(abfd) (coff_backend_info (abfd)->_bfd_aoutsz) 8957 #define bfd_coff_scnhsz(abfd) (coff_backend_info (abfd)->_bfd_scnhsz) 8958 #define bfd_coff_symesz(abfd) (coff_backend_info (abfd)->_bfd_symesz) 8959 #define bfd_coff_auxesz(abfd) (coff_backend_info (abfd)->_bfd_auxesz) 8960 #define bfd_coff_relsz(abfd) (coff_backend_info (abfd)->_bfd_relsz) 8961 #define bfd_coff_linesz(abfd) (coff_backend_info (abfd)->_bfd_linesz) 8962 #define bfd_coff_filnmlen(abfd) (coff_backend_info (abfd)->_bfd_filnmlen) 8963 #define bfd_coff_long_filenames(abfd) \ 8964 (coff_backend_info (abfd)->_bfd_coff_long_filenames) 8965 #define bfd_coff_long_section_names(abfd) \ 8966 (coff_backend_info (abfd)->_bfd_coff_long_section_names) 8967 #define bfd_coff_set_long_section_names(abfd, enable) \ 8968 ((coff_backend_info (abfd)->_bfd_coff_set_long_section_names) (abfd, enable)) 8969 #define bfd_coff_default_section_alignment_power(abfd) \ 8970 (coff_backend_info (abfd)->_bfd_coff_default_section_alignment_power) 8971 #define bfd_coff_swap_filehdr_in(abfd, i,o) \ 8972 ((coff_backend_info (abfd)->_bfd_coff_swap_filehdr_in) (abfd, i, o)) 8973 8974 #define bfd_coff_swap_aouthdr_in(abfd, i,o) \ 8975 ((coff_backend_info (abfd)->_bfd_coff_swap_aouthdr_in) (abfd, i, o)) 8976 8977 #define bfd_coff_swap_scnhdr_in(abfd, i,o) \ 8978 ((coff_backend_info (abfd)->_bfd_coff_swap_scnhdr_in) (abfd, i, o)) 8979 8980 #define bfd_coff_swap_reloc_in(abfd, i, o) \ 8981 ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_in) (abfd, i, o)) 8982 8983 #define bfd_coff_bad_format_hook(abfd, filehdr) \ 8984 ((coff_backend_info (abfd)->_bfd_coff_bad_format_hook) (abfd, filehdr)) 8985 8986 #define bfd_coff_set_arch_mach_hook(abfd, filehdr)\ 8987 ((coff_backend_info (abfd)->_bfd_coff_set_arch_mach_hook) (abfd, filehdr)) 8988 #define bfd_coff_mkobject_hook(abfd, filehdr, aouthdr)\ 8989 ((coff_backend_info (abfd)->_bfd_coff_mkobject_hook)\ 8990 (abfd, filehdr, aouthdr)) 8991 8992 #define bfd_coff_styp_to_sec_flags_hook(abfd, scnhdr, name, section, flags_ptr)\ 8993 ((coff_backend_info (abfd)->_bfd_styp_to_sec_flags_hook)\ 8994 (abfd, scnhdr, name, section, flags_ptr)) 8995 8996 #define bfd_coff_set_alignment_hook(abfd, sec, scnhdr)\ 8997 ((coff_backend_info (abfd)->_bfd_set_alignment_hook) (abfd, sec, scnhdr)) 8998 8999 #define bfd_coff_slurp_symbol_table(abfd)\ 9000 ((coff_backend_info (abfd)->_bfd_coff_slurp_symbol_table) (abfd)) 9001 9002 #define bfd_coff_symname_in_debug(abfd, sym)\ 9003 ((coff_backend_info (abfd)->_bfd_coff_symname_in_debug) (abfd, sym)) 9004 9005 #define bfd_coff_force_symnames_in_strings(abfd)\ 9006 (coff_backend_info (abfd)->_bfd_coff_force_symnames_in_strings) 9007 9008 #define bfd_coff_debug_string_prefix_length(abfd)\ 9009 (coff_backend_info (abfd)->_bfd_coff_debug_string_prefix_length) 9010 9011 #define bfd_coff_print_aux(abfd, file, base, symbol, aux, indaux)\ 9012 ((coff_backend_info (abfd)->_bfd_coff_print_aux)\ 9013 (abfd, file, base, symbol, aux, indaux)) 9014 9015 #define bfd_coff_reloc16_extra_cases(abfd, link_info, link_order,\ 9016 reloc, data, src_ptr, dst_ptr)\ 9017 ((coff_backend_info (abfd)->_bfd_coff_reloc16_extra_cases)\ 9018 (abfd, link_info, link_order, reloc, data, src_ptr, dst_ptr)) 9019 9020 #define bfd_coff_reloc16_estimate(abfd, section, reloc, shrink, link_info)\ 9021 ((coff_backend_info (abfd)->_bfd_coff_reloc16_estimate)\ 9022 (abfd, section, reloc, shrink, link_info)) 9023 9024 #define bfd_coff_classify_symbol(abfd, sym)\ 9025 ((coff_backend_info (abfd)->_bfd_coff_classify_symbol)\ 9026 (abfd, sym)) 9027 9028 #define bfd_coff_compute_section_file_positions(abfd)\ 9029 ((coff_backend_info (abfd)->_bfd_coff_compute_section_file_positions)\ 9030 (abfd)) 9031 9032 #define bfd_coff_start_final_link(obfd, info)\ 9033 ((coff_backend_info (obfd)->_bfd_coff_start_final_link)\ 9034 (obfd, info)) 9035 #define bfd_coff_relocate_section(obfd,info,ibfd,o,con,rel,isyms,secs)\ 9036 ((coff_backend_info (ibfd)->_bfd_coff_relocate_section)\ 9037 (obfd, info, ibfd, o, con, rel, isyms, secs)) 9038 #define bfd_coff_rtype_to_howto(abfd, sec, rel, h, sym, addendp)\ 9039 ((coff_backend_info (abfd)->_bfd_coff_rtype_to_howto)\ 9040 (abfd, sec, rel, h, sym, addendp)) 9041 #define bfd_coff_adjust_symndx(obfd, info, ibfd, sec, rel, adjustedp)\ 9042 ((coff_backend_info (abfd)->_bfd_coff_adjust_symndx)\ 9043 (obfd, info, ibfd, sec, rel, adjustedp)) 9044 #define bfd_coff_link_add_one_symbol(info, abfd, name, flags, section,\ 9045 value, string, cp, coll, hashp)\ 9046 ((coff_backend_info (abfd)->_bfd_coff_link_add_one_symbol)\ 9047 (info, abfd, name, flags, section, value, string, cp, coll, hashp)) 9048 9049 #define bfd_coff_link_output_has_begun(a,p) \ 9050 ((coff_backend_info (a)->_bfd_coff_link_output_has_begun) (a, p)) 9051 #define bfd_coff_final_link_postscript(a,p) \ 9052 ((coff_backend_info (a)->_bfd_coff_final_link_postscript) (a, p)) 9053 9054 #define bfd_coff_have_print_pdata(a) \ 9055 (coff_backend_info (a)->_bfd_coff_print_pdata) 9056 #define bfd_coff_print_pdata(a,p) \ 9057 ((coff_backend_info (a)->_bfd_coff_print_pdata) (a, p)) 9058 9059 /* Macro: Returns true if the bfd is a PE executable as opposed to a 9060 PE object file. */ 9061 #define bfd_pei_p(abfd) \ 9062 (CONST_STRNEQ ((abfd)->xvec->name, "pei-")) 9063 9064 3.3.2.8 Writing relocations 9065 ........................... 9066 9067 To write relocations, the back end steps though the canonical 9068 relocation table and create an `internal_reloc'. The symbol index to 9069 use is removed from the `offset' field in the symbol table supplied. 9070 The address comes directly from the sum of the section base address and 9071 the relocation offset; the type is dug directly from the howto field. 9072 Then the `internal_reloc' is swapped into the shape of an 9073 `external_reloc' and written out to disk. 9074 9075 3.3.2.9 Reading linenumbers 9076 ........................... 9077 9078 Creating the linenumber table is done by reading in the entire coff 9079 linenumber table, and creating another table for internal use. 9080 9081 A coff linenumber table is structured so that each function is 9082 marked as having a line number of 0. Each line within the function is 9083 an offset from the first line in the function. The base of the line 9084 number information for the table is stored in the symbol associated 9085 with the function. 9086 9087 Note: The PE format uses line number 0 for a flag indicating a new 9088 source file. 9089 9090 The information is copied from the external to the internal table, 9091 and each symbol which marks a function is marked by pointing its... 9092 9093 How does this work ? 9094 9095 3.3.2.10 Reading relocations 9096 ............................ 9097 9098 Coff relocations are easily transformed into the internal BFD form 9099 (`arelent'). 9100 9101 Reading a coff relocation table is done in the following stages: 9102 9103 * Read the entire coff relocation table into memory. 9104 9105 * Process each relocation in turn; first swap it from the external 9106 to the internal form. 9107 9108 * Turn the symbol referenced in the relocation's symbol index into a 9109 pointer into the canonical symbol table. This table is the same 9110 as the one returned by a call to `bfd_canonicalize_symtab'. The 9111 back end will call that routine and save the result if a 9112 canonicalization hasn't been done. 9113 9114 * The reloc index is turned into a pointer to a howto structure, in 9115 a back end specific way. For instance, the 386 and 960 use the 9116 `r_type' to directly produce an index into a howto table vector; 9117 the 88k subtracts a number from the `r_type' field and creates an 9118 addend field. 9119 9120 9121 File: bfd.info, Node: elf, Next: mmo, Prev: coff, Up: BFD back ends 9122 9123 3.4 ELF backends 9124 ================ 9125 9126 BFD support for ELF formats is being worked on. Currently, the best 9127 supported back ends are for sparc and i386 (running svr4 or Solaris 2). 9128 9129 Documentation of the internals of the support code still needs to be 9130 written. The code is changing quickly enough that we haven't bothered 9131 yet. 9132 9133 9134 File: bfd.info, Node: mmo, Prev: elf, Up: BFD back ends 9135 9136 3.5 mmo backend 9137 =============== 9138 9139 The mmo object format is used exclusively together with Professor 9140 Donald E. Knuth's educational 64-bit processor MMIX. The simulator 9141 `mmix' which is available at 9142 `http://www-cs-faculty.stanford.edu/~knuth/programs/mmix.tar.gz' 9143 understands this format. That package also includes a combined 9144 assembler and linker called `mmixal'. The mmo format has no advantages 9145 feature-wise compared to e.g. ELF. It is a simple non-relocatable 9146 object format with no support for archives or debugging information, 9147 except for symbol value information and line numbers (which is not yet 9148 implemented in BFD). See 9149 `http://www-cs-faculty.stanford.edu/~knuth/mmix.html' for more 9150 information about MMIX. The ELF format is used for intermediate object 9151 files in the BFD implementation. 9152 9153 * Menu: 9154 9155 * File layout:: 9156 * Symbol-table:: 9157 * mmo section mapping:: 9158 9159 9160 File: bfd.info, Node: File layout, Next: Symbol-table, Prev: mmo, Up: mmo 9161 9162 3.5.1 File layout 9163 ----------------- 9164 9165 The mmo file contents is not partitioned into named sections as with 9166 e.g. ELF. Memory areas is formed by specifying the location of the 9167 data that follows. Only the memory area `0x0000...00' to `0x01ff...ff' 9168 is executable, so it is used for code (and constants) and the area 9169 `0x2000...00' to `0x20ff...ff' is used for writable data. *Note mmo 9170 section mapping::. 9171 9172 There is provision for specifying "special data" of 65536 different 9173 types. We use type 80 (decimal), arbitrarily chosen the same as the 9174 ELF `e_machine' number for MMIX, filling it with section information 9175 normally found in ELF objects. *Note mmo section mapping::. 9176 9177 Contents is entered as 32-bit words, xor:ed over previous contents, 9178 always zero-initialized. A word that starts with the byte `0x98' forms 9179 a command called a `lopcode', where the next byte distinguished between 9180 the thirteen lopcodes. The two remaining bytes, called the `Y' and `Z' 9181 fields, or the `YZ' field (a 16-bit big-endian number), are used for 9182 various purposes different for each lopcode. As documented in 9183 `http://www-cs-faculty.stanford.edu/~knuth/mmixal-intro.ps.gz', the 9184 lopcodes are: 9185 9186 `lop_quote' 9187 0x98000001. The next word is contents, regardless of whether it 9188 starts with 0x98 or not. 9189 9190 `lop_loc' 9191 0x9801YYZZ, where `Z' is 1 or 2. This is a location directive, 9192 setting the location for the next data to the next 32-bit word 9193 (for Z = 1) or 64-bit word (for Z = 2), plus Y * 2^56. Normally 9194 `Y' is 0 for the text segment and 2 for the data segment. 9195 9196 `lop_skip' 9197 0x9802YYZZ. Increase the current location by `YZ' bytes. 9198 9199 `lop_fixo' 9200 0x9803YYZZ, where `Z' is 1 or 2. Store the current location as 64 9201 bits into the location pointed to by the next 32-bit (Z = 1) or 9202 64-bit (Z = 2) word, plus Y * 2^56. 9203 9204 `lop_fixr' 9205 0x9804YYZZ. `YZ' is stored into the current location plus 2 - 4 * 9206 YZ. 9207 9208 `lop_fixrx' 9209 0x980500ZZ. `Z' is 16 or 24. A value `L' derived from the 9210 following 32-bit word are used in a manner similar to `YZ' in 9211 lop_fixr: it is xor:ed into the current location minus 4 * L. The 9212 first byte of the word is 0 or 1. If it is 1, then L = (LOWEST 24 9213 BITS OF WORD) - 2^Z, if 0, then L = (LOWEST 24 BITS OF WORD). 9214 9215 `lop_file' 9216 0x9806YYZZ. `Y' is the file number, `Z' is count of 32-bit words. 9217 Set the file number to `Y' and the line counter to 0. The next Z 9218 * 4 bytes contain the file name, padded with zeros if the count is 9219 not a multiple of four. The same `Y' may occur multiple times, 9220 but `Z' must be 0 for all but the first occurrence. 9221 9222 `lop_line' 9223 0x9807YYZZ. `YZ' is the line number. Together with lop_file, it 9224 forms the source location for the next 32-bit word. Note that for 9225 each non-lopcode 32-bit word, line numbers are assumed incremented 9226 by one. 9227 9228 `lop_spec' 9229 0x9808YYZZ. `YZ' is the type number. Data until the next lopcode 9230 other than lop_quote forms special data of type `YZ'. *Note mmo 9231 section mapping::. 9232 9233 Other types than 80, (or type 80 with a content that does not 9234 parse) is stored in sections named `.MMIX.spec_data.N' where N is 9235 the `YZ'-type. The flags for such a sections say not to allocate 9236 or load the data. The vma is 0. Contents of multiple occurrences 9237 of special data N is concatenated to the data of the previous 9238 lop_spec Ns. The location in data or code at which the lop_spec 9239 occurred is lost. 9240 9241 `lop_pre' 9242 0x980901ZZ. The first lopcode in a file. The `Z' field forms the 9243 length of header information in 32-bit words, where the first word 9244 tells the time in seconds since `00:00:00 GMT Jan 1 1970'. 9245 9246 `lop_post' 9247 0x980a00ZZ. Z > 32. This lopcode follows after all 9248 content-generating lopcodes in a program. The `Z' field denotes 9249 the value of `rG' at the beginning of the program. The following 9250 256 - Z big-endian 64-bit words are loaded into global registers 9251 `$G' ... `$255'. 9252 9253 `lop_stab' 9254 0x980b0000. The next-to-last lopcode in a program. Must follow 9255 immediately after the lop_post lopcode and its data. After this 9256 lopcode follows all symbols in a compressed format (*note 9257 Symbol-table::). 9258 9259 `lop_end' 9260 0x980cYYZZ. The last lopcode in a program. It must follow the 9261 lop_stab lopcode and its data. The `YZ' field contains the number 9262 of 32-bit words of symbol table information after the preceding 9263 lop_stab lopcode. 9264 9265 Note that the lopcode "fixups"; `lop_fixr', `lop_fixrx' and 9266 `lop_fixo' are not generated by BFD, but are handled. They are 9267 generated by `mmixal'. 9268 9269 This trivial one-label, one-instruction file: 9270 9271 :Main TRAP 1,2,3 9272 9273 can be represented this way in mmo: 9274 9275 0x98090101 - lop_pre, one 32-bit word with timestamp. 9276 <timestamp> 9277 0x98010002 - lop_loc, text segment, using a 64-bit address. 9278 Note that mmixal does not emit this for the file above. 9279 0x00000000 - Address, high 32 bits. 9280 0x00000000 - Address, low 32 bits. 9281 0x98060002 - lop_file, 2 32-bit words for file-name. 9282 0x74657374 - "test" 9283 0x2e730000 - ".s\0\0" 9284 0x98070001 - lop_line, line 1. 9285 0x00010203 - TRAP 1,2,3 9286 0x980a00ff - lop_post, setting $255 to 0. 9287 0x00000000 9288 0x00000000 9289 0x980b0000 - lop_stab for ":Main" = 0, serial 1. 9290 0x203a4040 *Note Symbol-table::. 9291 0x10404020 9292 0x4d206120 9293 0x69016e00 9294 0x81000000 9295 0x980c0005 - lop_end; symbol table contained five 32-bit words. 9296 9297 9298 File: bfd.info, Node: Symbol-table, Next: mmo section mapping, Prev: File layout, Up: mmo 9299 9300 3.5.2 Symbol table format 9301 ------------------------- 9302 9303 From mmixal.w (or really, the generated mmixal.tex) in 9304 `http://www-cs-faculty.stanford.edu/~knuth/programs/mmix.tar.gz'): 9305 "Symbols are stored and retrieved by means of a `ternary search trie', 9306 following ideas of Bentley and Sedgewick. (See ACM-SIAM Symp. on 9307 Discrete Algorithms `8' (1997), 360-369; R.Sedgewick, `Algorithms in C' 9308 (Reading, Mass. Addison-Wesley, 1998), `15.4'.) Each trie node stores 9309 a character, and there are branches to subtries for the cases where a 9310 given character is less than, equal to, or greater than the character 9311 in the trie. There also is a pointer to a symbol table entry if a 9312 symbol ends at the current node." 9313 9314 So it's a tree encoded as a stream of bytes. The stream of bytes 9315 acts on a single virtual global symbol, adding and removing characters 9316 and signalling complete symbol points. Here, we read the stream and 9317 create symbols at the completion points. 9318 9319 First, there's a control byte `m'. If any of the listed bits in `m' 9320 is nonzero, we execute what stands at the right, in the listed order: 9321 9322 (MMO3_LEFT) 9323 0x40 - Traverse left trie. 9324 (Read a new command byte and recurse.) 9325 9326 (MMO3_SYMBITS) 9327 0x2f - Read the next byte as a character and store it in the 9328 current character position; increment character position. 9329 Test the bits of `m': 9330 9331 (MMO3_WCHAR) 9332 0x80 - The character is 16-bit (so read another byte, 9333 merge into current character. 9334 9335 (MMO3_TYPEBITS) 9336 0xf - We have a complete symbol; parse the type, value 9337 and serial number and do what should be done 9338 with a symbol. The type and length information 9339 is in j = (m & 0xf). 9340 9341 (MMO3_REGQUAL_BITS) 9342 j == 0xf: A register variable. The following 9343 byte tells which register. 9344 j <= 8: An absolute symbol. Read j bytes as the 9345 big-endian number the symbol equals. 9346 A j = 2 with two zero bytes denotes an 9347 unknown symbol. 9348 j > 8: As with j <= 8, but add (0x20 << 56) 9349 to the value in the following j - 8 9350 bytes. 9351 9352 Then comes the serial number, as a variant of 9353 uleb128, but better named ubeb128: 9354 Read bytes and shift the previous value left 7 9355 (multiply by 128). Add in the new byte, repeat 9356 until a byte has bit 7 set. The serial number 9357 is the computed value minus 128. 9358 9359 (MMO3_MIDDLE) 9360 0x20 - Traverse middle trie. (Read a new command byte 9361 and recurse.) Decrement character position. 9362 9363 (MMO3_RIGHT) 9364 0x10 - Traverse right trie. (Read a new command byte and 9365 recurse.) 9366 9367 Let's look again at the `lop_stab' for the trivial file (*note File 9368 layout::). 9369 9370 0x980b0000 - lop_stab for ":Main" = 0, serial 1. 9371 0x203a4040 9372 0x10404020 9373 0x4d206120 9374 0x69016e00 9375 0x81000000 9376 9377 This forms the trivial trie (note that the path between ":" and "M" 9378 is redundant): 9379 9380 203a ":" 9381 40 / 9382 40 / 9383 10 \ 9384 40 / 9385 40 / 9386 204d "M" 9387 2061 "a" 9388 2069 "i" 9389 016e "n" is the last character in a full symbol, and 9390 with a value represented in one byte. 9391 00 The value is 0. 9392 81 The serial number is 1. 9393 9394 9395 File: bfd.info, Node: mmo section mapping, Prev: Symbol-table, Up: mmo 9396 9397 3.5.3 mmo section mapping 9398 ------------------------- 9399 9400 The implementation in BFD uses special data type 80 (decimal) to 9401 encapsulate and describe named sections, containing e.g. debug 9402 information. If needed, any datum in the encapsulation will be quoted 9403 using lop_quote. First comes a 32-bit word holding the number of 9404 32-bit words containing the zero-terminated zero-padded segment name. 9405 After the name there's a 32-bit word holding flags describing the 9406 section type. Then comes a 64-bit big-endian word with the section 9407 length (in bytes), then another with the section start address. 9408 Depending on the type of section, the contents might follow, 9409 zero-padded to 32-bit boundary. For a loadable section (such as data 9410 or code), the contents might follow at some later point, not 9411 necessarily immediately, as a lop_loc with the same start address as in 9412 the section description, followed by the contents. This in effect 9413 forms a descriptor that must be emitted before the actual contents. 9414 Sections described this way must not overlap. 9415 9416 For areas that don't have such descriptors, synthetic sections are 9417 formed by BFD. Consecutive contents in the two memory areas 9418 `0x0000...00' to `0x01ff...ff' and `0x2000...00' to `0x20ff...ff' are 9419 entered in sections named `.text' and `.data' respectively. If an area 9420 is not otherwise described, but would together with a neighboring lower 9421 area be less than `0x40000000' bytes long, it is joined with the lower 9422 area and the gap is zero-filled. For other cases, a new section is 9423 formed, named `.MMIX.sec.N'. Here, N is a number, a running count 9424 through the mmo file, starting at 0. 9425 9426 A loadable section specified as: 9427 9428 .section secname,"ax" 9429 TETRA 1,2,3,4,-1,-2009 9430 BYTE 80 9431 9432 and linked to address `0x4', is represented by the sequence: 9433 9434 0x98080050 - lop_spec 80 9435 0x00000002 - two 32-bit words for the section name 9436 0x7365636e - "secn" 9437 0x616d6500 - "ame\0" 9438 0x00000033 - flags CODE, READONLY, LOAD, ALLOC 9439 0x00000000 - high 32 bits of section length 9440 0x0000001c - section length is 28 bytes; 6 * 4 + 1 + alignment to 32 bits 9441 0x00000000 - high 32 bits of section address 9442 0x00000004 - section address is 4 9443 0x98010002 - 64 bits with address of following data 9444 0x00000000 - high 32 bits of address 9445 0x00000004 - low 32 bits: data starts at address 4 9446 0x00000001 - 1 9447 0x00000002 - 2 9448 0x00000003 - 3 9449 0x00000004 - 4 9450 0xffffffff - -1 9451 0xfffff827 - -2009 9452 0x50000000 - 80 as a byte, padded with zeros. 9453 9454 Note that the lop_spec wrapping does not include the section 9455 contents. Compare this to a non-loaded section specified as: 9456 9457 .section thirdsec 9458 TETRA 200001,100002 9459 BYTE 38,40 9460 9461 This, when linked to address `0x200000000000001c', is represented by: 9462 9463 0x98080050 - lop_spec 80 9464 0x00000002 - two 32-bit words for the section name 9465 0x7365636e - "thir" 9466 0x616d6500 - "dsec" 9467 0x00000010 - flag READONLY 9468 0x00000000 - high 32 bits of section length 9469 0x0000000c - section length is 12 bytes; 2 * 4 + 2 + alignment to 32 bits 9470 0x20000000 - high 32 bits of address 9471 0x0000001c - low 32 bits of address 0x200000000000001c 9472 0x00030d41 - 200001 9473 0x000186a2 - 100002 9474 0x26280000 - 38, 40 as bytes, padded with zeros 9475 9476 For the latter example, the section contents must not be loaded in 9477 memory, and is therefore specified as part of the special data. The 9478 address is usually unimportant but might provide information for e.g. 9479 the DWARF 2 debugging format. 9480 9481 9482 File: bfd.info, Node: GNU Free Documentation License, Next: BFD Index, Prev: BFD back ends, Up: Top 9483 9484 Version 1.3, 3 November 2008 9485 9486 Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc. 9487 `http://fsf.org/' 9488 9489 Everyone is permitted to copy and distribute verbatim copies 9490 of this license document, but changing it is not allowed. 9491 9492 0. PREAMBLE 9493 9494 The purpose of this License is to make a manual, textbook, or other 9495 functional and useful document "free" in the sense of freedom: to 9496 assure everyone the effective freedom to copy and redistribute it, 9497 with or without modifying it, either commercially or 9498 noncommercially. Secondarily, this License preserves for the 9499 author and publisher a way to get credit for their work, while not 9500 being considered responsible for modifications made by others. 9501 9502 This License is a kind of "copyleft", which means that derivative 9503 works of the document must themselves be free in the same sense. 9504 It complements the GNU General Public License, which is a copyleft 9505 license designed for free software. 9506 9507 We have designed this License in order to use it for manuals for 9508 free software, because free software needs free documentation: a 9509 free program should come with manuals providing the same freedoms 9510 that the software does. But this License is not limited to 9511 software manuals; it can be used for any textual work, regardless 9512 of subject matter or whether it is published as a printed book. 9513 We recommend this License principally for works whose purpose is 9514 instruction or reference. 9515 9516 1. APPLICABILITY AND DEFINITIONS 9517 9518 This License applies to any manual or other work, in any medium, 9519 that contains a notice placed by the copyright holder saying it 9520 can be distributed under the terms of this License. Such a notice 9521 grants a world-wide, royalty-free license, unlimited in duration, 9522 to use that work under the conditions stated herein. The 9523 "Document", below, refers to any such manual or work. Any member 9524 of the public is a licensee, and is addressed as "you". You 9525 accept the license if you copy, modify or distribute the work in a 9526 way requiring permission under copyright law. 9527 9528 A "Modified Version" of the Document means any work containing the 9529 Document or a portion of it, either copied verbatim, or with 9530 modifications and/or translated into another language. 9531 9532 A "Secondary Section" is a named appendix or a front-matter section 9533 of the Document that deals exclusively with the relationship of the 9534 publishers or authors of the Document to the Document's overall 9535 subject (or to related matters) and contains nothing that could 9536 fall directly within that overall subject. (Thus, if the Document 9537 is in part a textbook of mathematics, a Secondary Section may not 9538 explain any mathematics.) The relationship could be a matter of 9539 historical connection with the subject or with related matters, or 9540 of legal, commercial, philosophical, ethical or political position 9541 regarding them. 9542 9543 The "Invariant Sections" are certain Secondary Sections whose 9544 titles are designated, as being those of Invariant Sections, in 9545 the notice that says that the Document is released under this 9546 License. If a section does not fit the above definition of 9547 Secondary then it is not allowed to be designated as Invariant. 9548 The Document may contain zero Invariant Sections. If the Document 9549 does not identify any Invariant Sections then there are none. 9550 9551 The "Cover Texts" are certain short passages of text that are 9552 listed, as Front-Cover Texts or Back-Cover Texts, in the notice 9553 that says that the Document is released under this License. A 9554 Front-Cover Text may be at most 5 words, and a Back-Cover Text may 9555 be at most 25 words. 9556 9557 A "Transparent" copy of the Document means a machine-readable copy, 9558 represented in a format whose specification is available to the 9559 general public, that is suitable for revising the document 9560 straightforwardly with generic text editors or (for images 9561 composed of pixels) generic paint programs or (for drawings) some 9562 widely available drawing editor, and that is suitable for input to 9563 text formatters or for automatic translation to a variety of 9564 formats suitable for input to text formatters. A copy made in an 9565 otherwise Transparent file format whose markup, or absence of 9566 markup, has been arranged to thwart or discourage subsequent 9567 modification by readers is not Transparent. An image format is 9568 not Transparent if used for any substantial amount of text. A 9569 copy that is not "Transparent" is called "Opaque". 9570 9571 Examples of suitable formats for Transparent copies include plain 9572 ASCII without markup, Texinfo input format, LaTeX input format, 9573 SGML or XML using a publicly available DTD, and 9574 standard-conforming simple HTML, PostScript or PDF designed for 9575 human modification. Examples of transparent image formats include 9576 PNG, XCF and JPG. Opaque formats include proprietary formats that 9577 can be read and edited only by proprietary word processors, SGML or 9578 XML for which the DTD and/or processing tools are not generally 9579 available, and the machine-generated HTML, PostScript or PDF 9580 produced by some word processors for output purposes only. 9581 9582 The "Title Page" means, for a printed book, the title page itself, 9583 plus such following pages as are needed to hold, legibly, the 9584 material this License requires to appear in the title page. For 9585 works in formats which do not have any title page as such, "Title 9586 Page" means the text near the most prominent appearance of the 9587 work's title, preceding the beginning of the body of the text. 9588 9589 The "publisher" means any person or entity that distributes copies 9590 of the Document to the public. 9591 9592 A section "Entitled XYZ" means a named subunit of the Document 9593 whose title either is precisely XYZ or contains XYZ in parentheses 9594 following text that translates XYZ in another language. (Here XYZ 9595 stands for a specific section name mentioned below, such as 9596 "Acknowledgements", "Dedications", "Endorsements", or "History".) 9597 To "Preserve the Title" of such a section when you modify the 9598 Document means that it remains a section "Entitled XYZ" according 9599 to this definition. 9600 9601 The Document may include Warranty Disclaimers next to the notice 9602 which states that this License applies to the Document. These 9603 Warranty Disclaimers are considered to be included by reference in 9604 this License, but only as regards disclaiming warranties: any other 9605 implication that these Warranty Disclaimers may have is void and 9606 has no effect on the meaning of this License. 9607 9608 2. VERBATIM COPYING 9609 9610 You may copy and distribute the Document in any medium, either 9611 commercially or noncommercially, provided that this License, the 9612 copyright notices, and the license notice saying this License 9613 applies to the Document are reproduced in all copies, and that you 9614 add no other conditions whatsoever to those of this License. You 9615 may not use technical measures to obstruct or control the reading 9616 or further copying of the copies you make or distribute. However, 9617 you may accept compensation in exchange for copies. If you 9618 distribute a large enough number of copies you must also follow 9619 the conditions in section 3. 9620 9621 You may also lend copies, under the same conditions stated above, 9622 and you may publicly display copies. 9623 9624 3. COPYING IN QUANTITY 9625 9626 If you publish printed copies (or copies in media that commonly 9627 have printed covers) of the Document, numbering more than 100, and 9628 the Document's license notice requires Cover Texts, you must 9629 enclose the copies in covers that carry, clearly and legibly, all 9630 these Cover Texts: Front-Cover Texts on the front cover, and 9631 Back-Cover Texts on the back cover. Both covers must also clearly 9632 and legibly identify you as the publisher of these copies. The 9633 front cover must present the full title with all words of the 9634 title equally prominent and visible. You may add other material 9635 on the covers in addition. Copying with changes limited to the 9636 covers, as long as they preserve the title of the Document and 9637 satisfy these conditions, can be treated as verbatim copying in 9638 other respects. 9639 9640 If the required texts for either cover are too voluminous to fit 9641 legibly, you should put the first ones listed (as many as fit 9642 reasonably) on the actual cover, and continue the rest onto 9643 adjacent pages. 9644 9645 If you publish or distribute Opaque copies of the Document 9646 numbering more than 100, you must either include a 9647 machine-readable Transparent copy along with each Opaque copy, or 9648 state in or with each Opaque copy a computer-network location from 9649 which the general network-using public has access to download 9650 using public-standard network protocols a complete Transparent 9651 copy of the Document, free of added material. If you use the 9652 latter option, you must take reasonably prudent steps, when you 9653 begin distribution of Opaque copies in quantity, to ensure that 9654 this Transparent copy will remain thus accessible at the stated 9655 location until at least one year after the last time you 9656 distribute an Opaque copy (directly or through your agents or 9657 retailers) of that edition to the public. 9658 9659 It is requested, but not required, that you contact the authors of 9660 the Document well before redistributing any large number of 9661 copies, to give them a chance to provide you with an updated 9662 version of the Document. 9663 9664 4. MODIFICATIONS 9665 9666 You may copy and distribute a Modified Version of the Document 9667 under the conditions of sections 2 and 3 above, provided that you 9668 release the Modified Version under precisely this License, with 9669 the Modified Version filling the role of the Document, thus 9670 licensing distribution and modification of the Modified Version to 9671 whoever possesses a copy of it. In addition, you must do these 9672 things in the Modified Version: 9673 9674 A. Use in the Title Page (and on the covers, if any) a title 9675 distinct from that of the Document, and from those of 9676 previous versions (which should, if there were any, be listed 9677 in the History section of the Document). You may use the 9678 same title as a previous version if the original publisher of 9679 that version gives permission. 9680 9681 B. List on the Title Page, as authors, one or more persons or 9682 entities responsible for authorship of the modifications in 9683 the Modified Version, together with at least five of the 9684 principal authors of the Document (all of its principal 9685 authors, if it has fewer than five), unless they release you 9686 from this requirement. 9687 9688 C. State on the Title page the name of the publisher of the 9689 Modified Version, as the publisher. 9690 9691 D. Preserve all the copyright notices of the Document. 9692 9693 E. Add an appropriate copyright notice for your modifications 9694 adjacent to the other copyright notices. 9695 9696 F. Include, immediately after the copyright notices, a license 9697 notice giving the public permission to use the Modified 9698 Version under the terms of this License, in the form shown in 9699 the Addendum below. 9700 9701 G. Preserve in that license notice the full lists of Invariant 9702 Sections and required Cover Texts given in the Document's 9703 license notice. 9704 9705 H. Include an unaltered copy of this License. 9706 9707 I. Preserve the section Entitled "History", Preserve its Title, 9708 and add to it an item stating at least the title, year, new 9709 authors, and publisher of the Modified Version as given on 9710 the Title Page. If there is no section Entitled "History" in 9711 the Document, create one stating the title, year, authors, 9712 and publisher of the Document as given on its Title Page, 9713 then add an item describing the Modified Version as stated in 9714 the previous sentence. 9715 9716 J. Preserve the network location, if any, given in the Document 9717 for public access to a Transparent copy of the Document, and 9718 likewise the network locations given in the Document for 9719 previous versions it was based on. These may be placed in 9720 the "History" section. You may omit a network location for a 9721 work that was published at least four years before the 9722 Document itself, or if the original publisher of the version 9723 it refers to gives permission. 9724 9725 K. For any section Entitled "Acknowledgements" or "Dedications", 9726 Preserve the Title of the section, and preserve in the 9727 section all the substance and tone of each of the contributor 9728 acknowledgements and/or dedications given therein. 9729 9730 L. Preserve all the Invariant Sections of the Document, 9731 unaltered in their text and in their titles. Section numbers 9732 or the equivalent are not considered part of the section 9733 titles. 9734 9735 M. Delete any section Entitled "Endorsements". Such a section 9736 may not be included in the Modified Version. 9737 9738 N. Do not retitle any existing section to be Entitled 9739 "Endorsements" or to conflict in title with any Invariant 9740 Section. 9741 9742 O. Preserve any Warranty Disclaimers. 9743 9744 If the Modified Version includes new front-matter sections or 9745 appendices that qualify as Secondary Sections and contain no 9746 material copied from the Document, you may at your option 9747 designate some or all of these sections as invariant. To do this, 9748 add their titles to the list of Invariant Sections in the Modified 9749 Version's license notice. These titles must be distinct from any 9750 other section titles. 9751 9752 You may add a section Entitled "Endorsements", provided it contains 9753 nothing but endorsements of your Modified Version by various 9754 parties--for example, statements of peer review or that the text 9755 has been approved by an organization as the authoritative 9756 definition of a standard. 9757 9758 You may add a passage of up to five words as a Front-Cover Text, 9759 and a passage of up to 25 words as a Back-Cover Text, to the end 9760 of the list of Cover Texts in the Modified Version. Only one 9761 passage of Front-Cover Text and one of Back-Cover Text may be 9762 added by (or through arrangements made by) any one entity. If the 9763 Document already includes a cover text for the same cover, 9764 previously added by you or by arrangement made by the same entity 9765 you are acting on behalf of, you may not add another; but you may 9766 replace the old one, on explicit permission from the previous 9767 publisher that added the old one. 9768 9769 The author(s) and publisher(s) of the Document do not by this 9770 License give permission to use their names for publicity for or to 9771 assert or imply endorsement of any Modified Version. 9772 9773 5. COMBINING DOCUMENTS 9774 9775 You may combine the Document with other documents released under 9776 this License, under the terms defined in section 4 above for 9777 modified versions, provided that you include in the combination 9778 all of the Invariant Sections of all of the original documents, 9779 unmodified, and list them all as Invariant Sections of your 9780 combined work in its license notice, and that you preserve all 9781 their Warranty Disclaimers. 9782 9783 The combined work need only contain one copy of this License, and 9784 multiple identical Invariant Sections may be replaced with a single 9785 copy. If there are multiple Invariant Sections with the same name 9786 but different contents, make the title of each such section unique 9787 by adding at the end of it, in parentheses, the name of the 9788 original author or publisher of that section if known, or else a 9789 unique number. Make the same adjustment to the section titles in 9790 the list of Invariant Sections in the license notice of the 9791 combined work. 9792 9793 In the combination, you must combine any sections Entitled 9794 "History" in the various original documents, forming one section 9795 Entitled "History"; likewise combine any sections Entitled 9796 "Acknowledgements", and any sections Entitled "Dedications". You 9797 must delete all sections Entitled "Endorsements." 9798 9799 6. COLLECTIONS OF DOCUMENTS 9800 9801 You may make a collection consisting of the Document and other 9802 documents released under this License, and replace the individual 9803 copies of this License in the various documents with a single copy 9804 that is included in the collection, provided that you follow the 9805 rules of this License for verbatim copying of each of the 9806 documents in all other respects. 9807 9808 You may extract a single document from such a collection, and 9809 distribute it individually under this License, provided you insert 9810 a copy of this License into the extracted document, and follow 9811 this License in all other respects regarding verbatim copying of 9812 that document. 9813 9814 7. AGGREGATION WITH INDEPENDENT WORKS 9815 9816 A compilation of the Document or its derivatives with other 9817 separate and independent documents or works, in or on a volume of 9818 a storage or distribution medium, is called an "aggregate" if the 9819 copyright resulting from the compilation is not used to limit the 9820 legal rights of the compilation's users beyond what the individual 9821 works permit. When the Document is included in an aggregate, this 9822 License does not apply to the other works in the aggregate which 9823 are not themselves derivative works of the Document. 9824 9825 If the Cover Text requirement of section 3 is applicable to these 9826 copies of the Document, then if the Document is less than one half 9827 of the entire aggregate, the Document's Cover Texts may be placed 9828 on covers that bracket the Document within the aggregate, or the 9829 electronic equivalent of covers if the Document is in electronic 9830 form. Otherwise they must appear on printed covers that bracket 9831 the whole aggregate. 9832 9833 8. TRANSLATION 9834 9835 Translation is considered a kind of modification, so you may 9836 distribute translations of the Document under the terms of section 9837 4. Replacing Invariant Sections with translations requires special 9838 permission from their copyright holders, but you may include 9839 translations of some or all Invariant Sections in addition to the 9840 original versions of these Invariant Sections. You may include a 9841 translation of this License, and all the license notices in the 9842 Document, and any Warranty Disclaimers, provided that you also 9843 include the original English version of this License and the 9844 original versions of those notices and disclaimers. In case of a 9845 disagreement between the translation and the original version of 9846 this License or a notice or disclaimer, the original version will 9847 prevail. 9848 9849 If a section in the Document is Entitled "Acknowledgements", 9850 "Dedications", or "History", the requirement (section 4) to 9851 Preserve its Title (section 1) will typically require changing the 9852 actual title. 9853 9854 9. TERMINATION 9855 9856 You may not copy, modify, sublicense, or distribute the Document 9857 except as expressly provided under this License. Any attempt 9858 otherwise to copy, modify, sublicense, or distribute it is void, 9859 and will automatically terminate your rights under this License. 9860 9861 However, if you cease all violation of this License, then your 9862 license from a particular copyright holder is reinstated (a) 9863 provisionally, unless and until the copyright holder explicitly 9864 and finally terminates your license, and (b) permanently, if the 9865 copyright holder fails to notify you of the violation by some 9866 reasonable means prior to 60 days after the cessation. 9867 9868 Moreover, your license from a particular copyright holder is 9869 reinstated permanently if the copyright holder notifies you of the 9870 violation by some reasonable means, this is the first time you have 9871 received notice of violation of this License (for any work) from 9872 that copyright holder, and you cure the violation prior to 30 days 9873 after your receipt of the notice. 9874 9875 Termination of your rights under this section does not terminate 9876 the licenses of parties who have received copies or rights from 9877 you under this License. If your rights have been terminated and 9878 not permanently reinstated, receipt of a copy of some or all of 9879 the same material does not give you any rights to use it. 9880 9881 10. FUTURE REVISIONS OF THIS LICENSE 9882 9883 The Free Software Foundation may publish new, revised versions of 9884 the GNU Free Documentation License from time to time. Such new 9885 versions will be similar in spirit to the present version, but may 9886 differ in detail to address new problems or concerns. See 9887 `http://www.gnu.org/copyleft/'. 9888 9889 Each version of the License is given a distinguishing version 9890 number. If the Document specifies that a particular numbered 9891 version of this License "or any later version" applies to it, you 9892 have the option of following the terms and conditions either of 9893 that specified version or of any later version that has been 9894 published (not as a draft) by the Free Software Foundation. If 9895 the Document does not specify a version number of this License, 9896 you may choose any version ever published (not as a draft) by the 9897 Free Software Foundation. If the Document specifies that a proxy 9898 can decide which future versions of this License can be used, that 9899 proxy's public statement of acceptance of a version permanently 9900 authorizes you to choose that version for the Document. 9901 9902 11. RELICENSING 9903 9904 "Massive Multiauthor Collaboration Site" (or "MMC Site") means any 9905 World Wide Web server that publishes copyrightable works and also 9906 provides prominent facilities for anybody to edit those works. A 9907 public wiki that anybody can edit is an example of such a server. 9908 A "Massive Multiauthor Collaboration" (or "MMC") contained in the 9909 site means any set of copyrightable works thus published on the MMC 9910 site. 9911 9912 "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0 9913 license published by Creative Commons Corporation, a not-for-profit 9914 corporation with a principal place of business in San Francisco, 9915 California, as well as future copyleft versions of that license 9916 published by that same organization. 9917 9918 "Incorporate" means to publish or republish a Document, in whole or 9919 in part, as part of another Document. 9920 9921 An MMC is "eligible for relicensing" if it is licensed under this 9922 License, and if all works that were first published under this 9923 License somewhere other than this MMC, and subsequently 9924 incorporated in whole or in part into the MMC, (1) had no cover 9925 texts or invariant sections, and (2) were thus incorporated prior 9926 to November 1, 2008. 9927 9928 The operator of an MMC Site may republish an MMC contained in the 9929 site under CC-BY-SA on the same site at any time before August 1, 9930 2009, provided the MMC is eligible for relicensing. 9931 9932 9933 ADDENDUM: How to use this License for your documents 9934 ==================================================== 9935 9936 To use this License in a document you have written, include a copy of 9937 the License in the document and put the following copyright and license 9938 notices just after the title page: 9939 9940 Copyright (C) YEAR YOUR NAME. 9941 Permission is granted to copy, distribute and/or modify this document 9942 under the terms of the GNU Free Documentation License, Version 1.3 9943 or any later version published by the Free Software Foundation; 9944 with no Invariant Sections, no Front-Cover Texts, and no Back-Cover 9945 Texts. A copy of the license is included in the section entitled ``GNU 9946 Free Documentation License''. 9947 9948 If you have Invariant Sections, Front-Cover Texts and Back-Cover 9949 Texts, replace the "with...Texts." line with this: 9950 9951 with the Invariant Sections being LIST THEIR TITLES, with 9952 the Front-Cover Texts being LIST, and with the Back-Cover Texts 9953 being LIST. 9954 9955 If you have Invariant Sections without Cover Texts, or some other 9956 combination of the three, merge those two alternatives to suit the 9957 situation. 9958 9959 If your document contains nontrivial examples of program code, we 9960 recommend releasing these examples in parallel under your choice of 9961 free software license, such as the GNU General Public License, to 9962 permit their use in free software. 9963 9964 9965 File: bfd.info, Node: BFD Index, Prev: GNU Free Documentation License, Up: Top 9966 9967 BFD Index 9968 ********* 9969 9970 [index] 9971 * Menu: 9972 9973 * _bfd_final_link_relocate: Relocating the section contents. 9974 (line 22) 9975 * _bfd_generic_link_add_archive_symbols: Adding symbols from an archive. 9976 (line 15) 9977 * _bfd_generic_link_add_one_symbol: Adding symbols from an object file. 9978 (line 19) 9979 * _bfd_generic_make_empty_symbol: symbol handling functions. 9980 (line 92) 9981 * _bfd_link_add_symbols in target vector: Adding Symbols to the Hash Table. 9982 (line 6) 9983 * _bfd_link_final_link in target vector: Performing the Final Link. 9984 (line 6) 9985 * _bfd_link_hash_table_create in target vector: Creating a Linker Hash Table. 9986 (line 6) 9987 * _bfd_relocate_contents: Relocating the section contents. 9988 (line 22) 9989 * aout_SIZE_machine_type: aout. (line 147) 9990 * aout_SIZE_mkobject: aout. (line 139) 9991 * aout_SIZE_new_section_hook: aout. (line 177) 9992 * aout_SIZE_set_arch_mach: aout. (line 164) 9993 * aout_SIZE_some_aout_object_p: aout. (line 125) 9994 * aout_SIZE_swap_exec_header_in: aout. (line 101) 9995 * aout_SIZE_swap_exec_header_out: aout. (line 113) 9996 * arelent_chain: typedef arelent. (line 336) 9997 * BFD: Overview. (line 6) 9998 * BFD canonical format: Canonical format. (line 11) 9999 * bfd_alloc: Opening and Closing. 10000 (line 214) 10001 * bfd_alloc2: Opening and Closing. 10002 (line 223) 10003 * bfd_alt_mach_code: BFD front end. (line 708) 10004 * bfd_arch_bits_per_address: Architectures. (line 531) 10005 * bfd_arch_bits_per_byte: Architectures. (line 523) 10006 * bfd_arch_get_compatible: Architectures. (line 466) 10007 * bfd_arch_list: Architectures. (line 457) 10008 * bfd_arch_mach_octets_per_byte: Architectures. (line 600) 10009 * BFD_ARELOC_BFIN_ADD: howto manager. (line 1025) 10010 * BFD_ARELOC_BFIN_ADDR: howto manager. (line 1076) 10011 * BFD_ARELOC_BFIN_AND: howto manager. (line 1046) 10012 * BFD_ARELOC_BFIN_COMP: howto manager. (line 1067) 10013 * BFD_ARELOC_BFIN_CONST: howto manager. (line 1022) 10014 * BFD_ARELOC_BFIN_DIV: howto manager. (line 1034) 10015 * BFD_ARELOC_BFIN_HWPAGE: howto manager. (line 1073) 10016 * BFD_ARELOC_BFIN_LAND: howto manager. (line 1055) 10017 * BFD_ARELOC_BFIN_LEN: howto manager. (line 1061) 10018 * BFD_ARELOC_BFIN_LOR: howto manager. (line 1058) 10019 * BFD_ARELOC_BFIN_LSHIFT: howto manager. (line 1040) 10020 * BFD_ARELOC_BFIN_MOD: howto manager. (line 1037) 10021 * BFD_ARELOC_BFIN_MULT: howto manager. (line 1031) 10022 * BFD_ARELOC_BFIN_NEG: howto manager. (line 1064) 10023 * BFD_ARELOC_BFIN_OR: howto manager. (line 1049) 10024 * BFD_ARELOC_BFIN_PAGE: howto manager. (line 1070) 10025 * BFD_ARELOC_BFIN_PUSH: howto manager. (line 1019) 10026 * BFD_ARELOC_BFIN_RSHIFT: howto manager. (line 1043) 10027 * BFD_ARELOC_BFIN_SUB: howto manager. (line 1028) 10028 * BFD_ARELOC_BFIN_XOR: howto manager. (line 1052) 10029 * bfd_cache_close: File Caching. (line 26) 10030 * bfd_cache_close_all: File Caching. (line 39) 10031 * bfd_cache_init: File Caching. (line 18) 10032 * bfd_calc_gnu_debuglink_crc32: Opening and Closing. 10033 (line 250) 10034 * bfd_canonicalize_reloc: BFD front end. (line 427) 10035 * bfd_canonicalize_symtab: symbol handling functions. 10036 (line 50) 10037 * bfd_check_format: Formats. (line 21) 10038 * bfd_check_format_matches: Formats. (line 52) 10039 * bfd_check_overflow: typedef arelent. (line 348) 10040 * bfd_close: Opening and Closing. 10041 (line 139) 10042 * bfd_close_all_done: Opening and Closing. 10043 (line 157) 10044 * bfd_coff_backend_data: coff. (line 304) 10045 * bfd_copy_private_bfd_data: BFD front end. (line 566) 10046 * bfd_copy_private_header_data: BFD front end. (line 548) 10047 * bfd_copy_private_section_data: section prototypes. (line 264) 10048 * bfd_copy_private_symbol_data: symbol handling functions. 10049 (line 140) 10050 * bfd_core_file_failing_command: Core Files. (line 12) 10051 * bfd_core_file_failing_signal: Core Files. (line 21) 10052 * bfd_core_file_pid: Core Files. (line 30) 10053 * bfd_create: Opening and Closing. 10054 (line 176) 10055 * bfd_create_gnu_debuglink_section: Opening and Closing. 10056 (line 316) 10057 * bfd_decode_symclass: symbol handling functions. 10058 (line 111) 10059 * bfd_default_arch_struct: Architectures. (line 478) 10060 * bfd_default_compatible: Architectures. (line 540) 10061 * bfd_default_reloc_type_lookup: howto manager. (line 2421) 10062 * bfd_default_scan: Architectures. (line 549) 10063 * bfd_default_set_arch_mach: Architectures. (line 496) 10064 * bfd_demangle: BFD front end. (line 806) 10065 * bfd_emul_get_commonpagesize: BFD front end. (line 786) 10066 * bfd_emul_get_maxpagesize: BFD front end. (line 766) 10067 * bfd_emul_set_commonpagesize: BFD front end. (line 797) 10068 * bfd_emul_set_maxpagesize: BFD front end. (line 777) 10069 * bfd_errmsg: BFD front end. (line 352) 10070 * bfd_fdopenr: Opening and Closing. 10071 (line 49) 10072 * bfd_fill_in_gnu_debuglink_section: Opening and Closing. 10073 (line 330) 10074 * bfd_find_target: bfd_target. (line 456) 10075 * bfd_find_version_for_sym: Writing the symbol table. 10076 (line 80) 10077 * bfd_follow_gnu_debuglink: Opening and Closing. 10078 (line 295) 10079 * bfd_fopen: Opening and Closing. 10080 (line 12) 10081 * bfd_format_string: Formats. (line 79) 10082 * bfd_generic_define_common_symbol: Writing the symbol table. 10083 (line 67) 10084 * bfd_generic_discard_group: section prototypes. (line 290) 10085 * bfd_generic_gc_sections: howto manager. (line 2452) 10086 * bfd_generic_get_relocated_section_contents: howto manager. (line 2472) 10087 * bfd_generic_is_group_section: section prototypes. (line 282) 10088 * bfd_generic_merge_sections: howto manager. (line 2462) 10089 * bfd_generic_relax_section: howto manager. (line 2439) 10090 * bfd_get_arch: Architectures. (line 507) 10091 * bfd_get_arch_info: Architectures. (line 559) 10092 * bfd_get_arch_size: BFD front end. (line 471) 10093 * bfd_get_error: BFD front end. (line 333) 10094 * bfd_get_error_handler: BFD front end. (line 403) 10095 * bfd_get_gp_size: BFD front end. (line 512) 10096 * bfd_get_mach: Architectures. (line 515) 10097 * bfd_get_mtime: BFD front end. (line 851) 10098 * bfd_get_next_mapent: Archives. (line 52) 10099 * bfd_get_reloc_code_name: howto manager. (line 2430) 10100 * bfd_get_reloc_size: typedef arelent. (line 327) 10101 * bfd_get_reloc_upper_bound: BFD front end. (line 417) 10102 * bfd_get_section_by_name: section prototypes. (line 17) 10103 * bfd_get_section_by_name_if: section prototypes. (line 31) 10104 * bfd_get_section_contents: section prototypes. (line 237) 10105 * bfd_get_sign_extend_vma: BFD front end. (line 484) 10106 * bfd_get_size <1>: Internal. (line 25) 10107 * bfd_get_size: BFD front end. (line 860) 10108 * bfd_get_symtab_upper_bound: symbol handling functions. 10109 (line 6) 10110 * bfd_get_target_info: bfd_target. (line 472) 10111 * bfd_get_unique_section_name: section prototypes. (line 50) 10112 * bfd_h_put_size: Internal. (line 97) 10113 * bfd_hash_allocate: Creating and Freeing a Hash Table. 10114 (line 17) 10115 * bfd_hash_lookup: Looking Up or Entering a String. 10116 (line 6) 10117 * bfd_hash_newfunc: Creating and Freeing a Hash Table. 10118 (line 12) 10119 * bfd_hash_set_default_size: Creating and Freeing a Hash Table. 10120 (line 25) 10121 * bfd_hash_table_free: Creating and Freeing a Hash Table. 10122 (line 21) 10123 * bfd_hash_table_init: Creating and Freeing a Hash Table. 10124 (line 6) 10125 * bfd_hash_table_init_n: Creating and Freeing a Hash Table. 10126 (line 6) 10127 * bfd_hash_traverse: Traversing a Hash Table. 10128 (line 6) 10129 * bfd_init: Initialization. (line 11) 10130 * bfd_install_relocation: typedef arelent. (line 389) 10131 * bfd_is_local_label: symbol handling functions. 10132 (line 17) 10133 * bfd_is_local_label_name: symbol handling functions. 10134 (line 26) 10135 * bfd_is_target_special_symbol: symbol handling functions. 10136 (line 38) 10137 * bfd_is_undefined_symclass: symbol handling functions. 10138 (line 120) 10139 * bfd_link_split_section: Writing the symbol table. 10140 (line 44) 10141 * bfd_log2: Internal. (line 164) 10142 * bfd_lookup_arch: Architectures. (line 567) 10143 * bfd_make_debug_symbol: symbol handling functions. 10144 (line 102) 10145 * bfd_make_empty_symbol: symbol handling functions. 10146 (line 78) 10147 * bfd_make_readable: Opening and Closing. 10148 (line 200) 10149 * bfd_make_section: section prototypes. (line 129) 10150 * bfd_make_section_anyway: section prototypes. (line 100) 10151 * bfd_make_section_anyway_with_flags: section prototypes. (line 82) 10152 * bfd_make_section_old_way: section prototypes. (line 62) 10153 * bfd_make_section_with_flags: section prototypes. (line 116) 10154 * bfd_make_writable: Opening and Closing. 10155 (line 186) 10156 * bfd_malloc_and_get_section: section prototypes. (line 254) 10157 * bfd_map_over_sections: section prototypes. (line 164) 10158 * bfd_merge_private_bfd_data: BFD front end. (line 582) 10159 * bfd_mmap: BFD front end. (line 889) 10160 * bfd_octets_per_byte: Architectures. (line 590) 10161 * bfd_open_file: File Caching. (line 52) 10162 * bfd_openr: Opening and Closing. 10163 (line 33) 10164 * bfd_openr_iovec: Opening and Closing. 10165 (line 79) 10166 * bfd_openr_next_archived_file: Archives. (line 78) 10167 * bfd_openstreamr: Opening and Closing. 10168 (line 70) 10169 * bfd_openw: Opening and Closing. 10170 (line 127) 10171 * bfd_perform_relocation: typedef arelent. (line 364) 10172 * bfd_perror: BFD front end. (line 361) 10173 * bfd_preserve_finish: BFD front end. (line 756) 10174 * bfd_preserve_restore: BFD front end. (line 746) 10175 * bfd_preserve_save: BFD front end. (line 730) 10176 * bfd_print_symbol_vandf: symbol handling functions. 10177 (line 70) 10178 * bfd_printable_arch_mach: Architectures. (line 578) 10179 * bfd_printable_name: Architectures. (line 438) 10180 * bfd_put_size: Internal. (line 22) 10181 * BFD_RELOC_12_PCREL: howto manager. (line 39) 10182 * BFD_RELOC_14: howto manager. (line 31) 10183 * BFD_RELOC_16: howto manager. (line 30) 10184 * BFD_RELOC_16_BASEREL: howto manager. (line 95) 10185 * BFD_RELOC_16_GOT_PCREL: howto manager. (line 52) 10186 * BFD_RELOC_16_GOTOFF: howto manager. (line 55) 10187 * BFD_RELOC_16_PCREL: howto manager. (line 38) 10188 * BFD_RELOC_16_PCREL_S2: howto manager. (line 107) 10189 * BFD_RELOC_16_PLT_PCREL: howto manager. (line 63) 10190 * BFD_RELOC_16_PLTOFF: howto manager. (line 67) 10191 * BFD_RELOC_16C_ABS20: howto manager. (line 1985) 10192 * BFD_RELOC_16C_ABS20_C: howto manager. (line 1986) 10193 * BFD_RELOC_16C_ABS24: howto manager. (line 1987) 10194 * BFD_RELOC_16C_ABS24_C: howto manager. (line 1988) 10195 * BFD_RELOC_16C_DISP04: howto manager. (line 1965) 10196 * BFD_RELOC_16C_DISP04_C: howto manager. (line 1966) 10197 * BFD_RELOC_16C_DISP08: howto manager. (line 1967) 10198 * BFD_RELOC_16C_DISP08_C: howto manager. (line 1968) 10199 * BFD_RELOC_16C_DISP16: howto manager. (line 1969) 10200 * BFD_RELOC_16C_DISP16_C: howto manager. (line 1970) 10201 * BFD_RELOC_16C_DISP24: howto manager. (line 1971) 10202 * BFD_RELOC_16C_DISP24_C: howto manager. (line 1972) 10203 * BFD_RELOC_16C_DISP24a: howto manager. (line 1973) 10204 * BFD_RELOC_16C_DISP24a_C: howto manager. (line 1974) 10205 * BFD_RELOC_16C_IMM04: howto manager. (line 1989) 10206 * BFD_RELOC_16C_IMM04_C: howto manager. (line 1990) 10207 * BFD_RELOC_16C_IMM16: howto manager. (line 1991) 10208 * BFD_RELOC_16C_IMM16_C: howto manager. (line 1992) 10209 * BFD_RELOC_16C_IMM20: howto manager. (line 1993) 10210 * BFD_RELOC_16C_IMM20_C: howto manager. (line 1994) 10211 * BFD_RELOC_16C_IMM24: howto manager. (line 1995) 10212 * BFD_RELOC_16C_IMM24_C: howto manager. (line 1996) 10213 * BFD_RELOC_16C_IMM32: howto manager. (line 1997) 10214 * BFD_RELOC_16C_IMM32_C: howto manager. (line 1998) 10215 * BFD_RELOC_16C_NUM08: howto manager. (line 1959) 10216 * BFD_RELOC_16C_NUM08_C: howto manager. (line 1960) 10217 * BFD_RELOC_16C_NUM16: howto manager. (line 1961) 10218 * BFD_RELOC_16C_NUM16_C: howto manager. (line 1962) 10219 * BFD_RELOC_16C_NUM32: howto manager. (line 1963) 10220 * BFD_RELOC_16C_NUM32_C: howto manager. (line 1964) 10221 * BFD_RELOC_16C_REG04: howto manager. (line 1975) 10222 * BFD_RELOC_16C_REG04_C: howto manager. (line 1976) 10223 * BFD_RELOC_16C_REG04a: howto manager. (line 1977) 10224 * BFD_RELOC_16C_REG04a_C: howto manager. (line 1978) 10225 * BFD_RELOC_16C_REG14: howto manager. (line 1979) 10226 * BFD_RELOC_16C_REG14_C: howto manager. (line 1980) 10227 * BFD_RELOC_16C_REG16: howto manager. (line 1981) 10228 * BFD_RELOC_16C_REG16_C: howto manager. (line 1982) 10229 * BFD_RELOC_16C_REG20: howto manager. (line 1983) 10230 * BFD_RELOC_16C_REG20_C: howto manager. (line 1984) 10231 * BFD_RELOC_23_PCREL_S2: howto manager. (line 108) 10232 * BFD_RELOC_24: howto manager. (line 29) 10233 * BFD_RELOC_24_PCREL: howto manager. (line 37) 10234 * BFD_RELOC_24_PLT_PCREL: howto manager. (line 62) 10235 * BFD_RELOC_26: howto manager. (line 28) 10236 * BFD_RELOC_32: howto manager. (line 27) 10237 * BFD_RELOC_32_BASEREL: howto manager. (line 94) 10238 * BFD_RELOC_32_GOT_PCREL: howto manager. (line 51) 10239 * BFD_RELOC_32_GOTOFF: howto manager. (line 54) 10240 * BFD_RELOC_32_PCREL: howto manager. (line 36) 10241 * BFD_RELOC_32_PCREL_S2: howto manager. (line 106) 10242 * BFD_RELOC_32_PLT_PCREL: howto manager. (line 61) 10243 * BFD_RELOC_32_PLTOFF: howto manager. (line 66) 10244 * BFD_RELOC_32_SECREL: howto manager. (line 48) 10245 * BFD_RELOC_386_COPY: howto manager. (line 507) 10246 * BFD_RELOC_386_GLOB_DAT: howto manager. (line 508) 10247 * BFD_RELOC_386_GOT32: howto manager. (line 505) 10248 * BFD_RELOC_386_GOTOFF: howto manager. (line 511) 10249 * BFD_RELOC_386_GOTPC: howto manager. (line 512) 10250 * BFD_RELOC_386_IRELATIVE: howto manager. (line 528) 10251 * BFD_RELOC_386_JUMP_SLOT: howto manager. (line 509) 10252 * BFD_RELOC_386_PLT32: howto manager. (line 506) 10253 * BFD_RELOC_386_RELATIVE: howto manager. (line 510) 10254 * BFD_RELOC_386_TLS_DESC: howto manager. (line 527) 10255 * BFD_RELOC_386_TLS_DESC_CALL: howto manager. (line 526) 10256 * BFD_RELOC_386_TLS_DTPMOD32: howto manager. (line 522) 10257 * BFD_RELOC_386_TLS_DTPOFF32: howto manager. (line 523) 10258 * BFD_RELOC_386_TLS_GD: howto manager. (line 517) 10259 * BFD_RELOC_386_TLS_GOTDESC: howto manager. (line 525) 10260 * BFD_RELOC_386_TLS_GOTIE: howto manager. (line 515) 10261 * BFD_RELOC_386_TLS_IE: howto manager. (line 514) 10262 * BFD_RELOC_386_TLS_IE_32: howto manager. (line 520) 10263 * BFD_RELOC_386_TLS_LDM: howto manager. (line 518) 10264 * BFD_RELOC_386_TLS_LDO_32: howto manager. (line 519) 10265 * BFD_RELOC_386_TLS_LE: howto manager. (line 516) 10266 * BFD_RELOC_386_TLS_LE_32: howto manager. (line 521) 10267 * BFD_RELOC_386_TLS_TPOFF: howto manager. (line 513) 10268 * BFD_RELOC_386_TLS_TPOFF32: howto manager. (line 524) 10269 * BFD_RELOC_390_12: howto manager. (line 1645) 10270 * BFD_RELOC_390_20: howto manager. (line 1745) 10271 * BFD_RELOC_390_COPY: howto manager. (line 1654) 10272 * BFD_RELOC_390_GLOB_DAT: howto manager. (line 1657) 10273 * BFD_RELOC_390_GOT12: howto manager. (line 1648) 10274 * BFD_RELOC_390_GOT16: howto manager. (line 1669) 10275 * BFD_RELOC_390_GOT20: howto manager. (line 1746) 10276 * BFD_RELOC_390_GOT64: howto manager. (line 1687) 10277 * BFD_RELOC_390_GOTENT: howto manager. (line 1693) 10278 * BFD_RELOC_390_GOTOFF64: howto manager. (line 1696) 10279 * BFD_RELOC_390_GOTPC: howto manager. (line 1666) 10280 * BFD_RELOC_390_GOTPCDBL: howto manager. (line 1684) 10281 * BFD_RELOC_390_GOTPLT12: howto manager. (line 1699) 10282 * BFD_RELOC_390_GOTPLT16: howto manager. (line 1702) 10283 * BFD_RELOC_390_GOTPLT20: howto manager. (line 1747) 10284 * BFD_RELOC_390_GOTPLT32: howto manager. (line 1705) 10285 * BFD_RELOC_390_GOTPLT64: howto manager. (line 1708) 10286 * BFD_RELOC_390_GOTPLTENT: howto manager. (line 1711) 10287 * BFD_RELOC_390_JMP_SLOT: howto manager. (line 1660) 10288 * BFD_RELOC_390_PC16DBL: howto manager. (line 1672) 10289 * BFD_RELOC_390_PC32DBL: howto manager. (line 1678) 10290 * BFD_RELOC_390_PLT16DBL: howto manager. (line 1675) 10291 * BFD_RELOC_390_PLT32: howto manager. (line 1651) 10292 * BFD_RELOC_390_PLT32DBL: howto manager. (line 1681) 10293 * BFD_RELOC_390_PLT64: howto manager. (line 1690) 10294 * BFD_RELOC_390_PLTOFF16: howto manager. (line 1714) 10295 * BFD_RELOC_390_PLTOFF32: howto manager. (line 1717) 10296 * BFD_RELOC_390_PLTOFF64: howto manager. (line 1720) 10297 * BFD_RELOC_390_RELATIVE: howto manager. (line 1663) 10298 * BFD_RELOC_390_TLS_DTPMOD: howto manager. (line 1740) 10299 * BFD_RELOC_390_TLS_DTPOFF: howto manager. (line 1741) 10300 * BFD_RELOC_390_TLS_GD32: howto manager. (line 1726) 10301 * BFD_RELOC_390_TLS_GD64: howto manager. (line 1727) 10302 * BFD_RELOC_390_TLS_GDCALL: howto manager. (line 1724) 10303 * BFD_RELOC_390_TLS_GOTIE12: howto manager. (line 1728) 10304 * BFD_RELOC_390_TLS_GOTIE20: howto manager. (line 1748) 10305 * BFD_RELOC_390_TLS_GOTIE32: howto manager. (line 1729) 10306 * BFD_RELOC_390_TLS_GOTIE64: howto manager. (line 1730) 10307 * BFD_RELOC_390_TLS_IE32: howto manager. (line 1733) 10308 * BFD_RELOC_390_TLS_IE64: howto manager. (line 1734) 10309 * BFD_RELOC_390_TLS_IEENT: howto manager. (line 1735) 10310 * BFD_RELOC_390_TLS_LDCALL: howto manager. (line 1725) 10311 * BFD_RELOC_390_TLS_LDM32: howto manager. (line 1731) 10312 * BFD_RELOC_390_TLS_LDM64: howto manager. (line 1732) 10313 * BFD_RELOC_390_TLS_LDO32: howto manager. (line 1738) 10314 * BFD_RELOC_390_TLS_LDO64: howto manager. (line 1739) 10315 * BFD_RELOC_390_TLS_LE32: howto manager. (line 1736) 10316 * BFD_RELOC_390_TLS_LE64: howto manager. (line 1737) 10317 * BFD_RELOC_390_TLS_LOAD: howto manager. (line 1723) 10318 * BFD_RELOC_390_TLS_TPOFF: howto manager. (line 1742) 10319 * BFD_RELOC_64: howto manager. (line 26) 10320 * BFD_RELOC_64_PCREL: howto manager. (line 35) 10321 * BFD_RELOC_64_PLT_PCREL: howto manager. (line 60) 10322 * BFD_RELOC_64_PLTOFF: howto manager. (line 65) 10323 * BFD_RELOC_68K_GLOB_DAT: howto manager. (line 74) 10324 * BFD_RELOC_68K_JMP_SLOT: howto manager. (line 75) 10325 * BFD_RELOC_68K_RELATIVE: howto manager. (line 76) 10326 * BFD_RELOC_68K_TLS_GD16: howto manager. (line 78) 10327 * BFD_RELOC_68K_TLS_GD32: howto manager. (line 77) 10328 * BFD_RELOC_68K_TLS_GD8: howto manager. (line 79) 10329 * BFD_RELOC_68K_TLS_IE16: howto manager. (line 87) 10330 * BFD_RELOC_68K_TLS_IE32: howto manager. (line 86) 10331 * BFD_RELOC_68K_TLS_IE8: howto manager. (line 88) 10332 * BFD_RELOC_68K_TLS_LDM16: howto manager. (line 81) 10333 * BFD_RELOC_68K_TLS_LDM32: howto manager. (line 80) 10334 * BFD_RELOC_68K_TLS_LDM8: howto manager. (line 82) 10335 * BFD_RELOC_68K_TLS_LDO16: howto manager. (line 84) 10336 * BFD_RELOC_68K_TLS_LDO32: howto manager. (line 83) 10337 * BFD_RELOC_68K_TLS_LDO8: howto manager. (line 85) 10338 * BFD_RELOC_68K_TLS_LE16: howto manager. (line 90) 10339 * BFD_RELOC_68K_TLS_LE32: howto manager. (line 89) 10340 * BFD_RELOC_68K_TLS_LE8: howto manager. (line 91) 10341 * BFD_RELOC_8: howto manager. (line 32) 10342 * BFD_RELOC_860_COPY: howto manager. (line 2113) 10343 * BFD_RELOC_860_GLOB_DAT: howto manager. (line 2114) 10344 * BFD_RELOC_860_HAGOT: howto manager. (line 2139) 10345 * BFD_RELOC_860_HAGOTOFF: howto manager. (line 2140) 10346 * BFD_RELOC_860_HAPC: howto manager. (line 2141) 10347 * BFD_RELOC_860_HIGH: howto manager. (line 2142) 10348 * BFD_RELOC_860_HIGHADJ: howto manager. (line 2138) 10349 * BFD_RELOC_860_HIGOT: howto manager. (line 2143) 10350 * BFD_RELOC_860_HIGOTOFF: howto manager. (line 2144) 10351 * BFD_RELOC_860_JUMP_SLOT: howto manager. (line 2115) 10352 * BFD_RELOC_860_LOGOT0: howto manager. (line 2127) 10353 * BFD_RELOC_860_LOGOT1: howto manager. (line 2129) 10354 * BFD_RELOC_860_LOGOTOFF0: howto manager. (line 2131) 10355 * BFD_RELOC_860_LOGOTOFF1: howto manager. (line 2133) 10356 * BFD_RELOC_860_LOGOTOFF2: howto manager. (line 2135) 10357 * BFD_RELOC_860_LOGOTOFF3: howto manager. (line 2136) 10358 * BFD_RELOC_860_LOPC: howto manager. (line 2137) 10359 * BFD_RELOC_860_LOW0: howto manager. (line 2120) 10360 * BFD_RELOC_860_LOW1: howto manager. (line 2122) 10361 * BFD_RELOC_860_LOW2: howto manager. (line 2124) 10362 * BFD_RELOC_860_LOW3: howto manager. (line 2126) 10363 * BFD_RELOC_860_PC16: howto manager. (line 2119) 10364 * BFD_RELOC_860_PC26: howto manager. (line 2117) 10365 * BFD_RELOC_860_PLT26: howto manager. (line 2118) 10366 * BFD_RELOC_860_RELATIVE: howto manager. (line 2116) 10367 * BFD_RELOC_860_SPGOT0: howto manager. (line 2128) 10368 * BFD_RELOC_860_SPGOT1: howto manager. (line 2130) 10369 * BFD_RELOC_860_SPGOTOFF0: howto manager. (line 2132) 10370 * BFD_RELOC_860_SPGOTOFF1: howto manager. (line 2134) 10371 * BFD_RELOC_860_SPLIT0: howto manager. (line 2121) 10372 * BFD_RELOC_860_SPLIT1: howto manager. (line 2123) 10373 * BFD_RELOC_860_SPLIT2: howto manager. (line 2125) 10374 * BFD_RELOC_8_BASEREL: howto manager. (line 99) 10375 * BFD_RELOC_8_FFnn: howto manager. (line 103) 10376 * BFD_RELOC_8_GOT_PCREL: howto manager. (line 53) 10377 * BFD_RELOC_8_GOTOFF: howto manager. (line 59) 10378 * BFD_RELOC_8_PCREL: howto manager. (line 40) 10379 * BFD_RELOC_8_PLT_PCREL: howto manager. (line 64) 10380 * BFD_RELOC_8_PLTOFF: howto manager. (line 71) 10381 * BFD_RELOC_ALPHA_BOH: howto manager. (line 315) 10382 * BFD_RELOC_ALPHA_BRSGP: howto manager. (line 298) 10383 * BFD_RELOC_ALPHA_BSR: howto manager. (line 307) 10384 * BFD_RELOC_ALPHA_CODEADDR: howto manager. (line 289) 10385 * BFD_RELOC_ALPHA_DTPMOD64: howto manager. (line 321) 10386 * BFD_RELOC_ALPHA_DTPREL16: howto manager. (line 326) 10387 * BFD_RELOC_ALPHA_DTPREL64: howto manager. (line 323) 10388 * BFD_RELOC_ALPHA_DTPREL_HI16: howto manager. (line 324) 10389 * BFD_RELOC_ALPHA_DTPREL_LO16: howto manager. (line 325) 10390 * BFD_RELOC_ALPHA_ELF_LITERAL: howto manager. (line 254) 10391 * BFD_RELOC_ALPHA_GOTDTPREL16: howto manager. (line 322) 10392 * BFD_RELOC_ALPHA_GOTTPREL16: howto manager. (line 327) 10393 * BFD_RELOC_ALPHA_GPDISP: howto manager. (line 248) 10394 * BFD_RELOC_ALPHA_GPDISP_HI16: howto manager. (line 234) 10395 * BFD_RELOC_ALPHA_GPDISP_LO16: howto manager. (line 242) 10396 * BFD_RELOC_ALPHA_GPREL_HI16: howto manager. (line 293) 10397 * BFD_RELOC_ALPHA_GPREL_LO16: howto manager. (line 294) 10398 * BFD_RELOC_ALPHA_HINT: howto manager. (line 280) 10399 * BFD_RELOC_ALPHA_LDA: howto manager. (line 311) 10400 * BFD_RELOC_ALPHA_LINKAGE: howto manager. (line 285) 10401 * BFD_RELOC_ALPHA_LITERAL: howto manager. (line 253) 10402 * BFD_RELOC_ALPHA_LITUSE: howto manager. (line 255) 10403 * BFD_RELOC_ALPHA_NOP: howto manager. (line 303) 10404 * BFD_RELOC_ALPHA_TLSGD: howto manager. (line 319) 10405 * BFD_RELOC_ALPHA_TLSLDM: howto manager. (line 320) 10406 * BFD_RELOC_ALPHA_TPREL16: howto manager. (line 331) 10407 * BFD_RELOC_ALPHA_TPREL64: howto manager. (line 328) 10408 * BFD_RELOC_ALPHA_TPREL_HI16: howto manager. (line 329) 10409 * BFD_RELOC_ALPHA_TPREL_LO16: howto manager. (line 330) 10410 * BFD_RELOC_ARC_B22_PCREL: howto manager. (line 954) 10411 * BFD_RELOC_ARC_B26: howto manager. (line 959) 10412 * BFD_RELOC_ARM_ADR_IMM: howto manager. (line 840) 10413 * BFD_RELOC_ARM_ADRL_IMMEDIATE: howto manager. (line 826) 10414 * BFD_RELOC_ARM_ALU_PC_G0: howto manager. (line 790) 10415 * BFD_RELOC_ARM_ALU_PC_G0_NC: howto manager. (line 789) 10416 * BFD_RELOC_ARM_ALU_PC_G1: howto manager. (line 792) 10417 * BFD_RELOC_ARM_ALU_PC_G1_NC: howto manager. (line 791) 10418 * BFD_RELOC_ARM_ALU_PC_G2: howto manager. (line 793) 10419 * BFD_RELOC_ARM_ALU_SB_G0: howto manager. (line 804) 10420 * BFD_RELOC_ARM_ALU_SB_G0_NC: howto manager. (line 803) 10421 * BFD_RELOC_ARM_ALU_SB_G1: howto manager. (line 806) 10422 * BFD_RELOC_ARM_ALU_SB_G1_NC: howto manager. (line 805) 10423 * BFD_RELOC_ARM_ALU_SB_G2: howto manager. (line 807) 10424 * BFD_RELOC_ARM_CP_OFF_IMM: howto manager. (line 836) 10425 * BFD_RELOC_ARM_CP_OFF_IMM_S2: howto manager. (line 837) 10426 * BFD_RELOC_ARM_GLOB_DAT: howto manager. (line 764) 10427 * BFD_RELOC_ARM_GOT32: howto manager. (line 765) 10428 * BFD_RELOC_ARM_GOT_PREL: howto manager. (line 770) 10429 * BFD_RELOC_ARM_GOTOFF: howto manager. (line 768) 10430 * BFD_RELOC_ARM_GOTPC: howto manager. (line 769) 10431 * BFD_RELOC_ARM_HVC: howto manager. (line 833) 10432 * BFD_RELOC_ARM_HWLITERAL: howto manager. (line 847) 10433 * BFD_RELOC_ARM_IMMEDIATE: howto manager. (line 825) 10434 * BFD_RELOC_ARM_IN_POOL: howto manager. (line 843) 10435 * BFD_RELOC_ARM_IRELATIVE: howto manager. (line 822) 10436 * BFD_RELOC_ARM_JUMP_SLOT: howto manager. (line 763) 10437 * BFD_RELOC_ARM_LDC_PC_G0: howto manager. (line 800) 10438 * BFD_RELOC_ARM_LDC_PC_G1: howto manager. (line 801) 10439 * BFD_RELOC_ARM_LDC_PC_G2: howto manager. (line 802) 10440 * BFD_RELOC_ARM_LDC_SB_G0: howto manager. (line 814) 10441 * BFD_RELOC_ARM_LDC_SB_G1: howto manager. (line 815) 10442 * BFD_RELOC_ARM_LDC_SB_G2: howto manager. (line 816) 10443 * BFD_RELOC_ARM_LDR_IMM: howto manager. (line 841) 10444 * BFD_RELOC_ARM_LDR_PC_G0: howto manager. (line 794) 10445 * BFD_RELOC_ARM_LDR_PC_G1: howto manager. (line 795) 10446 * BFD_RELOC_ARM_LDR_PC_G2: howto manager. (line 796) 10447 * BFD_RELOC_ARM_LDR_SB_G0: howto manager. (line 808) 10448 * BFD_RELOC_ARM_LDR_SB_G1: howto manager. (line 809) 10449 * BFD_RELOC_ARM_LDR_SB_G2: howto manager. (line 810) 10450 * BFD_RELOC_ARM_LDRS_PC_G0: howto manager. (line 797) 10451 * BFD_RELOC_ARM_LDRS_PC_G1: howto manager. (line 798) 10452 * BFD_RELOC_ARM_LDRS_PC_G2: howto manager. (line 799) 10453 * BFD_RELOC_ARM_LDRS_SB_G0: howto manager. (line 811) 10454 * BFD_RELOC_ARM_LDRS_SB_G1: howto manager. (line 812) 10455 * BFD_RELOC_ARM_LDRS_SB_G2: howto manager. (line 813) 10456 * BFD_RELOC_ARM_LITERAL: howto manager. (line 842) 10457 * BFD_RELOC_ARM_MOVT: howto manager. (line 754) 10458 * BFD_RELOC_ARM_MOVT_PCREL: howto manager. (line 756) 10459 * BFD_RELOC_ARM_MOVW: howto manager. (line 753) 10460 * BFD_RELOC_ARM_MOVW_PCREL: howto manager. (line 755) 10461 * BFD_RELOC_ARM_MULTI: howto manager. (line 835) 10462 * BFD_RELOC_ARM_OFFSET_IMM: howto manager. (line 727) 10463 * BFD_RELOC_ARM_OFFSET_IMM8: howto manager. (line 844) 10464 * BFD_RELOC_ARM_PCREL_BLX: howto manager. (line 698) 10465 * BFD_RELOC_ARM_PCREL_BRANCH: howto manager. (line 694) 10466 * BFD_RELOC_ARM_PCREL_CALL: howto manager. (line 708) 10467 * BFD_RELOC_ARM_PCREL_JUMP: howto manager. (line 712) 10468 * BFD_RELOC_ARM_PLT32: howto manager. (line 766) 10469 * BFD_RELOC_ARM_PREL31: howto manager. (line 750) 10470 * BFD_RELOC_ARM_RELATIVE: howto manager. (line 767) 10471 * BFD_RELOC_ARM_ROSEGREL32: howto manager. (line 739) 10472 * BFD_RELOC_ARM_SBREL32: howto manager. (line 742) 10473 * BFD_RELOC_ARM_SHIFT_IMM: howto manager. (line 831) 10474 * BFD_RELOC_ARM_SMC: howto manager. (line 832) 10475 * BFD_RELOC_ARM_SWI: howto manager. (line 834) 10476 * BFD_RELOC_ARM_T32_ADD_IMM: howto manager. (line 828) 10477 * BFD_RELOC_ARM_T32_ADD_PC12: howto manager. (line 830) 10478 * BFD_RELOC_ARM_T32_CP_OFF_IMM: howto manager. (line 838) 10479 * BFD_RELOC_ARM_T32_CP_OFF_IMM_S2: howto manager. (line 839) 10480 * BFD_RELOC_ARM_T32_IMM12: howto manager. (line 829) 10481 * BFD_RELOC_ARM_T32_IMMEDIATE: howto manager. (line 827) 10482 * BFD_RELOC_ARM_T32_OFFSET_IMM: howto manager. (line 846) 10483 * BFD_RELOC_ARM_T32_OFFSET_U8: howto manager. (line 845) 10484 * BFD_RELOC_ARM_TARGET1: howto manager. (line 735) 10485 * BFD_RELOC_ARM_TARGET2: howto manager. (line 745) 10486 * BFD_RELOC_ARM_THM_TLS_CALL: howto manager. (line 783) 10487 * BFD_RELOC_ARM_THM_TLS_DESCSEQ: howto manager. (line 785) 10488 * BFD_RELOC_ARM_THUMB_ADD: howto manager. (line 848) 10489 * BFD_RELOC_ARM_THUMB_IMM: howto manager. (line 849) 10490 * BFD_RELOC_ARM_THUMB_MOVT: howto manager. (line 758) 10491 * BFD_RELOC_ARM_THUMB_MOVT_PCREL: howto manager. (line 760) 10492 * BFD_RELOC_ARM_THUMB_MOVW: howto manager. (line 757) 10493 * BFD_RELOC_ARM_THUMB_MOVW_PCREL: howto manager. (line 759) 10494 * BFD_RELOC_ARM_THUMB_OFFSET: howto manager. (line 731) 10495 * BFD_RELOC_ARM_THUMB_SHIFT: howto manager. (line 850) 10496 * BFD_RELOC_ARM_TLS_CALL: howto manager. (line 782) 10497 * BFD_RELOC_ARM_TLS_DESC: howto manager. (line 786) 10498 * BFD_RELOC_ARM_TLS_DESCSEQ: howto manager. (line 784) 10499 * BFD_RELOC_ARM_TLS_DTPMOD32: howto manager. (line 777) 10500 * BFD_RELOC_ARM_TLS_DTPOFF32: howto manager. (line 776) 10501 * BFD_RELOC_ARM_TLS_GD32: howto manager. (line 773) 10502 * BFD_RELOC_ARM_TLS_GOTDESC: howto manager. (line 781) 10503 * BFD_RELOC_ARM_TLS_IE32: howto manager. (line 779) 10504 * BFD_RELOC_ARM_TLS_LDM32: howto manager. (line 775) 10505 * BFD_RELOC_ARM_TLS_LDO32: howto manager. (line 774) 10506 * BFD_RELOC_ARM_TLS_LE32: howto manager. (line 780) 10507 * BFD_RELOC_ARM_TLS_TPOFF32: howto manager. (line 778) 10508 * BFD_RELOC_ARM_V4BX: howto manager. (line 819) 10509 * BFD_RELOC_AVR_13_PCREL: howto manager. (line 1517) 10510 * BFD_RELOC_AVR_16_PM: howto manager. (line 1521) 10511 * BFD_RELOC_AVR_6: howto manager. (line 1608) 10512 * BFD_RELOC_AVR_6_ADIW: howto manager. (line 1612) 10513 * BFD_RELOC_AVR_7_PCREL: howto manager. (line 1513) 10514 * BFD_RELOC_AVR_CALL: howto manager. (line 1600) 10515 * BFD_RELOC_AVR_HH8_LDI: howto manager. (line 1533) 10516 * BFD_RELOC_AVR_HH8_LDI_NEG: howto manager. (line 1552) 10517 * BFD_RELOC_AVR_HH8_LDI_PM: howto manager. (line 1581) 10518 * BFD_RELOC_AVR_HH8_LDI_PM_NEG: howto manager. (line 1595) 10519 * BFD_RELOC_AVR_HI8_LDI: howto manager. (line 1529) 10520 * BFD_RELOC_AVR_HI8_LDI_GS: howto manager. (line 1575) 10521 * BFD_RELOC_AVR_HI8_LDI_NEG: howto manager. (line 1547) 10522 * BFD_RELOC_AVR_HI8_LDI_PM: howto manager. (line 1571) 10523 * BFD_RELOC_AVR_HI8_LDI_PM_NEG: howto manager. (line 1590) 10524 * BFD_RELOC_AVR_LDI: howto manager. (line 1604) 10525 * BFD_RELOC_AVR_LO8_LDI: howto manager. (line 1525) 10526 * BFD_RELOC_AVR_LO8_LDI_GS: howto manager. (line 1565) 10527 * BFD_RELOC_AVR_LO8_LDI_NEG: howto manager. (line 1542) 10528 * BFD_RELOC_AVR_LO8_LDI_PM: howto manager. (line 1561) 10529 * BFD_RELOC_AVR_LO8_LDI_PM_NEG: howto manager. (line 1586) 10530 * BFD_RELOC_AVR_MS8_LDI: howto manager. (line 1538) 10531 * BFD_RELOC_AVR_MS8_LDI_NEG: howto manager. (line 1557) 10532 * BFD_RELOC_BFIN_10_PCREL: howto manager. (line 979) 10533 * BFD_RELOC_BFIN_11_PCREL: howto manager. (line 982) 10534 * BFD_RELOC_BFIN_12_PCREL_JUMP: howto manager. (line 985) 10535 * BFD_RELOC_BFIN_12_PCREL_JUMP_S: howto manager. (line 988) 10536 * BFD_RELOC_BFIN_16_HIGH: howto manager. (line 967) 10537 * BFD_RELOC_BFIN_16_IMM: howto manager. (line 964) 10538 * BFD_RELOC_BFIN_16_LOW: howto manager. (line 976) 10539 * BFD_RELOC_BFIN_24_PCREL_CALL_X: howto manager. (line 991) 10540 * BFD_RELOC_BFIN_24_PCREL_JUMP_L: howto manager. (line 994) 10541 * BFD_RELOC_BFIN_4_PCREL: howto manager. (line 970) 10542 * BFD_RELOC_BFIN_5_PCREL: howto manager. (line 973) 10543 * BFD_RELOC_BFIN_FUNCDESC: howto manager. (line 1000) 10544 * BFD_RELOC_BFIN_FUNCDESC_GOT17M4: howto manager. (line 1001) 10545 * BFD_RELOC_BFIN_FUNCDESC_GOTHI: howto manager. (line 1002) 10546 * BFD_RELOC_BFIN_FUNCDESC_GOTLO: howto manager. (line 1003) 10547 * BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4: howto manager. (line 1005) 10548 * BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI: howto manager. (line 1006) 10549 * BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO: howto manager. (line 1007) 10550 * BFD_RELOC_BFIN_FUNCDESC_VALUE: howto manager. (line 1004) 10551 * BFD_RELOC_BFIN_GOT: howto manager. (line 1013) 10552 * BFD_RELOC_BFIN_GOT17M4: howto manager. (line 997) 10553 * BFD_RELOC_BFIN_GOTHI: howto manager. (line 998) 10554 * BFD_RELOC_BFIN_GOTLO: howto manager. (line 999) 10555 * BFD_RELOC_BFIN_GOTOFF17M4: howto manager. (line 1008) 10556 * BFD_RELOC_BFIN_GOTOFFHI: howto manager. (line 1009) 10557 * BFD_RELOC_BFIN_GOTOFFLO: howto manager. (line 1010) 10558 * BFD_RELOC_BFIN_PLTPC: howto manager. (line 1016) 10559 * BFD_RELOC_C6000_ABS_H16: howto manager. (line 1376) 10560 * BFD_RELOC_C6000_ABS_L16: howto manager. (line 1375) 10561 * BFD_RELOC_C6000_ABS_S16: howto manager. (line 1374) 10562 * BFD_RELOC_C6000_ALIGN: howto manager. (line 1397) 10563 * BFD_RELOC_C6000_COPY: howto manager. (line 1392) 10564 * BFD_RELOC_C6000_DSBT_INDEX: howto manager. (line 1390) 10565 * BFD_RELOC_C6000_EHTYPE: howto manager. (line 1394) 10566 * BFD_RELOC_C6000_FPHEAD: howto manager. (line 1398) 10567 * BFD_RELOC_C6000_JUMP_SLOT: howto manager. (line 1393) 10568 * BFD_RELOC_C6000_NOCMP: howto manager. (line 1399) 10569 * BFD_RELOC_C6000_PCR_H16: howto manager. (line 1395) 10570 * BFD_RELOC_C6000_PCR_L16: howto manager. (line 1396) 10571 * BFD_RELOC_C6000_PCR_S10: howto manager. (line 1372) 10572 * BFD_RELOC_C6000_PCR_S12: howto manager. (line 1371) 10573 * BFD_RELOC_C6000_PCR_S21: howto manager. (line 1370) 10574 * BFD_RELOC_C6000_PCR_S7: howto manager. (line 1373) 10575 * BFD_RELOC_C6000_PREL31: howto manager. (line 1391) 10576 * BFD_RELOC_C6000_SBR_GOT_H16_W: howto manager. (line 1389) 10577 * BFD_RELOC_C6000_SBR_GOT_L16_W: howto manager. (line 1388) 10578 * BFD_RELOC_C6000_SBR_GOT_U15_W: howto manager. (line 1387) 10579 * BFD_RELOC_C6000_SBR_H16_B: howto manager. (line 1384) 10580 * BFD_RELOC_C6000_SBR_H16_H: howto manager. (line 1385) 10581 * BFD_RELOC_C6000_SBR_H16_W: howto manager. (line 1386) 10582 * BFD_RELOC_C6000_SBR_L16_B: howto manager. (line 1381) 10583 * BFD_RELOC_C6000_SBR_L16_H: howto manager. (line 1382) 10584 * BFD_RELOC_C6000_SBR_L16_W: howto manager. (line 1383) 10585 * BFD_RELOC_C6000_SBR_S16: howto manager. (line 1380) 10586 * BFD_RELOC_C6000_SBR_U15_B: howto manager. (line 1377) 10587 * BFD_RELOC_C6000_SBR_U15_H: howto manager. (line 1378) 10588 * BFD_RELOC_C6000_SBR_U15_W: howto manager. (line 1379) 10589 * bfd_reloc_code_type: howto manager. (line 10) 10590 * BFD_RELOC_CR16_ABS20: howto manager. (line 2013) 10591 * BFD_RELOC_CR16_ABS24: howto manager. (line 2014) 10592 * BFD_RELOC_CR16_DISP16: howto manager. (line 2024) 10593 * BFD_RELOC_CR16_DISP20: howto manager. (line 2025) 10594 * BFD_RELOC_CR16_DISP24: howto manager. (line 2026) 10595 * BFD_RELOC_CR16_DISP24a: howto manager. (line 2027) 10596 * BFD_RELOC_CR16_DISP4: howto manager. (line 2022) 10597 * BFD_RELOC_CR16_DISP8: howto manager. (line 2023) 10598 * BFD_RELOC_CR16_GLOB_DAT: howto manager. (line 2033) 10599 * BFD_RELOC_CR16_GOT_REGREL20: howto manager. (line 2031) 10600 * BFD_RELOC_CR16_GOTC_REGREL20: howto manager. (line 2032) 10601 * BFD_RELOC_CR16_IMM16: howto manager. (line 2017) 10602 * BFD_RELOC_CR16_IMM20: howto manager. (line 2018) 10603 * BFD_RELOC_CR16_IMM24: howto manager. (line 2019) 10604 * BFD_RELOC_CR16_IMM32: howto manager. (line 2020) 10605 * BFD_RELOC_CR16_IMM32a: howto manager. (line 2021) 10606 * BFD_RELOC_CR16_IMM4: howto manager. (line 2015) 10607 * BFD_RELOC_CR16_IMM8: howto manager. (line 2016) 10608 * BFD_RELOC_CR16_NUM16: howto manager. (line 2002) 10609 * BFD_RELOC_CR16_NUM32: howto manager. (line 2003) 10610 * BFD_RELOC_CR16_NUM32a: howto manager. (line 2004) 10611 * BFD_RELOC_CR16_NUM8: howto manager. (line 2001) 10612 * BFD_RELOC_CR16_REGREL0: howto manager. (line 2005) 10613 * BFD_RELOC_CR16_REGREL14: howto manager. (line 2008) 10614 * BFD_RELOC_CR16_REGREL14a: howto manager. (line 2009) 10615 * BFD_RELOC_CR16_REGREL16: howto manager. (line 2010) 10616 * BFD_RELOC_CR16_REGREL20: howto manager. (line 2011) 10617 * BFD_RELOC_CR16_REGREL20a: howto manager. (line 2012) 10618 * BFD_RELOC_CR16_REGREL4: howto manager. (line 2006) 10619 * BFD_RELOC_CR16_REGREL4a: howto manager. (line 2007) 10620 * BFD_RELOC_CR16_SWITCH16: howto manager. (line 2029) 10621 * BFD_RELOC_CR16_SWITCH32: howto manager. (line 2030) 10622 * BFD_RELOC_CR16_SWITCH8: howto manager. (line 2028) 10623 * BFD_RELOC_CRIS_16_DTPREL: howto manager. (line 2104) 10624 * BFD_RELOC_CRIS_16_GOT: howto manager. (line 2080) 10625 * BFD_RELOC_CRIS_16_GOT_GD: howto manager. (line 2100) 10626 * BFD_RELOC_CRIS_16_GOT_TPREL: howto manager. (line 2106) 10627 * BFD_RELOC_CRIS_16_GOTPLT: howto manager. (line 2086) 10628 * BFD_RELOC_CRIS_16_TPREL: howto manager. (line 2108) 10629 * BFD_RELOC_CRIS_32_DTPREL: howto manager. (line 2103) 10630 * BFD_RELOC_CRIS_32_GD: howto manager. (line 2101) 10631 * BFD_RELOC_CRIS_32_GOT: howto manager. (line 2077) 10632 * BFD_RELOC_CRIS_32_GOT_GD: howto manager. (line 2099) 10633 * BFD_RELOC_CRIS_32_GOT_TPREL: howto manager. (line 2105) 10634 * BFD_RELOC_CRIS_32_GOTPLT: howto manager. (line 2083) 10635 * BFD_RELOC_CRIS_32_GOTREL: howto manager. (line 2089) 10636 * BFD_RELOC_CRIS_32_IE: howto manager. (line 2110) 10637 * BFD_RELOC_CRIS_32_PLT_GOTREL: howto manager. (line 2092) 10638 * BFD_RELOC_CRIS_32_PLT_PCREL: howto manager. (line 2095) 10639 * BFD_RELOC_CRIS_32_TPREL: howto manager. (line 2107) 10640 * BFD_RELOC_CRIS_BDISP8: howto manager. (line 2058) 10641 * BFD_RELOC_CRIS_COPY: howto manager. (line 2071) 10642 * BFD_RELOC_CRIS_DTP: howto manager. (line 2102) 10643 * BFD_RELOC_CRIS_DTPMOD: howto manager. (line 2109) 10644 * BFD_RELOC_CRIS_GLOB_DAT: howto manager. (line 2072) 10645 * BFD_RELOC_CRIS_JUMP_SLOT: howto manager. (line 2073) 10646 * BFD_RELOC_CRIS_LAPCQ_OFFSET: howto manager. (line 2066) 10647 * BFD_RELOC_CRIS_RELATIVE: howto manager. (line 2074) 10648 * BFD_RELOC_CRIS_SIGNED_16: howto manager. (line 2064) 10649 * BFD_RELOC_CRIS_SIGNED_6: howto manager. (line 2060) 10650 * BFD_RELOC_CRIS_SIGNED_8: howto manager. (line 2062) 10651 * BFD_RELOC_CRIS_UNSIGNED_16: howto manager. (line 2065) 10652 * BFD_RELOC_CRIS_UNSIGNED_4: howto manager. (line 2067) 10653 * BFD_RELOC_CRIS_UNSIGNED_5: howto manager. (line 2059) 10654 * BFD_RELOC_CRIS_UNSIGNED_6: howto manager. (line 2061) 10655 * BFD_RELOC_CRIS_UNSIGNED_8: howto manager. (line 2063) 10656 * BFD_RELOC_CRX_ABS16: howto manager. (line 2046) 10657 * BFD_RELOC_CRX_ABS32: howto manager. (line 2047) 10658 * BFD_RELOC_CRX_IMM16: howto manager. (line 2051) 10659 * BFD_RELOC_CRX_IMM32: howto manager. (line 2052) 10660 * BFD_RELOC_CRX_NUM16: howto manager. (line 2049) 10661 * BFD_RELOC_CRX_NUM32: howto manager. (line 2050) 10662 * BFD_RELOC_CRX_NUM8: howto manager. (line 2048) 10663 * BFD_RELOC_CRX_REGREL12: howto manager. (line 2042) 10664 * BFD_RELOC_CRX_REGREL22: howto manager. (line 2043) 10665 * BFD_RELOC_CRX_REGREL28: howto manager. (line 2044) 10666 * BFD_RELOC_CRX_REGREL32: howto manager. (line 2045) 10667 * BFD_RELOC_CRX_REL16: howto manager. (line 2039) 10668 * BFD_RELOC_CRX_REL24: howto manager. (line 2040) 10669 * BFD_RELOC_CRX_REL32: howto manager. (line 2041) 10670 * BFD_RELOC_CRX_REL4: howto manager. (line 2036) 10671 * BFD_RELOC_CRX_REL8: howto manager. (line 2037) 10672 * BFD_RELOC_CRX_REL8_CMP: howto manager. (line 2038) 10673 * BFD_RELOC_CRX_SWITCH16: howto manager. (line 2054) 10674 * BFD_RELOC_CRX_SWITCH32: howto manager. (line 2055) 10675 * BFD_RELOC_CRX_SWITCH8: howto manager. (line 2053) 10676 * BFD_RELOC_CTOR: howto manager. (line 688) 10677 * BFD_RELOC_D10V_10_PCREL_L: howto manager. (line 1083) 10678 * BFD_RELOC_D10V_10_PCREL_R: howto manager. (line 1079) 10679 * BFD_RELOC_D10V_18: howto manager. (line 1088) 10680 * BFD_RELOC_D10V_18_PCREL: howto manager. (line 1091) 10681 * BFD_RELOC_D30V_15: howto manager. (line 1106) 10682 * BFD_RELOC_D30V_15_PCREL: howto manager. (line 1110) 10683 * BFD_RELOC_D30V_15_PCREL_R: howto manager. (line 1114) 10684 * BFD_RELOC_D30V_21: howto manager. (line 1119) 10685 * BFD_RELOC_D30V_21_PCREL: howto manager. (line 1123) 10686 * BFD_RELOC_D30V_21_PCREL_R: howto manager. (line 1127) 10687 * BFD_RELOC_D30V_32: howto manager. (line 1132) 10688 * BFD_RELOC_D30V_32_PCREL: howto manager. (line 1135) 10689 * BFD_RELOC_D30V_6: howto manager. (line 1094) 10690 * BFD_RELOC_D30V_9_PCREL: howto manager. (line 1097) 10691 * BFD_RELOC_D30V_9_PCREL_R: howto manager. (line 1101) 10692 * BFD_RELOC_DLX_HI16_S: howto manager. (line 1138) 10693 * BFD_RELOC_DLX_JMP26: howto manager. (line 1144) 10694 * BFD_RELOC_DLX_LO16: howto manager. (line 1141) 10695 * BFD_RELOC_FR30_10_IN_8: howto manager. (line 1421) 10696 * BFD_RELOC_FR30_12_PCREL: howto manager. (line 1429) 10697 * BFD_RELOC_FR30_20: howto manager. (line 1405) 10698 * BFD_RELOC_FR30_48: howto manager. (line 1402) 10699 * BFD_RELOC_FR30_6_IN_4: howto manager. (line 1409) 10700 * BFD_RELOC_FR30_8_IN_8: howto manager. (line 1413) 10701 * BFD_RELOC_FR30_9_IN_8: howto manager. (line 1417) 10702 * BFD_RELOC_FR30_9_PCREL: howto manager. (line 1425) 10703 * BFD_RELOC_FRV_FUNCDESC: howto manager. (line 440) 10704 * BFD_RELOC_FRV_FUNCDESC_GOT12: howto manager. (line 441) 10705 * BFD_RELOC_FRV_FUNCDESC_GOTHI: howto manager. (line 442) 10706 * BFD_RELOC_FRV_FUNCDESC_GOTLO: howto manager. (line 443) 10707 * BFD_RELOC_FRV_FUNCDESC_GOTOFF12: howto manager. (line 445) 10708 * BFD_RELOC_FRV_FUNCDESC_GOTOFFHI: howto manager. (line 446) 10709 * BFD_RELOC_FRV_FUNCDESC_GOTOFFLO: howto manager. (line 447) 10710 * BFD_RELOC_FRV_FUNCDESC_VALUE: howto manager. (line 444) 10711 * BFD_RELOC_FRV_GETTLSOFF: howto manager. (line 451) 10712 * BFD_RELOC_FRV_GETTLSOFF_RELAX: howto manager. (line 464) 10713 * BFD_RELOC_FRV_GOT12: howto manager. (line 437) 10714 * BFD_RELOC_FRV_GOTHI: howto manager. (line 438) 10715 * BFD_RELOC_FRV_GOTLO: howto manager. (line 439) 10716 * BFD_RELOC_FRV_GOTOFF12: howto manager. (line 448) 10717 * BFD_RELOC_FRV_GOTOFFHI: howto manager. (line 449) 10718 * BFD_RELOC_FRV_GOTOFFLO: howto manager. (line 450) 10719 * BFD_RELOC_FRV_GOTTLSDESC12: howto manager. (line 453) 10720 * BFD_RELOC_FRV_GOTTLSDESCHI: howto manager. (line 454) 10721 * BFD_RELOC_FRV_GOTTLSDESCLO: howto manager. (line 455) 10722 * BFD_RELOC_FRV_GOTTLSOFF12: howto manager. (line 459) 10723 * BFD_RELOC_FRV_GOTTLSOFFHI: howto manager. (line 460) 10724 * BFD_RELOC_FRV_GOTTLSOFFLO: howto manager. (line 461) 10725 * BFD_RELOC_FRV_GPREL12: howto manager. (line 432) 10726 * BFD_RELOC_FRV_GPREL32: howto manager. (line 434) 10727 * BFD_RELOC_FRV_GPRELHI: howto manager. (line 435) 10728 * BFD_RELOC_FRV_GPRELLO: howto manager. (line 436) 10729 * BFD_RELOC_FRV_GPRELU12: howto manager. (line 433) 10730 * BFD_RELOC_FRV_HI16: howto manager. (line 431) 10731 * BFD_RELOC_FRV_LABEL16: howto manager. (line 428) 10732 * BFD_RELOC_FRV_LABEL24: howto manager. (line 429) 10733 * BFD_RELOC_FRV_LO16: howto manager. (line 430) 10734 * BFD_RELOC_FRV_TLSDESC_RELAX: howto manager. (line 463) 10735 * BFD_RELOC_FRV_TLSDESC_VALUE: howto manager. (line 452) 10736 * BFD_RELOC_FRV_TLSMOFF: howto manager. (line 466) 10737 * BFD_RELOC_FRV_TLSMOFF12: howto manager. (line 456) 10738 * BFD_RELOC_FRV_TLSMOFFHI: howto manager. (line 457) 10739 * BFD_RELOC_FRV_TLSMOFFLO: howto manager. (line 458) 10740 * BFD_RELOC_FRV_TLSOFF: howto manager. (line 462) 10741 * BFD_RELOC_FRV_TLSOFF_RELAX: howto manager. (line 465) 10742 * BFD_RELOC_GPREL16: howto manager. (line 121) 10743 * BFD_RELOC_GPREL32: howto manager. (line 122) 10744 * BFD_RELOC_H8_DIR16A8: howto manager. (line 2151) 10745 * BFD_RELOC_H8_DIR16R8: howto manager. (line 2152) 10746 * BFD_RELOC_H8_DIR24A8: howto manager. (line 2153) 10747 * BFD_RELOC_H8_DIR24R8: howto manager. (line 2154) 10748 * BFD_RELOC_H8_DIR32A16: howto manager. (line 2155) 10749 * BFD_RELOC_HI16: howto manager. (line 344) 10750 * BFD_RELOC_HI16_BASEREL: howto manager. (line 97) 10751 * BFD_RELOC_HI16_GOTOFF: howto manager. (line 57) 10752 * BFD_RELOC_HI16_PCREL: howto manager. (line 356) 10753 * BFD_RELOC_HI16_PLTOFF: howto manager. (line 69) 10754 * BFD_RELOC_HI16_S: howto manager. (line 347) 10755 * BFD_RELOC_HI16_S_BASEREL: howto manager. (line 98) 10756 * BFD_RELOC_HI16_S_GOTOFF: howto manager. (line 58) 10757 * BFD_RELOC_HI16_S_PCREL: howto manager. (line 359) 10758 * BFD_RELOC_HI16_S_PLTOFF: howto manager. (line 70) 10759 * BFD_RELOC_HI22: howto manager. (line 116) 10760 * BFD_RELOC_I370_D12: howto manager. (line 685) 10761 * BFD_RELOC_I960_CALLJ: howto manager. (line 128) 10762 * BFD_RELOC_IA64_COPY: howto manager. (line 1895) 10763 * BFD_RELOC_IA64_DIR32LSB: howto manager. (line 1840) 10764 * BFD_RELOC_IA64_DIR32MSB: howto manager. (line 1839) 10765 * BFD_RELOC_IA64_DIR64LSB: howto manager. (line 1842) 10766 * BFD_RELOC_IA64_DIR64MSB: howto manager. (line 1841) 10767 * BFD_RELOC_IA64_DTPMOD64LSB: howto manager. (line 1905) 10768 * BFD_RELOC_IA64_DTPMOD64MSB: howto manager. (line 1904) 10769 * BFD_RELOC_IA64_DTPREL14: howto manager. (line 1907) 10770 * BFD_RELOC_IA64_DTPREL22: howto manager. (line 1908) 10771 * BFD_RELOC_IA64_DTPREL32LSB: howto manager. (line 1911) 10772 * BFD_RELOC_IA64_DTPREL32MSB: howto manager. (line 1910) 10773 * BFD_RELOC_IA64_DTPREL64I: howto manager. (line 1909) 10774 * BFD_RELOC_IA64_DTPREL64LSB: howto manager. (line 1913) 10775 * BFD_RELOC_IA64_DTPREL64MSB: howto manager. (line 1912) 10776 * BFD_RELOC_IA64_FPTR32LSB: howto manager. (line 1857) 10777 * BFD_RELOC_IA64_FPTR32MSB: howto manager. (line 1856) 10778 * BFD_RELOC_IA64_FPTR64I: howto manager. (line 1855) 10779 * BFD_RELOC_IA64_FPTR64LSB: howto manager. (line 1859) 10780 * BFD_RELOC_IA64_FPTR64MSB: howto manager. (line 1858) 10781 * BFD_RELOC_IA64_GPREL22: howto manager. (line 1843) 10782 * BFD_RELOC_IA64_GPREL32LSB: howto manager. (line 1846) 10783 * BFD_RELOC_IA64_GPREL32MSB: howto manager. (line 1845) 10784 * BFD_RELOC_IA64_GPREL64I: howto manager. (line 1844) 10785 * BFD_RELOC_IA64_GPREL64LSB: howto manager. (line 1848) 10786 * BFD_RELOC_IA64_GPREL64MSB: howto manager. (line 1847) 10787 * BFD_RELOC_IA64_IMM14: howto manager. (line 1836) 10788 * BFD_RELOC_IA64_IMM22: howto manager. (line 1837) 10789 * BFD_RELOC_IA64_IMM64: howto manager. (line 1838) 10790 * BFD_RELOC_IA64_IPLTLSB: howto manager. (line 1894) 10791 * BFD_RELOC_IA64_IPLTMSB: howto manager. (line 1893) 10792 * BFD_RELOC_IA64_LDXMOV: howto manager. (line 1897) 10793 * BFD_RELOC_IA64_LTOFF22: howto manager. (line 1849) 10794 * BFD_RELOC_IA64_LTOFF22X: howto manager. (line 1896) 10795 * BFD_RELOC_IA64_LTOFF64I: howto manager. (line 1850) 10796 * BFD_RELOC_IA64_LTOFF_DTPMOD22: howto manager. (line 1906) 10797 * BFD_RELOC_IA64_LTOFF_DTPREL22: howto manager. (line 1914) 10798 * BFD_RELOC_IA64_LTOFF_FPTR22: howto manager. (line 1871) 10799 * BFD_RELOC_IA64_LTOFF_FPTR32LSB: howto manager. (line 1874) 10800 * BFD_RELOC_IA64_LTOFF_FPTR32MSB: howto manager. (line 1873) 10801 * BFD_RELOC_IA64_LTOFF_FPTR64I: howto manager. (line 1872) 10802 * BFD_RELOC_IA64_LTOFF_FPTR64LSB: howto manager. (line 1876) 10803 * BFD_RELOC_IA64_LTOFF_FPTR64MSB: howto manager. (line 1875) 10804 * BFD_RELOC_IA64_LTOFF_TPREL22: howto manager. (line 1903) 10805 * BFD_RELOC_IA64_LTV32LSB: howto manager. (line 1890) 10806 * BFD_RELOC_IA64_LTV32MSB: howto manager. (line 1889) 10807 * BFD_RELOC_IA64_LTV64LSB: howto manager. (line 1892) 10808 * BFD_RELOC_IA64_LTV64MSB: howto manager. (line 1891) 10809 * BFD_RELOC_IA64_PCREL21B: howto manager. (line 1860) 10810 * BFD_RELOC_IA64_PCREL21BI: howto manager. (line 1861) 10811 * BFD_RELOC_IA64_PCREL21F: howto manager. (line 1863) 10812 * BFD_RELOC_IA64_PCREL21M: howto manager. (line 1862) 10813 * BFD_RELOC_IA64_PCREL22: howto manager. (line 1864) 10814 * BFD_RELOC_IA64_PCREL32LSB: howto manager. (line 1868) 10815 * BFD_RELOC_IA64_PCREL32MSB: howto manager. (line 1867) 10816 * BFD_RELOC_IA64_PCREL60B: howto manager. (line 1865) 10817 * BFD_RELOC_IA64_PCREL64I: howto manager. (line 1866) 10818 * BFD_RELOC_IA64_PCREL64LSB: howto manager. (line 1870) 10819 * BFD_RELOC_IA64_PCREL64MSB: howto manager. (line 1869) 10820 * BFD_RELOC_IA64_PLTOFF22: howto manager. (line 1851) 10821 * BFD_RELOC_IA64_PLTOFF64I: howto manager. (line 1852) 10822 * BFD_RELOC_IA64_PLTOFF64LSB: howto manager. (line 1854) 10823 * BFD_RELOC_IA64_PLTOFF64MSB: howto manager. (line 1853) 10824 * BFD_RELOC_IA64_REL32LSB: howto manager. (line 1886) 10825 * BFD_RELOC_IA64_REL32MSB: howto manager. (line 1885) 10826 * BFD_RELOC_IA64_REL64LSB: howto manager. (line 1888) 10827 * BFD_RELOC_IA64_REL64MSB: howto manager. (line 1887) 10828 * BFD_RELOC_IA64_SECREL32LSB: howto manager. (line 1882) 10829 * BFD_RELOC_IA64_SECREL32MSB: howto manager. (line 1881) 10830 * BFD_RELOC_IA64_SECREL64LSB: howto manager. (line 1884) 10831 * BFD_RELOC_IA64_SECREL64MSB: howto manager. (line 1883) 10832 * BFD_RELOC_IA64_SEGREL32LSB: howto manager. (line 1878) 10833 * BFD_RELOC_IA64_SEGREL32MSB: howto manager. (line 1877) 10834 * BFD_RELOC_IA64_SEGREL64LSB: howto manager. (line 1880) 10835 * BFD_RELOC_IA64_SEGREL64MSB: howto manager. (line 1879) 10836 * BFD_RELOC_IA64_TPREL14: howto manager. (line 1898) 10837 * BFD_RELOC_IA64_TPREL22: howto manager. (line 1899) 10838 * BFD_RELOC_IA64_TPREL64I: howto manager. (line 1900) 10839 * BFD_RELOC_IA64_TPREL64LSB: howto manager. (line 1902) 10840 * BFD_RELOC_IA64_TPREL64MSB: howto manager. (line 1901) 10841 * BFD_RELOC_IP2K_ADDR16CJP: howto manager. (line 1788) 10842 * BFD_RELOC_IP2K_BANK: howto manager. (line 1785) 10843 * BFD_RELOC_IP2K_EX8DATA: howto manager. (line 1796) 10844 * BFD_RELOC_IP2K_FR9: howto manager. (line 1782) 10845 * BFD_RELOC_IP2K_FR_OFFSET: howto manager. (line 1809) 10846 * BFD_RELOC_IP2K_HI8DATA: howto manager. (line 1795) 10847 * BFD_RELOC_IP2K_HI8INSN: howto manager. (line 1800) 10848 * BFD_RELOC_IP2K_LO8DATA: howto manager. (line 1794) 10849 * BFD_RELOC_IP2K_LO8INSN: howto manager. (line 1799) 10850 * BFD_RELOC_IP2K_PAGE3: howto manager. (line 1791) 10851 * BFD_RELOC_IP2K_PC_SKIP: howto manager. (line 1803) 10852 * BFD_RELOC_IP2K_TEXT: howto manager. (line 1806) 10853 * BFD_RELOC_IQ2000_OFFSET_16: howto manager. (line 2205) 10854 * BFD_RELOC_IQ2000_OFFSET_21: howto manager. (line 2206) 10855 * BFD_RELOC_IQ2000_UHI16: howto manager. (line 2207) 10856 * BFD_RELOC_LM32_16_GOT: howto manager. (line 2312) 10857 * BFD_RELOC_LM32_BRANCH: howto manager. (line 2311) 10858 * BFD_RELOC_LM32_CALL: howto manager. (line 2310) 10859 * BFD_RELOC_LM32_COPY: howto manager. (line 2315) 10860 * BFD_RELOC_LM32_GLOB_DAT: howto manager. (line 2316) 10861 * BFD_RELOC_LM32_GOTOFF_HI16: howto manager. (line 2313) 10862 * BFD_RELOC_LM32_GOTOFF_LO16: howto manager. (line 2314) 10863 * BFD_RELOC_LM32_JMP_SLOT: howto manager. (line 2317) 10864 * BFD_RELOC_LM32_RELATIVE: howto manager. (line 2318) 10865 * BFD_RELOC_LO10: howto manager. (line 117) 10866 * BFD_RELOC_LO16: howto manager. (line 353) 10867 * BFD_RELOC_LO16_BASEREL: howto manager. (line 96) 10868 * BFD_RELOC_LO16_GOTOFF: howto manager. (line 56) 10869 * BFD_RELOC_LO16_PCREL: howto manager. (line 362) 10870 * BFD_RELOC_LO16_PLTOFF: howto manager. (line 68) 10871 * BFD_RELOC_M32C_HI8: howto manager. (line 1147) 10872 * BFD_RELOC_M32C_RL_1ADDR: howto manager. (line 1149) 10873 * BFD_RELOC_M32C_RL_2ADDR: howto manager. (line 1150) 10874 * BFD_RELOC_M32C_RL_JUMP: howto manager. (line 1148) 10875 * BFD_RELOC_M32R_10_PCREL: howto manager. (line 1157) 10876 * BFD_RELOC_M32R_18_PCREL: howto manager. (line 1161) 10877 * BFD_RELOC_M32R_24: howto manager. (line 1153) 10878 * BFD_RELOC_M32R_26_PCREL: howto manager. (line 1164) 10879 * BFD_RELOC_M32R_26_PLTREL: howto manager. (line 1183) 10880 * BFD_RELOC_M32R_COPY: howto manager. (line 1184) 10881 * BFD_RELOC_M32R_GLOB_DAT: howto manager. (line 1185) 10882 * BFD_RELOC_M32R_GOT16_HI_SLO: howto manager. (line 1194) 10883 * BFD_RELOC_M32R_GOT16_HI_ULO: howto manager. (line 1193) 10884 * BFD_RELOC_M32R_GOT16_LO: howto manager. (line 1195) 10885 * BFD_RELOC_M32R_GOT24: howto manager. (line 1182) 10886 * BFD_RELOC_M32R_GOTOFF: howto manager. (line 1188) 10887 * BFD_RELOC_M32R_GOTOFF_HI_SLO: howto manager. (line 1190) 10888 * BFD_RELOC_M32R_GOTOFF_HI_ULO: howto manager. (line 1189) 10889 * BFD_RELOC_M32R_GOTOFF_LO: howto manager. (line 1191) 10890 * BFD_RELOC_M32R_GOTPC24: howto manager. (line 1192) 10891 * BFD_RELOC_M32R_GOTPC_HI_SLO: howto manager. (line 1197) 10892 * BFD_RELOC_M32R_GOTPC_HI_ULO: howto manager. (line 1196) 10893 * BFD_RELOC_M32R_GOTPC_LO: howto manager. (line 1198) 10894 * BFD_RELOC_M32R_HI16_SLO: howto manager. (line 1171) 10895 * BFD_RELOC_M32R_HI16_ULO: howto manager. (line 1167) 10896 * BFD_RELOC_M32R_JMP_SLOT: howto manager. (line 1186) 10897 * BFD_RELOC_M32R_LO16: howto manager. (line 1175) 10898 * BFD_RELOC_M32R_RELATIVE: howto manager. (line 1187) 10899 * BFD_RELOC_M32R_SDA16: howto manager. (line 1178) 10900 * BFD_RELOC_M68HC11_24: howto manager. (line 1950) 10901 * BFD_RELOC_M68HC11_3B: howto manager. (line 1925) 10902 * BFD_RELOC_M68HC11_HI8: howto manager. (line 1917) 10903 * BFD_RELOC_M68HC11_LO16: howto manager. (line 1939) 10904 * BFD_RELOC_M68HC11_LO8: howto manager. (line 1921) 10905 * BFD_RELOC_M68HC11_PAGE: howto manager. (line 1945) 10906 * BFD_RELOC_M68HC11_RL_GROUP: howto manager. (line 1934) 10907 * BFD_RELOC_M68HC11_RL_JUMP: howto manager. (line 1928) 10908 * BFD_RELOC_M68HC12_5B: howto manager. (line 1956) 10909 * BFD_RELOC_MACH_O_PAIR: howto manager. (line 2325) 10910 * BFD_RELOC_MACH_O_SECTDIFF: howto manager. (line 2321) 10911 * BFD_RELOC_MACH_O_X86_64_BRANCH32: howto manager. (line 2328) 10912 * BFD_RELOC_MACH_O_X86_64_BRANCH8: howto manager. (line 2329) 10913 * BFD_RELOC_MACH_O_X86_64_GOT: howto manager. (line 2333) 10914 * BFD_RELOC_MACH_O_X86_64_GOT_LOAD: howto manager. (line 2336) 10915 * BFD_RELOC_MACH_O_X86_64_PCREL32_1: howto manager. (line 2346) 10916 * BFD_RELOC_MACH_O_X86_64_PCREL32_2: howto manager. (line 2349) 10917 * BFD_RELOC_MACH_O_X86_64_PCREL32_4: howto manager. (line 2352) 10918 * BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32: howto manager. (line 2340) 10919 * BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64: howto manager. (line 2343) 10920 * BFD_RELOC_MCORE_PCREL_32: howto manager. (line 1436) 10921 * BFD_RELOC_MCORE_PCREL_IMM11BY2: howto manager. (line 1434) 10922 * BFD_RELOC_MCORE_PCREL_IMM4BY2: howto manager. (line 1435) 10923 * BFD_RELOC_MCORE_PCREL_IMM8BY4: howto manager. (line 1433) 10924 * BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2: howto manager. (line 1437) 10925 * BFD_RELOC_MCORE_RVA: howto manager. (line 1438) 10926 * BFD_RELOC_MEP_16: howto manager. (line 1442) 10927 * BFD_RELOC_MEP_32: howto manager. (line 1443) 10928 * BFD_RELOC_MEP_8: howto manager. (line 1441) 10929 * BFD_RELOC_MEP_ADDR24A4: howto manager. (line 1458) 10930 * BFD_RELOC_MEP_GNU_VTENTRY: howto manager. (line 1460) 10931 * BFD_RELOC_MEP_GNU_VTINHERIT: howto manager. (line 1459) 10932 * BFD_RELOC_MEP_GPREL: howto manager. (line 1452) 10933 * BFD_RELOC_MEP_HI16S: howto manager. (line 1451) 10934 * BFD_RELOC_MEP_HI16U: howto manager. (line 1450) 10935 * BFD_RELOC_MEP_LOW16: howto manager. (line 1449) 10936 * BFD_RELOC_MEP_PCABS24A2: howto manager. (line 1448) 10937 * BFD_RELOC_MEP_PCREL12A2: howto manager. (line 1445) 10938 * BFD_RELOC_MEP_PCREL17A2: howto manager. (line 1446) 10939 * BFD_RELOC_MEP_PCREL24A2: howto manager. (line 1447) 10940 * BFD_RELOC_MEP_PCREL8A2: howto manager. (line 1444) 10941 * BFD_RELOC_MEP_TPREL: howto manager. (line 1453) 10942 * BFD_RELOC_MEP_TPREL7: howto manager. (line 1454) 10943 * BFD_RELOC_MEP_TPREL7A2: howto manager. (line 1455) 10944 * BFD_RELOC_MEP_TPREL7A4: howto manager. (line 1456) 10945 * BFD_RELOC_MEP_UIMM24: howto manager. (line 1457) 10946 * BFD_RELOC_MICROBLAZE_32_GOTOFF: howto manager. (line 2399) 10947 * BFD_RELOC_MICROBLAZE_32_LO: howto manager. (line 2355) 10948 * BFD_RELOC_MICROBLAZE_32_LO_PCREL: howto manager. (line 2359) 10949 * BFD_RELOC_MICROBLAZE_32_ROSDA: howto manager. (line 2363) 10950 * BFD_RELOC_MICROBLAZE_32_RWSDA: howto manager. (line 2367) 10951 * BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM: howto manager. (line 2371) 10952 * BFD_RELOC_MICROBLAZE_64_GOT: howto manager. (line 2385) 10953 * BFD_RELOC_MICROBLAZE_64_GOTOFF: howto manager. (line 2394) 10954 * BFD_RELOC_MICROBLAZE_64_GOTPC: howto manager. (line 2380) 10955 * BFD_RELOC_MICROBLAZE_64_NONE: howto manager. (line 2375) 10956 * BFD_RELOC_MICROBLAZE_64_PLT: howto manager. (line 2389) 10957 * BFD_RELOC_MICROBLAZE_COPY: howto manager. (line 2403) 10958 * BFD_RELOC_MIPS16_CALL16: howto manager. (line 366) 10959 * BFD_RELOC_MIPS16_GOT16: howto manager. (line 365) 10960 * BFD_RELOC_MIPS16_GPREL: howto manager. (line 341) 10961 * BFD_RELOC_MIPS16_HI16: howto manager. (line 370) 10962 * BFD_RELOC_MIPS16_HI16_S: howto manager. (line 373) 10963 * BFD_RELOC_MIPS16_JMP: howto manager. (line 338) 10964 * BFD_RELOC_MIPS16_LO16: howto manager. (line 379) 10965 * BFD_RELOC_MIPS_CALL16: howto manager. (line 386) 10966 * BFD_RELOC_MIPS_CALL_HI16: howto manager. (line 389) 10967 * BFD_RELOC_MIPS_CALL_LO16: howto manager. (line 390) 10968 * BFD_RELOC_MIPS_COPY: howto manager. (line 421) 10969 * BFD_RELOC_MIPS_DELETE: howto manager. (line 399) 10970 * BFD_RELOC_MIPS_GOT16: howto manager. (line 385) 10971 * BFD_RELOC_MIPS_GOT_DISP: howto manager. (line 394) 10972 * BFD_RELOC_MIPS_GOT_HI16: howto manager. (line 387) 10973 * BFD_RELOC_MIPS_GOT_LO16: howto manager. (line 388) 10974 * BFD_RELOC_MIPS_GOT_OFST: howto manager. (line 393) 10975 * BFD_RELOC_MIPS_GOT_PAGE: howto manager. (line 392) 10976 * BFD_RELOC_MIPS_HIGHER: howto manager. (line 401) 10977 * BFD_RELOC_MIPS_HIGHEST: howto manager. (line 400) 10978 * BFD_RELOC_MIPS_INSERT_A: howto manager. (line 397) 10979 * BFD_RELOC_MIPS_INSERT_B: howto manager. (line 398) 10980 * BFD_RELOC_MIPS_JALR: howto manager. (line 405) 10981 * BFD_RELOC_MIPS_JMP: howto manager. (line 334) 10982 * BFD_RELOC_MIPS_JUMP_SLOT: howto manager. (line 422) 10983 * BFD_RELOC_MIPS_LITERAL: howto manager. (line 382) 10984 * BFD_RELOC_MIPS_REL16: howto manager. (line 403) 10985 * BFD_RELOC_MIPS_RELGOT: howto manager. (line 404) 10986 * BFD_RELOC_MIPS_SCN_DISP: howto manager. (line 402) 10987 * BFD_RELOC_MIPS_SHIFT5: howto manager. (line 395) 10988 * BFD_RELOC_MIPS_SHIFT6: howto manager. (line 396) 10989 * BFD_RELOC_MIPS_SUB: howto manager. (line 391) 10990 * BFD_RELOC_MIPS_TLS_DTPMOD32: howto manager. (line 406) 10991 * BFD_RELOC_MIPS_TLS_DTPMOD64: howto manager. (line 408) 10992 * BFD_RELOC_MIPS_TLS_DTPREL32: howto manager. (line 407) 10993 * BFD_RELOC_MIPS_TLS_DTPREL64: howto manager. (line 409) 10994 * BFD_RELOC_MIPS_TLS_DTPREL_HI16: howto manager. (line 412) 10995 * BFD_RELOC_MIPS_TLS_DTPREL_LO16: howto manager. (line 413) 10996 * BFD_RELOC_MIPS_TLS_GD: howto manager. (line 410) 10997 * BFD_RELOC_MIPS_TLS_GOTTPREL: howto manager. (line 414) 10998 * BFD_RELOC_MIPS_TLS_LDM: howto manager. (line 411) 10999 * BFD_RELOC_MIPS_TLS_TPREL32: howto manager. (line 415) 11000 * BFD_RELOC_MIPS_TLS_TPREL64: howto manager. (line 416) 11001 * BFD_RELOC_MIPS_TLS_TPREL_HI16: howto manager. (line 417) 11002 * BFD_RELOC_MIPS_TLS_TPREL_LO16: howto manager. (line 418) 11003 * BFD_RELOC_MMIX_ADDR19: howto manager. (line 1489) 11004 * BFD_RELOC_MMIX_ADDR27: howto manager. (line 1493) 11005 * BFD_RELOC_MMIX_BASE_PLUS_OFFSET: howto manager. (line 1505) 11006 * BFD_RELOC_MMIX_CBRANCH: howto manager. (line 1469) 11007 * BFD_RELOC_MMIX_CBRANCH_1: howto manager. (line 1471) 11008 * BFD_RELOC_MMIX_CBRANCH_2: howto manager. (line 1472) 11009 * BFD_RELOC_MMIX_CBRANCH_3: howto manager. (line 1473) 11010 * BFD_RELOC_MMIX_CBRANCH_J: howto manager. (line 1470) 11011 * BFD_RELOC_MMIX_GETA: howto manager. (line 1463) 11012 * BFD_RELOC_MMIX_GETA_1: howto manager. (line 1464) 11013 * BFD_RELOC_MMIX_GETA_2: howto manager. (line 1465) 11014 * BFD_RELOC_MMIX_GETA_3: howto manager. (line 1466) 11015 * BFD_RELOC_MMIX_JMP: howto manager. (line 1483) 11016 * BFD_RELOC_MMIX_JMP_1: howto manager. (line 1484) 11017 * BFD_RELOC_MMIX_JMP_2: howto manager. (line 1485) 11018 * BFD_RELOC_MMIX_JMP_3: howto manager. (line 1486) 11019 * BFD_RELOC_MMIX_LOCAL: howto manager. (line 1509) 11020 * BFD_RELOC_MMIX_PUSHJ: howto manager. (line 1476) 11021 * BFD_RELOC_MMIX_PUSHJ_1: howto manager. (line 1477) 11022 * BFD_RELOC_MMIX_PUSHJ_2: howto manager. (line 1478) 11023 * BFD_RELOC_MMIX_PUSHJ_3: howto manager. (line 1479) 11024 * BFD_RELOC_MMIX_PUSHJ_STUBBABLE: howto manager. (line 1480) 11025 * BFD_RELOC_MMIX_REG: howto manager. (line 1501) 11026 * BFD_RELOC_MMIX_REG_OR_BYTE: howto manager. (line 1497) 11027 * BFD_RELOC_MN10300_16_PCREL: howto manager. (line 1339) 11028 * BFD_RELOC_MN10300_32_PCREL: howto manager. (line 1335) 11029 * BFD_RELOC_MN10300_ALIGN: howto manager. (line 501) 11030 * BFD_RELOC_MN10300_COPY: howto manager. (line 484) 11031 * BFD_RELOC_MN10300_GLOB_DAT: howto manager. (line 487) 11032 * BFD_RELOC_MN10300_GOT16: howto manager. (line 480) 11033 * BFD_RELOC_MN10300_GOT24: howto manager. (line 476) 11034 * BFD_RELOC_MN10300_GOT32: howto manager. (line 472) 11035 * BFD_RELOC_MN10300_GOTOFF24: howto manager. (line 469) 11036 * BFD_RELOC_MN10300_JMP_SLOT: howto manager. (line 490) 11037 * BFD_RELOC_MN10300_RELATIVE: howto manager. (line 493) 11038 * BFD_RELOC_MN10300_SYM_DIFF: howto manager. (line 496) 11039 * BFD_RELOC_MOXIE_10_PCREL: howto manager. (line 425) 11040 * BFD_RELOC_MSP430_10_PCREL: howto manager. (line 2196) 11041 * BFD_RELOC_MSP430_16: howto manager. (line 2198) 11042 * BFD_RELOC_MSP430_16_BYTE: howto manager. (line 2200) 11043 * BFD_RELOC_MSP430_16_PCREL: howto manager. (line 2197) 11044 * BFD_RELOC_MSP430_16_PCREL_BYTE: howto manager. (line 2199) 11045 * BFD_RELOC_MSP430_2X_PCREL: howto manager. (line 2201) 11046 * BFD_RELOC_MSP430_RL_PCREL: howto manager. (line 2202) 11047 * BFD_RELOC_MT_GNU_VTENTRY: howto manager. (line 2190) 11048 * BFD_RELOC_MT_GNU_VTINHERIT: howto manager. (line 2187) 11049 * BFD_RELOC_MT_HI16: howto manager. (line 2181) 11050 * BFD_RELOC_MT_LO16: howto manager. (line 2184) 11051 * BFD_RELOC_MT_PC16: howto manager. (line 2178) 11052 * BFD_RELOC_MT_PCINSN8: howto manager. (line 2193) 11053 * BFD_RELOC_NONE: howto manager. (line 131) 11054 * BFD_RELOC_NS32K_DISP_16: howto manager. (line 567) 11055 * BFD_RELOC_NS32K_DISP_16_PCREL: howto manager. (line 570) 11056 * BFD_RELOC_NS32K_DISP_32: howto manager. (line 568) 11057 * BFD_RELOC_NS32K_DISP_32_PCREL: howto manager. (line 571) 11058 * BFD_RELOC_NS32K_DISP_8: howto manager. (line 566) 11059 * BFD_RELOC_NS32K_DISP_8_PCREL: howto manager. (line 569) 11060 * BFD_RELOC_NS32K_IMM_16: howto manager. (line 561) 11061 * BFD_RELOC_NS32K_IMM_16_PCREL: howto manager. (line 564) 11062 * BFD_RELOC_NS32K_IMM_32: howto manager. (line 562) 11063 * BFD_RELOC_NS32K_IMM_32_PCREL: howto manager. (line 565) 11064 * BFD_RELOC_NS32K_IMM_8: howto manager. (line 560) 11065 * BFD_RELOC_NS32K_IMM_8_PCREL: howto manager. (line 563) 11066 * BFD_RELOC_OPENRISC_ABS_26: howto manager. (line 2147) 11067 * BFD_RELOC_OPENRISC_REL_26: howto manager. (line 2148) 11068 * BFD_RELOC_PDP11_DISP_6_PCREL: howto manager. (line 575) 11069 * BFD_RELOC_PDP11_DISP_8_PCREL: howto manager. (line 574) 11070 * BFD_RELOC_PJ_CODE_DIR16: howto manager. (line 580) 11071 * BFD_RELOC_PJ_CODE_DIR32: howto manager. (line 581) 11072 * BFD_RELOC_PJ_CODE_HI16: howto manager. (line 578) 11073 * BFD_RELOC_PJ_CODE_LO16: howto manager. (line 579) 11074 * BFD_RELOC_PJ_CODE_REL16: howto manager. (line 582) 11075 * BFD_RELOC_PJ_CODE_REL32: howto manager. (line 583) 11076 * BFD_RELOC_PPC64_ADDR16_DS: howto manager. (line 628) 11077 * BFD_RELOC_PPC64_ADDR16_LO_DS: howto manager. (line 629) 11078 * BFD_RELOC_PPC64_DTPREL16_DS: howto manager. (line 677) 11079 * BFD_RELOC_PPC64_DTPREL16_HIGHER: howto manager. (line 679) 11080 * BFD_RELOC_PPC64_DTPREL16_HIGHERA: howto manager. (line 680) 11081 * BFD_RELOC_PPC64_DTPREL16_HIGHEST: howto manager. (line 681) 11082 * BFD_RELOC_PPC64_DTPREL16_HIGHESTA: howto manager. (line 682) 11083 * BFD_RELOC_PPC64_DTPREL16_LO_DS: howto manager. (line 678) 11084 * BFD_RELOC_PPC64_GOT16_DS: howto manager. (line 630) 11085 * BFD_RELOC_PPC64_GOT16_LO_DS: howto manager. (line 631) 11086 * BFD_RELOC_PPC64_HIGHER: howto manager. (line 616) 11087 * BFD_RELOC_PPC64_HIGHER_S: howto manager. (line 617) 11088 * BFD_RELOC_PPC64_HIGHEST: howto manager. (line 618) 11089 * BFD_RELOC_PPC64_HIGHEST_S: howto manager. (line 619) 11090 * BFD_RELOC_PPC64_PLT16_LO_DS: howto manager. (line 632) 11091 * BFD_RELOC_PPC64_PLTGOT16: howto manager. (line 624) 11092 * BFD_RELOC_PPC64_PLTGOT16_DS: howto manager. (line 637) 11093 * BFD_RELOC_PPC64_PLTGOT16_HA: howto manager. (line 627) 11094 * BFD_RELOC_PPC64_PLTGOT16_HI: howto manager. (line 626) 11095 * BFD_RELOC_PPC64_PLTGOT16_LO: howto manager. (line 625) 11096 * BFD_RELOC_PPC64_PLTGOT16_LO_DS: howto manager. (line 638) 11097 * BFD_RELOC_PPC64_SECTOFF_DS: howto manager. (line 633) 11098 * BFD_RELOC_PPC64_SECTOFF_LO_DS: howto manager. (line 634) 11099 * BFD_RELOC_PPC64_TOC: howto manager. (line 623) 11100 * BFD_RELOC_PPC64_TOC16_DS: howto manager. (line 635) 11101 * BFD_RELOC_PPC64_TOC16_HA: howto manager. (line 622) 11102 * BFD_RELOC_PPC64_TOC16_HI: howto manager. (line 621) 11103 * BFD_RELOC_PPC64_TOC16_LO: howto manager. (line 620) 11104 * BFD_RELOC_PPC64_TOC16_LO_DS: howto manager. (line 636) 11105 * BFD_RELOC_PPC64_TPREL16_DS: howto manager. (line 671) 11106 * BFD_RELOC_PPC64_TPREL16_HIGHER: howto manager. (line 673) 11107 * BFD_RELOC_PPC64_TPREL16_HIGHERA: howto manager. (line 674) 11108 * BFD_RELOC_PPC64_TPREL16_HIGHEST: howto manager. (line 675) 11109 * BFD_RELOC_PPC64_TPREL16_HIGHESTA: howto manager. (line 676) 11110 * BFD_RELOC_PPC64_TPREL16_LO_DS: howto manager. (line 672) 11111 * BFD_RELOC_PPC_B16: howto manager. (line 589) 11112 * BFD_RELOC_PPC_B16_BRNTAKEN: howto manager. (line 591) 11113 * BFD_RELOC_PPC_B16_BRTAKEN: howto manager. (line 590) 11114 * BFD_RELOC_PPC_B26: howto manager. (line 586) 11115 * BFD_RELOC_PPC_BA16: howto manager. (line 592) 11116 * BFD_RELOC_PPC_BA16_BRNTAKEN: howto manager. (line 594) 11117 * BFD_RELOC_PPC_BA16_BRTAKEN: howto manager. (line 593) 11118 * BFD_RELOC_PPC_BA26: howto manager. (line 587) 11119 * BFD_RELOC_PPC_COPY: howto manager. (line 595) 11120 * BFD_RELOC_PPC_DTPMOD: howto manager. (line 644) 11121 * BFD_RELOC_PPC_DTPREL: howto manager. (line 654) 11122 * BFD_RELOC_PPC_DTPREL16: howto manager. (line 650) 11123 * BFD_RELOC_PPC_DTPREL16_HA: howto manager. (line 653) 11124 * BFD_RELOC_PPC_DTPREL16_HI: howto manager. (line 652) 11125 * BFD_RELOC_PPC_DTPREL16_LO: howto manager. (line 651) 11126 * BFD_RELOC_PPC_EMB_BIT_FLD: howto manager. (line 614) 11127 * BFD_RELOC_PPC_EMB_MRKREF: howto manager. (line 609) 11128 * BFD_RELOC_PPC_EMB_NADDR16: howto manager. (line 601) 11129 * BFD_RELOC_PPC_EMB_NADDR16_HA: howto manager. (line 604) 11130 * BFD_RELOC_PPC_EMB_NADDR16_HI: howto manager. (line 603) 11131 * BFD_RELOC_PPC_EMB_NADDR16_LO: howto manager. (line 602) 11132 * BFD_RELOC_PPC_EMB_NADDR32: howto manager. (line 600) 11133 * BFD_RELOC_PPC_EMB_RELSDA: howto manager. (line 615) 11134 * BFD_RELOC_PPC_EMB_RELSEC16: howto manager. (line 610) 11135 * BFD_RELOC_PPC_EMB_RELST_HA: howto manager. (line 613) 11136 * BFD_RELOC_PPC_EMB_RELST_HI: howto manager. (line 612) 11137 * BFD_RELOC_PPC_EMB_RELST_LO: howto manager. (line 611) 11138 * BFD_RELOC_PPC_EMB_SDA21: howto manager. (line 608) 11139 * BFD_RELOC_PPC_EMB_SDA2I16: howto manager. (line 606) 11140 * BFD_RELOC_PPC_EMB_SDA2REL: howto manager. (line 607) 11141 * BFD_RELOC_PPC_EMB_SDAI16: howto manager. (line 605) 11142 * BFD_RELOC_PPC_GLOB_DAT: howto manager. (line 596) 11143 * BFD_RELOC_PPC_GOT_DTPREL16: howto manager. (line 667) 11144 * BFD_RELOC_PPC_GOT_DTPREL16_HA: howto manager. (line 670) 11145 * BFD_RELOC_PPC_GOT_DTPREL16_HI: howto manager. (line 669) 11146 * BFD_RELOC_PPC_GOT_DTPREL16_LO: howto manager. (line 668) 11147 * BFD_RELOC_PPC_GOT_TLSGD16: howto manager. (line 655) 11148 * BFD_RELOC_PPC_GOT_TLSGD16_HA: howto manager. (line 658) 11149 * BFD_RELOC_PPC_GOT_TLSGD16_HI: howto manager. (line 657) 11150 * BFD_RELOC_PPC_GOT_TLSGD16_LO: howto manager. (line 656) 11151 * BFD_RELOC_PPC_GOT_TLSLD16: howto manager. (line 659) 11152 * BFD_RELOC_PPC_GOT_TLSLD16_HA: howto manager. (line 662) 11153 * BFD_RELOC_PPC_GOT_TLSLD16_HI: howto manager. (line 661) 11154 * BFD_RELOC_PPC_GOT_TLSLD16_LO: howto manager. (line 660) 11155 * BFD_RELOC_PPC_GOT_TPREL16: howto manager. (line 663) 11156 * BFD_RELOC_PPC_GOT_TPREL16_HA: howto manager. (line 666) 11157 * BFD_RELOC_PPC_GOT_TPREL16_HI: howto manager. (line 665) 11158 * BFD_RELOC_PPC_GOT_TPREL16_LO: howto manager. (line 664) 11159 * BFD_RELOC_PPC_JMP_SLOT: howto manager. (line 597) 11160 * BFD_RELOC_PPC_LOCAL24PC: howto manager. (line 599) 11161 * BFD_RELOC_PPC_RELATIVE: howto manager. (line 598) 11162 * BFD_RELOC_PPC_TLS: howto manager. (line 641) 11163 * BFD_RELOC_PPC_TLSGD: howto manager. (line 642) 11164 * BFD_RELOC_PPC_TLSLD: howto manager. (line 643) 11165 * BFD_RELOC_PPC_TOC16: howto manager. (line 588) 11166 * BFD_RELOC_PPC_TPREL: howto manager. (line 649) 11167 * BFD_RELOC_PPC_TPREL16: howto manager. (line 645) 11168 * BFD_RELOC_PPC_TPREL16_HA: howto manager. (line 648) 11169 * BFD_RELOC_PPC_TPREL16_HI: howto manager. (line 647) 11170 * BFD_RELOC_PPC_TPREL16_LO: howto manager. (line 646) 11171 * BFD_RELOC_RELC: howto manager. (line 2164) 11172 * BFD_RELOC_RVA: howto manager. (line 100) 11173 * BFD_RELOC_RX_16_OP: howto manager. (line 1620) 11174 * BFD_RELOC_RX_16U: howto manager. (line 1624) 11175 * BFD_RELOC_RX_24_OP: howto manager. (line 1621) 11176 * BFD_RELOC_RX_24U: howto manager. (line 1625) 11177 * BFD_RELOC_RX_32_OP: howto manager. (line 1622) 11178 * BFD_RELOC_RX_8U: howto manager. (line 1623) 11179 * BFD_RELOC_RX_ABS16: howto manager. (line 1635) 11180 * BFD_RELOC_RX_ABS16_REV: howto manager. (line 1636) 11181 * BFD_RELOC_RX_ABS16U: howto manager. (line 1639) 11182 * BFD_RELOC_RX_ABS16UL: howto manager. (line 1641) 11183 * BFD_RELOC_RX_ABS16UW: howto manager. (line 1640) 11184 * BFD_RELOC_RX_ABS32: howto manager. (line 1637) 11185 * BFD_RELOC_RX_ABS32_REV: howto manager. (line 1638) 11186 * BFD_RELOC_RX_ABS8: howto manager. (line 1634) 11187 * BFD_RELOC_RX_DIFF: howto manager. (line 1627) 11188 * BFD_RELOC_RX_DIR3U_PCREL: howto manager. (line 1626) 11189 * BFD_RELOC_RX_GPRELB: howto manager. (line 1628) 11190 * BFD_RELOC_RX_GPRELL: howto manager. (line 1630) 11191 * BFD_RELOC_RX_GPRELW: howto manager. (line 1629) 11192 * BFD_RELOC_RX_NEG16: howto manager. (line 1617) 11193 * BFD_RELOC_RX_NEG24: howto manager. (line 1618) 11194 * BFD_RELOC_RX_NEG32: howto manager. (line 1619) 11195 * BFD_RELOC_RX_NEG8: howto manager. (line 1616) 11196 * BFD_RELOC_RX_OP_NEG: howto manager. (line 1633) 11197 * BFD_RELOC_RX_OP_SUBTRACT: howto manager. (line 1632) 11198 * BFD_RELOC_RX_RELAX: howto manager. (line 1642) 11199 * BFD_RELOC_RX_SYM: howto manager. (line 1631) 11200 * BFD_RELOC_SCORE16_BRANCH: howto manager. (line 1770) 11201 * BFD_RELOC_SCORE16_JMP: howto manager. (line 1767) 11202 * BFD_RELOC_SCORE_BCMP: howto manager. (line 1773) 11203 * BFD_RELOC_SCORE_BRANCH: howto manager. (line 1758) 11204 * BFD_RELOC_SCORE_CALL15: howto manager. (line 1778) 11205 * BFD_RELOC_SCORE_DUMMY2: howto manager. (line 1754) 11206 * BFD_RELOC_SCORE_DUMMY_HI16: howto manager. (line 1779) 11207 * BFD_RELOC_SCORE_GOT15: howto manager. (line 1776) 11208 * BFD_RELOC_SCORE_GOT_LO16: howto manager. (line 1777) 11209 * BFD_RELOC_SCORE_GPREL15: howto manager. (line 1751) 11210 * BFD_RELOC_SCORE_IMM30: howto manager. (line 1761) 11211 * BFD_RELOC_SCORE_IMM32: howto manager. (line 1764) 11212 * BFD_RELOC_SCORE_JMP: howto manager. (line 1755) 11213 * BFD_RELOC_SH_ALIGN: howto manager. (line 876) 11214 * BFD_RELOC_SH_CODE: howto manager. (line 877) 11215 * BFD_RELOC_SH_COPY: howto manager. (line 882) 11216 * BFD_RELOC_SH_COPY64: howto manager. (line 907) 11217 * BFD_RELOC_SH_COUNT: howto manager. (line 875) 11218 * BFD_RELOC_SH_DATA: howto manager. (line 878) 11219 * BFD_RELOC_SH_DISP12: howto manager. (line 858) 11220 * BFD_RELOC_SH_DISP12BY2: howto manager. (line 859) 11221 * BFD_RELOC_SH_DISP12BY4: howto manager. (line 860) 11222 * BFD_RELOC_SH_DISP12BY8: howto manager. (line 861) 11223 * BFD_RELOC_SH_DISP20: howto manager. (line 862) 11224 * BFD_RELOC_SH_DISP20BY8: howto manager. (line 863) 11225 * BFD_RELOC_SH_FUNCDESC: howto manager. (line 950) 11226 * BFD_RELOC_SH_GLOB_DAT: howto manager. (line 883) 11227 * BFD_RELOC_SH_GLOB_DAT64: howto manager. (line 908) 11228 * BFD_RELOC_SH_GOT10BY4: howto manager. (line 911) 11229 * BFD_RELOC_SH_GOT10BY8: howto manager. (line 912) 11230 * BFD_RELOC_SH_GOT20: howto manager. (line 944) 11231 * BFD_RELOC_SH_GOT_HI16: howto manager. (line 890) 11232 * BFD_RELOC_SH_GOT_LOW16: howto manager. (line 887) 11233 * BFD_RELOC_SH_GOT_MEDHI16: howto manager. (line 889) 11234 * BFD_RELOC_SH_GOT_MEDLOW16: howto manager. (line 888) 11235 * BFD_RELOC_SH_GOTFUNCDESC: howto manager. (line 946) 11236 * BFD_RELOC_SH_GOTFUNCDESC20: howto manager. (line 947) 11237 * BFD_RELOC_SH_GOTOFF20: howto manager. (line 945) 11238 * BFD_RELOC_SH_GOTOFF_HI16: howto manager. (line 902) 11239 * BFD_RELOC_SH_GOTOFF_LOW16: howto manager. (line 899) 11240 * BFD_RELOC_SH_GOTOFF_MEDHI16: howto manager. (line 901) 11241 * BFD_RELOC_SH_GOTOFF_MEDLOW16: howto manager. (line 900) 11242 * BFD_RELOC_SH_GOTOFFFUNCDESC: howto manager. (line 948) 11243 * BFD_RELOC_SH_GOTOFFFUNCDESC20: howto manager. (line 949) 11244 * BFD_RELOC_SH_GOTPC: howto manager. (line 886) 11245 * BFD_RELOC_SH_GOTPC_HI16: howto manager. (line 906) 11246 * BFD_RELOC_SH_GOTPC_LOW16: howto manager. (line 903) 11247 * BFD_RELOC_SH_GOTPC_MEDHI16: howto manager. (line 905) 11248 * BFD_RELOC_SH_GOTPC_MEDLOW16: howto manager. (line 904) 11249 * BFD_RELOC_SH_GOTPLT10BY4: howto manager. (line 913) 11250 * BFD_RELOC_SH_GOTPLT10BY8: howto manager. (line 914) 11251 * BFD_RELOC_SH_GOTPLT32: howto manager. (line 915) 11252 * BFD_RELOC_SH_GOTPLT_HI16: howto manager. (line 894) 11253 * BFD_RELOC_SH_GOTPLT_LOW16: howto manager. (line 891) 11254 * BFD_RELOC_SH_GOTPLT_MEDHI16: howto manager. (line 893) 11255 * BFD_RELOC_SH_GOTPLT_MEDLOW16: howto manager. (line 892) 11256 * BFD_RELOC_SH_IMM3: howto manager. (line 856) 11257 * BFD_RELOC_SH_IMM3U: howto manager. (line 857) 11258 * BFD_RELOC_SH_IMM4: howto manager. (line 864) 11259 * BFD_RELOC_SH_IMM4BY2: howto manager. (line 865) 11260 * BFD_RELOC_SH_IMM4BY4: howto manager. (line 866) 11261 * BFD_RELOC_SH_IMM8: howto manager. (line 867) 11262 * BFD_RELOC_SH_IMM8BY2: howto manager. (line 868) 11263 * BFD_RELOC_SH_IMM8BY4: howto manager. (line 869) 11264 * BFD_RELOC_SH_IMM_HI16: howto manager. (line 933) 11265 * BFD_RELOC_SH_IMM_HI16_PCREL: howto manager. (line 934) 11266 * BFD_RELOC_SH_IMM_LOW16: howto manager. (line 927) 11267 * BFD_RELOC_SH_IMM_LOW16_PCREL: howto manager. (line 928) 11268 * BFD_RELOC_SH_IMM_MEDHI16: howto manager. (line 931) 11269 * BFD_RELOC_SH_IMM_MEDHI16_PCREL: howto manager. (line 932) 11270 * BFD_RELOC_SH_IMM_MEDLOW16: howto manager. (line 929) 11271 * BFD_RELOC_SH_IMM_MEDLOW16_PCREL: howto manager. (line 930) 11272 * BFD_RELOC_SH_IMMS10: howto manager. (line 921) 11273 * BFD_RELOC_SH_IMMS10BY2: howto manager. (line 922) 11274 * BFD_RELOC_SH_IMMS10BY4: howto manager. (line 923) 11275 * BFD_RELOC_SH_IMMS10BY8: howto manager. (line 924) 11276 * BFD_RELOC_SH_IMMS16: howto manager. (line 925) 11277 * BFD_RELOC_SH_IMMS6: howto manager. (line 918) 11278 * BFD_RELOC_SH_IMMS6BY32: howto manager. (line 919) 11279 * BFD_RELOC_SH_IMMU16: howto manager. (line 926) 11280 * BFD_RELOC_SH_IMMU5: howto manager. (line 917) 11281 * BFD_RELOC_SH_IMMU6: howto manager. (line 920) 11282 * BFD_RELOC_SH_JMP_SLOT: howto manager. (line 884) 11283 * BFD_RELOC_SH_JMP_SLOT64: howto manager. (line 909) 11284 * BFD_RELOC_SH_LABEL: howto manager. (line 879) 11285 * BFD_RELOC_SH_LOOP_END: howto manager. (line 881) 11286 * BFD_RELOC_SH_LOOP_START: howto manager. (line 880) 11287 * BFD_RELOC_SH_PCDISP12BY2: howto manager. (line 855) 11288 * BFD_RELOC_SH_PCDISP8BY2: howto manager. (line 854) 11289 * BFD_RELOC_SH_PCRELIMM8BY2: howto manager. (line 870) 11290 * BFD_RELOC_SH_PCRELIMM8BY4: howto manager. (line 871) 11291 * BFD_RELOC_SH_PLT_HI16: howto manager. (line 898) 11292 * BFD_RELOC_SH_PLT_LOW16: howto manager. (line 895) 11293 * BFD_RELOC_SH_PLT_MEDHI16: howto manager. (line 897) 11294 * BFD_RELOC_SH_PLT_MEDLOW16: howto manager. (line 896) 11295 * BFD_RELOC_SH_PT_16: howto manager. (line 935) 11296 * BFD_RELOC_SH_RELATIVE: howto manager. (line 885) 11297 * BFD_RELOC_SH_RELATIVE64: howto manager. (line 910) 11298 * BFD_RELOC_SH_SHMEDIA_CODE: howto manager. (line 916) 11299 * BFD_RELOC_SH_SWITCH16: howto manager. (line 872) 11300 * BFD_RELOC_SH_SWITCH32: howto manager. (line 873) 11301 * BFD_RELOC_SH_TLS_DTPMOD32: howto manager. (line 941) 11302 * BFD_RELOC_SH_TLS_DTPOFF32: howto manager. (line 942) 11303 * BFD_RELOC_SH_TLS_GD_32: howto manager. (line 936) 11304 * BFD_RELOC_SH_TLS_IE_32: howto manager. (line 939) 11305 * BFD_RELOC_SH_TLS_LD_32: howto manager. (line 937) 11306 * BFD_RELOC_SH_TLS_LDO_32: howto manager. (line 938) 11307 * BFD_RELOC_SH_TLS_LE_32: howto manager. (line 940) 11308 * BFD_RELOC_SH_TLS_TPOFF32: howto manager. (line 943) 11309 * BFD_RELOC_SH_USES: howto manager. (line 874) 11310 * BFD_RELOC_SPARC13: howto manager. (line 134) 11311 * BFD_RELOC_SPARC22: howto manager. (line 133) 11312 * BFD_RELOC_SPARC_10: howto manager. (line 163) 11313 * BFD_RELOC_SPARC_11: howto manager. (line 164) 11314 * BFD_RELOC_SPARC_5: howto manager. (line 176) 11315 * BFD_RELOC_SPARC_6: howto manager. (line 175) 11316 * BFD_RELOC_SPARC_64: howto manager. (line 162) 11317 * BFD_RELOC_SPARC_7: howto manager. (line 174) 11318 * BFD_RELOC_SPARC_BASE13: howto manager. (line 158) 11319 * BFD_RELOC_SPARC_BASE22: howto manager. (line 159) 11320 * BFD_RELOC_SPARC_COPY: howto manager. (line 141) 11321 * BFD_RELOC_SPARC_DISP64: howto manager. (line 177) 11322 * BFD_RELOC_SPARC_GLOB_DAT: howto manager. (line 142) 11323 * BFD_RELOC_SPARC_GOT10: howto manager. (line 135) 11324 * BFD_RELOC_SPARC_GOT13: howto manager. (line 136) 11325 * BFD_RELOC_SPARC_GOT22: howto manager. (line 137) 11326 * BFD_RELOC_SPARC_GOTDATA_HIX22: howto manager. (line 148) 11327 * BFD_RELOC_SPARC_GOTDATA_LOX10: howto manager. (line 149) 11328 * BFD_RELOC_SPARC_GOTDATA_OP: howto manager. (line 152) 11329 * BFD_RELOC_SPARC_GOTDATA_OP_HIX22: howto manager. (line 150) 11330 * BFD_RELOC_SPARC_GOTDATA_OP_LOX10: howto manager. (line 151) 11331 * BFD_RELOC_SPARC_H44: howto manager. (line 182) 11332 * BFD_RELOC_SPARC_HH22: howto manager. (line 166) 11333 * BFD_RELOC_SPARC_HIX22: howto manager. (line 180) 11334 * BFD_RELOC_SPARC_HM10: howto manager. (line 167) 11335 * BFD_RELOC_SPARC_IRELATIVE: howto manager. (line 154) 11336 * BFD_RELOC_SPARC_JMP_IREL: howto manager. (line 153) 11337 * BFD_RELOC_SPARC_JMP_SLOT: howto manager. (line 143) 11338 * BFD_RELOC_SPARC_L44: howto manager. (line 184) 11339 * BFD_RELOC_SPARC_LM22: howto manager. (line 168) 11340 * BFD_RELOC_SPARC_LOX10: howto manager. (line 181) 11341 * BFD_RELOC_SPARC_M44: howto manager. (line 183) 11342 * BFD_RELOC_SPARC_OLO10: howto manager. (line 165) 11343 * BFD_RELOC_SPARC_PC10: howto manager. (line 138) 11344 * BFD_RELOC_SPARC_PC22: howto manager. (line 139) 11345 * BFD_RELOC_SPARC_PC_HH22: howto manager. (line 169) 11346 * BFD_RELOC_SPARC_PC_HM10: howto manager. (line 170) 11347 * BFD_RELOC_SPARC_PC_LM22: howto manager. (line 171) 11348 * BFD_RELOC_SPARC_PLT32: howto manager. (line 178) 11349 * BFD_RELOC_SPARC_PLT64: howto manager. (line 179) 11350 * BFD_RELOC_SPARC_REGISTER: howto manager. (line 185) 11351 * BFD_RELOC_SPARC_RELATIVE: howto manager. (line 144) 11352 * BFD_RELOC_SPARC_REV32: howto manager. (line 188) 11353 * BFD_RELOC_SPARC_TLS_DTPMOD32: howto manager. (line 209) 11354 * BFD_RELOC_SPARC_TLS_DTPMOD64: howto manager. (line 210) 11355 * BFD_RELOC_SPARC_TLS_DTPOFF32: howto manager. (line 211) 11356 * BFD_RELOC_SPARC_TLS_DTPOFF64: howto manager. (line 212) 11357 * BFD_RELOC_SPARC_TLS_GD_ADD: howto manager. (line 193) 11358 * BFD_RELOC_SPARC_TLS_GD_CALL: howto manager. (line 194) 11359 * BFD_RELOC_SPARC_TLS_GD_HI22: howto manager. (line 191) 11360 * BFD_RELOC_SPARC_TLS_GD_LO10: howto manager. (line 192) 11361 * BFD_RELOC_SPARC_TLS_IE_ADD: howto manager. (line 206) 11362 * BFD_RELOC_SPARC_TLS_IE_HI22: howto manager. (line 202) 11363 * BFD_RELOC_SPARC_TLS_IE_LD: howto manager. (line 204) 11364 * BFD_RELOC_SPARC_TLS_IE_LDX: howto manager. (line 205) 11365 * BFD_RELOC_SPARC_TLS_IE_LO10: howto manager. (line 203) 11366 * BFD_RELOC_SPARC_TLS_LDM_ADD: howto manager. (line 197) 11367 * BFD_RELOC_SPARC_TLS_LDM_CALL: howto manager. (line 198) 11368 * BFD_RELOC_SPARC_TLS_LDM_HI22: howto manager. (line 195) 11369 * BFD_RELOC_SPARC_TLS_LDM_LO10: howto manager. (line 196) 11370 * BFD_RELOC_SPARC_TLS_LDO_ADD: howto manager. (line 201) 11371 * BFD_RELOC_SPARC_TLS_LDO_HIX22: howto manager. (line 199) 11372 * BFD_RELOC_SPARC_TLS_LDO_LOX10: howto manager. (line 200) 11373 * BFD_RELOC_SPARC_TLS_LE_HIX22: howto manager. (line 207) 11374 * BFD_RELOC_SPARC_TLS_LE_LOX10: howto manager. (line 208) 11375 * BFD_RELOC_SPARC_TLS_TPOFF32: howto manager. (line 213) 11376 * BFD_RELOC_SPARC_TLS_TPOFF64: howto manager. (line 214) 11377 * BFD_RELOC_SPARC_UA16: howto manager. (line 145) 11378 * BFD_RELOC_SPARC_UA32: howto manager. (line 146) 11379 * BFD_RELOC_SPARC_UA64: howto manager. (line 147) 11380 * BFD_RELOC_SPARC_WDISP16: howto manager. (line 172) 11381 * BFD_RELOC_SPARC_WDISP19: howto manager. (line 173) 11382 * BFD_RELOC_SPARC_WDISP22: howto manager. (line 132) 11383 * BFD_RELOC_SPARC_WPLT30: howto manager. (line 140) 11384 * BFD_RELOC_SPU_ADD_PIC: howto manager. (line 231) 11385 * BFD_RELOC_SPU_HI16: howto manager. (line 228) 11386 * BFD_RELOC_SPU_IMM10: howto manager. (line 219) 11387 * BFD_RELOC_SPU_IMM10W: howto manager. (line 220) 11388 * BFD_RELOC_SPU_IMM16: howto manager. (line 221) 11389 * BFD_RELOC_SPU_IMM16W: howto manager. (line 222) 11390 * BFD_RELOC_SPU_IMM18: howto manager. (line 223) 11391 * BFD_RELOC_SPU_IMM7: howto manager. (line 217) 11392 * BFD_RELOC_SPU_IMM8: howto manager. (line 218) 11393 * BFD_RELOC_SPU_LO16: howto manager. (line 227) 11394 * BFD_RELOC_SPU_PCREL16: howto manager. (line 226) 11395 * BFD_RELOC_SPU_PCREL9a: howto manager. (line 224) 11396 * BFD_RELOC_SPU_PCREL9b: howto manager. (line 225) 11397 * BFD_RELOC_SPU_PPU32: howto manager. (line 229) 11398 * BFD_RELOC_SPU_PPU64: howto manager. (line 230) 11399 * BFD_RELOC_THUMB_PCREL_BLX: howto manager. (line 703) 11400 * BFD_RELOC_THUMB_PCREL_BRANCH12: howto manager. (line 717) 11401 * BFD_RELOC_THUMB_PCREL_BRANCH20: howto manager. (line 718) 11402 * BFD_RELOC_THUMB_PCREL_BRANCH23: howto manager. (line 719) 11403 * BFD_RELOC_THUMB_PCREL_BRANCH25: howto manager. (line 720) 11404 * BFD_RELOC_THUMB_PCREL_BRANCH7: howto manager. (line 715) 11405 * BFD_RELOC_THUMB_PCREL_BRANCH9: howto manager. (line 716) 11406 * BFD_RELOC_TIC30_LDP: howto manager. (line 1343) 11407 * BFD_RELOC_TIC54X_16_OF_23: howto manager. (line 1361) 11408 * BFD_RELOC_TIC54X_23: howto manager. (line 1358) 11409 * BFD_RELOC_TIC54X_MS7_OF_23: howto manager. (line 1366) 11410 * BFD_RELOC_TIC54X_PARTLS7: howto manager. (line 1348) 11411 * BFD_RELOC_TIC54X_PARTMS9: howto manager. (line 1353) 11412 * bfd_reloc_type_lookup: howto manager. (line 2408) 11413 * BFD_RELOC_V850_16_GOT: howto manager. (line 1299) 11414 * BFD_RELOC_V850_16_GOTOFF: howto manager. (line 1323) 11415 * BFD_RELOC_V850_16_PCREL: howto manager. (line 1269) 11416 * BFD_RELOC_V850_16_S1: howto manager. (line 1287) 11417 * BFD_RELOC_V850_16_SPLIT_OFFSET: howto manager. (line 1284) 11418 * BFD_RELOC_V850_17_PCREL: howto manager. (line 1272) 11419 * BFD_RELOC_V850_22_PCREL: howto manager. (line 1204) 11420 * BFD_RELOC_V850_22_PLT_PCREL: howto manager. (line 1305) 11421 * BFD_RELOC_V850_23: howto manager. (line 1275) 11422 * BFD_RELOC_V850_32_ABS: howto manager. (line 1281) 11423 * BFD_RELOC_V850_32_GOT: howto manager. (line 1302) 11424 * BFD_RELOC_V850_32_GOTOFF: howto manager. (line 1326) 11425 * BFD_RELOC_V850_32_GOTPCREL: howto manager. (line 1296) 11426 * BFD_RELOC_V850_32_PCREL: howto manager. (line 1278) 11427 * BFD_RELOC_V850_32_PLT_PCREL: howto manager. (line 1308) 11428 * BFD_RELOC_V850_9_PCREL: howto manager. (line 1201) 11429 * BFD_RELOC_V850_ALIGN: howto manager. (line 1262) 11430 * BFD_RELOC_V850_CALLT_15_16_OFFSET: howto manager. (line 1293) 11431 * BFD_RELOC_V850_CALLT_16_16_OFFSET: howto manager. (line 1253) 11432 * BFD_RELOC_V850_CALLT_6_7_OFFSET: howto manager. (line 1250) 11433 * BFD_RELOC_V850_CODE: howto manager. (line 1329) 11434 * BFD_RELOC_V850_COPY: howto manager. (line 1311) 11435 * BFD_RELOC_V850_DATA: howto manager. (line 1332) 11436 * BFD_RELOC_V850_GLOB_DAT: howto manager. (line 1314) 11437 * BFD_RELOC_V850_JMP_SLOT: howto manager. (line 1317) 11438 * BFD_RELOC_V850_LO16_S1: howto manager. (line 1290) 11439 * BFD_RELOC_V850_LO16_SPLIT_OFFSET: howto manager. (line 1265) 11440 * BFD_RELOC_V850_LONGCALL: howto manager. (line 1256) 11441 * BFD_RELOC_V850_LONGJUMP: howto manager. (line 1259) 11442 * BFD_RELOC_V850_RELATIVE: howto manager. (line 1320) 11443 * BFD_RELOC_V850_SDA_15_16_OFFSET: howto manager. (line 1210) 11444 * BFD_RELOC_V850_SDA_16_16_OFFSET: howto manager. (line 1207) 11445 * BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET: howto manager. (line 1242) 11446 * BFD_RELOC_V850_TDA_16_16_OFFSET: howto manager. (line 1232) 11447 * BFD_RELOC_V850_TDA_4_4_OFFSET: howto manager. (line 1239) 11448 * BFD_RELOC_V850_TDA_4_5_OFFSET: howto manager. (line 1235) 11449 * BFD_RELOC_V850_TDA_6_8_OFFSET: howto manager. (line 1221) 11450 * BFD_RELOC_V850_TDA_7_7_OFFSET: howto manager. (line 1229) 11451 * BFD_RELOC_V850_TDA_7_8_OFFSET: howto manager. (line 1225) 11452 * BFD_RELOC_V850_ZDA_15_16_OFFSET: howto manager. (line 1217) 11453 * BFD_RELOC_V850_ZDA_16_16_OFFSET: howto manager. (line 1214) 11454 * BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET: howto manager. (line 1246) 11455 * BFD_RELOC_VAX_GLOB_DAT: howto manager. (line 2173) 11456 * BFD_RELOC_VAX_JMP_SLOT: howto manager. (line 2174) 11457 * BFD_RELOC_VAX_RELATIVE: howto manager. (line 2175) 11458 * BFD_RELOC_VPE4KMATH_DATA: howto manager. (line 1812) 11459 * BFD_RELOC_VPE4KMATH_INSN: howto manager. (line 1813) 11460 * BFD_RELOC_VTABLE_ENTRY: howto manager. (line 1817) 11461 * BFD_RELOC_VTABLE_INHERIT: howto manager. (line 1816) 11462 * BFD_RELOC_X86_64_32S: howto manager. (line 538) 11463 * BFD_RELOC_X86_64_COPY: howto manager. (line 533) 11464 * BFD_RELOC_X86_64_DTPMOD64: howto manager. (line 539) 11465 * BFD_RELOC_X86_64_DTPOFF32: howto manager. (line 544) 11466 * BFD_RELOC_X86_64_DTPOFF64: howto manager. (line 540) 11467 * BFD_RELOC_X86_64_GLOB_DAT: howto manager. (line 534) 11468 * BFD_RELOC_X86_64_GOT32: howto manager. (line 531) 11469 * BFD_RELOC_X86_64_GOT64: howto manager. (line 549) 11470 * BFD_RELOC_X86_64_GOTOFF64: howto manager. (line 547) 11471 * BFD_RELOC_X86_64_GOTPC32: howto manager. (line 548) 11472 * BFD_RELOC_X86_64_GOTPC32_TLSDESC: howto manager. (line 554) 11473 * BFD_RELOC_X86_64_GOTPC64: howto manager. (line 551) 11474 * BFD_RELOC_X86_64_GOTPCREL: howto manager. (line 537) 11475 * BFD_RELOC_X86_64_GOTPCREL64: howto manager. (line 550) 11476 * BFD_RELOC_X86_64_GOTPLT64: howto manager. (line 552) 11477 * BFD_RELOC_X86_64_GOTTPOFF: howto manager. (line 545) 11478 * BFD_RELOC_X86_64_IRELATIVE: howto manager. (line 557) 11479 * BFD_RELOC_X86_64_JUMP_SLOT: howto manager. (line 535) 11480 * BFD_RELOC_X86_64_PLT32: howto manager. (line 532) 11481 * BFD_RELOC_X86_64_PLTOFF64: howto manager. (line 553) 11482 * BFD_RELOC_X86_64_RELATIVE: howto manager. (line 536) 11483 * BFD_RELOC_X86_64_TLSDESC: howto manager. (line 556) 11484 * BFD_RELOC_X86_64_TLSDESC_CALL: howto manager. (line 555) 11485 * BFD_RELOC_X86_64_TLSGD: howto manager. (line 542) 11486 * BFD_RELOC_X86_64_TLSLD: howto manager. (line 543) 11487 * BFD_RELOC_X86_64_TPOFF32: howto manager. (line 546) 11488 * BFD_RELOC_X86_64_TPOFF64: howto manager. (line 541) 11489 * BFD_RELOC_XC16X_PAG: howto manager. (line 2167) 11490 * BFD_RELOC_XC16X_POF: howto manager. (line 2168) 11491 * BFD_RELOC_XC16X_SEG: howto manager. (line 2169) 11492 * BFD_RELOC_XC16X_SOF: howto manager. (line 2170) 11493 * BFD_RELOC_XSTORMY16_12: howto manager. (line 2159) 11494 * BFD_RELOC_XSTORMY16_24: howto manager. (line 2160) 11495 * BFD_RELOC_XSTORMY16_FPTR16: howto manager. (line 2161) 11496 * BFD_RELOC_XSTORMY16_REL_12: howto manager. (line 2158) 11497 * BFD_RELOC_XTENSA_ASM_EXPAND: howto manager. (line 2279) 11498 * BFD_RELOC_XTENSA_ASM_SIMPLIFY: howto manager. (line 2284) 11499 * BFD_RELOC_XTENSA_DIFF16: howto manager. (line 2226) 11500 * BFD_RELOC_XTENSA_DIFF32: howto manager. (line 2227) 11501 * BFD_RELOC_XTENSA_DIFF8: howto manager. (line 2225) 11502 * BFD_RELOC_XTENSA_GLOB_DAT: howto manager. (line 2215) 11503 * BFD_RELOC_XTENSA_JMP_SLOT: howto manager. (line 2216) 11504 * BFD_RELOC_XTENSA_OP0: howto manager. (line 2273) 11505 * BFD_RELOC_XTENSA_OP1: howto manager. (line 2274) 11506 * BFD_RELOC_XTENSA_OP2: howto manager. (line 2275) 11507 * BFD_RELOC_XTENSA_PLT: howto manager. (line 2220) 11508 * BFD_RELOC_XTENSA_RELATIVE: howto manager. (line 2217) 11509 * BFD_RELOC_XTENSA_RTLD: howto manager. (line 2210) 11510 * BFD_RELOC_XTENSA_SLOT0_ALT: howto manager. (line 2255) 11511 * BFD_RELOC_XTENSA_SLOT0_OP: howto manager. (line 2235) 11512 * BFD_RELOC_XTENSA_SLOT10_ALT: howto manager. (line 2265) 11513 * BFD_RELOC_XTENSA_SLOT10_OP: howto manager. (line 2245) 11514 * BFD_RELOC_XTENSA_SLOT11_ALT: howto manager. (line 2266) 11515 * BFD_RELOC_XTENSA_SLOT11_OP: howto manager. (line 2246) 11516 * BFD_RELOC_XTENSA_SLOT12_ALT: howto manager. (line 2267) 11517 * BFD_RELOC_XTENSA_SLOT12_OP: howto manager. (line 2247) 11518 * BFD_RELOC_XTENSA_SLOT13_ALT: howto manager. (line 2268) 11519 * BFD_RELOC_XTENSA_SLOT13_OP: howto manager. (line 2248) 11520 * BFD_RELOC_XTENSA_SLOT14_ALT: howto manager. (line 2269) 11521 * BFD_RELOC_XTENSA_SLOT14_OP: howto manager. (line 2249) 11522 * BFD_RELOC_XTENSA_SLOT1_ALT: howto manager. (line 2256) 11523 * BFD_RELOC_XTENSA_SLOT1_OP: howto manager. (line 2236) 11524 * BFD_RELOC_XTENSA_SLOT2_ALT: howto manager. (line 2257) 11525 * BFD_RELOC_XTENSA_SLOT2_OP: howto manager. (line 2237) 11526 * BFD_RELOC_XTENSA_SLOT3_ALT: howto manager. (line 2258) 11527 * BFD_RELOC_XTENSA_SLOT3_OP: howto manager. (line 2238) 11528 * BFD_RELOC_XTENSA_SLOT4_ALT: howto manager. (line 2259) 11529 * BFD_RELOC_XTENSA_SLOT4_OP: howto manager. (line 2239) 11530 * BFD_RELOC_XTENSA_SLOT5_ALT: howto manager. (line 2260) 11531 * BFD_RELOC_XTENSA_SLOT5_OP: howto manager. (line 2240) 11532 * BFD_RELOC_XTENSA_SLOT6_ALT: howto manager. (line 2261) 11533 * BFD_RELOC_XTENSA_SLOT6_OP: howto manager. (line 2241) 11534 * BFD_RELOC_XTENSA_SLOT7_ALT: howto manager. (line 2262) 11535 * BFD_RELOC_XTENSA_SLOT7_OP: howto manager. (line 2242) 11536 * BFD_RELOC_XTENSA_SLOT8_ALT: howto manager. (line 2263) 11537 * BFD_RELOC_XTENSA_SLOT8_OP: howto manager. (line 2243) 11538 * BFD_RELOC_XTENSA_SLOT9_ALT: howto manager. (line 2264) 11539 * BFD_RELOC_XTENSA_SLOT9_OP: howto manager. (line 2244) 11540 * BFD_RELOC_XTENSA_TLS_ARG: howto manager. (line 2294) 11541 * BFD_RELOC_XTENSA_TLS_CALL: howto manager. (line 2295) 11542 * BFD_RELOC_XTENSA_TLS_DTPOFF: howto manager. (line 2291) 11543 * BFD_RELOC_XTENSA_TLS_FUNC: howto manager. (line 2293) 11544 * BFD_RELOC_XTENSA_TLS_TPOFF: howto manager. (line 2292) 11545 * BFD_RELOC_XTENSA_TLSDESC_ARG: howto manager. (line 2290) 11546 * BFD_RELOC_XTENSA_TLSDESC_FN: howto manager. (line 2289) 11547 * BFD_RELOC_Z80_DISP8: howto manager. (line 2298) 11548 * BFD_RELOC_Z8K_CALLR: howto manager. (line 2304) 11549 * BFD_RELOC_Z8K_DISP7: howto manager. (line 2301) 11550 * BFD_RELOC_Z8K_IMM4L: howto manager. (line 2307) 11551 * bfd_rename_section: section prototypes. (line 155) 11552 * bfd_scan_arch: Architectures. (line 447) 11553 * bfd_scan_vma: BFD front end. (line 532) 11554 * bfd_seach_for_target: bfd_target. (line 507) 11555 * bfd_section_already_linked: Writing the symbol table. 11556 (line 55) 11557 * bfd_section_list_clear: section prototypes. (line 8) 11558 * bfd_sections_find_if: section prototypes. (line 185) 11559 * bfd_set_arch_info: Architectures. (line 488) 11560 * bfd_set_archive_head: Archives. (line 69) 11561 * bfd_set_default_target: bfd_target. (line 446) 11562 * bfd_set_error: BFD front end. (line 342) 11563 * bfd_set_error_handler: BFD front end. (line 384) 11564 * bfd_set_error_program_name: BFD front end. (line 393) 11565 * bfd_set_file_flags: BFD front end. (line 452) 11566 * bfd_set_format: Formats. (line 68) 11567 * bfd_set_gp_size: BFD front end. (line 522) 11568 * bfd_set_private_flags: BFD front end. (line 599) 11569 * bfd_set_reloc: BFD front end. (line 442) 11570 * bfd_set_section_contents: section prototypes. (line 216) 11571 * bfd_set_section_flags: section prototypes. (line 140) 11572 * bfd_set_section_size: section prototypes. (line 202) 11573 * bfd_set_start_address: BFD front end. (line 501) 11574 * bfd_set_symtab: symbol handling functions. 11575 (line 60) 11576 * bfd_symbol_info: symbol handling functions. 11577 (line 130) 11578 * bfd_target_list: bfd_target. (line 498) 11579 * bfd_write_bigendian_4byte_int: Internal. (line 13) 11580 * bfd_zalloc: Opening and Closing. 11581 (line 232) 11582 * bfd_zalloc2: Opening and Closing. 11583 (line 241) 11584 * coff_symbol_type: coff. (line 244) 11585 * core_file_matches_executable_p: Core Files. (line 39) 11586 * find_separate_debug_file: Opening and Closing. 11587 (line 283) 11588 * generic_core_file_matches_executable_p: Core Files. (line 49) 11589 * get_debug_link_info: Opening and Closing. 11590 (line 264) 11591 * Hash tables: Hash Tables. (line 6) 11592 * internal object-file format: Canonical format. (line 11) 11593 * Linker: Linker Functions. (line 6) 11594 * Other functions: BFD front end. (line 614) 11595 * separate_debug_file_exists: Opening and Closing. 11596 (line 274) 11597 * struct bfd_iovec: BFD front end. (line 817) 11598 * target vector (_bfd_final_link): Performing the Final Link. 11599 (line 6) 11600 * target vector (_bfd_link_add_symbols): Adding Symbols to the Hash Table. 11601 (line 6) 11602 * target vector (_bfd_link_hash_table_create): Creating a Linker Hash Table. 11603 (line 6) 11604 * The HOWTO Macro: typedef arelent. (line 288) 11605 * what is it?: Overview. (line 6) 11606 11607 11608 11609 Tag Table: 11610 Node: Top1144 11611 Node: Overview1483 11612 Node: History2534 11613 Node: How It Works3480 11614 Node: What BFD Version 2 Can Do5023 11615 Node: BFD information loss6338 11616 Node: Canonical format8870 11617 Node: BFD front end13242 11618 Node: Memory Usage45321 11619 Node: Initialization46549 11620 Node: Sections47008 11621 Node: Section Input47491 11622 Node: Section Output48856 11623 Node: typedef asection51342 11624 Node: section prototypes76654 11625 Node: Symbols86549 11626 Node: Reading Symbols88144 11627 Node: Writing Symbols89251 11628 Node: Mini Symbols90960 11629 Node: typedef asymbol91934 11630 Node: symbol handling functions97993 11631 Node: Archives103335 11632 Node: Formats107061 11633 Node: Relocations110009 11634 Node: typedef arelent110736 11635 Node: howto manager126372 11636 Node: Core Files203204 11637 Node: Targets205242 11638 Node: bfd_target207212 11639 Node: Architectures229605 11640 Node: Opening and Closing253363 11641 Node: Internal264819 11642 Node: File Caching271152 11643 Node: Linker Functions273066 11644 Node: Creating a Linker Hash Table274739 11645 Node: Adding Symbols to the Hash Table276477 11646 Node: Differing file formats277377 11647 Node: Adding symbols from an object file279102 11648 Node: Adding symbols from an archive281253 11649 Node: Performing the Final Link284182 11650 Node: Information provided by the linker285424 11651 Node: Relocating the section contents286578 11652 Node: Writing the symbol table288329 11653 Node: Hash Tables292344 11654 Node: Creating and Freeing a Hash Table293542 11655 Node: Looking Up or Entering a String294792 11656 Node: Traversing a Hash Table296045 11657 Node: Deriving a New Hash Table Type296834 11658 Node: Define the Derived Structures297900 11659 Node: Write the Derived Creation Routine298981 11660 Node: Write Other Derived Routines301605 11661 Node: BFD back ends302920 11662 Node: What to Put Where303190 11663 Node: aout303370 11664 Node: coff309688 11665 Node: elf338121 11666 Node: mmo338522 11667 Node: File layout339450 11668 Node: Symbol-table345097 11669 Node: mmo section mapping348866 11670 Node: GNU Free Documentation License352518 11671 Node: BFD Index377601 11672 11673 End Tag Table 11674