Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

14782 Zeilen
649KB

  1. This is bfd.info, produced by makeinfo version 6.5 from bfd.texi.
  2. This file documents the BFD library.
  3. Copyright (C) 1991-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "GNU General Public License" and "Funding Free
  8. Software", the Front-Cover texts being (a) (see below), and with the
  9. Back-Cover Texts being (b) (see below). A copy of the license is
  10. included in the section entitled "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise funds
  16. for GNU development.
  17. INFO-DIR-SECTION Software development
  18. START-INFO-DIR-ENTRY
  19. * Bfd: (bfd). The Binary File Descriptor library.
  20. END-INFO-DIR-ENTRY
  21. 
  22. File: bfd.info, Node: Top, Next: Overview, Prev: (dir), Up: (dir)
  23. This file documents the binary file descriptor library libbfd.
  24. * Menu:
  25. * Overview:: Overview of BFD
  26. * BFD front end:: BFD front end
  27. * BFD back ends:: BFD back ends
  28. * GNU Free Documentation License:: GNU Free Documentation License
  29. * BFD Index:: BFD Index
  30. 
  31. File: bfd.info, Node: Overview, Next: BFD front end, Prev: Top, Up: Top
  32. 1 Introduction
  33. **************
  34. BFD is a package which allows applications to use the same routines to
  35. operate on object files whatever the object file format. A new object
  36. file format can be supported simply by creating a new BFD back end and
  37. adding it to the library.
  38. BFD is split into two parts: the front end, and the back ends (one
  39. for each object file format).
  40. * The front end of BFD provides the interface to the user. It
  41. manages memory and various canonical data structures. The front
  42. end also decides which back end to use and when to call back end
  43. routines.
  44. * The back ends provide BFD its view of the real world. Each back
  45. end provides a set of calls which the BFD front end can use to
  46. maintain its canonical form. The back ends also may keep around
  47. information for their own use, for greater efficiency.
  48. * Menu:
  49. * History:: History
  50. * How It Works:: How It Works
  51. * What BFD Version 2 Can Do:: What BFD Version 2 Can Do
  52. 
  53. File: bfd.info, Node: History, Next: How It Works, Prev: Overview, Up: Overview
  54. 1.1 History
  55. ===========
  56. One spur behind BFD was the desire, on the part of the GNU 960 team at
  57. Intel Oregon, for interoperability of applications on their COFF and
  58. b.out file formats. Cygnus was providing GNU support for the team, and
  59. was contracted to provide the required functionality.
  60. The name came from a conversation David Wallace was having with
  61. Richard Stallman about the library: RMS said that it would be quite
  62. hard--David said "BFD". Stallman was right, but the name stuck.
  63. At the same time, Ready Systems wanted much the same thing, but for
  64. different object file formats: IEEE-695, Oasys, Srecords, a.out and 68k
  65. coff.
  66. BFD was first implemented by members of Cygnus Support; Steve
  67. Chamberlain ('sac@cygnus.com'), John Gilmore ('gnu@cygnus.com'), K.
  68. Richard Pixley ('rich@cygnus.com') and David Henkel-Wallace
  69. ('gumby@cygnus.com').
  70. 
  71. File: bfd.info, Node: How It Works, Next: What BFD Version 2 Can Do, Prev: History, Up: Overview
  72. 1.2 How To Use BFD
  73. ==================
  74. To use the library, include 'bfd.h' and link with 'libbfd.a'.
  75. BFD provides a common interface to the parts of an object file for a
  76. calling application.
  77. When an application successfully opens a target file (object,
  78. archive, or whatever), a pointer to an internal structure is returned.
  79. This pointer points to a structure called 'bfd', described in 'bfd.h'.
  80. Our convention is to call this pointer a BFD, and instances of it within
  81. code 'abfd'. All operations on the target object file are applied as
  82. methods to the BFD. The mapping is defined within 'bfd.h' in a set of
  83. macros, all beginning with 'bfd_' to reduce namespace pollution.
  84. For example, this sequence does what you would probably expect:
  85. return the number of sections in an object file attached to a BFD
  86. 'abfd'.
  87. #include "bfd.h"
  88. unsigned int number_of_sections (abfd)
  89. bfd *abfd;
  90. {
  91. return bfd_count_sections (abfd);
  92. }
  93. The abstraction used within BFD is that an object file has:
  94. * a header,
  95. * a number of sections containing raw data (*note Sections::),
  96. * a set of relocations (*note Relocations::), and
  97. * some symbol information (*note Symbols::).
  98. Also, BFDs opened for archives have the additional attribute of an index
  99. and contain subordinate BFDs. This approach is fine for a.out and coff,
  100. but loses efficiency when applied to formats such as S-records and
  101. IEEE-695.
  102. 
  103. File: bfd.info, Node: What BFD Version 2 Can Do, Prev: How It Works, Up: Overview
  104. 1.3 What BFD Version 2 Can Do
  105. =============================
  106. When an object file is opened, BFD subroutines automatically determine
  107. the format of the input object file. They then build a descriptor in
  108. memory with pointers to routines that will be used to access elements of
  109. the object file's data structures.
  110. As different information from the object files is required, BFD reads
  111. from different sections of the file and processes them. For example, a
  112. very common operation for the linker is processing symbol tables. Each
  113. BFD back end provides a routine for converting between the object file's
  114. representation of symbols and an internal canonical format. When the
  115. linker asks for the symbol table of an object file, it calls through a
  116. memory pointer to the routine from the relevant BFD back end which reads
  117. and converts the table into a canonical form. The linker then operates
  118. upon the canonical form. When the link is finished and the linker
  119. writes the output file's symbol table, another BFD back end routine is
  120. called to take the newly created symbol table and convert it into the
  121. chosen output format.
  122. * Menu:
  123. * BFD information loss:: Information Loss
  124. * Canonical format:: The BFD canonical object-file format
  125. 
  126. File: bfd.info, Node: BFD information loss, Next: Canonical format, Up: What BFD Version 2 Can Do
  127. 1.3.1 Information Loss
  128. ----------------------
  129. _Information can be lost during output._ The output formats supported
  130. by BFD do not provide identical facilities, and information which can be
  131. described in one form has nowhere to go in another format. One example
  132. of this is alignment information in 'b.out'. There is nowhere in an
  133. 'a.out' format file to store alignment information on the contained
  134. data, so when a file is linked from 'b.out' and an 'a.out' image is
  135. produced, alignment information will not propagate to the output file.
  136. (The linker will still use the alignment information internally, so the
  137. link is performed correctly).
  138. Another example is COFF section names. COFF files may contain an
  139. unlimited number of sections, each one with a textual section name. If
  140. the target of the link is a format which does not have many sections
  141. (e.g., 'a.out') or has sections without names (e.g., the Oasys format),
  142. the link cannot be done simply. You can circumvent this problem by
  143. describing the desired input-to-output section mapping with the linker
  144. command language.
  145. _Information can be lost during canonicalization._ The BFD internal
  146. canonical form of the external formats is not exhaustive; there are
  147. structures in input formats for which there is no direct representation
  148. internally. This means that the BFD back ends cannot maintain all
  149. possible data richness through the transformation between external to
  150. internal and back to external formats.
  151. This limitation is only a problem when an application reads one
  152. format and writes another. Each BFD back end is responsible for
  153. maintaining as much data as possible, and the internal BFD canonical
  154. form has structures which are opaque to the BFD core, and exported only
  155. to the back ends. When a file is read in one format, the canonical form
  156. is generated for BFD and the application. At the same time, the back
  157. end saves away any information which may otherwise be lost. If the data
  158. is then written back in the same format, the back end routine will be
  159. able to use the canonical form provided by the BFD core as well as the
  160. information it prepared earlier. Since there is a great deal of
  161. commonality between back ends, there is no information lost when linking
  162. or copying big endian COFF to little endian COFF, or 'a.out' to 'b.out'.
  163. When a mixture of formats is linked, the information is only lost from
  164. the files whose format differs from the destination.
  165. 
  166. File: bfd.info, Node: Canonical format, Prev: BFD information loss, Up: What BFD Version 2 Can Do
  167. 1.3.2 The BFD canonical object-file format
  168. ------------------------------------------
  169. The greatest potential for loss of information occurs when there is the
  170. least overlap between the information provided by the source format,
  171. that stored by the canonical format, and that needed by the destination
  172. format. A brief description of the canonical form may help you
  173. understand which kinds of data you can count on preserving across
  174. conversions.
  175. _files_
  176. Information stored on a per-file basis includes target machine
  177. architecture, particular implementation format type, a demand
  178. pageable bit, and a write protected bit. Information like Unix
  179. magic numbers is not stored here--only the magic numbers' meaning,
  180. so a 'ZMAGIC' file would have both the demand pageable bit and the
  181. write protected text bit set. The byte order of the target is
  182. stored on a per-file basis, so that big- and little-endian object
  183. files may be used with one another.
  184. _sections_
  185. Each section in the input file contains the name of the section,
  186. the section's original address in the object file, size and
  187. alignment information, various flags, and pointers into other BFD
  188. data structures.
  189. _symbols_
  190. Each symbol contains a pointer to the information for the object
  191. file which originally defined it, its name, its value, and various
  192. flag bits. When a BFD back end reads in a symbol table, it
  193. relocates all symbols to make them relative to the base of the
  194. section where they were defined. Doing this ensures that each
  195. symbol points to its containing section. Each symbol also has a
  196. varying amount of hidden private data for the BFD back end. Since
  197. the symbol points to the original file, the private data format for
  198. that symbol is accessible. 'ld' can operate on a collection of
  199. symbols of wildly different formats without problems.
  200. Normal global and simple local symbols are maintained on output, so
  201. an output file (no matter its format) will retain symbols pointing
  202. to functions and to global, static, and common variables. Some
  203. symbol information is not worth retaining; in 'a.out', type
  204. information is stored in the symbol table as long symbol names.
  205. This information would be useless to most COFF debuggers; the
  206. linker has command-line switches to allow users to throw it away.
  207. There is one word of type information within the symbol, so if the
  208. format supports symbol type information within symbols (for
  209. example, COFF, Oasys) and the type is simple enough to fit within
  210. one word (nearly everything but aggregates), the information will
  211. be preserved.
  212. _relocation level_
  213. Each canonical BFD relocation record contains a pointer to the
  214. symbol to relocate to, the offset of the data to relocate, the
  215. section the data is in, and a pointer to a relocation type
  216. descriptor. Relocation is performed by passing messages through
  217. the relocation type descriptor and the symbol pointer. Therefore,
  218. relocations can be performed on output data using a relocation
  219. method that is only available in one of the input formats. For
  220. instance, Oasys provides a byte relocation format. A relocation
  221. record requesting this relocation type would point indirectly to a
  222. routine to perform this, so the relocation may be performed on a
  223. byte being written to a 68k COFF file, even though 68k COFF has no
  224. such relocation type.
  225. _line numbers_
  226. Object formats can contain, for debugging purposes, some form of
  227. mapping between symbols, source line numbers, and addresses in the
  228. output file. These addresses have to be relocated along with the
  229. symbol information. Each symbol with an associated list of line
  230. number records points to the first record of the list. The head of
  231. a line number list consists of a pointer to the symbol, which
  232. allows finding out the address of the function whose line number is
  233. being described. The rest of the list is made up of pairs: offsets
  234. into the section and line numbers. Any format which can simply
  235. derive this information can pass it successfully between formats.
  236. 
  237. File: bfd.info, Node: BFD front end, Next: BFD back ends, Prev: Overview, Up: Top
  238. 2 BFD Front End
  239. ***************
  240. * Menu:
  241. * typedef bfd::
  242. * Error reporting::
  243. * Miscellaneous::
  244. * Memory Usage::
  245. * Initialization::
  246. * Sections::
  247. * Symbols::
  248. * Archives::
  249. * Formats::
  250. * Relocations::
  251. * Core Files::
  252. * Targets::
  253. * Architectures::
  254. * Opening and Closing::
  255. * Internal::
  256. * File Caching::
  257. * Linker Functions::
  258. * Hash Tables::
  259. 
  260. File: bfd.info, Node: typedef bfd, Next: Error reporting, Prev: BFD front end, Up: BFD front end
  261. 2.1 'typedef bfd'
  262. =================
  263. A BFD has type 'bfd'; objects of this type are the cornerstone of any
  264. application using BFD. Using BFD consists of making references though
  265. the BFD and to data in the BFD.
  266. Here is the structure that defines the type 'bfd'. It contains the
  267. major data about the file and pointers to the rest of the data.
  268. enum bfd_direction
  269. {
  270. no_direction = 0,
  271. read_direction = 1,
  272. write_direction = 2,
  273. both_direction = 3
  274. };
  275. enum bfd_plugin_format
  276. {
  277. bfd_plugin_unknown = 0,
  278. bfd_plugin_yes = 1,
  279. bfd_plugin_no = 2
  280. };
  281. struct bfd_build_id
  282. {
  283. bfd_size_type size;
  284. bfd_byte data[1];
  285. };
  286. struct bfd
  287. {
  288. /* The filename the application opened the BFD with. */
  289. const char *filename;
  290. /* A pointer to the target jump table. */
  291. const struct bfd_target *xvec;
  292. /* The IOSTREAM, and corresponding IO vector that provide access
  293. to the file backing the BFD. */
  294. void *iostream;
  295. const struct bfd_iovec *iovec;
  296. /* The caching routines use these to maintain a
  297. least-recently-used list of BFDs. */
  298. struct bfd *lru_prev, *lru_next;
  299. /* Track current file position (or current buffer offset for
  300. in-memory BFDs). When a file is closed by the caching routines,
  301. BFD retains state information on the file here. */
  302. ufile_ptr where;
  303. /* File modified time, if mtime_set is TRUE. */
  304. long mtime;
  305. /* A unique identifier of the BFD */
  306. unsigned int id;
  307. /* Format_specific flags. */
  308. flagword flags;
  309. /* Values that may appear in the flags field of a BFD. These also
  310. appear in the object_flags field of the bfd_target structure, where
  311. they indicate the set of flags used by that backend (not all flags
  312. are meaningful for all object file formats) (FIXME: at the moment,
  313. the object_flags values have mostly just been copied from backend
  314. to another, and are not necessarily correct). */
  315. #define BFD_NO_FLAGS 0x0
  316. /* BFD contains relocation entries. */
  317. #define HAS_RELOC 0x1
  318. /* BFD is directly executable. */
  319. #define EXEC_P 0x2
  320. /* BFD has line number information (basically used for F_LNNO in a
  321. COFF header). */
  322. #define HAS_LINENO 0x4
  323. /* BFD has debugging information. */
  324. #define HAS_DEBUG 0x08
  325. /* BFD has symbols. */
  326. #define HAS_SYMS 0x10
  327. /* BFD has local symbols (basically used for F_LSYMS in a COFF
  328. header). */
  329. #define HAS_LOCALS 0x20
  330. /* BFD is a dynamic object. */
  331. #define DYNAMIC 0x40
  332. /* Text section is write protected (if D_PAGED is not set, this is
  333. like an a.out NMAGIC file) (the linker sets this by default, but
  334. clears it for -r or -N). */
  335. #define WP_TEXT 0x80
  336. /* BFD is dynamically paged (this is like an a.out ZMAGIC file) (the
  337. linker sets this by default, but clears it for -r or -n or -N). */
  338. #define D_PAGED 0x100
  339. /* BFD is relaxable (this means that bfd_relax_section may be able to
  340. do something) (sometimes bfd_relax_section can do something even if
  341. this is not set). */
  342. #define BFD_IS_RELAXABLE 0x200
  343. /* This may be set before writing out a BFD to request using a
  344. traditional format. For example, this is used to request that when
  345. writing out an a.out object the symbols not be hashed to eliminate
  346. duplicates. */
  347. #define BFD_TRADITIONAL_FORMAT 0x400
  348. /* This flag indicates that the BFD contents are actually cached
  349. in memory. If this is set, iostream points to a bfd_in_memory
  350. struct. */
  351. #define BFD_IN_MEMORY 0x800
  352. /* This BFD has been created by the linker and doesn't correspond
  353. to any input file. */
  354. #define BFD_LINKER_CREATED 0x1000
  355. /* This may be set before writing out a BFD to request that it
  356. be written using values for UIDs, GIDs, timestamps, etc. that
  357. will be consistent from run to run. */
  358. #define BFD_DETERMINISTIC_OUTPUT 0x2000
  359. /* Compress sections in this BFD. */
  360. #define BFD_COMPRESS 0x4000
  361. /* Decompress sections in this BFD. */
  362. #define BFD_DECOMPRESS 0x8000
  363. /* BFD is a dummy, for plugins. */
  364. #define BFD_PLUGIN 0x10000
  365. /* Compress sections in this BFD with SHF_COMPRESSED from gABI. */
  366. #define BFD_COMPRESS_GABI 0x20000
  367. /* Convert ELF common symbol type to STT_COMMON or STT_OBJECT in this
  368. BFD. */
  369. #define BFD_CONVERT_ELF_COMMON 0x40000
  370. /* Use the ELF STT_COMMON type in this BFD. */
  371. #define BFD_USE_ELF_STT_COMMON 0x80000
  372. /* Put pathnames into archives (non-POSIX). */
  373. #define BFD_ARCHIVE_FULL_PATH 0x100000
  374. /* Flags bits to be saved in bfd_preserve_save. */
  375. #define BFD_FLAGS_SAVED \
  376. (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_LINKER_CREATED \
  377. | BFD_PLUGIN | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON \
  378. | BFD_USE_ELF_STT_COMMON)
  379. /* Flags bits which are for BFD use only. */
  380. #define BFD_FLAGS_FOR_BFD_USE_MASK \
  381. (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_LINKER_CREATED \
  382. | BFD_PLUGIN | BFD_TRADITIONAL_FORMAT | BFD_DETERMINISTIC_OUTPUT \
  383. | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON | BFD_USE_ELF_STT_COMMON)
  384. /* The format which belongs to the BFD. (object, core, etc.) */
  385. ENUM_BITFIELD (bfd_format) format : 3;
  386. /* The direction with which the BFD was opened. */
  387. ENUM_BITFIELD (bfd_direction) direction : 2;
  388. /* Is the file descriptor being cached? That is, can it be closed as
  389. needed, and re-opened when accessed later? */
  390. unsigned int cacheable : 1;
  391. /* Marks whether there was a default target specified when the
  392. BFD was opened. This is used to select which matching algorithm
  393. to use to choose the back end. */
  394. unsigned int target_defaulted : 1;
  395. /* ... and here: (``once'' means at least once). */
  396. unsigned int opened_once : 1;
  397. /* Set if we have a locally maintained mtime value, rather than
  398. getting it from the file each time. */
  399. unsigned int mtime_set : 1;
  400. /* Flag set if symbols from this BFD should not be exported. */
  401. unsigned int no_export : 1;
  402. /* Remember when output has begun, to stop strange things
  403. from happening. */
  404. unsigned int output_has_begun : 1;
  405. /* Have archive map. */
  406. unsigned int has_armap : 1;
  407. /* Set if this is a thin archive. */
  408. unsigned int is_thin_archive : 1;
  409. /* Set if this archive should not cache element positions. */
  410. unsigned int no_element_cache : 1;
  411. /* Set if only required symbols should be added in the link hash table for
  412. this object. Used by VMS linkers. */
  413. unsigned int selective_search : 1;
  414. /* Set if this is the linker output BFD. */
  415. unsigned int is_linker_output : 1;
  416. /* Set if this is the linker input BFD. */
  417. unsigned int is_linker_input : 1;
  418. /* If this is an input for a compiler plug-in library. */
  419. ENUM_BITFIELD (bfd_plugin_format) plugin_format : 2;
  420. /* Set if this is a plugin output file. */
  421. unsigned int lto_output : 1;
  422. /* Set if this is a slim LTO object not loaded with a compiler plugin. */
  423. unsigned int lto_slim_object : 1;
  424. /* Do not attempt to modify this file. Set when detecting errors
  425. that BFD is not prepared to handle for objcopy/strip. */
  426. unsigned int read_only : 1;
  427. /* Set to dummy BFD created when claimed by a compiler plug-in
  428. library. */
  429. bfd *plugin_dummy_bfd;
  430. /* The offset of this bfd in the file, typically 0 if it is not
  431. contained in an archive. */
  432. ufile_ptr origin;
  433. /* The origin in the archive of the proxy entry. This will
  434. normally be the same as origin, except for thin archives,
  435. when it will contain the current offset of the proxy in the
  436. thin archive rather than the offset of the bfd in its actual
  437. container. */
  438. ufile_ptr proxy_origin;
  439. /* A hash table for section names. */
  440. struct bfd_hash_table section_htab;
  441. /* Pointer to linked list of sections. */
  442. struct bfd_section *sections;
  443. /* The last section on the section list. */
  444. struct bfd_section *section_last;
  445. /* The number of sections. */
  446. unsigned int section_count;
  447. /* A field used by _bfd_generic_link_add_archive_symbols. This will
  448. be used only for archive elements. */
  449. int archive_pass;
  450. /* Stuff only useful for object files:
  451. The start address. */
  452. bfd_vma start_address;
  453. /* Symbol table for output BFD (with symcount entries).
  454. Also used by the linker to cache input BFD symbols. */
  455. struct bfd_symbol **outsymbols;
  456. /* Used for input and output. */
  457. unsigned int symcount;
  458. /* Used for slurped dynamic symbol tables. */
  459. unsigned int dynsymcount;
  460. /* Pointer to structure which contains architecture information. */
  461. const struct bfd_arch_info *arch_info;
  462. /* Cached length of file for bfd_get_size. 0 until bfd_get_size is
  463. called, 1 if stat returns an error or the file size is too large to
  464. return in ufile_ptr. Both 0 and 1 should be treated as "unknown". */
  465. ufile_ptr size;
  466. /* Stuff only useful for archives. */
  467. void *arelt_data;
  468. struct bfd *my_archive; /* The containing archive BFD. */
  469. struct bfd *archive_next; /* The next BFD in the archive. */
  470. struct bfd *archive_head; /* The first BFD in the archive. */
  471. struct bfd *nested_archives; /* List of nested archive in a flattened
  472. thin archive. */
  473. union {
  474. /* For input BFDs, a chain of BFDs involved in a link. */
  475. struct bfd *next;
  476. /* For output BFD, the linker hash table. */
  477. struct bfd_link_hash_table *hash;
  478. } link;
  479. /* Used by the back end to hold private data. */
  480. union
  481. {
  482. struct aout_data_struct *aout_data;
  483. struct artdata *aout_ar_data;
  484. struct coff_tdata *coff_obj_data;
  485. struct pe_tdata *pe_obj_data;
  486. struct xcoff_tdata *xcoff_obj_data;
  487. struct ecoff_tdata *ecoff_obj_data;
  488. struct srec_data_struct *srec_data;
  489. struct verilog_data_struct *verilog_data;
  490. struct ihex_data_struct *ihex_data;
  491. struct tekhex_data_struct *tekhex_data;
  492. struct elf_obj_tdata *elf_obj_data;
  493. struct mmo_data_struct *mmo_data;
  494. struct sun_core_struct *sun_core_data;
  495. struct sco5_core_struct *sco5_core_data;
  496. struct trad_core_struct *trad_core_data;
  497. struct som_data_struct *som_data;
  498. struct hpux_core_struct *hpux_core_data;
  499. struct hppabsd_core_struct *hppabsd_core_data;
  500. struct sgi_core_struct *sgi_core_data;
  501. struct lynx_core_struct *lynx_core_data;
  502. struct osf_core_struct *osf_core_data;
  503. struct cisco_core_struct *cisco_core_data;
  504. struct versados_data_struct *versados_data;
  505. struct netbsd_core_struct *netbsd_core_data;
  506. struct mach_o_data_struct *mach_o_data;
  507. struct mach_o_fat_data_struct *mach_o_fat_data;
  508. struct plugin_data_struct *plugin_data;
  509. struct bfd_pef_data_struct *pef_data;
  510. struct bfd_pef_xlib_data_struct *pef_xlib_data;
  511. struct bfd_sym_data_struct *sym_data;
  512. void *any;
  513. }
  514. tdata;
  515. /* Used by the application to hold private data. */
  516. void *usrdata;
  517. /* Where all the allocated stuff under this BFD goes. This is a
  518. struct objalloc *, but we use void * to avoid requiring the inclusion
  519. of objalloc.h. */
  520. void *memory;
  521. /* For input BFDs, the build ID, if the object has one. */
  522. const struct bfd_build_id *build_id;
  523. };
  524. static inline const char *
  525. bfd_get_filename (const bfd *abfd)
  526. {
  527. return abfd->filename;
  528. }
  529. static inline bfd_boolean
  530. bfd_get_cacheable (const bfd *abfd)
  531. {
  532. return abfd->cacheable;
  533. }
  534. static inline enum bfd_format
  535. bfd_get_format (const bfd *abfd)
  536. {
  537. return abfd->format;
  538. }
  539. static inline flagword
  540. bfd_get_file_flags (const bfd *abfd)
  541. {
  542. return abfd->flags;
  543. }
  544. static inline bfd_vma
  545. bfd_get_start_address (const bfd *abfd)
  546. {
  547. return abfd->start_address;
  548. }
  549. static inline unsigned int
  550. bfd_get_symcount (const bfd *abfd)
  551. {
  552. return abfd->symcount;
  553. }
  554. static inline unsigned int
  555. bfd_get_dynamic_symcount (const bfd *abfd)
  556. {
  557. return abfd->dynsymcount;
  558. }
  559. static inline struct bfd_symbol **
  560. bfd_get_outsymbols (const bfd *abfd)
  561. {
  562. return abfd->outsymbols;
  563. }
  564. static inline unsigned int
  565. bfd_count_sections (const bfd *abfd)
  566. {
  567. return abfd->section_count;
  568. }
  569. static inline bfd_boolean
  570. bfd_has_map (const bfd *abfd)
  571. {
  572. return abfd->has_armap;
  573. }
  574. static inline bfd_boolean
  575. bfd_is_thin_archive (const bfd *abfd)
  576. {
  577. return abfd->is_thin_archive;
  578. }
  579. static inline void *
  580. bfd_usrdata (const bfd *abfd)
  581. {
  582. return abfd->usrdata;
  583. }
  584. /* See note beside bfd_set_section_userdata. */
  585. static inline bfd_boolean
  586. bfd_set_cacheable (bfd * abfd, bfd_boolean val)
  587. {
  588. abfd->cacheable = val;
  589. return TRUE;
  590. }
  591. static inline void
  592. bfd_set_thin_archive (bfd *abfd, bfd_boolean val)
  593. {
  594. abfd->is_thin_archive = val;
  595. }
  596. static inline void
  597. bfd_set_usrdata (bfd *abfd, void *val)
  598. {
  599. abfd->usrdata = val;
  600. }
  601. static inline asection *
  602. bfd_asymbol_section (const asymbol *sy)
  603. {
  604. return sy->section;
  605. }
  606. static inline bfd_vma
  607. bfd_asymbol_value (const asymbol *sy)
  608. {
  609. return sy->section->vma + sy->value;
  610. }
  611. static inline const char *
  612. bfd_asymbol_name (const asymbol *sy)
  613. {
  614. return sy->name;
  615. }
  616. static inline struct bfd *
  617. bfd_asymbol_bfd (const asymbol *sy)
  618. {
  619. return sy->the_bfd;
  620. }
  621. static inline void
  622. bfd_set_asymbol_name (asymbol *sy, const char *name)
  623. {
  624. sy->name = name;
  625. }
  626. static inline bfd_size_type
  627. bfd_get_section_limit_octets (const bfd *abfd, const asection *sec)
  628. {
  629. if (abfd->direction != write_direction && sec->rawsize != 0)
  630. return sec->rawsize;
  631. return sec->size;
  632. }
  633. /* Find the address one past the end of SEC. */
  634. static inline bfd_size_type
  635. bfd_get_section_limit (const bfd *abfd, const asection *sec)
  636. {
  637. return (bfd_get_section_limit_octets (abfd, sec)
  638. / bfd_octets_per_byte (abfd, sec));
  639. }
  640. /* Functions to handle insertion and deletion of a bfd's sections. These
  641. only handle the list pointers, ie. do not adjust section_count,
  642. target_index etc. */
  643. static inline void
  644. bfd_section_list_remove (bfd *abfd, asection *s)
  645. {
  646. asection *next = s->next;
  647. asection *prev = s->prev;
  648. if (prev)
  649. prev->next = next;
  650. else
  651. abfd->sections = next;
  652. if (next)
  653. next->prev = prev;
  654. else
  655. abfd->section_last = prev;
  656. }
  657. static inline void
  658. bfd_section_list_append (bfd *abfd, asection *s)
  659. {
  660. s->next = 0;
  661. if (abfd->section_last)
  662. {
  663. s->prev = abfd->section_last;
  664. abfd->section_last->next = s;
  665. }
  666. else
  667. {
  668. s->prev = 0;
  669. abfd->sections = s;
  670. }
  671. abfd->section_last = s;
  672. }
  673. static inline void
  674. bfd_section_list_prepend (bfd *abfd, asection *s)
  675. {
  676. s->prev = 0;
  677. if (abfd->sections)
  678. {
  679. s->next = abfd->sections;
  680. abfd->sections->prev = s;
  681. }
  682. else
  683. {
  684. s->next = 0;
  685. abfd->section_last = s;
  686. }
  687. abfd->sections = s;
  688. }
  689. static inline void
  690. bfd_section_list_insert_after (bfd *abfd, asection *a, asection *s)
  691. {
  692. asection *next = a->next;
  693. s->next = next;
  694. s->prev = a;
  695. a->next = s;
  696. if (next)
  697. next->prev = s;
  698. else
  699. abfd->section_last = s;
  700. }
  701. static inline void
  702. bfd_section_list_insert_before (bfd *abfd, asection *b, asection *s)
  703. {
  704. asection *prev = b->prev;
  705. s->prev = prev;
  706. s->next = b;
  707. b->prev = s;
  708. if (prev)
  709. prev->next = s;
  710. else
  711. abfd->sections = s;
  712. }
  713. static inline bfd_boolean
  714. bfd_section_removed_from_list (const bfd *abfd, const asection *s)
  715. {
  716. return s->next ? s->next->prev != s : abfd->section_last != s;
  717. }
  718. 
  719. File: bfd.info, Node: Error reporting, Next: Miscellaneous, Prev: typedef bfd, Up: BFD front end
  720. 2.2 Error reporting
  721. ===================
  722. Most BFD functions return nonzero on success (check their individual
  723. documentation for precise semantics). On an error, they call
  724. 'bfd_set_error' to set an error condition that callers can check by
  725. calling 'bfd_get_error'. If that returns 'bfd_error_system_call', then
  726. check 'errno'.
  727. The easiest way to report a BFD error to the user is to use
  728. 'bfd_perror'.
  729. 2.2.1 Type 'bfd_error_type'
  730. ---------------------------
  731. The values returned by 'bfd_get_error' are defined by the enumerated
  732. type 'bfd_error_type'.
  733. typedef enum bfd_error
  734. {
  735. bfd_error_no_error = 0,
  736. bfd_error_system_call,
  737. bfd_error_invalid_target,
  738. bfd_error_wrong_format,
  739. bfd_error_wrong_object_format,
  740. bfd_error_invalid_operation,
  741. bfd_error_no_memory,
  742. bfd_error_no_symbols,
  743. bfd_error_no_armap,
  744. bfd_error_no_more_archived_files,
  745. bfd_error_malformed_archive,
  746. bfd_error_missing_dso,
  747. bfd_error_file_not_recognized,
  748. bfd_error_file_ambiguously_recognized,
  749. bfd_error_no_contents,
  750. bfd_error_nonrepresentable_section,
  751. bfd_error_no_debug_section,
  752. bfd_error_bad_value,
  753. bfd_error_file_truncated,
  754. bfd_error_file_too_big,
  755. bfd_error_sorry,
  756. bfd_error_on_input,
  757. bfd_error_invalid_error_code
  758. }
  759. bfd_error_type;
  760. 2.2.1.1 'bfd_get_error'
  761. .......................
  762. *Synopsis*
  763. bfd_error_type bfd_get_error (void);
  764. *Description*
  765. Return the current BFD error condition.
  766. 2.2.1.2 'bfd_set_error'
  767. .......................
  768. *Synopsis*
  769. void bfd_set_error (bfd_error_type error_tag);
  770. *Description*
  771. Set the BFD error condition to be ERROR_TAG.
  772. ERROR_TAG must not be bfd_error_on_input. Use bfd_set_input_error
  773. for input errors instead.
  774. 2.2.1.3 'bfd_set_input_error'
  775. .............................
  776. *Synopsis*
  777. void bfd_set_input_error (bfd *input, bfd_error_type error_tag);
  778. *Description*
  779. Set the BFD error condition to be bfd_error_on_input. INPUT is the
  780. input bfd where the error occurred, and ERROR_TAG the bfd_error_type
  781. error.
  782. 2.2.1.4 'bfd_errmsg'
  783. ....................
  784. *Synopsis*
  785. const char *bfd_errmsg (bfd_error_type error_tag);
  786. *Description*
  787. Return a string describing the error ERROR_TAG, or the system error if
  788. ERROR_TAG is 'bfd_error_system_call'.
  789. 2.2.1.5 'bfd_perror'
  790. ....................
  791. *Synopsis*
  792. void bfd_perror (const char *message);
  793. *Description*
  794. Print to the standard error stream a string describing the last BFD
  795. error that occurred, or the last system error if the last BFD error was
  796. a system call failure. If MESSAGE is non-NULL and non-empty, the error
  797. string printed is preceded by MESSAGE, a colon, and a space. It is
  798. followed by a newline.
  799. 2.2.2 BFD error handler
  800. -----------------------
  801. Some BFD functions want to print messages describing the problem. They
  802. call a BFD error handler function. This function may be overridden by
  803. the program.
  804. The BFD error handler acts like vprintf.
  805. typedef void (*bfd_error_handler_type) (const char *, va_list);
  806. 2.2.2.1 '_bfd_error_handler'
  807. ............................
  808. *Synopsis*
  809. void _bfd_error_handler (const char *fmt, ...) ATTRIBUTE_PRINTF_1;
  810. *Description*
  811. This is the default routine to handle BFD error messages. Like fprintf
  812. (stderr, ...), but also handles some extra format specifiers.
  813. %pA section name from section. For group components, prints group
  814. name too. %pB file name from bfd. For archive components, prints
  815. archive too.
  816. Beware: Only supports a maximum of 9 format arguments.
  817. 2.2.2.2 'bfd_set_error_handler'
  818. ...............................
  819. *Synopsis*
  820. bfd_error_handler_type bfd_set_error_handler (bfd_error_handler_type);
  821. *Description*
  822. Set the BFD error handler function. Returns the previous function.
  823. 2.2.2.3 'bfd_set_error_program_name'
  824. ....................................
  825. *Synopsis*
  826. void bfd_set_error_program_name (const char *);
  827. *Description*
  828. Set the program name to use when printing a BFD error. This is printed
  829. before the error message followed by a colon and space. The string must
  830. not be changed after it is passed to this function.
  831. 2.2.3 BFD assert handler
  832. ------------------------
  833. If BFD finds an internal inconsistency, the bfd assert handler is called
  834. with information on the BFD version, BFD source file and line. If this
  835. happens, most programs linked against BFD are expected to want to exit
  836. with an error, or mark the current BFD operation as failed, so it is
  837. recommended to override the default handler, which just calls
  838. _bfd_error_handler and continues.
  839. typedef void (*bfd_assert_handler_type) (const char *bfd_formatmsg,
  840. const char *bfd_version,
  841. const char *bfd_file,
  842. int bfd_line);
  843. 2.2.3.1 'bfd_set_assert_handler'
  844. ................................
  845. *Synopsis*
  846. bfd_assert_handler_type bfd_set_assert_handler (bfd_assert_handler_type);
  847. *Description*
  848. Set the BFD assert handler function. Returns the previous function.
  849. 
  850. File: bfd.info, Node: Miscellaneous, Next: Memory Usage, Prev: Error reporting, Up: BFD front end
  851. 2.3 Miscellaneous
  852. =================
  853. 2.3.1 Miscellaneous functions
  854. -----------------------------
  855. 2.3.1.1 'bfd_get_reloc_upper_bound'
  856. ...................................
  857. *Synopsis*
  858. long bfd_get_reloc_upper_bound (bfd *abfd, asection *sect);
  859. *Description*
  860. Return the number of bytes required to store the relocation information
  861. associated with section SECT attached to bfd ABFD. If an error occurs,
  862. return -1.
  863. 2.3.1.2 'bfd_canonicalize_reloc'
  864. ................................
  865. *Synopsis*
  866. long bfd_canonicalize_reloc
  867. (bfd *abfd, asection *sec, arelent **loc, asymbol **syms);
  868. *Description*
  869. Call the back end associated with the open BFD ABFD and translate the
  870. external form of the relocation information attached to SEC into the
  871. internal canonical form. Place the table into memory at LOC, which has
  872. been preallocated, usually by a call to 'bfd_get_reloc_upper_bound'.
  873. Returns the number of relocs, or -1 on error.
  874. The SYMS table is also needed for horrible internal magic reasons.
  875. 2.3.1.3 'bfd_set_reloc'
  876. .......................
  877. *Synopsis*
  878. void bfd_set_reloc
  879. (bfd *abfd, asection *sec, arelent **rel, unsigned int count);
  880. *Description*
  881. Set the relocation pointer and count within section SEC to the values
  882. REL and COUNT. The argument ABFD is ignored.
  883. #define bfd_set_reloc(abfd, asect, location, count) \
  884. BFD_SEND (abfd, _bfd_set_reloc, (abfd, asect, location, count))
  885. 2.3.1.4 'bfd_set_file_flags'
  886. ............................
  887. *Synopsis*
  888. bfd_boolean bfd_set_file_flags (bfd *abfd, flagword flags);
  889. *Description*
  890. Set the flag word in the BFD ABFD to the value FLAGS.
  891. Possible errors are:
  892. * 'bfd_error_wrong_format' - The target bfd was not of object format.
  893. * 'bfd_error_invalid_operation' - The target bfd was open for
  894. reading.
  895. * 'bfd_error_invalid_operation' - The flag word contained a bit which
  896. was not applicable to the type of file. E.g., an attempt was made
  897. to set the 'D_PAGED' bit on a BFD format which does not support
  898. demand paging.
  899. 2.3.1.5 'bfd_get_arch_size'
  900. ...........................
  901. *Synopsis*
  902. int bfd_get_arch_size (bfd *abfd);
  903. *Description*
  904. Returns the normalized architecture address size, in bits, as determined
  905. by the object file's format. By normalized, we mean either 32 or 64.
  906. For ELF, this information is included in the header. Use
  907. bfd_arch_bits_per_address for number of bits in the architecture
  908. address.
  909. *Returns*
  910. Returns the arch size in bits if known, '-1' otherwise.
  911. 2.3.1.6 'bfd_get_sign_extend_vma'
  912. .................................
  913. *Synopsis*
  914. int bfd_get_sign_extend_vma (bfd *abfd);
  915. *Description*
  916. Indicates if the target architecture "naturally" sign extends an
  917. address. Some architectures implicitly sign extend address values when
  918. they are converted to types larger than the size of an address. For
  919. instance, bfd_get_start_address() will return an address sign extended
  920. to fill a bfd_vma when this is the case.
  921. *Returns*
  922. Returns '1' if the target architecture is known to sign extend
  923. addresses, '0' if the target architecture is known to not sign extend
  924. addresses, and '-1' otherwise.
  925. 2.3.1.7 'bfd_set_start_address'
  926. ...............................
  927. *Synopsis*
  928. bfd_boolean bfd_set_start_address (bfd *abfd, bfd_vma vma);
  929. *Description*
  930. Make VMA the entry point of output BFD ABFD.
  931. *Returns*
  932. Returns 'TRUE' on success, 'FALSE' otherwise.
  933. 2.3.1.8 'bfd_get_gp_size'
  934. .........................
  935. *Synopsis*
  936. unsigned int bfd_get_gp_size (bfd *abfd);
  937. *Description*
  938. Return the maximum size of objects to be optimized using the GP register
  939. under MIPS ECOFF. This is typically set by the '-G' argument to the
  940. compiler, assembler or linker.
  941. 2.3.1.9 'bfd_set_gp_size'
  942. .........................
  943. *Synopsis*
  944. void bfd_set_gp_size (bfd *abfd, unsigned int i);
  945. *Description*
  946. Set the maximum size of objects to be optimized using the GP register
  947. under ECOFF or MIPS ELF. This is typically set by the '-G' argument to
  948. the compiler, assembler or linker.
  949. 2.3.1.10 'bfd_scan_vma'
  950. .......................
  951. *Synopsis*
  952. bfd_vma bfd_scan_vma (const char *string, const char **end, int base);
  953. *Description*
  954. Convert, like 'strtoul', a numerical expression STRING into a 'bfd_vma'
  955. integer, and return that integer. (Though without as many bells and
  956. whistles as 'strtoul'.) The expression is assumed to be unsigned (i.e.,
  957. positive). If given a BASE, it is used as the base for conversion. A
  958. base of 0 causes the function to interpret the string in hex if a
  959. leading "0x" or "0X" is found, otherwise in octal if a leading zero is
  960. found, otherwise in decimal.
  961. If the value would overflow, the maximum 'bfd_vma' value is returned.
  962. 2.3.1.11 'bfd_copy_private_header_data'
  963. .......................................
  964. *Synopsis*
  965. bfd_boolean bfd_copy_private_header_data (bfd *ibfd, bfd *obfd);
  966. *Description*
  967. Copy private BFD header information from the BFD IBFD to the the BFD
  968. OBFD. This copies information that may require sections to exist, but
  969. does not require symbol tables. Return 'true' on success, 'false' on
  970. error. Possible error returns are:
  971. * 'bfd_error_no_memory' - Not enough memory exists to create private
  972. data for OBFD.
  973. #define bfd_copy_private_header_data(ibfd, obfd) \
  974. BFD_SEND (obfd, _bfd_copy_private_header_data, \
  975. (ibfd, obfd))
  976. 2.3.1.12 'bfd_copy_private_bfd_data'
  977. ....................................
  978. *Synopsis*
  979. bfd_boolean bfd_copy_private_bfd_data (bfd *ibfd, bfd *obfd);
  980. *Description*
  981. Copy private BFD information from the BFD IBFD to the the BFD OBFD.
  982. Return 'TRUE' on success, 'FALSE' on error. Possible error returns are:
  983. * 'bfd_error_no_memory' - Not enough memory exists to create private
  984. data for OBFD.
  985. #define bfd_copy_private_bfd_data(ibfd, obfd) \
  986. BFD_SEND (obfd, _bfd_copy_private_bfd_data, \
  987. (ibfd, obfd))
  988. 2.3.1.13 'bfd_set_private_flags'
  989. ................................
  990. *Synopsis*
  991. bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags);
  992. *Description*
  993. Set private BFD flag information in the BFD ABFD. Return 'TRUE' on
  994. success, 'FALSE' on error. Possible error returns are:
  995. * 'bfd_error_no_memory' - Not enough memory exists to create private
  996. data for OBFD.
  997. #define bfd_set_private_flags(abfd, flags) \
  998. BFD_SEND (abfd, _bfd_set_private_flags, (abfd, flags))
  999. 2.3.1.14 'Other functions'
  1000. ..........................
  1001. *Description*
  1002. The following functions exist but have not yet been documented.
  1003. #define bfd_sizeof_headers(abfd, info) \
  1004. BFD_SEND (abfd, _bfd_sizeof_headers, (abfd, info))
  1005. #define bfd_find_nearest_line(abfd, sec, syms, off, file, func, line) \
  1006. BFD_SEND (abfd, _bfd_find_nearest_line, \
  1007. (abfd, syms, sec, off, file, func, line, NULL))
  1008. #define bfd_find_nearest_line_discriminator(abfd, sec, syms, off, file, func, \
  1009. line, disc) \
  1010. BFD_SEND (abfd, _bfd_find_nearest_line, \
  1011. (abfd, syms, sec, off, file, func, line, disc))
  1012. #define bfd_find_line(abfd, syms, sym, file, line) \
  1013. BFD_SEND (abfd, _bfd_find_line, \
  1014. (abfd, syms, sym, file, line))
  1015. #define bfd_find_inliner_info(abfd, file, func, line) \
  1016. BFD_SEND (abfd, _bfd_find_inliner_info, \
  1017. (abfd, file, func, line))
  1018. #define bfd_debug_info_start(abfd) \
  1019. BFD_SEND (abfd, _bfd_debug_info_start, (abfd))
  1020. #define bfd_debug_info_end(abfd) \
  1021. BFD_SEND (abfd, _bfd_debug_info_end, (abfd))
  1022. #define bfd_debug_info_accumulate(abfd, section) \
  1023. BFD_SEND (abfd, _bfd_debug_info_accumulate, (abfd, section))
  1024. #define bfd_stat_arch_elt(abfd, stat) \
  1025. BFD_SEND (abfd->my_archive ? abfd->my_archive : abfd, \
  1026. _bfd_stat_arch_elt, (abfd, stat))
  1027. #define bfd_update_armap_timestamp(abfd) \
  1028. BFD_SEND (abfd, _bfd_update_armap_timestamp, (abfd))
  1029. #define bfd_set_arch_mach(abfd, arch, mach)\
  1030. BFD_SEND ( abfd, _bfd_set_arch_mach, (abfd, arch, mach))
  1031. #define bfd_relax_section(abfd, section, link_info, again) \
  1032. BFD_SEND (abfd, _bfd_relax_section, (abfd, section, link_info, again))
  1033. #define bfd_gc_sections(abfd, link_info) \
  1034. BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info))
  1035. #define bfd_lookup_section_flags(link_info, flag_info, section) \
  1036. BFD_SEND (abfd, _bfd_lookup_section_flags, (link_info, flag_info, section))
  1037. #define bfd_merge_sections(abfd, link_info) \
  1038. BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info))
  1039. #define bfd_is_group_section(abfd, sec) \
  1040. BFD_SEND (abfd, _bfd_is_group_section, (abfd, sec))
  1041. #define bfd_group_name(abfd, sec) \
  1042. BFD_SEND (abfd, _bfd_group_name, (abfd, sec))
  1043. #define bfd_discard_group(abfd, sec) \
  1044. BFD_SEND (abfd, _bfd_discard_group, (abfd, sec))
  1045. #define bfd_link_hash_table_create(abfd) \
  1046. BFD_SEND (abfd, _bfd_link_hash_table_create, (abfd))
  1047. #define bfd_link_add_symbols(abfd, info) \
  1048. BFD_SEND (abfd, _bfd_link_add_symbols, (abfd, info))
  1049. #define bfd_link_just_syms(abfd, sec, info) \
  1050. BFD_SEND (abfd, _bfd_link_just_syms, (sec, info))
  1051. #define bfd_final_link(abfd, info) \
  1052. BFD_SEND (abfd, _bfd_final_link, (abfd, info))
  1053. #define bfd_free_cached_info(abfd) \
  1054. BFD_SEND (abfd, _bfd_free_cached_info, (abfd))
  1055. #define bfd_get_dynamic_symtab_upper_bound(abfd) \
  1056. BFD_SEND (abfd, _bfd_get_dynamic_symtab_upper_bound, (abfd))
  1057. #define bfd_print_private_bfd_data(abfd, file)\
  1058. BFD_SEND (abfd, _bfd_print_private_bfd_data, (abfd, file))
  1059. #define bfd_canonicalize_dynamic_symtab(abfd, asymbols) \
  1060. BFD_SEND (abfd, _bfd_canonicalize_dynamic_symtab, (abfd, asymbols))
  1061. #define bfd_get_synthetic_symtab(abfd, count, syms, dyncount, dynsyms, ret) \
  1062. BFD_SEND (abfd, _bfd_get_synthetic_symtab, (abfd, count, syms, \
  1063. dyncount, dynsyms, ret))
  1064. #define bfd_get_dynamic_reloc_upper_bound(abfd) \
  1065. BFD_SEND (abfd, _bfd_get_dynamic_reloc_upper_bound, (abfd))
  1066. #define bfd_canonicalize_dynamic_reloc(abfd, arels, asyms) \
  1067. BFD_SEND (abfd, _bfd_canonicalize_dynamic_reloc, (abfd, arels, asyms))
  1068. extern bfd_byte *bfd_get_relocated_section_contents
  1069. (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *,
  1070. bfd_boolean, asymbol **);
  1071. 2.3.1.15 'bfd_alt_mach_code'
  1072. ............................
  1073. *Synopsis*
  1074. bfd_boolean bfd_alt_mach_code (bfd *abfd, int alternative);
  1075. *Description*
  1076. When more than one machine code number is available for the same machine
  1077. type, this function can be used to switch between the preferred one
  1078. (alternative == 0) and any others. Currently, only ELF supports this
  1079. feature, with up to two alternate machine codes.
  1080. 2.3.1.16 'bfd_emul_get_maxpagesize'
  1081. ...................................
  1082. *Synopsis*
  1083. bfd_vma bfd_emul_get_maxpagesize (const char *);
  1084. *Description*
  1085. Returns the maximum page size, in bytes, as determined by emulation.
  1086. *Returns*
  1087. Returns the maximum page size in bytes for ELF, 0 otherwise.
  1088. 2.3.1.17 'bfd_emul_set_maxpagesize'
  1089. ...................................
  1090. *Synopsis*
  1091. void bfd_emul_set_maxpagesize (const char *, bfd_vma);
  1092. *Description*
  1093. For ELF, set the maximum page size for the emulation. It is a no-op for
  1094. other formats.
  1095. 2.3.1.18 'bfd_emul_get_commonpagesize'
  1096. ......................................
  1097. *Synopsis*
  1098. bfd_vma bfd_emul_get_commonpagesize (const char *, bfd_boolean);
  1099. *Description*
  1100. Returns the common page size, in bytes, as determined by emulation.
  1101. *Returns*
  1102. Returns the common page size in bytes for ELF, 0 otherwise.
  1103. 2.3.1.19 'bfd_emul_set_commonpagesize'
  1104. ......................................
  1105. *Synopsis*
  1106. void bfd_emul_set_commonpagesize (const char *, bfd_vma);
  1107. *Description*
  1108. For ELF, set the common page size for the emulation. It is a no-op for
  1109. other formats.
  1110. 2.3.1.20 'bfd_demangle'
  1111. .......................
  1112. *Synopsis*
  1113. char *bfd_demangle (bfd *, const char *, int);
  1114. *Description*
  1115. Wrapper around cplus_demangle. Strips leading underscores and other
  1116. such chars that would otherwise confuse the demangler. If passed a g++
  1117. v3 ABI mangled name, returns a buffer allocated with malloc holding the
  1118. demangled name. Returns NULL otherwise and on memory alloc failure.
  1119. 2.3.1.21 'bfd_update_compression_header'
  1120. ........................................
  1121. *Synopsis*
  1122. void bfd_update_compression_header
  1123. (bfd *abfd, bfd_byte *contents, asection *sec);
  1124. *Description*
  1125. Set the compression header at CONTENTS of SEC in ABFD and update
  1126. elf_section_flags for compression.
  1127. 2.3.1.22 'bfd_check_compression_header'
  1128. .......................................
  1129. *Synopsis*
  1130. bfd_boolean bfd_check_compression_header
  1131. (bfd *abfd, bfd_byte *contents, asection *sec,
  1132. bfd_size_type *uncompressed_size,
  1133. unsigned int *uncompressed_alignment_power);
  1134. *Description*
  1135. Check the compression header at CONTENTS of SEC in ABFD and store the
  1136. uncompressed size in UNCOMPRESSED_SIZE and the uncompressed data
  1137. alignment in UNCOMPRESSED_ALIGNMENT_POWER if the compression header is
  1138. valid.
  1139. *Returns*
  1140. Return TRUE if the compression header is valid.
  1141. 2.3.1.23 'bfd_get_compression_header_size'
  1142. ..........................................
  1143. *Synopsis*
  1144. int bfd_get_compression_header_size (bfd *abfd, asection *sec);
  1145. *Description*
  1146. Return the size of the compression header of SEC in ABFD.
  1147. *Returns*
  1148. Return the size of the compression header in bytes.
  1149. 2.3.1.24 'bfd_convert_section_size'
  1150. ...................................
  1151. *Synopsis*
  1152. bfd_size_type bfd_convert_section_size
  1153. (bfd *ibfd, asection *isec, bfd *obfd, bfd_size_type size);
  1154. *Description*
  1155. Convert the size SIZE of the section ISEC in input BFD IBFD to the
  1156. section size in output BFD OBFD.
  1157. 2.3.1.25 'bfd_convert_section_contents'
  1158. .......................................
  1159. *Synopsis*
  1160. bfd_boolean bfd_convert_section_contents
  1161. (bfd *ibfd, asection *isec, bfd *obfd,
  1162. bfd_byte **ptr, bfd_size_type *ptr_size);
  1163. *Description*
  1164. Convert the contents, stored in *PTR, of the section ISEC in input BFD
  1165. IBFD to output BFD OBFD if needed. The original buffer pointed to by
  1166. *PTR may be freed and *PTR is returned with memory malloc'd by this
  1167. function, and the new size written to PTR_SIZE.
  1168. 2.3.1.26 'struct bfd_iovec'
  1169. ...........................
  1170. *Description*
  1171. The 'struct bfd_iovec' contains the internal file I/O class. Each 'BFD'
  1172. has an instance of this class and all file I/O is routed through it (it
  1173. is assumed that the instance implements all methods listed below).
  1174. struct bfd_iovec
  1175. {
  1176. /* To avoid problems with macros, a "b" rather than "f"
  1177. prefix is prepended to each method name. */
  1178. /* Attempt to read/write NBYTES on ABFD's IOSTREAM storing/fetching
  1179. bytes starting at PTR. Return the number of bytes actually
  1180. transfered (a read past end-of-file returns less than NBYTES),
  1181. or -1 (setting bfd_error) if an error occurs. */
  1182. file_ptr (*bread) (struct bfd *abfd, void *ptr, file_ptr nbytes);
  1183. file_ptr (*bwrite) (struct bfd *abfd, const void *ptr,
  1184. file_ptr nbytes);
  1185. /* Return the current IOSTREAM file offset, or -1 (setting bfd_error
  1186. if an error occurs. */
  1187. file_ptr (*btell) (struct bfd *abfd);
  1188. /* For the following, on successful completion a value of 0 is returned.
  1189. Otherwise, a value of -1 is returned (and bfd_error is set). */
  1190. int (*bseek) (struct bfd *abfd, file_ptr offset, int whence);
  1191. int (*bclose) (struct bfd *abfd);
  1192. int (*bflush) (struct bfd *abfd);
  1193. int (*bstat) (struct bfd *abfd, struct stat *sb);
  1194. /* Mmap a part of the files. ADDR, LEN, PROT, FLAGS and OFFSET are the usual
  1195. mmap parameter, except that LEN and OFFSET do not need to be page
  1196. aligned. Returns (void *)-1 on failure, mmapped address on success.
  1197. Also write in MAP_ADDR the address of the page aligned buffer and in
  1198. MAP_LEN the size mapped (a page multiple). Use unmap with MAP_ADDR and
  1199. MAP_LEN to unmap. */
  1200. void *(*bmmap) (struct bfd *abfd, void *addr, bfd_size_type len,
  1201. int prot, int flags, file_ptr offset,
  1202. void **map_addr, bfd_size_type *map_len);
  1203. };
  1204. extern const struct bfd_iovec _bfd_memory_iovec;
  1205. 2.3.1.27 'bfd_get_mtime'
  1206. ........................
  1207. *Synopsis*
  1208. long bfd_get_mtime (bfd *abfd);
  1209. *Description*
  1210. Return the file modification time (as read from the file system, or from
  1211. the archive header for archive members).
  1212. 2.3.1.28 'bfd_get_size'
  1213. .......................
  1214. *Synopsis*
  1215. ufile_ptr bfd_get_size (bfd *abfd);
  1216. *Description*
  1217. Return the file size (as read from file system) for the file associated
  1218. with BFD ABFD.
  1219. The initial motivation for, and use of, this routine is not so we can
  1220. get the exact size of the object the BFD applies to, since that might
  1221. not be generally possible (archive members for example). It would be
  1222. ideal if someone could eventually modify it so that such results were
  1223. guaranteed.
  1224. Instead, we want to ask questions like "is this NNN byte sized object
  1225. I'm about to try read from file offset YYY reasonable?" As as example
  1226. of where we might do this, some object formats use string tables for
  1227. which the first 'sizeof (long)' bytes of the table contain the size of
  1228. the table itself, including the size bytes. If an application tries to
  1229. read what it thinks is one of these string tables, without some way to
  1230. validate the size, and for some reason the size is wrong (byte swapping
  1231. error, wrong location for the string table, etc.), the only clue is
  1232. likely to be a read error when it tries to read the table, or a "virtual
  1233. memory exhausted" error when it tries to allocate 15 bazillon bytes of
  1234. space for the 15 bazillon byte table it is about to read. This function
  1235. at least allows us to answer the question, "is the size reasonable?".
  1236. A return value of zero indicates the file size is unknown.
  1237. 2.3.1.29 'bfd_get_file_size'
  1238. ............................
  1239. *Synopsis*
  1240. ufile_ptr bfd_get_file_size (bfd *abfd);
  1241. *Description*
  1242. Return the file size (as read from file system) for the file associated
  1243. with BFD ABFD. It supports both normal files and archive elements.
  1244. 2.3.1.30 'bfd_mmap'
  1245. ...................
  1246. *Synopsis*
  1247. void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len,
  1248. int prot, int flags, file_ptr offset,
  1249. void **map_addr, bfd_size_type *map_len);
  1250. *Description*
  1251. Return mmap()ed region of the file, if possible and implemented. LEN
  1252. and OFFSET do not need to be page aligned. The page aligned address and
  1253. length are written to MAP_ADDR and MAP_LEN.
  1254. 
  1255. File: bfd.info, Node: Memory Usage, Next: Initialization, Prev: Miscellaneous, Up: BFD front end
  1256. 2.4 Memory Usage
  1257. ================
  1258. BFD keeps all of its internal structures in obstacks. There is one
  1259. obstack per open BFD file, into which the current state is stored. When
  1260. a BFD is closed, the obstack is deleted, and so everything which has
  1261. been allocated by BFD for the closing file is thrown away.
  1262. BFD does not free anything created by an application, but pointers
  1263. into 'bfd' structures become invalid on a 'bfd_close'; for example,
  1264. after a 'bfd_close' the vector passed to 'bfd_canonicalize_symtab' is
  1265. still around, since it has been allocated by the application, but the
  1266. data that it pointed to are lost.
  1267. The general rule is to not close a BFD until all operations dependent
  1268. upon data from the BFD have been completed, or all the data from within
  1269. the file has been copied. To help with the management of memory, there
  1270. is a function ('bfd_alloc_size') which returns the number of bytes in
  1271. obstacks associated with the supplied BFD. This could be used to select
  1272. the greediest open BFD, close it to reclaim the memory, perform some
  1273. operation and reopen the BFD again, to get a fresh copy of the data
  1274. structures.
  1275. 
  1276. File: bfd.info, Node: Initialization, Next: Sections, Prev: Memory Usage, Up: BFD front end
  1277. 2.5 Initialization
  1278. ==================
  1279. 2.5.1 Initialization functions
  1280. ------------------------------
  1281. These are the functions that handle initializing a BFD.
  1282. 2.5.1.1 'bfd_init'
  1283. ..................
  1284. *Synopsis*
  1285. unsigned int bfd_init (void);
  1286. *Description*
  1287. This routine must be called before any other BFD function to initialize
  1288. magical internal data structures. Returns a magic number, which may be
  1289. used to check that the bfd library is configured as expected by users.
  1290. /* Value returned by bfd_init. */
  1291. #define BFD_INIT_MAGIC (sizeof (struct bfd_section))
  1292. 
  1293. File: bfd.info, Node: Sections, Next: Symbols, Prev: Initialization, Up: BFD front end
  1294. 2.6 Sections
  1295. ============
  1296. The raw data contained within a BFD is maintained through the section
  1297. abstraction. A single BFD may have any number of sections. It keeps
  1298. hold of them by pointing to the first; each one points to the next in
  1299. the list.
  1300. Sections are supported in BFD in 'section.c'.
  1301. * Menu:
  1302. * Section Input::
  1303. * Section Output::
  1304. * typedef asection::
  1305. * section prototypes::
  1306. 
  1307. File: bfd.info, Node: Section Input, Next: Section Output, Prev: Sections, Up: Sections
  1308. 2.6.1 Section input
  1309. -------------------
  1310. When a BFD is opened for reading, the section structures are created and
  1311. attached to the BFD.
  1312. Each section has a name which describes the section in the outside
  1313. world--for example, 'a.out' would contain at least three sections,
  1314. called '.text', '.data' and '.bss'.
  1315. Names need not be unique; for example a COFF file may have several
  1316. sections named '.data'.
  1317. Sometimes a BFD will contain more than the "natural" number of
  1318. sections. A back end may attach other sections containing constructor
  1319. data, or an application may add a section (using 'bfd_make_section') to
  1320. the sections attached to an already open BFD. For example, the linker
  1321. creates an extra section 'COMMON' for each input file's BFD to hold
  1322. information about common storage.
  1323. The raw data is not necessarily read in when the section descriptor
  1324. is created. Some targets may leave the data in place until a
  1325. 'bfd_get_section_contents' call is made. Other back ends may read in
  1326. all the data at once. For example, an S-record file has to be read once
  1327. to determine the size of the data.
  1328. 
  1329. File: bfd.info, Node: Section Output, Next: typedef asection, Prev: Section Input, Up: Sections
  1330. 2.6.2 Section output
  1331. --------------------
  1332. To write a new object style BFD, the various sections to be written have
  1333. to be created. They are attached to the BFD in the same way as input
  1334. sections; data is written to the sections using
  1335. 'bfd_set_section_contents'.
  1336. Any program that creates or combines sections (e.g., the assembler
  1337. and linker) must use the 'asection' fields 'output_section' and
  1338. 'output_offset' to indicate the file sections to which each section must
  1339. be written. (If the section is being created from scratch,
  1340. 'output_section' should probably point to the section itself and
  1341. 'output_offset' should probably be zero.)
  1342. The data to be written comes from input sections attached (via
  1343. 'output_section' pointers) to the output sections. The output section
  1344. structure can be considered a filter for the input section: the output
  1345. section determines the vma of the output data and the name, but the
  1346. input section determines the offset into the output section of the data
  1347. to be written.
  1348. E.g., to create a section "O", starting at 0x100, 0x123 long,
  1349. containing two subsections, "A" at offset 0x0 (i.e., at vma 0x100) and
  1350. "B" at offset 0x20 (i.e., at vma 0x120) the 'asection' structures would
  1351. look like:
  1352. section name "A"
  1353. output_offset 0x00
  1354. size 0x20
  1355. output_section -----------> section name "O"
  1356. | vma 0x100
  1357. section name "B" | size 0x123
  1358. output_offset 0x20 |
  1359. size 0x103 |
  1360. output_section --------|
  1361. 2.6.3 Link orders
  1362. -----------------
  1363. The data within a section is stored in a "link_order". These are much
  1364. like the fixups in 'gas'. The link_order abstraction allows a section
  1365. to grow and shrink within itself.
  1366. A link_order knows how big it is, and which is the next link_order
  1367. and where the raw data for it is; it also points to a list of
  1368. relocations which apply to it.
  1369. The link_order is used by the linker to perform relaxing on final
  1370. code. The compiler creates code which is as big as necessary to make it
  1371. work without relaxing, and the user can select whether to relax.
  1372. Sometimes relaxing takes a lot of time. The linker runs around the
  1373. relocations to see if any are attached to data which can be shrunk, if
  1374. so it does it on a link_order by link_order basis.
  1375. 
  1376. File: bfd.info, Node: typedef asection, Next: section prototypes, Prev: Section Output, Up: Sections
  1377. 2.6.4 typedef asection
  1378. ----------------------
  1379. Here is the section structure:
  1380. typedef struct bfd_section
  1381. {
  1382. /* The name of the section; the name isn't a copy, the pointer is
  1383. the same as that passed to bfd_make_section. */
  1384. const char *name;
  1385. /* A unique sequence number. */
  1386. unsigned int id;
  1387. /* A unique section number which can be used by assembler to
  1388. distinguish different sections with the same section name. */
  1389. unsigned int section_id;
  1390. /* Which section in the bfd; 0..n-1 as sections are created in a bfd. */
  1391. unsigned int index;
  1392. /* The next section in the list belonging to the BFD, or NULL. */
  1393. struct bfd_section *next;
  1394. /* The previous section in the list belonging to the BFD, or NULL. */
  1395. struct bfd_section *prev;
  1396. /* The field flags contains attributes of the section. Some
  1397. flags are read in from the object file, and some are
  1398. synthesized from other information. */
  1399. flagword flags;
  1400. #define SEC_NO_FLAGS 0x0
  1401. /* Tells the OS to allocate space for this section when loading.
  1402. This is clear for a section containing debug information only. */
  1403. #define SEC_ALLOC 0x1
  1404. /* Tells the OS to load the section from the file when loading.
  1405. This is clear for a .bss section. */
  1406. #define SEC_LOAD 0x2
  1407. /* The section contains data still to be relocated, so there is
  1408. some relocation information too. */
  1409. #define SEC_RELOC 0x4
  1410. /* A signal to the OS that the section contains read only data. */
  1411. #define SEC_READONLY 0x8
  1412. /* The section contains code only. */
  1413. #define SEC_CODE 0x10
  1414. /* The section contains data only. */
  1415. #define SEC_DATA 0x20
  1416. /* The section will reside in ROM. */
  1417. #define SEC_ROM 0x40
  1418. /* The section contains constructor information. This section
  1419. type is used by the linker to create lists of constructors and
  1420. destructors used by g++. When a back end sees a symbol
  1421. which should be used in a constructor list, it creates a new
  1422. section for the type of name (e.g., __CTOR_LIST__), attaches
  1423. the symbol to it, and builds a relocation. To build the lists
  1424. of constructors, all the linker has to do is catenate all the
  1425. sections called __CTOR_LIST__ and relocate the data
  1426. contained within - exactly the operations it would peform on
  1427. standard data. */
  1428. #define SEC_CONSTRUCTOR 0x80
  1429. /* The section has contents - a data section could be
  1430. SEC_ALLOC | SEC_HAS_CONTENTS; a debug section could be
  1431. SEC_HAS_CONTENTS */
  1432. #define SEC_HAS_CONTENTS 0x100
  1433. /* An instruction to the linker to not output the section
  1434. even if it has information which would normally be written. */
  1435. #define SEC_NEVER_LOAD 0x200
  1436. /* The section contains thread local data. */
  1437. #define SEC_THREAD_LOCAL 0x400
  1438. /* The section's size is fixed. Generic linker code will not
  1439. recalculate it and it is up to whoever has set this flag to
  1440. get the size right. */
  1441. #define SEC_FIXED_SIZE 0x800
  1442. /* The section contains common symbols (symbols may be defined
  1443. multiple times, the value of a symbol is the amount of
  1444. space it requires, and the largest symbol value is the one
  1445. used). Most targets have exactly one of these (which we
  1446. translate to bfd_com_section_ptr), but ECOFF has two. */
  1447. #define SEC_IS_COMMON 0x1000
  1448. /* The section contains only debugging information. For
  1449. example, this is set for ELF .debug and .stab sections.
  1450. strip tests this flag to see if a section can be
  1451. discarded. */
  1452. #define SEC_DEBUGGING 0x2000
  1453. /* The contents of this section are held in memory pointed to
  1454. by the contents field. This is checked by bfd_get_section_contents,
  1455. and the data is retrieved from memory if appropriate. */
  1456. #define SEC_IN_MEMORY 0x4000
  1457. /* The contents of this section are to be excluded by the
  1458. linker for executable and shared objects unless those
  1459. objects are to be further relocated. */
  1460. #define SEC_EXCLUDE 0x8000
  1461. /* The contents of this section are to be sorted based on the sum of
  1462. the symbol and addend values specified by the associated relocation
  1463. entries. Entries without associated relocation entries will be
  1464. appended to the end of the section in an unspecified order. */
  1465. #define SEC_SORT_ENTRIES 0x10000
  1466. /* When linking, duplicate sections of the same name should be
  1467. discarded, rather than being combined into a single section as
  1468. is usually done. This is similar to how common symbols are
  1469. handled. See SEC_LINK_DUPLICATES below. */
  1470. #define SEC_LINK_ONCE 0x20000
  1471. /* If SEC_LINK_ONCE is set, this bitfield describes how the linker
  1472. should handle duplicate sections. */
  1473. #define SEC_LINK_DUPLICATES 0xc0000
  1474. /* This value for SEC_LINK_DUPLICATES means that duplicate
  1475. sections with the same name should simply be discarded. */
  1476. #define SEC_LINK_DUPLICATES_DISCARD 0x0
  1477. /* This value for SEC_LINK_DUPLICATES means that the linker
  1478. should warn if there are any duplicate sections, although
  1479. it should still only link one copy. */
  1480. #define SEC_LINK_DUPLICATES_ONE_ONLY 0x40000
  1481. /* This value for SEC_LINK_DUPLICATES means that the linker
  1482. should warn if any duplicate sections are a different size. */
  1483. #define SEC_LINK_DUPLICATES_SAME_SIZE 0x80000
  1484. /* This value for SEC_LINK_DUPLICATES means that the linker
  1485. should warn if any duplicate sections contain different
  1486. contents. */
  1487. #define SEC_LINK_DUPLICATES_SAME_CONTENTS \
  1488. (SEC_LINK_DUPLICATES_ONE_ONLY | SEC_LINK_DUPLICATES_SAME_SIZE)
  1489. /* This section was created by the linker as part of dynamic
  1490. relocation or other arcane processing. It is skipped when
  1491. going through the first-pass output, trusting that someone
  1492. else up the line will take care of it later. */
  1493. #define SEC_LINKER_CREATED 0x100000
  1494. /* This section contains a section ID to distinguish different
  1495. sections with the same section name. */
  1496. #define SEC_ASSEMBLER_SECTION_ID 0x100000
  1497. /* This section should not be subject to garbage collection.
  1498. Also set to inform the linker that this section should not be
  1499. listed in the link map as discarded. */
  1500. #define SEC_KEEP 0x200000
  1501. /* This section contains "short" data, and should be placed
  1502. "near" the GP. */
  1503. #define SEC_SMALL_DATA 0x400000
  1504. /* Attempt to merge identical entities in the section.
  1505. Entity size is given in the entsize field. */
  1506. #define SEC_MERGE 0x800000
  1507. /* If given with SEC_MERGE, entities to merge are zero terminated
  1508. strings where entsize specifies character size instead of fixed
  1509. size entries. */
  1510. #define SEC_STRINGS 0x1000000
  1511. /* This section contains data about section groups. */
  1512. #define SEC_GROUP 0x2000000
  1513. /* The section is a COFF shared library section. This flag is
  1514. only for the linker. If this type of section appears in
  1515. the input file, the linker must copy it to the output file
  1516. without changing the vma or size. FIXME: Although this
  1517. was originally intended to be general, it really is COFF
  1518. specific (and the flag was renamed to indicate this). It
  1519. might be cleaner to have some more general mechanism to
  1520. allow the back end to control what the linker does with
  1521. sections. */
  1522. #define SEC_COFF_SHARED_LIBRARY 0x4000000
  1523. /* This input section should be copied to output in reverse order
  1524. as an array of pointers. This is for ELF linker internal use
  1525. only. */
  1526. #define SEC_ELF_REVERSE_COPY 0x4000000
  1527. /* This section contains data which may be shared with other
  1528. executables or shared objects. This is for COFF only. */
  1529. #define SEC_COFF_SHARED 0x8000000
  1530. /* This section should be compressed. This is for ELF linker
  1531. internal use only. */
  1532. #define SEC_ELF_COMPRESS 0x8000000
  1533. /* When a section with this flag is being linked, then if the size of
  1534. the input section is less than a page, it should not cross a page
  1535. boundary. If the size of the input section is one page or more,
  1536. it should be aligned on a page boundary. This is for TI
  1537. TMS320C54X only. */
  1538. #define SEC_TIC54X_BLOCK 0x10000000
  1539. /* This section should be renamed. This is for ELF linker
  1540. internal use only. */
  1541. #define SEC_ELF_RENAME 0x10000000
  1542. /* Conditionally link this section; do not link if there are no
  1543. references found to any symbol in the section. This is for TI
  1544. TMS320C54X only. */
  1545. #define SEC_TIC54X_CLINK 0x20000000
  1546. /* This section contains vliw code. This is for Toshiba MeP only. */
  1547. #define SEC_MEP_VLIW 0x20000000
  1548. /* All symbols, sizes and relocations in this section are octets
  1549. instead of bytes. Required for DWARF debug sections as DWARF
  1550. information is organized in octets, not bytes. */
  1551. #define SEC_ELF_OCTETS 0x40000000
  1552. /* Indicate that section has the no read flag set. This happens
  1553. when memory read flag isn't set. */
  1554. #define SEC_COFF_NOREAD 0x40000000
  1555. /* Indicate that section has the purecode flag set. */
  1556. #define SEC_ELF_PURECODE 0x80000000
  1557. /* End of section flags. */
  1558. /* Some internal packed boolean fields. */
  1559. /* See the vma field. */
  1560. unsigned int user_set_vma : 1;
  1561. /* A mark flag used by some of the linker backends. */
  1562. unsigned int linker_mark : 1;
  1563. /* Another mark flag used by some of the linker backends. Set for
  1564. output sections that have an input section. */
  1565. unsigned int linker_has_input : 1;
  1566. /* Mark flag used by some linker backends for garbage collection. */
  1567. unsigned int gc_mark : 1;
  1568. /* Section compression status. */
  1569. unsigned int compress_status : 2;
  1570. #define COMPRESS_SECTION_NONE 0
  1571. #define COMPRESS_SECTION_DONE 1
  1572. #define DECOMPRESS_SECTION_SIZED 2
  1573. /* The following flags are used by the ELF linker. */
  1574. /* Mark sections which have been allocated to segments. */
  1575. unsigned int segment_mark : 1;
  1576. /* Type of sec_info information. */
  1577. unsigned int sec_info_type:3;
  1578. #define SEC_INFO_TYPE_NONE 0
  1579. #define SEC_INFO_TYPE_STABS 1
  1580. #define SEC_INFO_TYPE_MERGE 2
  1581. #define SEC_INFO_TYPE_EH_FRAME 3
  1582. #define SEC_INFO_TYPE_JUST_SYMS 4
  1583. #define SEC_INFO_TYPE_TARGET 5
  1584. #define SEC_INFO_TYPE_EH_FRAME_ENTRY 6
  1585. /* Nonzero if this section uses RELA relocations, rather than REL. */
  1586. unsigned int use_rela_p:1;
  1587. /* Bits used by various backends. The generic code doesn't touch
  1588. these fields. */
  1589. unsigned int sec_flg0:1;
  1590. unsigned int sec_flg1:1;
  1591. unsigned int sec_flg2:1;
  1592. unsigned int sec_flg3:1;
  1593. unsigned int sec_flg4:1;
  1594. unsigned int sec_flg5:1;
  1595. /* End of internal packed boolean fields. */
  1596. /* The virtual memory address of the section - where it will be
  1597. at run time. The symbols are relocated against this. The
  1598. user_set_vma flag is maintained by bfd; if it's not set, the
  1599. backend can assign addresses (for example, in a.out, where
  1600. the default address for .data is dependent on the specific
  1601. target and various flags). */
  1602. bfd_vma vma;
  1603. /* The load address of the section - where it would be in a
  1604. rom image; really only used for writing section header
  1605. information. */
  1606. bfd_vma lma;
  1607. /* The size of the section in *octets*, as it will be output.
  1608. Contains a value even if the section has no contents (e.g., the
  1609. size of .bss). */
  1610. bfd_size_type size;
  1611. /* For input sections, the original size on disk of the section, in
  1612. octets. This field should be set for any section whose size is
  1613. changed by linker relaxation. It is required for sections where
  1614. the linker relaxation scheme doesn't cache altered section and
  1615. reloc contents (stabs, eh_frame, SEC_MERGE, some coff relaxing
  1616. targets), and thus the original size needs to be kept to read the
  1617. section multiple times. For output sections, rawsize holds the
  1618. section size calculated on a previous linker relaxation pass. */
  1619. bfd_size_type rawsize;
  1620. /* The compressed size of the section in octets. */
  1621. bfd_size_type compressed_size;
  1622. /* Relaxation table. */
  1623. struct relax_table *relax;
  1624. /* Count of used relaxation table entries. */
  1625. int relax_count;
  1626. /* If this section is going to be output, then this value is the
  1627. offset in *bytes* into the output section of the first byte in the
  1628. input section (byte ==> smallest addressable unit on the
  1629. target). In most cases, if this was going to start at the
  1630. 100th octet (8-bit quantity) in the output section, this value
  1631. would be 100. However, if the target byte size is 16 bits
  1632. (bfd_octets_per_byte is "2"), this value would be 50. */
  1633. bfd_vma output_offset;
  1634. /* The output section through which to map on output. */
  1635. struct bfd_section *output_section;
  1636. /* The alignment requirement of the section, as an exponent of 2 -
  1637. e.g., 3 aligns to 2^3 (or 8). */
  1638. unsigned int alignment_power;
  1639. /* If an input section, a pointer to a vector of relocation
  1640. records for the data in this section. */
  1641. struct reloc_cache_entry *relocation;
  1642. /* If an output section, a pointer to a vector of pointers to
  1643. relocation records for the data in this section. */
  1644. struct reloc_cache_entry **orelocation;
  1645. /* The number of relocation records in one of the above. */
  1646. unsigned reloc_count;
  1647. /* Information below is back end specific - and not always used
  1648. or updated. */
  1649. /* File position of section data. */
  1650. file_ptr filepos;
  1651. /* File position of relocation info. */
  1652. file_ptr rel_filepos;
  1653. /* File position of line data. */
  1654. file_ptr line_filepos;
  1655. /* Pointer to data for applications. */
  1656. void *userdata;
  1657. /* If the SEC_IN_MEMORY flag is set, this points to the actual
  1658. contents. */
  1659. unsigned char *contents;
  1660. /* Attached line number information. */
  1661. alent *lineno;
  1662. /* Number of line number records. */
  1663. unsigned int lineno_count;
  1664. /* Entity size for merging purposes. */
  1665. unsigned int entsize;
  1666. /* Points to the kept section if this section is a link-once section,
  1667. and is discarded. */
  1668. struct bfd_section *kept_section;
  1669. /* When a section is being output, this value changes as more
  1670. linenumbers are written out. */
  1671. file_ptr moving_line_filepos;
  1672. /* What the section number is in the target world. */
  1673. int target_index;
  1674. void *used_by_bfd;
  1675. /* If this is a constructor section then here is a list of the
  1676. relocations created to relocate items within it. */
  1677. struct relent_chain *constructor_chain;
  1678. /* The BFD which owns the section. */
  1679. bfd *owner;
  1680. /* A symbol which points at this section only. */
  1681. struct bfd_symbol *symbol;
  1682. struct bfd_symbol **symbol_ptr_ptr;
  1683. /* Early in the link process, map_head and map_tail are used to build
  1684. a list of input sections attached to an output section. Later,
  1685. output sections use these fields for a list of bfd_link_order
  1686. structs. The linked_to_symbol_name field is for ELF assembler
  1687. internal use. */
  1688. union {
  1689. struct bfd_link_order *link_order;
  1690. struct bfd_section *s;
  1691. const char *linked_to_symbol_name;
  1692. } map_head, map_tail;
  1693. /* Points to the output section this section is already assigned to, if any.
  1694. This is used when support for non-contiguous memory regions is enabled. */
  1695. struct bfd_section *already_assigned;
  1696. } asection;
  1697. /* Relax table contains information about instructions which can
  1698. be removed by relaxation -- replacing a long address with a
  1699. short address. */
  1700. struct relax_table {
  1701. /* Address where bytes may be deleted. */
  1702. bfd_vma addr;
  1703. /* Number of bytes to be deleted. */
  1704. int size;
  1705. };
  1706. static inline const char *
  1707. bfd_section_name (const asection *sec)
  1708. {
  1709. return sec->name;
  1710. }
  1711. static inline bfd_size_type
  1712. bfd_section_size (const asection *sec)
  1713. {
  1714. return sec->size;
  1715. }
  1716. static inline bfd_vma
  1717. bfd_section_vma (const asection *sec)
  1718. {
  1719. return sec->vma;
  1720. }
  1721. static inline bfd_vma
  1722. bfd_section_lma (const asection *sec)
  1723. {
  1724. return sec->lma;
  1725. }
  1726. static inline unsigned int
  1727. bfd_section_alignment (const asection *sec)
  1728. {
  1729. return sec->alignment_power;
  1730. }
  1731. static inline flagword
  1732. bfd_section_flags (const asection *sec)
  1733. {
  1734. return sec->flags;
  1735. }
  1736. static inline void *
  1737. bfd_section_userdata (const asection *sec)
  1738. {
  1739. return sec->userdata;
  1740. }
  1741. static inline bfd_boolean
  1742. bfd_is_com_section (const asection *sec)
  1743. {
  1744. return (sec->flags & SEC_IS_COMMON) != 0;
  1745. }
  1746. /* Note: the following are provided as inline functions rather than macros
  1747. because not all callers use the return value. A macro implementation
  1748. would use a comma expression, eg: "((ptr)->foo = val, TRUE)" and some
  1749. compilers will complain about comma expressions that have no effect. */
  1750. static inline bfd_boolean
  1751. bfd_set_section_userdata (asection *sec, void *val)
  1752. {
  1753. sec->userdata = val;
  1754. return TRUE;
  1755. }
  1756. static inline bfd_boolean
  1757. bfd_set_section_vma (asection *sec, bfd_vma val)
  1758. {
  1759. sec->vma = sec->lma = val;
  1760. sec->user_set_vma = TRUE;
  1761. return TRUE;
  1762. }
  1763. static inline bfd_boolean
  1764. bfd_set_section_lma (asection *sec, bfd_vma val)
  1765. {
  1766. sec->lma = val;
  1767. return TRUE;
  1768. }
  1769. static inline bfd_boolean
  1770. bfd_set_section_alignment (asection *sec, unsigned int val)
  1771. {
  1772. sec->alignment_power = val;
  1773. return TRUE;
  1774. }
  1775. /* These sections are global, and are managed by BFD. The application
  1776. and target back end are not permitted to change the values in
  1777. these sections. */
  1778. extern asection _bfd_std_section[4];
  1779. #define BFD_ABS_SECTION_NAME "*ABS*"
  1780. #define BFD_UND_SECTION_NAME "*UND*"
  1781. #define BFD_COM_SECTION_NAME "*COM*"
  1782. #define BFD_IND_SECTION_NAME "*IND*"
  1783. /* Pointer to the common section. */
  1784. #define bfd_com_section_ptr (&_bfd_std_section[0])
  1785. /* Pointer to the undefined section. */
  1786. #define bfd_und_section_ptr (&_bfd_std_section[1])
  1787. /* Pointer to the absolute section. */
  1788. #define bfd_abs_section_ptr (&_bfd_std_section[2])
  1789. /* Pointer to the indirect section. */
  1790. #define bfd_ind_section_ptr (&_bfd_std_section[3])
  1791. static inline bfd_boolean
  1792. bfd_is_und_section (const asection *sec)
  1793. {
  1794. return sec == bfd_und_section_ptr;
  1795. }
  1796. static inline bfd_boolean
  1797. bfd_is_abs_section (const asection *sec)
  1798. {
  1799. return sec == bfd_abs_section_ptr;
  1800. }
  1801. static inline bfd_boolean
  1802. bfd_is_ind_section (const asection *sec)
  1803. {
  1804. return sec == bfd_ind_section_ptr;
  1805. }
  1806. static inline bfd_boolean
  1807. bfd_is_const_section (const asection *sec)
  1808. {
  1809. return (sec >= _bfd_std_section
  1810. && sec < _bfd_std_section + (sizeof (_bfd_std_section)
  1811. / sizeof (_bfd_std_section[0])));
  1812. }
  1813. /* Return TRUE if input section SEC has been discarded. */
  1814. static inline bfd_boolean
  1815. discarded_section (const asection *sec)
  1816. {
  1817. return (!bfd_is_abs_section (sec)
  1818. && bfd_is_abs_section (sec->output_section)
  1819. && sec->sec_info_type != SEC_INFO_TYPE_MERGE
  1820. && sec->sec_info_type != SEC_INFO_TYPE_JUST_SYMS);
  1821. }
  1822. #define BFD_FAKE_SECTION(SEC, SYM, NAME, IDX, FLAGS) \
  1823. /* name, id, section_id, index, next, prev, flags, user_set_vma, */ \
  1824. { NAME, IDX, 0, 0, NULL, NULL, FLAGS, 0, \
  1825. \
  1826. /* linker_mark, linker_has_input, gc_mark, decompress_status, */ \
  1827. 0, 0, 1, 0, \
  1828. \
  1829. /* segment_mark, sec_info_type, use_rela_p, */ \
  1830. 0, 0, 0, \
  1831. \
  1832. /* sec_flg0, sec_flg1, sec_flg2, sec_flg3, sec_flg4, sec_flg5, */ \
  1833. 0, 0, 0, 0, 0, 0, \
  1834. \
  1835. /* vma, lma, size, rawsize, compressed_size, relax, relax_count, */ \
  1836. 0, 0, 0, 0, 0, 0, 0, \
  1837. \
  1838. /* output_offset, output_section, alignment_power, */ \
  1839. 0, &SEC, 0, \
  1840. \
  1841. /* relocation, orelocation, reloc_count, filepos, rel_filepos, */ \
  1842. NULL, NULL, 0, 0, 0, \
  1843. \
  1844. /* line_filepos, userdata, contents, lineno, lineno_count, */ \
  1845. 0, NULL, NULL, NULL, 0, \
  1846. \
  1847. /* entsize, kept_section, moving_line_filepos, */ \
  1848. 0, NULL, 0, \
  1849. \
  1850. /* target_index, used_by_bfd, constructor_chain, owner, */ \
  1851. 0, NULL, NULL, NULL, \
  1852. \
  1853. /* symbol, symbol_ptr_ptr, */ \
  1854. (struct bfd_symbol *) SYM, &SEC.symbol, \
  1855. \
  1856. /* map_head, map_tail, already_assigned */ \
  1857. { NULL }, { NULL }, NULL \
  1858. \
  1859. }
  1860. /* We use a macro to initialize the static asymbol structures because
  1861. traditional C does not permit us to initialize a union member while
  1862. gcc warns if we don't initialize it.
  1863. the_bfd, name, value, attr, section [, udata] */
  1864. #ifdef __STDC__
  1865. #define GLOBAL_SYM_INIT(NAME, SECTION) \
  1866. { 0, NAME, 0, BSF_SECTION_SYM, SECTION, { 0 }}
  1867. #else
  1868. #define GLOBAL_SYM_INIT(NAME, SECTION) \
  1869. { 0, NAME, 0, BSF_SECTION_SYM, SECTION }
  1870. #endif
  1871. 
  1872. File: bfd.info, Node: section prototypes, Prev: typedef asection, Up: Sections
  1873. 2.6.5 Section prototypes
  1874. ------------------------
  1875. These are the functions exported by the section handling part of BFD.
  1876. 2.6.5.1 'bfd_section_list_clear'
  1877. ................................
  1878. *Synopsis*
  1879. void bfd_section_list_clear (bfd *);
  1880. *Description*
  1881. Clears the section list, and also resets the section count and hash
  1882. table entries.
  1883. 2.6.5.2 'bfd_get_section_by_name'
  1884. .................................
  1885. *Synopsis*
  1886. asection *bfd_get_section_by_name (bfd *abfd, const char *name);
  1887. *Description*
  1888. Return the most recently created section attached to ABFD named NAME.
  1889. Return NULL if no such section exists.
  1890. 2.6.5.3 'bfd_get_next_section_by_name'
  1891. ......................................
  1892. *Synopsis*
  1893. asection *bfd_get_next_section_by_name (bfd *ibfd, asection *sec);
  1894. *Description*
  1895. Given SEC is a section returned by 'bfd_get_section_by_name', return the
  1896. next most recently created section attached to the same BFD with the
  1897. same name, or if no such section exists in the same BFD and IBFD is
  1898. non-NULL, the next section with the same name in any input BFD following
  1899. IBFD. Return NULL on finding no section.
  1900. 2.6.5.4 'bfd_get_linker_section'
  1901. ................................
  1902. *Synopsis*
  1903. asection *bfd_get_linker_section (bfd *abfd, const char *name);
  1904. *Description*
  1905. Return the linker created section attached to ABFD named NAME. Return
  1906. NULL if no such section exists.
  1907. 2.6.5.5 'bfd_get_section_by_name_if'
  1908. ....................................
  1909. *Synopsis*
  1910. asection *bfd_get_section_by_name_if
  1911. (bfd *abfd,
  1912. const char *name,
  1913. bfd_boolean (*func) (bfd *abfd, asection *sect, void *obj),
  1914. void *obj);
  1915. *Description*
  1916. Call the provided function FUNC for each section attached to the BFD
  1917. ABFD whose name matches NAME, passing OBJ as an argument. The function
  1918. will be called as if by
  1919. func (abfd, the_section, obj);
  1920. It returns the first section for which FUNC returns true, otherwise
  1921. 'NULL'.
  1922. 2.6.5.6 'bfd_get_unique_section_name'
  1923. .....................................
  1924. *Synopsis*
  1925. char *bfd_get_unique_section_name
  1926. (bfd *abfd, const char *templat, int *count);
  1927. *Description*
  1928. Invent a section name that is unique in ABFD by tacking a dot and a
  1929. digit suffix onto the original TEMPLAT. If COUNT is non-NULL, then it
  1930. specifies the first number tried as a suffix to generate a unique name.
  1931. The value pointed to by COUNT will be incremented in this case.
  1932. 2.6.5.7 'bfd_make_section_old_way'
  1933. ..................................
  1934. *Synopsis*
  1935. asection *bfd_make_section_old_way (bfd *abfd, const char *name);
  1936. *Description*
  1937. Create a new empty section called NAME and attach it to the end of the
  1938. chain of sections for the BFD ABFD. An attempt to create a section with
  1939. a name which is already in use returns its pointer without changing the
  1940. section chain.
  1941. It has the funny name since this is the way it used to be before it
  1942. was rewritten....
  1943. Possible errors are:
  1944. * 'bfd_error_invalid_operation' - If output has already started for
  1945. this BFD.
  1946. * 'bfd_error_no_memory' - If memory allocation fails.
  1947. 2.6.5.8 'bfd_make_section_anyway_with_flags'
  1948. ............................................
  1949. *Synopsis*
  1950. asection *bfd_make_section_anyway_with_flags
  1951. (bfd *abfd, const char *name, flagword flags);
  1952. *Description*
  1953. Create a new empty section called NAME and attach it to the end of the
  1954. chain of sections for ABFD. Create a new section even if there is
  1955. already a section with that name. Also set the attributes of the new
  1956. section to the value FLAGS.
  1957. Return 'NULL' and set 'bfd_error' on error; possible errors are:
  1958. * 'bfd_error_invalid_operation' - If output has already started for
  1959. ABFD.
  1960. * 'bfd_error_no_memory' - If memory allocation fails.
  1961. 2.6.5.9 'bfd_make_section_anyway'
  1962. .................................
  1963. *Synopsis*
  1964. asection *bfd_make_section_anyway (bfd *abfd, const char *name);
  1965. *Description*
  1966. Create a new empty section called NAME and attach it to the end of the
  1967. chain of sections for ABFD. Create a new section even if there is
  1968. already a section with that name.
  1969. Return 'NULL' and set 'bfd_error' on error; possible errors are:
  1970. * 'bfd_error_invalid_operation' - If output has already started for
  1971. ABFD.
  1972. * 'bfd_error_no_memory' - If memory allocation fails.
  1973. 2.6.5.10 'bfd_make_section_with_flags'
  1974. ......................................
  1975. *Synopsis*
  1976. asection *bfd_make_section_with_flags
  1977. (bfd *, const char *name, flagword flags);
  1978. *Description*
  1979. Like 'bfd_make_section_anyway', but return 'NULL' (without calling
  1980. bfd_set_error ()) without changing the section chain if there is already
  1981. a section named NAME. Also set the attributes of the new section to the
  1982. value FLAGS. If there is an error, return 'NULL' and set 'bfd_error'.
  1983. 2.6.5.11 'bfd_make_section'
  1984. ...........................
  1985. *Synopsis*
  1986. asection *bfd_make_section (bfd *, const char *name);
  1987. *Description*
  1988. Like 'bfd_make_section_anyway', but return 'NULL' (without calling
  1989. bfd_set_error ()) without changing the section chain if there is already
  1990. a section named NAME. If there is an error, return 'NULL' and set
  1991. 'bfd_error'.
  1992. 2.6.5.12 'bfd_set_section_flags'
  1993. ................................
  1994. *Synopsis*
  1995. bfd_boolean bfd_set_section_flags (asection *sec, flagword flags);
  1996. *Description*
  1997. Set the attributes of the section SEC to the value FLAGS. Return 'TRUE'
  1998. on success, 'FALSE' on error. Possible error returns are:
  1999. * 'bfd_error_invalid_operation' - The section cannot have one or more
  2000. of the attributes requested. For example, a .bss section in
  2001. 'a.out' may not have the 'SEC_HAS_CONTENTS' field set.
  2002. 2.6.5.13 'bfd_rename_section'
  2003. .............................
  2004. *Synopsis*
  2005. void bfd_rename_section
  2006. (asection *sec, const char *newname);
  2007. *Description*
  2008. Rename section SEC to NEWNAME.
  2009. 2.6.5.14 'bfd_map_over_sections'
  2010. ................................
  2011. *Synopsis*
  2012. void bfd_map_over_sections
  2013. (bfd *abfd,
  2014. void (*func) (bfd *abfd, asection *sect, void *obj),
  2015. void *obj);
  2016. *Description*
  2017. Call the provided function FUNC for each section attached to the BFD
  2018. ABFD, passing OBJ as an argument. The function will be called as if by
  2019. func (abfd, the_section, obj);
  2020. This is the preferred method for iterating over sections; an
  2021. alternative would be to use a loop:
  2022. asection *p;
  2023. for (p = abfd->sections; p != NULL; p = p->next)
  2024. func (abfd, p, ...)
  2025. 2.6.5.15 'bfd_sections_find_if'
  2026. ...............................
  2027. *Synopsis*
  2028. asection *bfd_sections_find_if
  2029. (bfd *abfd,
  2030. bfd_boolean (*operation) (bfd *abfd, asection *sect, void *obj),
  2031. void *obj);
  2032. *Description*
  2033. Call the provided function OPERATION for each section attached to the
  2034. BFD ABFD, passing OBJ as an argument. The function will be called as if
  2035. by
  2036. operation (abfd, the_section, obj);
  2037. It returns the first section for which OPERATION returns true.
  2038. 2.6.5.16 'bfd_set_section_size'
  2039. ...............................
  2040. *Synopsis*
  2041. bfd_boolean bfd_set_section_size (asection *sec, bfd_size_type val);
  2042. *Description*
  2043. Set SEC to the size VAL. If the operation is ok, then 'TRUE' is
  2044. returned, else 'FALSE'.
  2045. Possible error returns:
  2046. * 'bfd_error_invalid_operation' - Writing has started to the BFD, so
  2047. setting the size is invalid.
  2048. 2.6.5.17 'bfd_set_section_contents'
  2049. ...................................
  2050. *Synopsis*
  2051. bfd_boolean bfd_set_section_contents
  2052. (bfd *abfd, asection *section, const void *data,
  2053. file_ptr offset, bfd_size_type count);
  2054. *Description*
  2055. Sets the contents of the section SECTION in BFD ABFD to the data
  2056. starting in memory at LOCATION. The data is written to the output
  2057. section starting at offset OFFSET for COUNT octets.
  2058. Normally 'TRUE' is returned, but 'FALSE' is returned if there was an
  2059. error. Possible error returns are:
  2060. * 'bfd_error_no_contents' - The output section does not have the
  2061. 'SEC_HAS_CONTENTS' attribute, so nothing can be written to it.
  2062. * 'bfd_error_bad_value' - The section is unable to contain all of the
  2063. data.
  2064. * 'bfd_error_invalid_operation' - The BFD is not writeable.
  2065. * and some more too.
  2066. This routine is front end to the back end function
  2067. '_bfd_set_section_contents'.
  2068. 2.6.5.18 'bfd_get_section_contents'
  2069. ...................................
  2070. *Synopsis*
  2071. bfd_boolean bfd_get_section_contents
  2072. (bfd *abfd, asection *section, void *location, file_ptr offset,
  2073. bfd_size_type count);
  2074. *Description*
  2075. Read data from SECTION in BFD ABFD into memory starting at LOCATION.
  2076. The data is read at an offset of OFFSET from the start of the input
  2077. section, and is read for COUNT bytes.
  2078. If the contents of a constructor with the 'SEC_CONSTRUCTOR' flag set
  2079. are requested or if the section does not have the 'SEC_HAS_CONTENTS'
  2080. flag set, then the LOCATION is filled with zeroes. If no errors occur,
  2081. 'TRUE' is returned, else 'FALSE'.
  2082. 2.6.5.19 'bfd_malloc_and_get_section'
  2083. .....................................
  2084. *Synopsis*
  2085. bfd_boolean bfd_malloc_and_get_section
  2086. (bfd *abfd, asection *section, bfd_byte **buf);
  2087. *Description*
  2088. Read all data from SECTION in BFD ABFD into a buffer, *BUF, malloc'd by
  2089. this function.
  2090. 2.6.5.20 'bfd_copy_private_section_data'
  2091. ........................................
  2092. *Synopsis*
  2093. bfd_boolean bfd_copy_private_section_data
  2094. (bfd *ibfd, asection *isec, bfd *obfd, asection *osec);
  2095. *Description*
  2096. Copy private section information from ISEC in the BFD IBFD to the
  2097. section OSEC in the BFD OBFD. Return 'TRUE' on success, 'FALSE' on
  2098. error. Possible error returns are:
  2099. * 'bfd_error_no_memory' - Not enough memory exists to create private
  2100. data for OSEC.
  2101. #define bfd_copy_private_section_data(ibfd, isection, obfd, osection) \
  2102. BFD_SEND (obfd, _bfd_copy_private_section_data, \
  2103. (ibfd, isection, obfd, osection))
  2104. 2.6.5.21 'bfd_generic_is_group_section'
  2105. .......................................
  2106. *Synopsis*
  2107. bfd_boolean bfd_generic_is_group_section (bfd *, const asection *sec);
  2108. *Description*
  2109. Returns TRUE if SEC is a member of a group.
  2110. 2.6.5.22 'bfd_generic_group_name'
  2111. .................................
  2112. *Synopsis*
  2113. const char *bfd_generic_group_name (bfd *, const asection *sec);
  2114. *Description*
  2115. Returns group name if SEC is a member of a group.
  2116. 2.6.5.23 'bfd_generic_discard_group'
  2117. ....................................
  2118. *Synopsis*
  2119. bfd_boolean bfd_generic_discard_group (bfd *abfd, asection *group);
  2120. *Description*
  2121. Remove all members of GROUP from the output.
  2122. 
  2123. File: bfd.info, Node: Symbols, Next: Archives, Prev: Sections, Up: BFD front end
  2124. 2.7 Symbols
  2125. ===========
  2126. BFD tries to maintain as much symbol information as it can when it moves
  2127. information from file to file. BFD passes information to applications
  2128. though the 'asymbol' structure. When the application requests the
  2129. symbol table, BFD reads the table in the native form and translates
  2130. parts of it into the internal format. To maintain more than the
  2131. information passed to applications, some targets keep some information
  2132. "behind the scenes" in a structure only the particular back end knows
  2133. about. For example, the coff back end keeps the original symbol table
  2134. structure as well as the canonical structure when a BFD is read in. On
  2135. output, the coff back end can reconstruct the output symbol table so
  2136. that no information is lost, even information unique to coff which BFD
  2137. doesn't know or understand. If a coff symbol table were read, but were
  2138. written through an a.out back end, all the coff specific information
  2139. would be lost. The symbol table of a BFD is not necessarily read in
  2140. until a canonicalize request is made. Then the BFD back end fills in a
  2141. table provided by the application with pointers to the canonical
  2142. information. To output symbols, the application provides BFD with a
  2143. table of pointers to pointers to 'asymbol's. This allows applications
  2144. like the linker to output a symbol as it was read, since the "behind the
  2145. scenes" information will be still available.
  2146. * Menu:
  2147. * Reading Symbols::
  2148. * Writing Symbols::
  2149. * Mini Symbols::
  2150. * typedef asymbol::
  2151. * symbol handling functions::
  2152. 
  2153. File: bfd.info, Node: Reading Symbols, Next: Writing Symbols, Prev: Symbols, Up: Symbols
  2154. 2.7.1 Reading symbols
  2155. ---------------------
  2156. There are two stages to reading a symbol table from a BFD: allocating
  2157. storage, and the actual reading process. This is an excerpt from an
  2158. application which reads the symbol table:
  2159. long storage_needed;
  2160. asymbol **symbol_table;
  2161. long number_of_symbols;
  2162. long i;
  2163. storage_needed = bfd_get_symtab_upper_bound (abfd);
  2164. if (storage_needed < 0)
  2165. FAIL
  2166. if (storage_needed == 0)
  2167. return;
  2168. symbol_table = xmalloc (storage_needed);
  2169. ...
  2170. number_of_symbols =
  2171. bfd_canonicalize_symtab (abfd, symbol_table);
  2172. if (number_of_symbols < 0)
  2173. FAIL
  2174. for (i = 0; i < number_of_symbols; i++)
  2175. process_symbol (symbol_table[i]);
  2176. All storage for the symbols themselves is in an objalloc connected to
  2177. the BFD; it is freed when the BFD is closed.
  2178. 
  2179. File: bfd.info, Node: Writing Symbols, Next: Mini Symbols, Prev: Reading Symbols, Up: Symbols
  2180. 2.7.2 Writing symbols
  2181. ---------------------
  2182. Writing of a symbol table is automatic when a BFD open for writing is
  2183. closed. The application attaches a vector of pointers to pointers to
  2184. symbols to the BFD being written, and fills in the symbol count. The
  2185. close and cleanup code reads through the table provided and performs all
  2186. the necessary operations. The BFD output code must always be provided
  2187. with an "owned" symbol: one which has come from another BFD, or one
  2188. which has been created using 'bfd_make_empty_symbol'. Here is an
  2189. example showing the creation of a symbol table with only one element:
  2190. #include "sysdep.h"
  2191. #include "bfd.h"
  2192. int main (void)
  2193. {
  2194. bfd *abfd;
  2195. asymbol *ptrs[2];
  2196. asymbol *new;
  2197. abfd = bfd_openw ("foo","a.out-sunos-big");
  2198. bfd_set_format (abfd, bfd_object);
  2199. new = bfd_make_empty_symbol (abfd);
  2200. new->name = "dummy_symbol";
  2201. new->section = bfd_make_section_old_way (abfd, ".text");
  2202. new->flags = BSF_GLOBAL;
  2203. new->value = 0x12345;
  2204. ptrs[0] = new;
  2205. ptrs[1] = 0;
  2206. bfd_set_symtab (abfd, ptrs, 1);
  2207. bfd_close (abfd);
  2208. return 0;
  2209. }
  2210. ./makesym
  2211. nm foo
  2212. 00012345 A dummy_symbol
  2213. Many formats cannot represent arbitrary symbol information; for
  2214. instance, the 'a.out' object format does not allow an arbitrary number
  2215. of sections. A symbol pointing to a section which is not one of
  2216. '.text', '.data' or '.bss' cannot be described.
  2217. 
  2218. File: bfd.info, Node: Mini Symbols, Next: typedef asymbol, Prev: Writing Symbols, Up: Symbols
  2219. 2.7.3 Mini Symbols
  2220. ------------------
  2221. Mini symbols provide read-only access to the symbol table. They use
  2222. less memory space, but require more time to access. They can be useful
  2223. for tools like nm or objdump, which may have to handle symbol tables of
  2224. extremely large executables.
  2225. The 'bfd_read_minisymbols' function will read the symbols into memory
  2226. in an internal form. It will return a 'void *' pointer to a block of
  2227. memory, a symbol count, and the size of each symbol. The pointer is
  2228. allocated using 'malloc', and should be freed by the caller when it is
  2229. no longer needed.
  2230. The function 'bfd_minisymbol_to_symbol' will take a pointer to a
  2231. minisymbol, and a pointer to a structure returned by
  2232. 'bfd_make_empty_symbol', and return a 'asymbol' structure. The return
  2233. value may or may not be the same as the value from
  2234. 'bfd_make_empty_symbol' which was passed in.
  2235. 
  2236. File: bfd.info, Node: typedef asymbol, Next: symbol handling functions, Prev: Mini Symbols, Up: Symbols
  2237. 2.7.4 typedef asymbol
  2238. ---------------------
  2239. An 'asymbol' has the form:
  2240. typedef struct bfd_symbol
  2241. {
  2242. /* A pointer to the BFD which owns the symbol. This information
  2243. is necessary so that a back end can work out what additional
  2244. information (invisible to the application writer) is carried
  2245. with the symbol.
  2246. This field is *almost* redundant, since you can use section->owner
  2247. instead, except that some symbols point to the global sections
  2248. bfd_{abs,com,und}_section. This could be fixed by making
  2249. these globals be per-bfd (or per-target-flavor). FIXME. */
  2250. struct bfd *the_bfd; /* Use bfd_asymbol_bfd(sym) to access this field. */
  2251. /* The text of the symbol. The name is left alone, and not copied; the
  2252. application may not alter it. */
  2253. const char *name;
  2254. /* The value of the symbol. This really should be a union of a
  2255. numeric value with a pointer, since some flags indicate that
  2256. a pointer to another symbol is stored here. */
  2257. symvalue value;
  2258. /* Attributes of a symbol. */
  2259. #define BSF_NO_FLAGS 0
  2260. /* The symbol has local scope; static in C. The value
  2261. is the offset into the section of the data. */
  2262. #define BSF_LOCAL (1 << 0)
  2263. /* The symbol has global scope; initialized data in C. The
  2264. value is the offset into the section of the data. */
  2265. #define BSF_GLOBAL (1 << 1)
  2266. /* The symbol has global scope and is exported. The value is
  2267. the offset into the section of the data. */
  2268. #define BSF_EXPORT BSF_GLOBAL /* No real difference. */
  2269. /* A normal C symbol would be one of:
  2270. BSF_LOCAL, BSF_UNDEFINED or BSF_GLOBAL. */
  2271. /* The symbol is a debugging record. The value has an arbitrary
  2272. meaning, unless BSF_DEBUGGING_RELOC is also set. */
  2273. #define BSF_DEBUGGING (1 << 2)
  2274. /* The symbol denotes a function entry point. Used in ELF,
  2275. perhaps others someday. */
  2276. #define BSF_FUNCTION (1 << 3)
  2277. /* Used by the linker. */
  2278. #define BSF_KEEP (1 << 5)
  2279. /* An ELF common symbol. */
  2280. #define BSF_ELF_COMMON (1 << 6)
  2281. /* A weak global symbol, overridable without warnings by
  2282. a regular global symbol of the same name. */
  2283. #define BSF_WEAK (1 << 7)
  2284. /* This symbol was created to point to a section, e.g. ELF's
  2285. STT_SECTION symbols. */
  2286. #define BSF_SECTION_SYM (1 << 8)
  2287. /* The symbol used to be a common symbol, but now it is
  2288. allocated. */
  2289. #define BSF_OLD_COMMON (1 << 9)
  2290. /* In some files the type of a symbol sometimes alters its
  2291. location in an output file - ie in coff a ISFCN symbol
  2292. which is also C_EXT symbol appears where it was
  2293. declared and not at the end of a section. This bit is set
  2294. by the target BFD part to convey this information. */
  2295. #define BSF_NOT_AT_END (1 << 10)
  2296. /* Signal that the symbol is the label of constructor section. */
  2297. #define BSF_CONSTRUCTOR (1 << 11)
  2298. /* Signal that the symbol is a warning symbol. The name is a
  2299. warning. The name of the next symbol is the one to warn about;
  2300. if a reference is made to a symbol with the same name as the next
  2301. symbol, a warning is issued by the linker. */
  2302. #define BSF_WARNING (1 << 12)
  2303. /* Signal that the symbol is indirect. This symbol is an indirect
  2304. pointer to the symbol with the same name as the next symbol. */
  2305. #define BSF_INDIRECT (1 << 13)
  2306. /* BSF_FILE marks symbols that contain a file name. This is used
  2307. for ELF STT_FILE symbols. */
  2308. #define BSF_FILE (1 << 14)
  2309. /* Symbol is from dynamic linking information. */
  2310. #define BSF_DYNAMIC (1 << 15)
  2311. /* The symbol denotes a data object. Used in ELF, and perhaps
  2312. others someday. */
  2313. #define BSF_OBJECT (1 << 16)
  2314. /* This symbol is a debugging symbol. The value is the offset
  2315. into the section of the data. BSF_DEBUGGING should be set
  2316. as well. */
  2317. #define BSF_DEBUGGING_RELOC (1 << 17)
  2318. /* This symbol is thread local. Used in ELF. */
  2319. #define BSF_THREAD_LOCAL (1 << 18)
  2320. /* This symbol represents a complex relocation expression,
  2321. with the expression tree serialized in the symbol name. */
  2322. #define BSF_RELC (1 << 19)
  2323. /* This symbol represents a signed complex relocation expression,
  2324. with the expression tree serialized in the symbol name. */
  2325. #define BSF_SRELC (1 << 20)
  2326. /* This symbol was created by bfd_get_synthetic_symtab. */
  2327. #define BSF_SYNTHETIC (1 << 21)
  2328. /* This symbol is an indirect code object. Unrelated to BSF_INDIRECT.
  2329. The dynamic linker will compute the value of this symbol by
  2330. calling the function that it points to. BSF_FUNCTION must
  2331. also be also set. */
  2332. #define BSF_GNU_INDIRECT_FUNCTION (1 << 22)
  2333. /* This symbol is a globally unique data object. The dynamic linker
  2334. will make sure that in the entire process there is just one symbol
  2335. with this name and type in use. BSF_OBJECT must also be set. */
  2336. #define BSF_GNU_UNIQUE (1 << 23)
  2337. flagword flags;
  2338. /* A pointer to the section to which this symbol is
  2339. relative. This will always be non NULL, there are special
  2340. sections for undefined and absolute symbols. */
  2341. struct bfd_section *section;
  2342. /* Back end special data. */
  2343. union
  2344. {
  2345. void *p;
  2346. bfd_vma i;
  2347. }
  2348. udata;
  2349. }
  2350. asymbol;
  2351. 
  2352. File: bfd.info, Node: symbol handling functions, Prev: typedef asymbol, Up: Symbols
  2353. 2.7.5 Symbol handling functions
  2354. -------------------------------
  2355. 2.7.5.1 'bfd_get_symtab_upper_bound'
  2356. ....................................
  2357. *Description*
  2358. Return the number of bytes required to store a vector of pointers to
  2359. 'asymbols' for all the symbols in the BFD ABFD, including a terminal
  2360. NULL pointer. If there are no symbols in the BFD, then return 0. If an
  2361. error occurs, return -1.
  2362. #define bfd_get_symtab_upper_bound(abfd) \
  2363. BFD_SEND (abfd, _bfd_get_symtab_upper_bound, (abfd))
  2364. 2.7.5.2 'bfd_is_local_label'
  2365. ............................
  2366. *Synopsis*
  2367. bfd_boolean bfd_is_local_label (bfd *abfd, asymbol *sym);
  2368. *Description*
  2369. Return TRUE if the given symbol SYM in the BFD ABFD is a compiler
  2370. generated local label, else return FALSE.
  2371. 2.7.5.3 'bfd_is_local_label_name'
  2372. .................................
  2373. *Synopsis*
  2374. bfd_boolean bfd_is_local_label_name (bfd *abfd, const char *name);
  2375. *Description*
  2376. Return TRUE if a symbol with the name NAME in the BFD ABFD is a compiler
  2377. generated local label, else return FALSE. This just checks whether the
  2378. name has the form of a local label.
  2379. #define bfd_is_local_label_name(abfd, name) \
  2380. BFD_SEND (abfd, _bfd_is_local_label_name, (abfd, name))
  2381. 2.7.5.4 'bfd_is_target_special_symbol'
  2382. ......................................
  2383. *Synopsis*
  2384. bfd_boolean bfd_is_target_special_symbol (bfd *abfd, asymbol *sym);
  2385. *Description*
  2386. Return TRUE iff a symbol SYM in the BFD ABFD is something special to the
  2387. particular target represented by the BFD. Such symbols should normally
  2388. not be mentioned to the user.
  2389. #define bfd_is_target_special_symbol(abfd, sym) \
  2390. BFD_SEND (abfd, _bfd_is_target_special_symbol, (abfd, sym))
  2391. 2.7.5.5 'bfd_canonicalize_symtab'
  2392. .................................
  2393. *Description*
  2394. Read the symbols from the BFD ABFD, and fills in the vector LOCATION
  2395. with pointers to the symbols and a trailing NULL. Return the actual
  2396. number of symbol pointers, not including the NULL.
  2397. #define bfd_canonicalize_symtab(abfd, location) \
  2398. BFD_SEND (abfd, _bfd_canonicalize_symtab, (abfd, location))
  2399. 2.7.5.6 'bfd_set_symtab'
  2400. ........................
  2401. *Synopsis*
  2402. bfd_boolean bfd_set_symtab
  2403. (bfd *abfd, asymbol **location, unsigned int count);
  2404. *Description*
  2405. Arrange that when the output BFD ABFD is closed, the table LOCATION of
  2406. COUNT pointers to symbols will be written.
  2407. 2.7.5.7 'bfd_print_symbol_vandf'
  2408. ................................
  2409. *Synopsis*
  2410. void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol);
  2411. *Description*
  2412. Print the value and flags of the SYMBOL supplied to the stream FILE.
  2413. 2.7.5.8 'bfd_make_empty_symbol'
  2414. ...............................
  2415. *Description*
  2416. Create a new 'asymbol' structure for the BFD ABFD and return a pointer
  2417. to it.
  2418. This routine is necessary because each back end has private
  2419. information surrounding the 'asymbol'. Building your own 'asymbol' and
  2420. pointing to it will not create the private information, and will cause
  2421. problems later on.
  2422. #define bfd_make_empty_symbol(abfd) \
  2423. BFD_SEND (abfd, _bfd_make_empty_symbol, (abfd))
  2424. 2.7.5.9 '_bfd_generic_make_empty_symbol'
  2425. ........................................
  2426. *Synopsis*
  2427. asymbol *_bfd_generic_make_empty_symbol (bfd *);
  2428. *Description*
  2429. Create a new 'asymbol' structure for the BFD ABFD and return a pointer
  2430. to it. Used by core file routines, binary back-end and anywhere else
  2431. where no private info is needed.
  2432. 2.7.5.10 'bfd_make_debug_symbol'
  2433. ................................
  2434. *Description*
  2435. Create a new 'asymbol' structure for the BFD ABFD, to be used as a
  2436. debugging symbol. Further details of its use have yet to be worked out.
  2437. #define bfd_make_debug_symbol(abfd,ptr,size) \
  2438. BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size))
  2439. 2.7.5.11 'bfd_decode_symclass'
  2440. ..............................
  2441. *Description*
  2442. Return a character corresponding to the symbol class of SYMBOL, or '?'
  2443. for an unknown class.
  2444. *Synopsis*
  2445. int bfd_decode_symclass (asymbol *symbol);
  2446. 2.7.5.12 'bfd_is_undefined_symclass'
  2447. ....................................
  2448. *Description*
  2449. Returns non-zero if the class symbol returned by bfd_decode_symclass
  2450. represents an undefined symbol. Returns zero otherwise.
  2451. *Synopsis*
  2452. bfd_boolean bfd_is_undefined_symclass (int symclass);
  2453. 2.7.5.13 'bfd_symbol_info'
  2454. ..........................
  2455. *Description*
  2456. Fill in the basic info about symbol that nm needs. Additional info may
  2457. be added by the back-ends after calling this function.
  2458. *Synopsis*
  2459. void bfd_symbol_info (asymbol *symbol, symbol_info *ret);
  2460. 2.7.5.14 'bfd_copy_private_symbol_data'
  2461. .......................................
  2462. *Synopsis*
  2463. bfd_boolean bfd_copy_private_symbol_data
  2464. (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym);
  2465. *Description*
  2466. Copy private symbol information from ISYM in the BFD IBFD to the symbol
  2467. OSYM in the BFD OBFD. Return 'TRUE' on success, 'FALSE' on error.
  2468. Possible error returns are:
  2469. * 'bfd_error_no_memory' - Not enough memory exists to create private
  2470. data for OSEC.
  2471. #define bfd_copy_private_symbol_data(ibfd, isymbol, obfd, osymbol) \
  2472. BFD_SEND (obfd, _bfd_copy_private_symbol_data, \
  2473. (ibfd, isymbol, obfd, osymbol))
  2474. 
  2475. File: bfd.info, Node: Archives, Next: Formats, Prev: Symbols, Up: BFD front end
  2476. 2.8 Archives
  2477. ============
  2478. *Description*
  2479. An archive (or library) is just another BFD. It has a symbol table,
  2480. although there's not much a user program will do with it.
  2481. The big difference between an archive BFD and an ordinary BFD is that
  2482. the archive doesn't have sections. Instead it has a chain of BFDs that
  2483. are considered its contents. These BFDs can be manipulated like any
  2484. other. The BFDs contained in an archive opened for reading will all be
  2485. opened for reading. You may put either input or output BFDs into an
  2486. archive opened for output; they will be handled correctly when the
  2487. archive is closed.
  2488. Use 'bfd_openr_next_archived_file' to step through the contents of an
  2489. archive opened for input. You don't have to read the entire archive if
  2490. you don't want to! Read it until you find what you want.
  2491. A BFD returned by 'bfd_openr_next_archived_file' can be closed
  2492. manually with 'bfd_close'. If you do not close it, then a second
  2493. iteration through the members of an archive may return the same BFD. If
  2494. you close the archive BFD, then all the member BFDs will automatically
  2495. be closed as well.
  2496. Archive contents of output BFDs are chained through the
  2497. 'archive_next' pointer in a BFD. The first one is findable through the
  2498. 'archive_head' slot of the archive. Set it with 'bfd_set_archive_head'
  2499. (q.v.). A given BFD may be in only one open output archive at a time.
  2500. As expected, the BFD archive code is more general than the archive
  2501. code of any given environment. BFD archives may contain files of
  2502. different formats (e.g., a.out and coff) and even different
  2503. architectures. You may even place archives recursively into archives!
  2504. This can cause unexpected confusion, since some archive formats are
  2505. more expressive than others. For instance, Intel COFF archives can
  2506. preserve long filenames; SunOS a.out archives cannot. If you move a
  2507. file from the first to the second format and back again, the filename
  2508. may be truncated. Likewise, different a.out environments have different
  2509. conventions as to how they truncate filenames, whether they preserve
  2510. directory names in filenames, etc. When interoperating with native
  2511. tools, be sure your files are homogeneous.
  2512. Beware: most of these formats do not react well to the presence of
  2513. spaces in filenames. We do the best we can, but can't always handle
  2514. this case due to restrictions in the format of archives. Many Unix
  2515. utilities are braindead in regards to spaces and such in filenames
  2516. anyway, so this shouldn't be much of a restriction.
  2517. Archives are supported in BFD in 'archive.c'.
  2518. 2.8.1 Archive functions
  2519. -----------------------
  2520. 2.8.1.1 'bfd_get_next_mapent'
  2521. .............................
  2522. *Synopsis*
  2523. symindex bfd_get_next_mapent
  2524. (bfd *abfd, symindex previous, carsym **sym);
  2525. *Description*
  2526. Step through archive ABFD's symbol table (if it has one). Successively
  2527. update SYM with the next symbol's information, returning that symbol's
  2528. (internal) index into the symbol table.
  2529. Supply 'BFD_NO_MORE_SYMBOLS' as the PREVIOUS entry to get the first
  2530. one; returns 'BFD_NO_MORE_SYMBOLS' when you've already got the last one.
  2531. A 'carsym' is a canonical archive symbol. The only user-visible
  2532. element is its name, a null-terminated string.
  2533. 2.8.1.2 'bfd_set_archive_head'
  2534. ..............................
  2535. *Synopsis*
  2536. bfd_boolean bfd_set_archive_head (bfd *output, bfd *new_head);
  2537. *Description*
  2538. Set the head of the chain of BFDs contained in the archive OUTPUT to
  2539. NEW_HEAD.
  2540. 2.8.1.3 'bfd_openr_next_archived_file'
  2541. ......................................
  2542. *Synopsis*
  2543. bfd *bfd_openr_next_archived_file (bfd *archive, bfd *previous);
  2544. *Description*
  2545. Provided a BFD, ARCHIVE, containing an archive and NULL, open an input
  2546. BFD on the first contained element and returns that. Subsequent calls
  2547. should pass the archive and the previous return value to return a
  2548. created BFD to the next contained element. NULL is returned when there
  2549. are no more. Note - if you want to process the bfd returned by this
  2550. call be sure to call bfd_check_format() on it first.
  2551. 
  2552. File: bfd.info, Node: Formats, Next: Relocations, Prev: Archives, Up: BFD front end
  2553. 2.9 File formats
  2554. ================
  2555. A format is a BFD concept of high level file contents type. The formats
  2556. supported by BFD are:
  2557. * 'bfd_object'
  2558. The BFD may contain data, symbols, relocations and debug info.
  2559. * 'bfd_archive'
  2560. The BFD contains other BFDs and an optional index.
  2561. * 'bfd_core'
  2562. The BFD contains the result of an executable core dump.
  2563. 2.9.1 File format functions
  2564. ---------------------------
  2565. 2.9.1.1 'bfd_check_format'
  2566. ..........................
  2567. *Synopsis*
  2568. bfd_boolean bfd_check_format (bfd *abfd, bfd_format format);
  2569. *Description*
  2570. Verify if the file attached to the BFD ABFD is compatible with the
  2571. format FORMAT (i.e., one of 'bfd_object', 'bfd_archive' or 'bfd_core').
  2572. If the BFD has been set to a specific target before the call, only
  2573. the named target and format combination is checked. If the target has
  2574. not been set, or has been set to 'default', then all the known target
  2575. backends is interrogated to determine a match. If the default target
  2576. matches, it is used. If not, exactly one target must recognize the
  2577. file, or an error results.
  2578. The function returns 'TRUE' on success, otherwise 'FALSE' with one of
  2579. the following error codes:
  2580. * 'bfd_error_invalid_operation' - if 'format' is not one of
  2581. 'bfd_object', 'bfd_archive' or 'bfd_core'.
  2582. * 'bfd_error_system_call' - if an error occured during a read - even
  2583. some file mismatches can cause bfd_error_system_calls.
  2584. * 'file_not_recognised' - none of the backends recognised the file
  2585. format.
  2586. * 'bfd_error_file_ambiguously_recognized' - more than one backend
  2587. recognised the file format.
  2588. 2.9.1.2 'bfd_check_format_matches'
  2589. ..................................
  2590. *Synopsis*
  2591. bfd_boolean bfd_check_format_matches
  2592. (bfd *abfd, bfd_format format, char ***matching);
  2593. *Description*
  2594. Like 'bfd_check_format', except when it returns FALSE with 'bfd_errno'
  2595. set to 'bfd_error_file_ambiguously_recognized'. In that case, if
  2596. MATCHING is not NULL, it will be filled in with a NULL-terminated list
  2597. of the names of the formats that matched, allocated with 'malloc'. Then
  2598. the user may choose a format and try again.
  2599. When done with the list that MATCHING points to, the caller should
  2600. free it.
  2601. 2.9.1.3 'bfd_set_format'
  2602. ........................
  2603. *Synopsis*
  2604. bfd_boolean bfd_set_format (bfd *abfd, bfd_format format);
  2605. *Description*
  2606. This function sets the file format of the BFD ABFD to the format FORMAT.
  2607. If the target set in the BFD does not support the format requested, the
  2608. format is invalid, or the BFD is not open for writing, then an error
  2609. occurs.
  2610. 2.9.1.4 'bfd_format_string'
  2611. ...........................
  2612. *Synopsis*
  2613. const char *bfd_format_string (bfd_format format);
  2614. *Description*
  2615. Return a pointer to a const string 'invalid', 'object', 'archive',
  2616. 'core', or 'unknown', depending upon the value of FORMAT.
  2617. 
  2618. File: bfd.info, Node: Relocations, Next: Core Files, Prev: Formats, Up: BFD front end
  2619. 2.10 Relocations
  2620. ================
  2621. BFD maintains relocations in much the same way it maintains symbols:
  2622. they are left alone until required, then read in en-masse and translated
  2623. into an internal form. A common routine 'bfd_perform_relocation' acts
  2624. upon the canonical form to do the fixup.
  2625. Relocations are maintained on a per section basis, while symbols are
  2626. maintained on a per BFD basis.
  2627. All that a back end has to do to fit the BFD interface is to create a
  2628. 'struct reloc_cache_entry' for each relocation in a particular section,
  2629. and fill in the right bits of the structures.
  2630. * Menu:
  2631. * typedef arelent::
  2632. * howto manager::
  2633. 
  2634. File: bfd.info, Node: typedef arelent, Next: howto manager, Prev: Relocations, Up: Relocations
  2635. 2.10.1 typedef arelent
  2636. ----------------------
  2637. This is the structure of a relocation entry:
  2638. typedef enum bfd_reloc_status
  2639. {
  2640. /* No errors detected. Note - the value 2 is used so that it
  2641. will not be mistaken for the boolean TRUE or FALSE values. */
  2642. bfd_reloc_ok = 2,
  2643. /* The relocation was performed, but there was an overflow. */
  2644. bfd_reloc_overflow,
  2645. /* The address to relocate was not within the section supplied. */
  2646. bfd_reloc_outofrange,
  2647. /* Used by special functions. */
  2648. bfd_reloc_continue,
  2649. /* Unsupported relocation size requested. */
  2650. bfd_reloc_notsupported,
  2651. /* Unused. */
  2652. bfd_reloc_other,
  2653. /* The symbol to relocate against was undefined. */
  2654. bfd_reloc_undefined,
  2655. /* The relocation was performed, but may not be ok. If this type is
  2656. returned, the error_message argument to bfd_perform_relocation
  2657. will be set. */
  2658. bfd_reloc_dangerous
  2659. }
  2660. bfd_reloc_status_type;
  2661. typedef const struct reloc_howto_struct reloc_howto_type;
  2662. typedef struct reloc_cache_entry
  2663. {
  2664. /* A pointer into the canonical table of pointers. */
  2665. struct bfd_symbol **sym_ptr_ptr;
  2666. /* offset in section. */
  2667. bfd_size_type address;
  2668. /* addend for relocation value. */
  2669. bfd_vma addend;
  2670. /* Pointer to how to perform the required relocation. */
  2671. reloc_howto_type *howto;
  2672. }
  2673. arelent;
  2674. *Description*
  2675. Here is a description of each of the fields within an 'arelent':
  2676. * 'sym_ptr_ptr'
  2677. The symbol table pointer points to a pointer to the symbol associated
  2678. with the relocation request. It is the pointer into the table returned
  2679. by the back end's 'canonicalize_symtab' action. *Note Symbols::. The
  2680. symbol is referenced through a pointer to a pointer so that tools like
  2681. the linker can fix up all the symbols of the same name by modifying only
  2682. one pointer. The relocation routine looks in the symbol and uses the
  2683. base of the section the symbol is attached to and the value of the
  2684. symbol as the initial relocation offset. If the symbol pointer is zero,
  2685. then the section provided is looked up.
  2686. * 'address'
  2687. The 'address' field gives the offset in bytes from the base of the
  2688. section data which owns the relocation record to the first byte of
  2689. relocatable information. The actual data relocated will be relative to
  2690. this point; for example, a relocation type which modifies the bottom two
  2691. bytes of a four byte word would not touch the first byte pointed to in a
  2692. big endian world.
  2693. * 'addend'
  2694. The 'addend' is a value provided by the back end to be added (!) to
  2695. the relocation offset. Its interpretation is dependent upon the howto.
  2696. For example, on the 68k the code:
  2697. char foo[];
  2698. main()
  2699. {
  2700. return foo[0x12345678];
  2701. }
  2702. Could be compiled into:
  2703. linkw fp,#-4
  2704. moveb @#12345678,d0
  2705. extbl d0
  2706. unlk fp
  2707. rts
  2708. This could create a reloc pointing to 'foo', but leave the offset in
  2709. the data, something like:
  2710. RELOCATION RECORDS FOR [.text]:
  2711. offset type value
  2712. 00000006 32 _foo
  2713. 00000000 4e56 fffc ; linkw fp,#-4
  2714. 00000004 1039 1234 5678 ; moveb @#12345678,d0
  2715. 0000000a 49c0 ; extbl d0
  2716. 0000000c 4e5e ; unlk fp
  2717. 0000000e 4e75 ; rts
  2718. Using coff and an 88k, some instructions don't have enough space in
  2719. them to represent the full address range, and pointers have to be loaded
  2720. in two parts. So you'd get something like:
  2721. or.u r13,r0,hi16(_foo+0x12345678)
  2722. ld.b r2,r13,lo16(_foo+0x12345678)
  2723. jmp r1
  2724. This should create two relocs, both pointing to '_foo', and with
  2725. 0x12340000 in their addend field. The data would consist of:
  2726. RELOCATION RECORDS FOR [.text]:
  2727. offset type value
  2728. 00000002 HVRT16 _foo+0x12340000
  2729. 00000006 LVRT16 _foo+0x12340000
  2730. 00000000 5da05678 ; or.u r13,r0,0x5678
  2731. 00000004 1c4d5678 ; ld.b r2,r13,0x5678
  2732. 00000008 f400c001 ; jmp r1
  2733. The relocation routine digs out the value from the data, adds it to
  2734. the addend to get the original offset, and then adds the value of
  2735. '_foo'. Note that all 32 bits have to be kept around somewhere, to cope
  2736. with carry from bit 15 to bit 16.
  2737. One further example is the sparc and the a.out format. The sparc has
  2738. a similar problem to the 88k, in that some instructions don't have room
  2739. for an entire offset, but on the sparc the parts are created in odd
  2740. sized lumps. The designers of the a.out format chose to not use the
  2741. data within the section for storing part of the offset; all the offset
  2742. is kept within the reloc. Anything in the data should be ignored.
  2743. save %sp,-112,%sp
  2744. sethi %hi(_foo+0x12345678),%g2
  2745. ldsb [%g2+%lo(_foo+0x12345678)],%i0
  2746. ret
  2747. restore
  2748. Both relocs contain a pointer to 'foo', and the offsets contain junk.
  2749. RELOCATION RECORDS FOR [.text]:
  2750. offset type value
  2751. 00000004 HI22 _foo+0x12345678
  2752. 00000008 LO10 _foo+0x12345678
  2753. 00000000 9de3bf90 ; save %sp,-112,%sp
  2754. 00000004 05000000 ; sethi %hi(_foo+0),%g2
  2755. 00000008 f048a000 ; ldsb [%g2+%lo(_foo+0)],%i0
  2756. 0000000c 81c7e008 ; ret
  2757. 00000010 81e80000 ; restore
  2758. * 'howto'
  2759. The 'howto' field can be imagined as a relocation instruction. It is
  2760. a pointer to a structure which contains information on what to do with
  2761. all of the other information in the reloc record and data section. A
  2762. back end would normally have a relocation instruction set and turn
  2763. relocations into pointers to the correct structure on input - but it
  2764. would be possible to create each howto field on demand.
  2765. 2.10.1.1 'enum complain_overflow'
  2766. .................................
  2767. Indicates what sort of overflow checking should be done when performing
  2768. a relocation.
  2769. enum complain_overflow
  2770. {
  2771. /* Do not complain on overflow. */
  2772. complain_overflow_dont,
  2773. /* Complain if the value overflows when considered as a signed
  2774. number one bit larger than the field. ie. A bitfield of N bits
  2775. is allowed to represent -2**n to 2**n-1. */
  2776. complain_overflow_bitfield,
  2777. /* Complain if the value overflows when considered as a signed
  2778. number. */
  2779. complain_overflow_signed,
  2780. /* Complain if the value overflows when considered as an
  2781. unsigned number. */
  2782. complain_overflow_unsigned
  2783. };
  2784. 2.10.1.2 'reloc_howto_type'
  2785. ...........................
  2786. The 'reloc_howto_type' is a structure which contains all the information
  2787. that libbfd needs to know to tie up a back end's data.
  2788. struct reloc_howto_struct
  2789. {
  2790. /* The type field has mainly a documentary use - the back end can
  2791. do what it wants with it, though normally the back end's idea of
  2792. an external reloc number is stored in this field. */
  2793. unsigned int type;
  2794. /* The encoded size of the item to be relocated. This is *not* a
  2795. power-of-two measure. Use bfd_get_reloc_size to find the size
  2796. of the item in bytes. */
  2797. unsigned int size:3;
  2798. /* The number of bits in the field to be relocated. This is used
  2799. when doing overflow checking. */
  2800. unsigned int bitsize:7;
  2801. /* The value the final relocation is shifted right by. This drops
  2802. unwanted data from the relocation. */
  2803. unsigned int rightshift:6;
  2804. /* The bit position of the reloc value in the destination.
  2805. The relocated value is left shifted by this amount. */
  2806. unsigned int bitpos:6;
  2807. /* What type of overflow error should be checked for when
  2808. relocating. */
  2809. ENUM_BITFIELD (complain_overflow) complain_on_overflow:2;
  2810. /* The relocation value should be negated before applying. */
  2811. unsigned int negate:1;
  2812. /* The relocation is relative to the item being relocated. */
  2813. unsigned int pc_relative:1;
  2814. /* Some formats record a relocation addend in the section contents
  2815. rather than with the relocation. For ELF formats this is the
  2816. distinction between USE_REL and USE_RELA (though the code checks
  2817. for USE_REL == 1/0). The value of this field is TRUE if the
  2818. addend is recorded with the section contents; when performing a
  2819. partial link (ld -r) the section contents (the data) will be
  2820. modified. The value of this field is FALSE if addends are
  2821. recorded with the relocation (in arelent.addend); when performing
  2822. a partial link the relocation will be modified.
  2823. All relocations for all ELF USE_RELA targets should set this field
  2824. to FALSE (values of TRUE should be looked on with suspicion).
  2825. However, the converse is not true: not all relocations of all ELF
  2826. USE_REL targets set this field to TRUE. Why this is so is peculiar
  2827. to each particular target. For relocs that aren't used in partial
  2828. links (e.g. GOT stuff) it doesn't matter what this is set to. */
  2829. unsigned int partial_inplace:1;
  2830. /* When some formats create PC relative instructions, they leave
  2831. the value of the pc of the place being relocated in the offset
  2832. slot of the instruction, so that a PC relative relocation can
  2833. be made just by adding in an ordinary offset (e.g., sun3 a.out).
  2834. Some formats leave the displacement part of an instruction
  2835. empty (e.g., ELF); this flag signals the fact. */
  2836. unsigned int pcrel_offset:1;
  2837. /* src_mask selects the part of the instruction (or data) to be used
  2838. in the relocation sum. If the target relocations don't have an
  2839. addend in the reloc, eg. ELF USE_REL, src_mask will normally equal
  2840. dst_mask to extract the addend from the section contents. If
  2841. relocations do have an addend in the reloc, eg. ELF USE_RELA, this
  2842. field should normally be zero. Non-zero values for ELF USE_RELA
  2843. targets should be viewed with suspicion as normally the value in
  2844. the dst_mask part of the section contents should be ignored. */
  2845. bfd_vma src_mask;
  2846. /* dst_mask selects which parts of the instruction (or data) are
  2847. replaced with a relocated value. */
  2848. bfd_vma dst_mask;
  2849. /* If this field is non null, then the supplied function is
  2850. called rather than the normal function. This allows really
  2851. strange relocation methods to be accommodated. */
  2852. bfd_reloc_status_type (*special_function)
  2853. (bfd *, arelent *, struct bfd_symbol *, void *, asection *,
  2854. bfd *, char **);
  2855. /* The textual name of the relocation type. */
  2856. const char *name;
  2857. };
  2858. 2.10.1.3 'The HOWTO Macro'
  2859. ..........................
  2860. *Description*
  2861. The HOWTO macro fills in a reloc_howto_type (a typedef for const struct
  2862. reloc_howto_struct).
  2863. #define HOWTO(type, right, size, bits, pcrel, left, ovf, func, name, \
  2864. inplace, src_mask, dst_mask, pcrel_off) \
  2865. { (unsigned) type, size < 0 ? -size : size, bits, right, left, ovf, \
  2866. size < 0, pcrel, inplace, pcrel_off, src_mask, dst_mask, func, name }
  2867. *Description*
  2868. This is used to fill in an empty howto entry in an array.
  2869. #define EMPTY_HOWTO(C) \
  2870. HOWTO ((C), 0, 0, 0, FALSE, 0, complain_overflow_dont, NULL, \
  2871. NULL, FALSE, 0, 0, FALSE)
  2872. 2.10.1.4 'bfd_get_reloc_size'
  2873. .............................
  2874. *Synopsis*
  2875. unsigned int bfd_get_reloc_size (reloc_howto_type *);
  2876. *Description*
  2877. For a reloc_howto_type that operates on a fixed number of bytes, this
  2878. returns the number of bytes operated on.
  2879. 2.10.1.5 'arelent_chain'
  2880. ........................
  2881. *Description*
  2882. How relocs are tied together in an 'asection':
  2883. typedef struct relent_chain
  2884. {
  2885. arelent relent;
  2886. struct relent_chain *next;
  2887. }
  2888. arelent_chain;
  2889. 2.10.1.6 'bfd_check_overflow'
  2890. .............................
  2891. *Synopsis*
  2892. bfd_reloc_status_type bfd_check_overflow
  2893. (enum complain_overflow how,
  2894. unsigned int bitsize,
  2895. unsigned int rightshift,
  2896. unsigned int addrsize,
  2897. bfd_vma relocation);
  2898. *Description*
  2899. Perform overflow checking on RELOCATION which has BITSIZE significant
  2900. bits and will be shifted right by RIGHTSHIFT bits, on a machine with
  2901. addresses containing ADDRSIZE significant bits. The result is either of
  2902. 'bfd_reloc_ok' or 'bfd_reloc_overflow'.
  2903. 2.10.1.7 'bfd_reloc_offset_in_range'
  2904. ....................................
  2905. *Synopsis*
  2906. bfd_boolean bfd_reloc_offset_in_range
  2907. (reloc_howto_type *howto,
  2908. bfd *abfd,
  2909. asection *section,
  2910. bfd_size_type offset);
  2911. *Description*
  2912. Returns TRUE if the reloc described by HOWTO can be applied at OFFSET
  2913. octets in SECTION.
  2914. 2.10.1.8 'bfd_perform_relocation'
  2915. .................................
  2916. *Synopsis*
  2917. bfd_reloc_status_type bfd_perform_relocation
  2918. (bfd *abfd,
  2919. arelent *reloc_entry,
  2920. void *data,
  2921. asection *input_section,
  2922. bfd *output_bfd,
  2923. char **error_message);
  2924. *Description*
  2925. If OUTPUT_BFD is supplied to this function, the generated image will be
  2926. relocatable; the relocations are copied to the output file after they
  2927. have been changed to reflect the new state of the world. There are two
  2928. ways of reflecting the results of partial linkage in an output file: by
  2929. modifying the output data in place, and by modifying the relocation
  2930. record. Some native formats (e.g., basic a.out and basic coff) have no
  2931. way of specifying an addend in the relocation type, so the addend has to
  2932. go in the output data. This is no big deal since in these formats the
  2933. output data slot will always be big enough for the addend. Complex
  2934. reloc types with addends were invented to solve just this problem. The
  2935. ERROR_MESSAGE argument is set to an error message if this return
  2936. 'bfd_reloc_dangerous'.
  2937. 2.10.1.9 'bfd_install_relocation'
  2938. .................................
  2939. *Synopsis*
  2940. bfd_reloc_status_type bfd_install_relocation
  2941. (bfd *abfd,
  2942. arelent *reloc_entry,
  2943. void *data, bfd_vma data_start,
  2944. asection *input_section,
  2945. char **error_message);
  2946. *Description*
  2947. This looks remarkably like 'bfd_perform_relocation', except it does not
  2948. expect that the section contents have been filled in. I.e., it's
  2949. suitable for use when creating, rather than applying a relocation.
  2950. For now, this function should be considered reserved for the
  2951. assembler.
  2952. 
  2953. File: bfd.info, Node: howto manager, Prev: typedef arelent, Up: Relocations
  2954. 2.10.2 The howto manager
  2955. ------------------------
  2956. When an application wants to create a relocation, but doesn't know what
  2957. the target machine might call it, it can find out by using this bit of
  2958. code.
  2959. 2.10.2.1 'bfd_reloc_code_type'
  2960. ..............................
  2961. *Description*
  2962. The insides of a reloc code. The idea is that, eventually, there will
  2963. be one enumerator for every type of relocation we ever do. Pass one of
  2964. these values to 'bfd_reloc_type_lookup', and it'll return a howto
  2965. pointer.
  2966. This does mean that the application must determine the correct
  2967. enumerator value; you can't get a howto pointer from a random set of
  2968. attributes.
  2969. Here are the possible values for 'enum bfd_reloc_code_real':
  2970. -- : BFD_RELOC_64
  2971. -- : BFD_RELOC_32
  2972. -- : BFD_RELOC_26
  2973. -- : BFD_RELOC_24
  2974. -- : BFD_RELOC_16
  2975. -- : BFD_RELOC_14
  2976. -- : BFD_RELOC_8
  2977. Basic absolute relocations of N bits.
  2978. -- : BFD_RELOC_64_PCREL
  2979. -- : BFD_RELOC_32_PCREL
  2980. -- : BFD_RELOC_24_PCREL
  2981. -- : BFD_RELOC_16_PCREL
  2982. -- : BFD_RELOC_12_PCREL
  2983. -- : BFD_RELOC_8_PCREL
  2984. PC-relative relocations. Sometimes these are relative to the
  2985. address of the relocation itself; sometimes they are relative to
  2986. the start of the section containing the relocation. It depends on
  2987. the specific target.
  2988. -- : BFD_RELOC_32_SECREL
  2989. Section relative relocations. Some targets need this for DWARF2.
  2990. -- : BFD_RELOC_32_GOT_PCREL
  2991. -- : BFD_RELOC_16_GOT_PCREL
  2992. -- : BFD_RELOC_8_GOT_PCREL
  2993. -- : BFD_RELOC_32_GOTOFF
  2994. -- : BFD_RELOC_16_GOTOFF
  2995. -- : BFD_RELOC_LO16_GOTOFF
  2996. -- : BFD_RELOC_HI16_GOTOFF
  2997. -- : BFD_RELOC_HI16_S_GOTOFF
  2998. -- : BFD_RELOC_8_GOTOFF
  2999. -- : BFD_RELOC_64_PLT_PCREL
  3000. -- : BFD_RELOC_32_PLT_PCREL
  3001. -- : BFD_RELOC_24_PLT_PCREL
  3002. -- : BFD_RELOC_16_PLT_PCREL
  3003. -- : BFD_RELOC_8_PLT_PCREL
  3004. -- : BFD_RELOC_64_PLTOFF
  3005. -- : BFD_RELOC_32_PLTOFF
  3006. -- : BFD_RELOC_16_PLTOFF
  3007. -- : BFD_RELOC_LO16_PLTOFF
  3008. -- : BFD_RELOC_HI16_PLTOFF
  3009. -- : BFD_RELOC_HI16_S_PLTOFF
  3010. -- : BFD_RELOC_8_PLTOFF
  3011. For ELF.
  3012. -- : BFD_RELOC_SIZE32
  3013. -- : BFD_RELOC_SIZE64
  3014. Size relocations.
  3015. -- : BFD_RELOC_68K_GLOB_DAT
  3016. -- : BFD_RELOC_68K_JMP_SLOT
  3017. -- : BFD_RELOC_68K_RELATIVE
  3018. -- : BFD_RELOC_68K_TLS_GD32
  3019. -- : BFD_RELOC_68K_TLS_GD16
  3020. -- : BFD_RELOC_68K_TLS_GD8
  3021. -- : BFD_RELOC_68K_TLS_LDM32
  3022. -- : BFD_RELOC_68K_TLS_LDM16
  3023. -- : BFD_RELOC_68K_TLS_LDM8
  3024. -- : BFD_RELOC_68K_TLS_LDO32
  3025. -- : BFD_RELOC_68K_TLS_LDO16
  3026. -- : BFD_RELOC_68K_TLS_LDO8
  3027. -- : BFD_RELOC_68K_TLS_IE32
  3028. -- : BFD_RELOC_68K_TLS_IE16
  3029. -- : BFD_RELOC_68K_TLS_IE8
  3030. -- : BFD_RELOC_68K_TLS_LE32
  3031. -- : BFD_RELOC_68K_TLS_LE16
  3032. -- : BFD_RELOC_68K_TLS_LE8
  3033. Relocations used by 68K ELF.
  3034. -- : BFD_RELOC_32_BASEREL
  3035. -- : BFD_RELOC_16_BASEREL
  3036. -- : BFD_RELOC_LO16_BASEREL
  3037. -- : BFD_RELOC_HI16_BASEREL
  3038. -- : BFD_RELOC_HI16_S_BASEREL
  3039. -- : BFD_RELOC_8_BASEREL
  3040. -- : BFD_RELOC_RVA
  3041. Linkage-table relative.
  3042. -- : BFD_RELOC_8_FFnn
  3043. Absolute 8-bit relocation, but used to form an address like 0xFFnn.
  3044. -- : BFD_RELOC_32_PCREL_S2
  3045. -- : BFD_RELOC_16_PCREL_S2
  3046. -- : BFD_RELOC_23_PCREL_S2
  3047. These PC-relative relocations are stored as word displacements -
  3048. i.e., byte displacements shifted right two bits. The 30-bit word
  3049. displacement (<<32_PCREL_S2>> - 32 bits, shifted 2) is used on the
  3050. SPARC. (SPARC tools generally refer to this as <<WDISP30>>.) The
  3051. signed 16-bit displacement is used on the MIPS, and the 23-bit
  3052. displacement is used on the Alpha.
  3053. -- : BFD_RELOC_HI22
  3054. -- : BFD_RELOC_LO10
  3055. High 22 bits and low 10 bits of 32-bit value, placed into lower
  3056. bits of the target word. These are used on the SPARC.
  3057. -- : BFD_RELOC_GPREL16
  3058. -- : BFD_RELOC_GPREL32
  3059. For systems that allocate a Global Pointer register, these are
  3060. displacements off that register. These relocation types are
  3061. handled specially, because the value the register will have is
  3062. decided relatively late.
  3063. -- : BFD_RELOC_NONE
  3064. -- : BFD_RELOC_SPARC_WDISP22
  3065. -- : BFD_RELOC_SPARC22
  3066. -- : BFD_RELOC_SPARC13
  3067. -- : BFD_RELOC_SPARC_GOT10
  3068. -- : BFD_RELOC_SPARC_GOT13
  3069. -- : BFD_RELOC_SPARC_GOT22
  3070. -- : BFD_RELOC_SPARC_PC10
  3071. -- : BFD_RELOC_SPARC_PC22
  3072. -- : BFD_RELOC_SPARC_WPLT30
  3073. -- : BFD_RELOC_SPARC_COPY
  3074. -- : BFD_RELOC_SPARC_GLOB_DAT
  3075. -- : BFD_RELOC_SPARC_JMP_SLOT
  3076. -- : BFD_RELOC_SPARC_RELATIVE
  3077. -- : BFD_RELOC_SPARC_UA16
  3078. -- : BFD_RELOC_SPARC_UA32
  3079. -- : BFD_RELOC_SPARC_UA64
  3080. -- : BFD_RELOC_SPARC_GOTDATA_HIX22
  3081. -- : BFD_RELOC_SPARC_GOTDATA_LOX10
  3082. -- : BFD_RELOC_SPARC_GOTDATA_OP_HIX22
  3083. -- : BFD_RELOC_SPARC_GOTDATA_OP_LOX10
  3084. -- : BFD_RELOC_SPARC_GOTDATA_OP
  3085. -- : BFD_RELOC_SPARC_JMP_IREL
  3086. -- : BFD_RELOC_SPARC_IRELATIVE
  3087. SPARC ELF relocations. There is probably some overlap with other
  3088. relocation types already defined.
  3089. -- : BFD_RELOC_SPARC_BASE13
  3090. -- : BFD_RELOC_SPARC_BASE22
  3091. I think these are specific to SPARC a.out (e.g., Sun 4).
  3092. -- : BFD_RELOC_SPARC_64
  3093. -- : BFD_RELOC_SPARC_10
  3094. -- : BFD_RELOC_SPARC_11
  3095. -- : BFD_RELOC_SPARC_OLO10
  3096. -- : BFD_RELOC_SPARC_HH22
  3097. -- : BFD_RELOC_SPARC_HM10
  3098. -- : BFD_RELOC_SPARC_LM22
  3099. -- : BFD_RELOC_SPARC_PC_HH22
  3100. -- : BFD_RELOC_SPARC_PC_HM10
  3101. -- : BFD_RELOC_SPARC_PC_LM22
  3102. -- : BFD_RELOC_SPARC_WDISP16
  3103. -- : BFD_RELOC_SPARC_WDISP19
  3104. -- : BFD_RELOC_SPARC_7
  3105. -- : BFD_RELOC_SPARC_6
  3106. -- : BFD_RELOC_SPARC_5
  3107. -- : BFD_RELOC_SPARC_DISP64
  3108. -- : BFD_RELOC_SPARC_PLT32
  3109. -- : BFD_RELOC_SPARC_PLT64
  3110. -- : BFD_RELOC_SPARC_HIX22
  3111. -- : BFD_RELOC_SPARC_LOX10
  3112. -- : BFD_RELOC_SPARC_H44
  3113. -- : BFD_RELOC_SPARC_M44
  3114. -- : BFD_RELOC_SPARC_L44
  3115. -- : BFD_RELOC_SPARC_REGISTER
  3116. -- : BFD_RELOC_SPARC_H34
  3117. -- : BFD_RELOC_SPARC_SIZE32
  3118. -- : BFD_RELOC_SPARC_SIZE64
  3119. -- : BFD_RELOC_SPARC_WDISP10
  3120. SPARC64 relocations
  3121. -- : BFD_RELOC_SPARC_REV32
  3122. SPARC little endian relocation
  3123. -- : BFD_RELOC_SPARC_TLS_GD_HI22
  3124. -- : BFD_RELOC_SPARC_TLS_GD_LO10
  3125. -- : BFD_RELOC_SPARC_TLS_GD_ADD
  3126. -- : BFD_RELOC_SPARC_TLS_GD_CALL
  3127. -- : BFD_RELOC_SPARC_TLS_LDM_HI22
  3128. -- : BFD_RELOC_SPARC_TLS_LDM_LO10
  3129. -- : BFD_RELOC_SPARC_TLS_LDM_ADD
  3130. -- : BFD_RELOC_SPARC_TLS_LDM_CALL
  3131. -- : BFD_RELOC_SPARC_TLS_LDO_HIX22
  3132. -- : BFD_RELOC_SPARC_TLS_LDO_LOX10
  3133. -- : BFD_RELOC_SPARC_TLS_LDO_ADD
  3134. -- : BFD_RELOC_SPARC_TLS_IE_HI22
  3135. -- : BFD_RELOC_SPARC_TLS_IE_LO10
  3136. -- : BFD_RELOC_SPARC_TLS_IE_LD
  3137. -- : BFD_RELOC_SPARC_TLS_IE_LDX
  3138. -- : BFD_RELOC_SPARC_TLS_IE_ADD
  3139. -- : BFD_RELOC_SPARC_TLS_LE_HIX22
  3140. -- : BFD_RELOC_SPARC_TLS_LE_LOX10
  3141. -- : BFD_RELOC_SPARC_TLS_DTPMOD32
  3142. -- : BFD_RELOC_SPARC_TLS_DTPMOD64
  3143. -- : BFD_RELOC_SPARC_TLS_DTPOFF32
  3144. -- : BFD_RELOC_SPARC_TLS_DTPOFF64
  3145. -- : BFD_RELOC_SPARC_TLS_TPOFF32
  3146. -- : BFD_RELOC_SPARC_TLS_TPOFF64
  3147. SPARC TLS relocations
  3148. -- : BFD_RELOC_SPU_IMM7
  3149. -- : BFD_RELOC_SPU_IMM8
  3150. -- : BFD_RELOC_SPU_IMM10
  3151. -- : BFD_RELOC_SPU_IMM10W
  3152. -- : BFD_RELOC_SPU_IMM16
  3153. -- : BFD_RELOC_SPU_IMM16W
  3154. -- : BFD_RELOC_SPU_IMM18
  3155. -- : BFD_RELOC_SPU_PCREL9a
  3156. -- : BFD_RELOC_SPU_PCREL9b
  3157. -- : BFD_RELOC_SPU_PCREL16
  3158. -- : BFD_RELOC_SPU_LO16
  3159. -- : BFD_RELOC_SPU_HI16
  3160. -- : BFD_RELOC_SPU_PPU32
  3161. -- : BFD_RELOC_SPU_PPU64
  3162. -- : BFD_RELOC_SPU_ADD_PIC
  3163. SPU Relocations.
  3164. -- : BFD_RELOC_ALPHA_GPDISP_HI16
  3165. Alpha ECOFF and ELF relocations. Some of these treat the symbol or
  3166. "addend" in some special way. For GPDISP_HI16 ("gpdisp")
  3167. relocations, the symbol is ignored when writing; when reading, it
  3168. will be the absolute section symbol. The addend is the
  3169. displacement in bytes of the "lda" instruction from the "ldah"
  3170. instruction (which is at the address of this reloc).
  3171. -- : BFD_RELOC_ALPHA_GPDISP_LO16
  3172. For GPDISP_LO16 ("ignore") relocations, the symbol is handled as
  3173. with GPDISP_HI16 relocs. The addend is ignored when writing the
  3174. relocations out, and is filled in with the file's GP value on
  3175. reading, for convenience.
  3176. -- : BFD_RELOC_ALPHA_GPDISP
  3177. The ELF GPDISP relocation is exactly the same as the GPDISP_HI16
  3178. relocation except that there is no accompanying GPDISP_LO16
  3179. relocation.
  3180. -- : BFD_RELOC_ALPHA_LITERAL
  3181. -- : BFD_RELOC_ALPHA_ELF_LITERAL
  3182. -- : BFD_RELOC_ALPHA_LITUSE
  3183. The Alpha LITERAL/LITUSE relocs are produced by a symbol reference;
  3184. the assembler turns it into a LDQ instruction to load the address
  3185. of the symbol, and then fills in a register in the real
  3186. instruction.
  3187. The LITERAL reloc, at the LDQ instruction, refers to the .lita
  3188. section symbol. The addend is ignored when writing, but is filled
  3189. in with the file's GP value on reading, for convenience, as with
  3190. the GPDISP_LO16 reloc.
  3191. The ELF_LITERAL reloc is somewhere between 16_GOTOFF and
  3192. GPDISP_LO16. It should refer to the symbol to be referenced, as
  3193. with 16_GOTOFF, but it generates output not based on the position
  3194. within the .got section, but relative to the GP value chosen for
  3195. the file during the final link stage.
  3196. The LITUSE reloc, on the instruction using the loaded address,
  3197. gives information to the linker that it might be able to use to
  3198. optimize away some literal section references. The symbol is
  3199. ignored (read as the absolute section symbol), and the "addend"
  3200. indicates the type of instruction using the register: 1 - "memory"
  3201. fmt insn 2 - byte-manipulation (byte offset reg) 3 - jsr (target of
  3202. branch)
  3203. -- : BFD_RELOC_ALPHA_HINT
  3204. The HINT relocation indicates a value that should be filled into
  3205. the "hint" field of a jmp/jsr/ret instruction, for possible branch-
  3206. prediction logic which may be provided on some processors.
  3207. -- : BFD_RELOC_ALPHA_LINKAGE
  3208. The LINKAGE relocation outputs a linkage pair in the object file,
  3209. which is filled by the linker.
  3210. -- : BFD_RELOC_ALPHA_CODEADDR
  3211. The CODEADDR relocation outputs a STO_CA in the object file, which
  3212. is filled by the linker.
  3213. -- : BFD_RELOC_ALPHA_GPREL_HI16
  3214. -- : BFD_RELOC_ALPHA_GPREL_LO16
  3215. The GPREL_HI/LO relocations together form a 32-bit offset from the
  3216. GP register.
  3217. -- : BFD_RELOC_ALPHA_BRSGP
  3218. Like BFD_RELOC_23_PCREL_S2, except that the source and target must
  3219. share a common GP, and the target address is adjusted for
  3220. STO_ALPHA_STD_GPLOAD.
  3221. -- : BFD_RELOC_ALPHA_NOP
  3222. The NOP relocation outputs a NOP if the longword displacement
  3223. between two procedure entry points is < 2^21.
  3224. -- : BFD_RELOC_ALPHA_BSR
  3225. The BSR relocation outputs a BSR if the longword displacement
  3226. between two procedure entry points is < 2^21.
  3227. -- : BFD_RELOC_ALPHA_LDA
  3228. The LDA relocation outputs a LDA if the longword displacement
  3229. between two procedure entry points is < 2^16.
  3230. -- : BFD_RELOC_ALPHA_BOH
  3231. The BOH relocation outputs a BSR if the longword displacement
  3232. between two procedure entry points is < 2^21, or else a hint.
  3233. -- : BFD_RELOC_ALPHA_TLSGD
  3234. -- : BFD_RELOC_ALPHA_TLSLDM
  3235. -- : BFD_RELOC_ALPHA_DTPMOD64
  3236. -- : BFD_RELOC_ALPHA_GOTDTPREL16
  3237. -- : BFD_RELOC_ALPHA_DTPREL64
  3238. -- : BFD_RELOC_ALPHA_DTPREL_HI16
  3239. -- : BFD_RELOC_ALPHA_DTPREL_LO16
  3240. -- : BFD_RELOC_ALPHA_DTPREL16
  3241. -- : BFD_RELOC_ALPHA_GOTTPREL16
  3242. -- : BFD_RELOC_ALPHA_TPREL64
  3243. -- : BFD_RELOC_ALPHA_TPREL_HI16
  3244. -- : BFD_RELOC_ALPHA_TPREL_LO16
  3245. -- : BFD_RELOC_ALPHA_TPREL16
  3246. Alpha thread-local storage relocations.
  3247. -- : BFD_RELOC_MIPS_JMP
  3248. -- : BFD_RELOC_MICROMIPS_JMP
  3249. The MIPS jump instruction.
  3250. -- : BFD_RELOC_MIPS16_JMP
  3251. The MIPS16 jump instruction.
  3252. -- : BFD_RELOC_MIPS16_GPREL
  3253. MIPS16 GP relative reloc.
  3254. -- : BFD_RELOC_HI16
  3255. High 16 bits of 32-bit value; simple reloc.
  3256. -- : BFD_RELOC_HI16_S
  3257. High 16 bits of 32-bit value but the low 16 bits will be sign
  3258. extended and added to form the final result. If the low 16 bits
  3259. form a negative number, we need to add one to the high value to
  3260. compensate for the borrow when the low bits are added.
  3261. -- : BFD_RELOC_LO16
  3262. Low 16 bits.
  3263. -- : BFD_RELOC_HI16_PCREL
  3264. High 16 bits of 32-bit pc-relative value
  3265. -- : BFD_RELOC_HI16_S_PCREL
  3266. High 16 bits of 32-bit pc-relative value, adjusted
  3267. -- : BFD_RELOC_LO16_PCREL
  3268. Low 16 bits of pc-relative value
  3269. -- : BFD_RELOC_MIPS16_GOT16
  3270. -- : BFD_RELOC_MIPS16_CALL16
  3271. Equivalent of BFD_RELOC_MIPS_*, but with the MIPS16 layout of
  3272. 16-bit immediate fields
  3273. -- : BFD_RELOC_MIPS16_HI16
  3274. MIPS16 high 16 bits of 32-bit value.
  3275. -- : BFD_RELOC_MIPS16_HI16_S
  3276. MIPS16 high 16 bits of 32-bit value but the low 16 bits will be
  3277. sign extended and added to form the final result. If the low 16
  3278. bits form a negative number, we need to add one to the high value
  3279. to compensate for the borrow when the low bits are added.
  3280. -- : BFD_RELOC_MIPS16_LO16
  3281. MIPS16 low 16 bits.
  3282. -- : BFD_RELOC_MIPS16_TLS_GD
  3283. -- : BFD_RELOC_MIPS16_TLS_LDM
  3284. -- : BFD_RELOC_MIPS16_TLS_DTPREL_HI16
  3285. -- : BFD_RELOC_MIPS16_TLS_DTPREL_LO16
  3286. -- : BFD_RELOC_MIPS16_TLS_GOTTPREL
  3287. -- : BFD_RELOC_MIPS16_TLS_TPREL_HI16
  3288. -- : BFD_RELOC_MIPS16_TLS_TPREL_LO16
  3289. MIPS16 TLS relocations
  3290. -- : BFD_RELOC_MIPS_LITERAL
  3291. -- : BFD_RELOC_MICROMIPS_LITERAL
  3292. Relocation against a MIPS literal section.
  3293. -- : BFD_RELOC_MICROMIPS_7_PCREL_S1
  3294. -- : BFD_RELOC_MICROMIPS_10_PCREL_S1
  3295. -- : BFD_RELOC_MICROMIPS_16_PCREL_S1
  3296. microMIPS PC-relative relocations.
  3297. -- : BFD_RELOC_MIPS16_16_PCREL_S1
  3298. MIPS16 PC-relative relocation.
  3299. -- : BFD_RELOC_MIPS_21_PCREL_S2
  3300. -- : BFD_RELOC_MIPS_26_PCREL_S2
  3301. -- : BFD_RELOC_MIPS_18_PCREL_S3
  3302. -- : BFD_RELOC_MIPS_19_PCREL_S2
  3303. MIPS PC-relative relocations.
  3304. -- : BFD_RELOC_MICROMIPS_GPREL16
  3305. -- : BFD_RELOC_MICROMIPS_HI16
  3306. -- : BFD_RELOC_MICROMIPS_HI16_S
  3307. -- : BFD_RELOC_MICROMIPS_LO16
  3308. microMIPS versions of generic BFD relocs.
  3309. -- : BFD_RELOC_MIPS_GOT16
  3310. -- : BFD_RELOC_MICROMIPS_GOT16
  3311. -- : BFD_RELOC_MIPS_CALL16
  3312. -- : BFD_RELOC_MICROMIPS_CALL16
  3313. -- : BFD_RELOC_MIPS_GOT_HI16
  3314. -- : BFD_RELOC_MICROMIPS_GOT_HI16
  3315. -- : BFD_RELOC_MIPS_GOT_LO16
  3316. -- : BFD_RELOC_MICROMIPS_GOT_LO16
  3317. -- : BFD_RELOC_MIPS_CALL_HI16
  3318. -- : BFD_RELOC_MICROMIPS_CALL_HI16
  3319. -- : BFD_RELOC_MIPS_CALL_LO16
  3320. -- : BFD_RELOC_MICROMIPS_CALL_LO16
  3321. -- : BFD_RELOC_MIPS_SUB
  3322. -- : BFD_RELOC_MICROMIPS_SUB
  3323. -- : BFD_RELOC_MIPS_GOT_PAGE
  3324. -- : BFD_RELOC_MICROMIPS_GOT_PAGE
  3325. -- : BFD_RELOC_MIPS_GOT_OFST
  3326. -- : BFD_RELOC_MICROMIPS_GOT_OFST
  3327. -- : BFD_RELOC_MIPS_GOT_DISP
  3328. -- : BFD_RELOC_MICROMIPS_GOT_DISP
  3329. -- : BFD_RELOC_MIPS_SHIFT5
  3330. -- : BFD_RELOC_MIPS_SHIFT6
  3331. -- : BFD_RELOC_MIPS_INSERT_A
  3332. -- : BFD_RELOC_MIPS_INSERT_B
  3333. -- : BFD_RELOC_MIPS_DELETE
  3334. -- : BFD_RELOC_MIPS_HIGHEST
  3335. -- : BFD_RELOC_MICROMIPS_HIGHEST
  3336. -- : BFD_RELOC_MIPS_HIGHER
  3337. -- : BFD_RELOC_MICROMIPS_HIGHER
  3338. -- : BFD_RELOC_MIPS_SCN_DISP
  3339. -- : BFD_RELOC_MICROMIPS_SCN_DISP
  3340. -- : BFD_RELOC_MIPS_REL16
  3341. -- : BFD_RELOC_MIPS_RELGOT
  3342. -- : BFD_RELOC_MIPS_JALR
  3343. -- : BFD_RELOC_MICROMIPS_JALR
  3344. -- : BFD_RELOC_MIPS_TLS_DTPMOD32
  3345. -- : BFD_RELOC_MIPS_TLS_DTPREL32
  3346. -- : BFD_RELOC_MIPS_TLS_DTPMOD64
  3347. -- : BFD_RELOC_MIPS_TLS_DTPREL64
  3348. -- : BFD_RELOC_MIPS_TLS_GD
  3349. -- : BFD_RELOC_MICROMIPS_TLS_GD
  3350. -- : BFD_RELOC_MIPS_TLS_LDM
  3351. -- : BFD_RELOC_MICROMIPS_TLS_LDM
  3352. -- : BFD_RELOC_MIPS_TLS_DTPREL_HI16
  3353. -- : BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16
  3354. -- : BFD_RELOC_MIPS_TLS_DTPREL_LO16
  3355. -- : BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16
  3356. -- : BFD_RELOC_MIPS_TLS_GOTTPREL
  3357. -- : BFD_RELOC_MICROMIPS_TLS_GOTTPREL
  3358. -- : BFD_RELOC_MIPS_TLS_TPREL32
  3359. -- : BFD_RELOC_MIPS_TLS_TPREL64
  3360. -- : BFD_RELOC_MIPS_TLS_TPREL_HI16
  3361. -- : BFD_RELOC_MICROMIPS_TLS_TPREL_HI16
  3362. -- : BFD_RELOC_MIPS_TLS_TPREL_LO16
  3363. -- : BFD_RELOC_MICROMIPS_TLS_TPREL_LO16
  3364. -- : BFD_RELOC_MIPS_EH
  3365. MIPS ELF relocations.
  3366. -- : BFD_RELOC_MIPS_COPY
  3367. -- : BFD_RELOC_MIPS_JUMP_SLOT
  3368. MIPS ELF relocations (VxWorks and PLT extensions).
  3369. -- : BFD_RELOC_MOXIE_10_PCREL
  3370. Moxie ELF relocations.
  3371. -- : BFD_RELOC_FT32_10
  3372. -- : BFD_RELOC_FT32_20
  3373. -- : BFD_RELOC_FT32_17
  3374. -- : BFD_RELOC_FT32_18
  3375. -- : BFD_RELOC_FT32_RELAX
  3376. -- : BFD_RELOC_FT32_SC0
  3377. -- : BFD_RELOC_FT32_SC1
  3378. -- : BFD_RELOC_FT32_15
  3379. -- : BFD_RELOC_FT32_DIFF32
  3380. FT32 ELF relocations.
  3381. -- : BFD_RELOC_FRV_LABEL16
  3382. -- : BFD_RELOC_FRV_LABEL24
  3383. -- : BFD_RELOC_FRV_LO16
  3384. -- : BFD_RELOC_FRV_HI16
  3385. -- : BFD_RELOC_FRV_GPREL12
  3386. -- : BFD_RELOC_FRV_GPRELU12
  3387. -- : BFD_RELOC_FRV_GPREL32
  3388. -- : BFD_RELOC_FRV_GPRELHI
  3389. -- : BFD_RELOC_FRV_GPRELLO
  3390. -- : BFD_RELOC_FRV_GOT12
  3391. -- : BFD_RELOC_FRV_GOTHI
  3392. -- : BFD_RELOC_FRV_GOTLO
  3393. -- : BFD_RELOC_FRV_FUNCDESC
  3394. -- : BFD_RELOC_FRV_FUNCDESC_GOT12
  3395. -- : BFD_RELOC_FRV_FUNCDESC_GOTHI
  3396. -- : BFD_RELOC_FRV_FUNCDESC_GOTLO
  3397. -- : BFD_RELOC_FRV_FUNCDESC_VALUE
  3398. -- : BFD_RELOC_FRV_FUNCDESC_GOTOFF12
  3399. -- : BFD_RELOC_FRV_FUNCDESC_GOTOFFHI
  3400. -- : BFD_RELOC_FRV_FUNCDESC_GOTOFFLO
  3401. -- : BFD_RELOC_FRV_GOTOFF12
  3402. -- : BFD_RELOC_FRV_GOTOFFHI
  3403. -- : BFD_RELOC_FRV_GOTOFFLO
  3404. -- : BFD_RELOC_FRV_GETTLSOFF
  3405. -- : BFD_RELOC_FRV_TLSDESC_VALUE
  3406. -- : BFD_RELOC_FRV_GOTTLSDESC12
  3407. -- : BFD_RELOC_FRV_GOTTLSDESCHI
  3408. -- : BFD_RELOC_FRV_GOTTLSDESCLO
  3409. -- : BFD_RELOC_FRV_TLSMOFF12
  3410. -- : BFD_RELOC_FRV_TLSMOFFHI
  3411. -- : BFD_RELOC_FRV_TLSMOFFLO
  3412. -- : BFD_RELOC_FRV_GOTTLSOFF12
  3413. -- : BFD_RELOC_FRV_GOTTLSOFFHI
  3414. -- : BFD_RELOC_FRV_GOTTLSOFFLO
  3415. -- : BFD_RELOC_FRV_TLSOFF
  3416. -- : BFD_RELOC_FRV_TLSDESC_RELAX
  3417. -- : BFD_RELOC_FRV_GETTLSOFF_RELAX
  3418. -- : BFD_RELOC_FRV_TLSOFF_RELAX
  3419. -- : BFD_RELOC_FRV_TLSMOFF
  3420. Fujitsu Frv Relocations.
  3421. -- : BFD_RELOC_MN10300_GOTOFF24
  3422. This is a 24bit GOT-relative reloc for the mn10300.
  3423. -- : BFD_RELOC_MN10300_GOT32
  3424. This is a 32bit GOT-relative reloc for the mn10300, offset by two
  3425. bytes in the instruction.
  3426. -- : BFD_RELOC_MN10300_GOT24
  3427. This is a 24bit GOT-relative reloc for the mn10300, offset by two
  3428. bytes in the instruction.
  3429. -- : BFD_RELOC_MN10300_GOT16
  3430. This is a 16bit GOT-relative reloc for the mn10300, offset by two
  3431. bytes in the instruction.
  3432. -- : BFD_RELOC_MN10300_COPY
  3433. Copy symbol at runtime.
  3434. -- : BFD_RELOC_MN10300_GLOB_DAT
  3435. Create GOT entry.
  3436. -- : BFD_RELOC_MN10300_JMP_SLOT
  3437. Create PLT entry.
  3438. -- : BFD_RELOC_MN10300_RELATIVE
  3439. Adjust by program base.
  3440. -- : BFD_RELOC_MN10300_SYM_DIFF
  3441. Together with another reloc targeted at the same location, allows
  3442. for a value that is the difference of two symbols in the same
  3443. section.
  3444. -- : BFD_RELOC_MN10300_ALIGN
  3445. The addend of this reloc is an alignment power that must be
  3446. honoured at the offset's location, regardless of linker relaxation.
  3447. -- : BFD_RELOC_MN10300_TLS_GD
  3448. -- : BFD_RELOC_MN10300_TLS_LD
  3449. -- : BFD_RELOC_MN10300_TLS_LDO
  3450. -- : BFD_RELOC_MN10300_TLS_GOTIE
  3451. -- : BFD_RELOC_MN10300_TLS_IE
  3452. -- : BFD_RELOC_MN10300_TLS_LE
  3453. -- : BFD_RELOC_MN10300_TLS_DTPMOD
  3454. -- : BFD_RELOC_MN10300_TLS_DTPOFF
  3455. -- : BFD_RELOC_MN10300_TLS_TPOFF
  3456. Various TLS-related relocations.
  3457. -- : BFD_RELOC_MN10300_32_PCREL
  3458. This is a 32bit pcrel reloc for the mn10300, offset by two bytes in
  3459. the instruction.
  3460. -- : BFD_RELOC_MN10300_16_PCREL
  3461. This is a 16bit pcrel reloc for the mn10300, offset by two bytes in
  3462. the instruction.
  3463. -- : BFD_RELOC_386_GOT32
  3464. -- : BFD_RELOC_386_PLT32
  3465. -- : BFD_RELOC_386_COPY
  3466. -- : BFD_RELOC_386_GLOB_DAT
  3467. -- : BFD_RELOC_386_JUMP_SLOT
  3468. -- : BFD_RELOC_386_RELATIVE
  3469. -- : BFD_RELOC_386_GOTOFF
  3470. -- : BFD_RELOC_386_GOTPC
  3471. -- : BFD_RELOC_386_TLS_TPOFF
  3472. -- : BFD_RELOC_386_TLS_IE
  3473. -- : BFD_RELOC_386_TLS_GOTIE
  3474. -- : BFD_RELOC_386_TLS_LE
  3475. -- : BFD_RELOC_386_TLS_GD
  3476. -- : BFD_RELOC_386_TLS_LDM
  3477. -- : BFD_RELOC_386_TLS_LDO_32
  3478. -- : BFD_RELOC_386_TLS_IE_32
  3479. -- : BFD_RELOC_386_TLS_LE_32
  3480. -- : BFD_RELOC_386_TLS_DTPMOD32
  3481. -- : BFD_RELOC_386_TLS_DTPOFF32
  3482. -- : BFD_RELOC_386_TLS_TPOFF32
  3483. -- : BFD_RELOC_386_TLS_GOTDESC
  3484. -- : BFD_RELOC_386_TLS_DESC_CALL
  3485. -- : BFD_RELOC_386_TLS_DESC
  3486. -- : BFD_RELOC_386_IRELATIVE
  3487. -- : BFD_RELOC_386_GOT32X
  3488. i386/elf relocations
  3489. -- : BFD_RELOC_X86_64_GOT32
  3490. -- : BFD_RELOC_X86_64_PLT32
  3491. -- : BFD_RELOC_X86_64_COPY
  3492. -- : BFD_RELOC_X86_64_GLOB_DAT
  3493. -- : BFD_RELOC_X86_64_JUMP_SLOT
  3494. -- : BFD_RELOC_X86_64_RELATIVE
  3495. -- : BFD_RELOC_X86_64_GOTPCREL
  3496. -- : BFD_RELOC_X86_64_32S
  3497. -- : BFD_RELOC_X86_64_DTPMOD64
  3498. -- : BFD_RELOC_X86_64_DTPOFF64
  3499. -- : BFD_RELOC_X86_64_TPOFF64
  3500. -- : BFD_RELOC_X86_64_TLSGD
  3501. -- : BFD_RELOC_X86_64_TLSLD
  3502. -- : BFD_RELOC_X86_64_DTPOFF32
  3503. -- : BFD_RELOC_X86_64_GOTTPOFF
  3504. -- : BFD_RELOC_X86_64_TPOFF32
  3505. -- : BFD_RELOC_X86_64_GOTOFF64
  3506. -- : BFD_RELOC_X86_64_GOTPC32
  3507. -- : BFD_RELOC_X86_64_GOT64
  3508. -- : BFD_RELOC_X86_64_GOTPCREL64
  3509. -- : BFD_RELOC_X86_64_GOTPC64
  3510. -- : BFD_RELOC_X86_64_GOTPLT64
  3511. -- : BFD_RELOC_X86_64_PLTOFF64
  3512. -- : BFD_RELOC_X86_64_GOTPC32_TLSDESC
  3513. -- : BFD_RELOC_X86_64_TLSDESC_CALL
  3514. -- : BFD_RELOC_X86_64_TLSDESC
  3515. -- : BFD_RELOC_X86_64_IRELATIVE
  3516. -- : BFD_RELOC_X86_64_PC32_BND
  3517. -- : BFD_RELOC_X86_64_PLT32_BND
  3518. -- : BFD_RELOC_X86_64_GOTPCRELX
  3519. -- : BFD_RELOC_X86_64_REX_GOTPCRELX
  3520. x86-64/elf relocations
  3521. -- : BFD_RELOC_NS32K_IMM_8
  3522. -- : BFD_RELOC_NS32K_IMM_16
  3523. -- : BFD_RELOC_NS32K_IMM_32
  3524. -- : BFD_RELOC_NS32K_IMM_8_PCREL
  3525. -- : BFD_RELOC_NS32K_IMM_16_PCREL
  3526. -- : BFD_RELOC_NS32K_IMM_32_PCREL
  3527. -- : BFD_RELOC_NS32K_DISP_8
  3528. -- : BFD_RELOC_NS32K_DISP_16
  3529. -- : BFD_RELOC_NS32K_DISP_32
  3530. -- : BFD_RELOC_NS32K_DISP_8_PCREL
  3531. -- : BFD_RELOC_NS32K_DISP_16_PCREL
  3532. -- : BFD_RELOC_NS32K_DISP_32_PCREL
  3533. ns32k relocations
  3534. -- : BFD_RELOC_PDP11_DISP_8_PCREL
  3535. -- : BFD_RELOC_PDP11_DISP_6_PCREL
  3536. PDP11 relocations
  3537. -- : BFD_RELOC_PJ_CODE_HI16
  3538. -- : BFD_RELOC_PJ_CODE_LO16
  3539. -- : BFD_RELOC_PJ_CODE_DIR16
  3540. -- : BFD_RELOC_PJ_CODE_DIR32
  3541. -- : BFD_RELOC_PJ_CODE_REL16
  3542. -- : BFD_RELOC_PJ_CODE_REL32
  3543. Picojava relocs. Not all of these appear in object files.
  3544. -- : BFD_RELOC_PPC_B26
  3545. -- : BFD_RELOC_PPC_BA26
  3546. -- : BFD_RELOC_PPC_TOC16
  3547. -- : BFD_RELOC_PPC_B16
  3548. -- : BFD_RELOC_PPC_B16_BRTAKEN
  3549. -- : BFD_RELOC_PPC_B16_BRNTAKEN
  3550. -- : BFD_RELOC_PPC_BA16
  3551. -- : BFD_RELOC_PPC_BA16_BRTAKEN
  3552. -- : BFD_RELOC_PPC_BA16_BRNTAKEN
  3553. -- : BFD_RELOC_PPC_COPY
  3554. -- : BFD_RELOC_PPC_GLOB_DAT
  3555. -- : BFD_RELOC_PPC_JMP_SLOT
  3556. -- : BFD_RELOC_PPC_RELATIVE
  3557. -- : BFD_RELOC_PPC_LOCAL24PC
  3558. -- : BFD_RELOC_PPC_EMB_NADDR32
  3559. -- : BFD_RELOC_PPC_EMB_NADDR16
  3560. -- : BFD_RELOC_PPC_EMB_NADDR16_LO
  3561. -- : BFD_RELOC_PPC_EMB_NADDR16_HI
  3562. -- : BFD_RELOC_PPC_EMB_NADDR16_HA
  3563. -- : BFD_RELOC_PPC_EMB_SDAI16
  3564. -- : BFD_RELOC_PPC_EMB_SDA2I16
  3565. -- : BFD_RELOC_PPC_EMB_SDA2REL
  3566. -- : BFD_RELOC_PPC_EMB_SDA21
  3567. -- : BFD_RELOC_PPC_EMB_MRKREF
  3568. -- : BFD_RELOC_PPC_EMB_RELSEC16
  3569. -- : BFD_RELOC_PPC_EMB_RELST_LO
  3570. -- : BFD_RELOC_PPC_EMB_RELST_HI
  3571. -- : BFD_RELOC_PPC_EMB_RELST_HA
  3572. -- : BFD_RELOC_PPC_EMB_BIT_FLD
  3573. -- : BFD_RELOC_PPC_EMB_RELSDA
  3574. -- : BFD_RELOC_PPC_VLE_REL8
  3575. -- : BFD_RELOC_PPC_VLE_REL15
  3576. -- : BFD_RELOC_PPC_VLE_REL24
  3577. -- : BFD_RELOC_PPC_VLE_LO16A
  3578. -- : BFD_RELOC_PPC_VLE_LO16D
  3579. -- : BFD_RELOC_PPC_VLE_HI16A
  3580. -- : BFD_RELOC_PPC_VLE_HI16D
  3581. -- : BFD_RELOC_PPC_VLE_HA16A
  3582. -- : BFD_RELOC_PPC_VLE_HA16D
  3583. -- : BFD_RELOC_PPC_VLE_SDA21
  3584. -- : BFD_RELOC_PPC_VLE_SDA21_LO
  3585. -- : BFD_RELOC_PPC_VLE_SDAREL_LO16A
  3586. -- : BFD_RELOC_PPC_VLE_SDAREL_LO16D
  3587. -- : BFD_RELOC_PPC_VLE_SDAREL_HI16A
  3588. -- : BFD_RELOC_PPC_VLE_SDAREL_HI16D
  3589. -- : BFD_RELOC_PPC_VLE_SDAREL_HA16A
  3590. -- : BFD_RELOC_PPC_VLE_SDAREL_HA16D
  3591. -- : BFD_RELOC_PPC_16DX_HA
  3592. -- : BFD_RELOC_PPC_REL16DX_HA
  3593. -- : BFD_RELOC_PPC64_HIGHER
  3594. -- : BFD_RELOC_PPC64_HIGHER_S
  3595. -- : BFD_RELOC_PPC64_HIGHEST
  3596. -- : BFD_RELOC_PPC64_HIGHEST_S
  3597. -- : BFD_RELOC_PPC64_TOC16_LO
  3598. -- : BFD_RELOC_PPC64_TOC16_HI
  3599. -- : BFD_RELOC_PPC64_TOC16_HA
  3600. -- : BFD_RELOC_PPC64_TOC
  3601. -- : BFD_RELOC_PPC64_PLTGOT16
  3602. -- : BFD_RELOC_PPC64_PLTGOT16_LO
  3603. -- : BFD_RELOC_PPC64_PLTGOT16_HI
  3604. -- : BFD_RELOC_PPC64_PLTGOT16_HA
  3605. -- : BFD_RELOC_PPC64_ADDR16_DS
  3606. -- : BFD_RELOC_PPC64_ADDR16_LO_DS
  3607. -- : BFD_RELOC_PPC64_GOT16_DS
  3608. -- : BFD_RELOC_PPC64_GOT16_LO_DS
  3609. -- : BFD_RELOC_PPC64_PLT16_LO_DS
  3610. -- : BFD_RELOC_PPC64_SECTOFF_DS
  3611. -- : BFD_RELOC_PPC64_SECTOFF_LO_DS
  3612. -- : BFD_RELOC_PPC64_TOC16_DS
  3613. -- : BFD_RELOC_PPC64_TOC16_LO_DS
  3614. -- : BFD_RELOC_PPC64_PLTGOT16_DS
  3615. -- : BFD_RELOC_PPC64_PLTGOT16_LO_DS
  3616. -- : BFD_RELOC_PPC64_ADDR16_HIGH
  3617. -- : BFD_RELOC_PPC64_ADDR16_HIGHA
  3618. -- : BFD_RELOC_PPC64_REL16_HIGH
  3619. -- : BFD_RELOC_PPC64_REL16_HIGHA
  3620. -- : BFD_RELOC_PPC64_REL16_HIGHER
  3621. -- : BFD_RELOC_PPC64_REL16_HIGHERA
  3622. -- : BFD_RELOC_PPC64_REL16_HIGHEST
  3623. -- : BFD_RELOC_PPC64_REL16_HIGHESTA
  3624. -- : BFD_RELOC_PPC64_ADDR64_LOCAL
  3625. -- : BFD_RELOC_PPC64_ENTRY
  3626. -- : BFD_RELOC_PPC64_REL24_NOTOC
  3627. -- : BFD_RELOC_PPC64_D34
  3628. -- : BFD_RELOC_PPC64_D34_LO
  3629. -- : BFD_RELOC_PPC64_D34_HI30
  3630. -- : BFD_RELOC_PPC64_D34_HA30
  3631. -- : BFD_RELOC_PPC64_PCREL34
  3632. -- : BFD_RELOC_PPC64_GOT_PCREL34
  3633. -- : BFD_RELOC_PPC64_PLT_PCREL34
  3634. -- : BFD_RELOC_PPC64_ADDR16_HIGHER34
  3635. -- : BFD_RELOC_PPC64_ADDR16_HIGHERA34
  3636. -- : BFD_RELOC_PPC64_ADDR16_HIGHEST34
  3637. -- : BFD_RELOC_PPC64_ADDR16_HIGHESTA34
  3638. -- : BFD_RELOC_PPC64_REL16_HIGHER34
  3639. -- : BFD_RELOC_PPC64_REL16_HIGHERA34
  3640. -- : BFD_RELOC_PPC64_REL16_HIGHEST34
  3641. -- : BFD_RELOC_PPC64_REL16_HIGHESTA34
  3642. -- : BFD_RELOC_PPC64_D28
  3643. -- : BFD_RELOC_PPC64_PCREL28
  3644. Power(rs6000) and PowerPC relocations.
  3645. -- : BFD_RELOC_PPC_TLS
  3646. -- : BFD_RELOC_PPC_TLSGD
  3647. -- : BFD_RELOC_PPC_TLSLD
  3648. -- : BFD_RELOC_PPC_DTPMOD
  3649. -- : BFD_RELOC_PPC_TPREL16
  3650. -- : BFD_RELOC_PPC_TPREL16_LO
  3651. -- : BFD_RELOC_PPC_TPREL16_HI
  3652. -- : BFD_RELOC_PPC_TPREL16_HA
  3653. -- : BFD_RELOC_PPC_TPREL
  3654. -- : BFD_RELOC_PPC_DTPREL16
  3655. -- : BFD_RELOC_PPC_DTPREL16_LO
  3656. -- : BFD_RELOC_PPC_DTPREL16_HI
  3657. -- : BFD_RELOC_PPC_DTPREL16_HA
  3658. -- : BFD_RELOC_PPC_DTPREL
  3659. -- : BFD_RELOC_PPC_GOT_TLSGD16
  3660. -- : BFD_RELOC_PPC_GOT_TLSGD16_LO
  3661. -- : BFD_RELOC_PPC_GOT_TLSGD16_HI
  3662. -- : BFD_RELOC_PPC_GOT_TLSGD16_HA
  3663. -- : BFD_RELOC_PPC_GOT_TLSLD16
  3664. -- : BFD_RELOC_PPC_GOT_TLSLD16_LO
  3665. -- : BFD_RELOC_PPC_GOT_TLSLD16_HI
  3666. -- : BFD_RELOC_PPC_GOT_TLSLD16_HA
  3667. -- : BFD_RELOC_PPC_GOT_TPREL16
  3668. -- : BFD_RELOC_PPC_GOT_TPREL16_LO
  3669. -- : BFD_RELOC_PPC_GOT_TPREL16_HI
  3670. -- : BFD_RELOC_PPC_GOT_TPREL16_HA
  3671. -- : BFD_RELOC_PPC_GOT_DTPREL16
  3672. -- : BFD_RELOC_PPC_GOT_DTPREL16_LO
  3673. -- : BFD_RELOC_PPC_GOT_DTPREL16_HI
  3674. -- : BFD_RELOC_PPC_GOT_DTPREL16_HA
  3675. -- : BFD_RELOC_PPC64_TPREL16_DS
  3676. -- : BFD_RELOC_PPC64_TPREL16_LO_DS
  3677. -- : BFD_RELOC_PPC64_TPREL16_HIGH
  3678. -- : BFD_RELOC_PPC64_TPREL16_HIGHA
  3679. -- : BFD_RELOC_PPC64_TPREL16_HIGHER
  3680. -- : BFD_RELOC_PPC64_TPREL16_HIGHERA
  3681. -- : BFD_RELOC_PPC64_TPREL16_HIGHEST
  3682. -- : BFD_RELOC_PPC64_TPREL16_HIGHESTA
  3683. -- : BFD_RELOC_PPC64_DTPREL16_DS
  3684. -- : BFD_RELOC_PPC64_DTPREL16_LO_DS
  3685. -- : BFD_RELOC_PPC64_DTPREL16_HIGH
  3686. -- : BFD_RELOC_PPC64_DTPREL16_HIGHA
  3687. -- : BFD_RELOC_PPC64_DTPREL16_HIGHER
  3688. -- : BFD_RELOC_PPC64_DTPREL16_HIGHERA
  3689. -- : BFD_RELOC_PPC64_DTPREL16_HIGHEST
  3690. -- : BFD_RELOC_PPC64_DTPREL16_HIGHESTA
  3691. -- : BFD_RELOC_PPC64_TPREL34
  3692. -- : BFD_RELOC_PPC64_DTPREL34
  3693. -- : BFD_RELOC_PPC64_GOT_TLSGD_PCREL34
  3694. -- : BFD_RELOC_PPC64_GOT_TLSLD_PCREL34
  3695. -- : BFD_RELOC_PPC64_GOT_TPREL_PCREL34
  3696. -- : BFD_RELOC_PPC64_GOT_DTPREL_PCREL34
  3697. -- : BFD_RELOC_PPC64_TLS_PCREL
  3698. PowerPC and PowerPC64 thread-local storage relocations.
  3699. -- : BFD_RELOC_I370_D12
  3700. IBM 370/390 relocations
  3701. -- : BFD_RELOC_CTOR
  3702. The type of reloc used to build a constructor table - at the moment
  3703. probably a 32 bit wide absolute relocation, but the target can
  3704. choose. It generally does map to one of the other relocation
  3705. types.
  3706. -- : BFD_RELOC_ARM_PCREL_BRANCH
  3707. ARM 26 bit pc-relative branch. The lowest two bits must be zero
  3708. and are not stored in the instruction.
  3709. -- : BFD_RELOC_ARM_PCREL_BLX
  3710. ARM 26 bit pc-relative branch. The lowest bit must be zero and is
  3711. not stored in the instruction. The 2nd lowest bit comes from a 1
  3712. bit field in the instruction.
  3713. -- : BFD_RELOC_THUMB_PCREL_BLX
  3714. Thumb 22 bit pc-relative branch. The lowest bit must be zero and
  3715. is not stored in the instruction. The 2nd lowest bit comes from a
  3716. 1 bit field in the instruction.
  3717. -- : BFD_RELOC_ARM_PCREL_CALL
  3718. ARM 26-bit pc-relative branch for an unconditional BL or BLX
  3719. instruction.
  3720. -- : BFD_RELOC_ARM_PCREL_JUMP
  3721. ARM 26-bit pc-relative branch for B or conditional BL instruction.
  3722. -- : BFD_RELOC_THUMB_PCREL_BRANCH5
  3723. ARM 5-bit pc-relative branch for Branch Future instructions.
  3724. -- : BFD_RELOC_THUMB_PCREL_BFCSEL
  3725. ARM 6-bit pc-relative branch for BFCSEL instruction.
  3726. -- : BFD_RELOC_ARM_THUMB_BF17
  3727. ARM 17-bit pc-relative branch for Branch Future instructions.
  3728. -- : BFD_RELOC_ARM_THUMB_BF13
  3729. ARM 13-bit pc-relative branch for BFCSEL instruction.
  3730. -- : BFD_RELOC_ARM_THUMB_BF19
  3731. ARM 19-bit pc-relative branch for Branch Future Link instruction.
  3732. -- : BFD_RELOC_ARM_THUMB_LOOP12
  3733. ARM 12-bit pc-relative branch for Low Overhead Loop instructions.
  3734. -- : BFD_RELOC_THUMB_PCREL_BRANCH7
  3735. -- : BFD_RELOC_THUMB_PCREL_BRANCH9
  3736. -- : BFD_RELOC_THUMB_PCREL_BRANCH12
  3737. -- : BFD_RELOC_THUMB_PCREL_BRANCH20
  3738. -- : BFD_RELOC_THUMB_PCREL_BRANCH23
  3739. -- : BFD_RELOC_THUMB_PCREL_BRANCH25
  3740. Thumb 7-, 9-, 12-, 20-, 23-, and 25-bit pc-relative branches. The
  3741. lowest bit must be zero and is not stored in the instruction. Note
  3742. that the corresponding ELF R_ARM_THM_JUMPnn constant has an "nn"
  3743. one smaller in all cases. Note further that BRANCH23 corresponds
  3744. to R_ARM_THM_CALL.
  3745. -- : BFD_RELOC_ARM_OFFSET_IMM
  3746. 12-bit immediate offset, used in ARM-format ldr and str
  3747. instructions.
  3748. -- : BFD_RELOC_ARM_THUMB_OFFSET
  3749. 5-bit immediate offset, used in Thumb-format ldr and str
  3750. instructions.
  3751. -- : BFD_RELOC_ARM_TARGET1
  3752. Pc-relative or absolute relocation depending on target. Used for
  3753. entries in .init_array sections.
  3754. -- : BFD_RELOC_ARM_ROSEGREL32
  3755. Read-only segment base relative address.
  3756. -- : BFD_RELOC_ARM_SBREL32
  3757. Data segment base relative address.
  3758. -- : BFD_RELOC_ARM_TARGET2
  3759. This reloc is used for references to RTTI data from exception
  3760. handling tables. The actual definition depends on the target. It
  3761. may be a pc-relative or some form of GOT-indirect relocation.
  3762. -- : BFD_RELOC_ARM_PREL31
  3763. 31-bit PC relative address.
  3764. -- : BFD_RELOC_ARM_MOVW
  3765. -- : BFD_RELOC_ARM_MOVT
  3766. -- : BFD_RELOC_ARM_MOVW_PCREL
  3767. -- : BFD_RELOC_ARM_MOVT_PCREL
  3768. -- : BFD_RELOC_ARM_THUMB_MOVW
  3769. -- : BFD_RELOC_ARM_THUMB_MOVT
  3770. -- : BFD_RELOC_ARM_THUMB_MOVW_PCREL
  3771. -- : BFD_RELOC_ARM_THUMB_MOVT_PCREL
  3772. Low and High halfword relocations for MOVW and MOVT instructions.
  3773. -- : BFD_RELOC_ARM_GOTFUNCDESC
  3774. -- : BFD_RELOC_ARM_GOTOFFFUNCDESC
  3775. -- : BFD_RELOC_ARM_FUNCDESC
  3776. -- : BFD_RELOC_ARM_FUNCDESC_VALUE
  3777. -- : BFD_RELOC_ARM_TLS_GD32_FDPIC
  3778. -- : BFD_RELOC_ARM_TLS_LDM32_FDPIC
  3779. -- : BFD_RELOC_ARM_TLS_IE32_FDPIC
  3780. ARM FDPIC specific relocations.
  3781. -- : BFD_RELOC_ARM_JUMP_SLOT
  3782. -- : BFD_RELOC_ARM_GLOB_DAT
  3783. -- : BFD_RELOC_ARM_GOT32
  3784. -- : BFD_RELOC_ARM_PLT32
  3785. -- : BFD_RELOC_ARM_RELATIVE
  3786. -- : BFD_RELOC_ARM_GOTOFF
  3787. -- : BFD_RELOC_ARM_GOTPC
  3788. -- : BFD_RELOC_ARM_GOT_PREL
  3789. Relocations for setting up GOTs and PLTs for shared libraries.
  3790. -- : BFD_RELOC_ARM_TLS_GD32
  3791. -- : BFD_RELOC_ARM_TLS_LDO32
  3792. -- : BFD_RELOC_ARM_TLS_LDM32
  3793. -- : BFD_RELOC_ARM_TLS_DTPOFF32
  3794. -- : BFD_RELOC_ARM_TLS_DTPMOD32
  3795. -- : BFD_RELOC_ARM_TLS_TPOFF32
  3796. -- : BFD_RELOC_ARM_TLS_IE32
  3797. -- : BFD_RELOC_ARM_TLS_LE32
  3798. -- : BFD_RELOC_ARM_TLS_GOTDESC
  3799. -- : BFD_RELOC_ARM_TLS_CALL
  3800. -- : BFD_RELOC_ARM_THM_TLS_CALL
  3801. -- : BFD_RELOC_ARM_TLS_DESCSEQ
  3802. -- : BFD_RELOC_ARM_THM_TLS_DESCSEQ
  3803. -- : BFD_RELOC_ARM_TLS_DESC
  3804. ARM thread-local storage relocations.
  3805. -- : BFD_RELOC_ARM_ALU_PC_G0_NC
  3806. -- : BFD_RELOC_ARM_ALU_PC_G0
  3807. -- : BFD_RELOC_ARM_ALU_PC_G1_NC
  3808. -- : BFD_RELOC_ARM_ALU_PC_G1
  3809. -- : BFD_RELOC_ARM_ALU_PC_G2
  3810. -- : BFD_RELOC_ARM_LDR_PC_G0
  3811. -- : BFD_RELOC_ARM_LDR_PC_G1
  3812. -- : BFD_RELOC_ARM_LDR_PC_G2
  3813. -- : BFD_RELOC_ARM_LDRS_PC_G0
  3814. -- : BFD_RELOC_ARM_LDRS_PC_G1
  3815. -- : BFD_RELOC_ARM_LDRS_PC_G2
  3816. -- : BFD_RELOC_ARM_LDC_PC_G0
  3817. -- : BFD_RELOC_ARM_LDC_PC_G1
  3818. -- : BFD_RELOC_ARM_LDC_PC_G2
  3819. -- : BFD_RELOC_ARM_ALU_SB_G0_NC
  3820. -- : BFD_RELOC_ARM_ALU_SB_G0
  3821. -- : BFD_RELOC_ARM_ALU_SB_G1_NC
  3822. -- : BFD_RELOC_ARM_ALU_SB_G1
  3823. -- : BFD_RELOC_ARM_ALU_SB_G2
  3824. -- : BFD_RELOC_ARM_LDR_SB_G0
  3825. -- : BFD_RELOC_ARM_LDR_SB_G1
  3826. -- : BFD_RELOC_ARM_LDR_SB_G2
  3827. -- : BFD_RELOC_ARM_LDRS_SB_G0
  3828. -- : BFD_RELOC_ARM_LDRS_SB_G1
  3829. -- : BFD_RELOC_ARM_LDRS_SB_G2
  3830. -- : BFD_RELOC_ARM_LDC_SB_G0
  3831. -- : BFD_RELOC_ARM_LDC_SB_G1
  3832. -- : BFD_RELOC_ARM_LDC_SB_G2
  3833. ARM group relocations.
  3834. -- : BFD_RELOC_ARM_V4BX
  3835. Annotation of BX instructions.
  3836. -- : BFD_RELOC_ARM_IRELATIVE
  3837. ARM support for STT_GNU_IFUNC.
  3838. -- : BFD_RELOC_ARM_THUMB_ALU_ABS_G0_NC
  3839. -- : BFD_RELOC_ARM_THUMB_ALU_ABS_G1_NC
  3840. -- : BFD_RELOC_ARM_THUMB_ALU_ABS_G2_NC
  3841. -- : BFD_RELOC_ARM_THUMB_ALU_ABS_G3_NC
  3842. Thumb1 relocations to support execute-only code.
  3843. -- : BFD_RELOC_ARM_IMMEDIATE
  3844. -- : BFD_RELOC_ARM_ADRL_IMMEDIATE
  3845. -- : BFD_RELOC_ARM_T32_IMMEDIATE
  3846. -- : BFD_RELOC_ARM_T32_ADD_IMM
  3847. -- : BFD_RELOC_ARM_T32_IMM12
  3848. -- : BFD_RELOC_ARM_T32_ADD_PC12
  3849. -- : BFD_RELOC_ARM_SHIFT_IMM
  3850. -- : BFD_RELOC_ARM_SMC
  3851. -- : BFD_RELOC_ARM_HVC
  3852. -- : BFD_RELOC_ARM_SWI
  3853. -- : BFD_RELOC_ARM_MULTI
  3854. -- : BFD_RELOC_ARM_CP_OFF_IMM
  3855. -- : BFD_RELOC_ARM_CP_OFF_IMM_S2
  3856. -- : BFD_RELOC_ARM_T32_CP_OFF_IMM
  3857. -- : BFD_RELOC_ARM_T32_CP_OFF_IMM_S2
  3858. -- : BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM
  3859. -- : BFD_RELOC_ARM_ADR_IMM
  3860. -- : BFD_RELOC_ARM_LDR_IMM
  3861. -- : BFD_RELOC_ARM_LITERAL
  3862. -- : BFD_RELOC_ARM_IN_POOL
  3863. -- : BFD_RELOC_ARM_OFFSET_IMM8
  3864. -- : BFD_RELOC_ARM_T32_OFFSET_U8
  3865. -- : BFD_RELOC_ARM_T32_OFFSET_IMM
  3866. -- : BFD_RELOC_ARM_HWLITERAL
  3867. -- : BFD_RELOC_ARM_THUMB_ADD
  3868. -- : BFD_RELOC_ARM_THUMB_IMM
  3869. -- : BFD_RELOC_ARM_THUMB_SHIFT
  3870. These relocs are only used within the ARM assembler. They are not
  3871. (at present) written to any object files.
  3872. -- : BFD_RELOC_SH_PCDISP8BY2
  3873. -- : BFD_RELOC_SH_PCDISP12BY2
  3874. -- : BFD_RELOC_SH_IMM3
  3875. -- : BFD_RELOC_SH_IMM3U
  3876. -- : BFD_RELOC_SH_DISP12
  3877. -- : BFD_RELOC_SH_DISP12BY2
  3878. -- : BFD_RELOC_SH_DISP12BY4
  3879. -- : BFD_RELOC_SH_DISP12BY8
  3880. -- : BFD_RELOC_SH_DISP20
  3881. -- : BFD_RELOC_SH_DISP20BY8
  3882. -- : BFD_RELOC_SH_IMM4
  3883. -- : BFD_RELOC_SH_IMM4BY2
  3884. -- : BFD_RELOC_SH_IMM4BY4
  3885. -- : BFD_RELOC_SH_IMM8
  3886. -- : BFD_RELOC_SH_IMM8BY2
  3887. -- : BFD_RELOC_SH_IMM8BY4
  3888. -- : BFD_RELOC_SH_PCRELIMM8BY2
  3889. -- : BFD_RELOC_SH_PCRELIMM8BY4
  3890. -- : BFD_RELOC_SH_SWITCH16
  3891. -- : BFD_RELOC_SH_SWITCH32
  3892. -- : BFD_RELOC_SH_USES
  3893. -- : BFD_RELOC_SH_COUNT
  3894. -- : BFD_RELOC_SH_ALIGN
  3895. -- : BFD_RELOC_SH_CODE
  3896. -- : BFD_RELOC_SH_DATA
  3897. -- : BFD_RELOC_SH_LABEL
  3898. -- : BFD_RELOC_SH_LOOP_START
  3899. -- : BFD_RELOC_SH_LOOP_END
  3900. -- : BFD_RELOC_SH_COPY
  3901. -- : BFD_RELOC_SH_GLOB_DAT
  3902. -- : BFD_RELOC_SH_JMP_SLOT
  3903. -- : BFD_RELOC_SH_RELATIVE
  3904. -- : BFD_RELOC_SH_GOTPC
  3905. -- : BFD_RELOC_SH_GOT_LOW16
  3906. -- : BFD_RELOC_SH_GOT_MEDLOW16
  3907. -- : BFD_RELOC_SH_GOT_MEDHI16
  3908. -- : BFD_RELOC_SH_GOT_HI16
  3909. -- : BFD_RELOC_SH_GOTPLT_LOW16
  3910. -- : BFD_RELOC_SH_GOTPLT_MEDLOW16
  3911. -- : BFD_RELOC_SH_GOTPLT_MEDHI16
  3912. -- : BFD_RELOC_SH_GOTPLT_HI16
  3913. -- : BFD_RELOC_SH_PLT_LOW16
  3914. -- : BFD_RELOC_SH_PLT_MEDLOW16
  3915. -- : BFD_RELOC_SH_PLT_MEDHI16
  3916. -- : BFD_RELOC_SH_PLT_HI16
  3917. -- : BFD_RELOC_SH_GOTOFF_LOW16
  3918. -- : BFD_RELOC_SH_GOTOFF_MEDLOW16
  3919. -- : BFD_RELOC_SH_GOTOFF_MEDHI16
  3920. -- : BFD_RELOC_SH_GOTOFF_HI16
  3921. -- : BFD_RELOC_SH_GOTPC_LOW16
  3922. -- : BFD_RELOC_SH_GOTPC_MEDLOW16
  3923. -- : BFD_RELOC_SH_GOTPC_MEDHI16
  3924. -- : BFD_RELOC_SH_GOTPC_HI16
  3925. -- : BFD_RELOC_SH_COPY64
  3926. -- : BFD_RELOC_SH_GLOB_DAT64
  3927. -- : BFD_RELOC_SH_JMP_SLOT64
  3928. -- : BFD_RELOC_SH_RELATIVE64
  3929. -- : BFD_RELOC_SH_GOT10BY4
  3930. -- : BFD_RELOC_SH_GOT10BY8
  3931. -- : BFD_RELOC_SH_GOTPLT10BY4
  3932. -- : BFD_RELOC_SH_GOTPLT10BY8
  3933. -- : BFD_RELOC_SH_GOTPLT32
  3934. -- : BFD_RELOC_SH_SHMEDIA_CODE
  3935. -- : BFD_RELOC_SH_IMMU5
  3936. -- : BFD_RELOC_SH_IMMS6
  3937. -- : BFD_RELOC_SH_IMMS6BY32
  3938. -- : BFD_RELOC_SH_IMMU6
  3939. -- : BFD_RELOC_SH_IMMS10
  3940. -- : BFD_RELOC_SH_IMMS10BY2
  3941. -- : BFD_RELOC_SH_IMMS10BY4
  3942. -- : BFD_RELOC_SH_IMMS10BY8
  3943. -- : BFD_RELOC_SH_IMMS16
  3944. -- : BFD_RELOC_SH_IMMU16
  3945. -- : BFD_RELOC_SH_IMM_LOW16
  3946. -- : BFD_RELOC_SH_IMM_LOW16_PCREL
  3947. -- : BFD_RELOC_SH_IMM_MEDLOW16
  3948. -- : BFD_RELOC_SH_IMM_MEDLOW16_PCREL
  3949. -- : BFD_RELOC_SH_IMM_MEDHI16
  3950. -- : BFD_RELOC_SH_IMM_MEDHI16_PCREL
  3951. -- : BFD_RELOC_SH_IMM_HI16
  3952. -- : BFD_RELOC_SH_IMM_HI16_PCREL
  3953. -- : BFD_RELOC_SH_PT_16
  3954. -- : BFD_RELOC_SH_TLS_GD_32
  3955. -- : BFD_RELOC_SH_TLS_LD_32
  3956. -- : BFD_RELOC_SH_TLS_LDO_32
  3957. -- : BFD_RELOC_SH_TLS_IE_32
  3958. -- : BFD_RELOC_SH_TLS_LE_32
  3959. -- : BFD_RELOC_SH_TLS_DTPMOD32
  3960. -- : BFD_RELOC_SH_TLS_DTPOFF32
  3961. -- : BFD_RELOC_SH_TLS_TPOFF32
  3962. -- : BFD_RELOC_SH_GOT20
  3963. -- : BFD_RELOC_SH_GOTOFF20
  3964. -- : BFD_RELOC_SH_GOTFUNCDESC
  3965. -- : BFD_RELOC_SH_GOTFUNCDESC20
  3966. -- : BFD_RELOC_SH_GOTOFFFUNCDESC
  3967. -- : BFD_RELOC_SH_GOTOFFFUNCDESC20
  3968. -- : BFD_RELOC_SH_FUNCDESC
  3969. Renesas / SuperH SH relocs. Not all of these appear in object
  3970. files.
  3971. -- : BFD_RELOC_ARC_NONE
  3972. -- : BFD_RELOC_ARC_8
  3973. -- : BFD_RELOC_ARC_16
  3974. -- : BFD_RELOC_ARC_24
  3975. -- : BFD_RELOC_ARC_32
  3976. -- : BFD_RELOC_ARC_N8
  3977. -- : BFD_RELOC_ARC_N16
  3978. -- : BFD_RELOC_ARC_N24
  3979. -- : BFD_RELOC_ARC_N32
  3980. -- : BFD_RELOC_ARC_SDA
  3981. -- : BFD_RELOC_ARC_SECTOFF
  3982. -- : BFD_RELOC_ARC_S21H_PCREL
  3983. -- : BFD_RELOC_ARC_S21W_PCREL
  3984. -- : BFD_RELOC_ARC_S25H_PCREL
  3985. -- : BFD_RELOC_ARC_S25W_PCREL
  3986. -- : BFD_RELOC_ARC_SDA32
  3987. -- : BFD_RELOC_ARC_SDA_LDST
  3988. -- : BFD_RELOC_ARC_SDA_LDST1
  3989. -- : BFD_RELOC_ARC_SDA_LDST2
  3990. -- : BFD_RELOC_ARC_SDA16_LD
  3991. -- : BFD_RELOC_ARC_SDA16_LD1
  3992. -- : BFD_RELOC_ARC_SDA16_LD2
  3993. -- : BFD_RELOC_ARC_S13_PCREL
  3994. -- : BFD_RELOC_ARC_W
  3995. -- : BFD_RELOC_ARC_32_ME
  3996. -- : BFD_RELOC_ARC_32_ME_S
  3997. -- : BFD_RELOC_ARC_N32_ME
  3998. -- : BFD_RELOC_ARC_SECTOFF_ME
  3999. -- : BFD_RELOC_ARC_SDA32_ME
  4000. -- : BFD_RELOC_ARC_W_ME
  4001. -- : BFD_RELOC_AC_SECTOFF_U8
  4002. -- : BFD_RELOC_AC_SECTOFF_U8_1
  4003. -- : BFD_RELOC_AC_SECTOFF_U8_2
  4004. -- : BFD_RELOC_AC_SECTOFF_S9
  4005. -- : BFD_RELOC_AC_SECTOFF_S9_1
  4006. -- : BFD_RELOC_AC_SECTOFF_S9_2
  4007. -- : BFD_RELOC_ARC_SECTOFF_ME_1
  4008. -- : BFD_RELOC_ARC_SECTOFF_ME_2
  4009. -- : BFD_RELOC_ARC_SECTOFF_1
  4010. -- : BFD_RELOC_ARC_SECTOFF_2
  4011. -- : BFD_RELOC_ARC_SDA_12
  4012. -- : BFD_RELOC_ARC_SDA16_ST2
  4013. -- : BFD_RELOC_ARC_32_PCREL
  4014. -- : BFD_RELOC_ARC_PC32
  4015. -- : BFD_RELOC_ARC_GOT32
  4016. -- : BFD_RELOC_ARC_GOTPC32
  4017. -- : BFD_RELOC_ARC_PLT32
  4018. -- : BFD_RELOC_ARC_COPY
  4019. -- : BFD_RELOC_ARC_GLOB_DAT
  4020. -- : BFD_RELOC_ARC_JMP_SLOT
  4021. -- : BFD_RELOC_ARC_RELATIVE
  4022. -- : BFD_RELOC_ARC_GOTOFF
  4023. -- : BFD_RELOC_ARC_GOTPC
  4024. -- : BFD_RELOC_ARC_S21W_PCREL_PLT
  4025. -- : BFD_RELOC_ARC_S25H_PCREL_PLT
  4026. -- : BFD_RELOC_ARC_TLS_DTPMOD
  4027. -- : BFD_RELOC_ARC_TLS_TPOFF
  4028. -- : BFD_RELOC_ARC_TLS_GD_GOT
  4029. -- : BFD_RELOC_ARC_TLS_GD_LD
  4030. -- : BFD_RELOC_ARC_TLS_GD_CALL
  4031. -- : BFD_RELOC_ARC_TLS_IE_GOT
  4032. -- : BFD_RELOC_ARC_TLS_DTPOFF
  4033. -- : BFD_RELOC_ARC_TLS_DTPOFF_S9
  4034. -- : BFD_RELOC_ARC_TLS_LE_S9
  4035. -- : BFD_RELOC_ARC_TLS_LE_32
  4036. -- : BFD_RELOC_ARC_S25W_PCREL_PLT
  4037. -- : BFD_RELOC_ARC_S21H_PCREL_PLT
  4038. -- : BFD_RELOC_ARC_NPS_CMEM16
  4039. -- : BFD_RELOC_ARC_JLI_SECTOFF
  4040. ARC relocs.
  4041. -- : BFD_RELOC_BFIN_16_IMM
  4042. ADI Blackfin 16 bit immediate absolute reloc.
  4043. -- : BFD_RELOC_BFIN_16_HIGH
  4044. ADI Blackfin 16 bit immediate absolute reloc higher 16 bits.
  4045. -- : BFD_RELOC_BFIN_4_PCREL
  4046. ADI Blackfin 'a' part of LSETUP.
  4047. -- : BFD_RELOC_BFIN_5_PCREL
  4048. ADI Blackfin.
  4049. -- : BFD_RELOC_BFIN_16_LOW
  4050. ADI Blackfin 16 bit immediate absolute reloc lower 16 bits.
  4051. -- : BFD_RELOC_BFIN_10_PCREL
  4052. ADI Blackfin.
  4053. -- : BFD_RELOC_BFIN_11_PCREL
  4054. ADI Blackfin 'b' part of LSETUP.
  4055. -- : BFD_RELOC_BFIN_12_PCREL_JUMP
  4056. ADI Blackfin.
  4057. -- : BFD_RELOC_BFIN_12_PCREL_JUMP_S
  4058. ADI Blackfin Short jump, pcrel.
  4059. -- : BFD_RELOC_BFIN_24_PCREL_CALL_X
  4060. ADI Blackfin Call.x not implemented.
  4061. -- : BFD_RELOC_BFIN_24_PCREL_JUMP_L
  4062. ADI Blackfin Long Jump pcrel.
  4063. -- : BFD_RELOC_BFIN_GOT17M4
  4064. -- : BFD_RELOC_BFIN_GOTHI
  4065. -- : BFD_RELOC_BFIN_GOTLO
  4066. -- : BFD_RELOC_BFIN_FUNCDESC
  4067. -- : BFD_RELOC_BFIN_FUNCDESC_GOT17M4
  4068. -- : BFD_RELOC_BFIN_FUNCDESC_GOTHI
  4069. -- : BFD_RELOC_BFIN_FUNCDESC_GOTLO
  4070. -- : BFD_RELOC_BFIN_FUNCDESC_VALUE
  4071. -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4
  4072. -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI
  4073. -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO
  4074. -- : BFD_RELOC_BFIN_GOTOFF17M4
  4075. -- : BFD_RELOC_BFIN_GOTOFFHI
  4076. -- : BFD_RELOC_BFIN_GOTOFFLO
  4077. ADI Blackfin FD-PIC relocations.
  4078. -- : BFD_RELOC_BFIN_GOT
  4079. ADI Blackfin GOT relocation.
  4080. -- : BFD_RELOC_BFIN_PLTPC
  4081. ADI Blackfin PLTPC relocation.
  4082. -- : BFD_ARELOC_BFIN_PUSH
  4083. ADI Blackfin arithmetic relocation.
  4084. -- : BFD_ARELOC_BFIN_CONST
  4085. ADI Blackfin arithmetic relocation.
  4086. -- : BFD_ARELOC_BFIN_ADD
  4087. ADI Blackfin arithmetic relocation.
  4088. -- : BFD_ARELOC_BFIN_SUB
  4089. ADI Blackfin arithmetic relocation.
  4090. -- : BFD_ARELOC_BFIN_MULT
  4091. ADI Blackfin arithmetic relocation.
  4092. -- : BFD_ARELOC_BFIN_DIV
  4093. ADI Blackfin arithmetic relocation.
  4094. -- : BFD_ARELOC_BFIN_MOD
  4095. ADI Blackfin arithmetic relocation.
  4096. -- : BFD_ARELOC_BFIN_LSHIFT
  4097. ADI Blackfin arithmetic relocation.
  4098. -- : BFD_ARELOC_BFIN_RSHIFT
  4099. ADI Blackfin arithmetic relocation.
  4100. -- : BFD_ARELOC_BFIN_AND
  4101. ADI Blackfin arithmetic relocation.
  4102. -- : BFD_ARELOC_BFIN_OR
  4103. ADI Blackfin arithmetic relocation.
  4104. -- : BFD_ARELOC_BFIN_XOR
  4105. ADI Blackfin arithmetic relocation.
  4106. -- : BFD_ARELOC_BFIN_LAND
  4107. ADI Blackfin arithmetic relocation.
  4108. -- : BFD_ARELOC_BFIN_LOR
  4109. ADI Blackfin arithmetic relocation.
  4110. -- : BFD_ARELOC_BFIN_LEN
  4111. ADI Blackfin arithmetic relocation.
  4112. -- : BFD_ARELOC_BFIN_NEG
  4113. ADI Blackfin arithmetic relocation.
  4114. -- : BFD_ARELOC_BFIN_COMP
  4115. ADI Blackfin arithmetic relocation.
  4116. -- : BFD_ARELOC_BFIN_PAGE
  4117. ADI Blackfin arithmetic relocation.
  4118. -- : BFD_ARELOC_BFIN_HWPAGE
  4119. ADI Blackfin arithmetic relocation.
  4120. -- : BFD_ARELOC_BFIN_ADDR
  4121. ADI Blackfin arithmetic relocation.
  4122. -- : BFD_RELOC_D10V_10_PCREL_R
  4123. Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2
  4124. bits assumed to be 0.
  4125. -- : BFD_RELOC_D10V_10_PCREL_L
  4126. Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2
  4127. bits assumed to be 0. This is the same as the previous reloc
  4128. except it is in the left container, i.e., shifted left 15 bits.
  4129. -- : BFD_RELOC_D10V_18
  4130. This is an 18-bit reloc with the right 2 bits assumed to be 0.
  4131. -- : BFD_RELOC_D10V_18_PCREL
  4132. This is an 18-bit reloc with the right 2 bits assumed to be 0.
  4133. -- : BFD_RELOC_D30V_6
  4134. Mitsubishi D30V relocs. This is a 6-bit absolute reloc.
  4135. -- : BFD_RELOC_D30V_9_PCREL
  4136. This is a 6-bit pc-relative reloc with the right 3 bits assumed to
  4137. be 0.
  4138. -- : BFD_RELOC_D30V_9_PCREL_R
  4139. This is a 6-bit pc-relative reloc with the right 3 bits assumed to
  4140. be 0. Same as the previous reloc but on the right side of the
  4141. container.
  4142. -- : BFD_RELOC_D30V_15
  4143. This is a 12-bit absolute reloc with the right 3 bitsassumed to be
  4144. 0.
  4145. -- : BFD_RELOC_D30V_15_PCREL
  4146. This is a 12-bit pc-relative reloc with the right 3 bits assumed to
  4147. be 0.
  4148. -- : BFD_RELOC_D30V_15_PCREL_R
  4149. This is a 12-bit pc-relative reloc with the right 3 bits assumed to
  4150. be 0. Same as the previous reloc but on the right side of the
  4151. container.
  4152. -- : BFD_RELOC_D30V_21
  4153. This is an 18-bit absolute reloc with the right 3 bits assumed to
  4154. be 0.
  4155. -- : BFD_RELOC_D30V_21_PCREL
  4156. This is an 18-bit pc-relative reloc with the right 3 bits assumed
  4157. to be 0.
  4158. -- : BFD_RELOC_D30V_21_PCREL_R
  4159. This is an 18-bit pc-relative reloc with the right 3 bits assumed
  4160. to be 0. Same as the previous reloc but on the right side of the
  4161. container.
  4162. -- : BFD_RELOC_D30V_32
  4163. This is a 32-bit absolute reloc.
  4164. -- : BFD_RELOC_D30V_32_PCREL
  4165. This is a 32-bit pc-relative reloc.
  4166. -- : BFD_RELOC_DLX_HI16_S
  4167. DLX relocs
  4168. -- : BFD_RELOC_DLX_LO16
  4169. DLX relocs
  4170. -- : BFD_RELOC_DLX_JMP26
  4171. DLX relocs
  4172. -- : BFD_RELOC_M32C_HI8
  4173. -- : BFD_RELOC_M32C_RL_JUMP
  4174. -- : BFD_RELOC_M32C_RL_1ADDR
  4175. -- : BFD_RELOC_M32C_RL_2ADDR
  4176. Renesas M16C/M32C Relocations.
  4177. -- : BFD_RELOC_M32R_24
  4178. Renesas M32R (formerly Mitsubishi M32R) relocs. This is a 24 bit
  4179. absolute address.
  4180. -- : BFD_RELOC_M32R_10_PCREL
  4181. This is a 10-bit pc-relative reloc with the right 2 bits assumed to
  4182. be 0.
  4183. -- : BFD_RELOC_M32R_18_PCREL
  4184. This is an 18-bit reloc with the right 2 bits assumed to be 0.
  4185. -- : BFD_RELOC_M32R_26_PCREL
  4186. This is a 26-bit reloc with the right 2 bits assumed to be 0.
  4187. -- : BFD_RELOC_M32R_HI16_ULO
  4188. This is a 16-bit reloc containing the high 16 bits of an address
  4189. used when the lower 16 bits are treated as unsigned.
  4190. -- : BFD_RELOC_M32R_HI16_SLO
  4191. This is a 16-bit reloc containing the high 16 bits of an address
  4192. used when the lower 16 bits are treated as signed.
  4193. -- : BFD_RELOC_M32R_LO16
  4194. This is a 16-bit reloc containing the lower 16 bits of an address.
  4195. -- : BFD_RELOC_M32R_SDA16
  4196. This is a 16-bit reloc containing the small data area offset for
  4197. use in add3, load, and store instructions.
  4198. -- : BFD_RELOC_M32R_GOT24
  4199. -- : BFD_RELOC_M32R_26_PLTREL
  4200. -- : BFD_RELOC_M32R_COPY
  4201. -- : BFD_RELOC_M32R_GLOB_DAT
  4202. -- : BFD_RELOC_M32R_JMP_SLOT
  4203. -- : BFD_RELOC_M32R_RELATIVE
  4204. -- : BFD_RELOC_M32R_GOTOFF
  4205. -- : BFD_RELOC_M32R_GOTOFF_HI_ULO
  4206. -- : BFD_RELOC_M32R_GOTOFF_HI_SLO
  4207. -- : BFD_RELOC_M32R_GOTOFF_LO
  4208. -- : BFD_RELOC_M32R_GOTPC24
  4209. -- : BFD_RELOC_M32R_GOT16_HI_ULO
  4210. -- : BFD_RELOC_M32R_GOT16_HI_SLO
  4211. -- : BFD_RELOC_M32R_GOT16_LO
  4212. -- : BFD_RELOC_M32R_GOTPC_HI_ULO
  4213. -- : BFD_RELOC_M32R_GOTPC_HI_SLO
  4214. -- : BFD_RELOC_M32R_GOTPC_LO
  4215. For PIC.
  4216. -- : BFD_RELOC_NDS32_20
  4217. NDS32 relocs. This is a 20 bit absolute address.
  4218. -- : BFD_RELOC_NDS32_9_PCREL
  4219. This is a 9-bit pc-relative reloc with the right 1 bit assumed to
  4220. be 0.
  4221. -- : BFD_RELOC_NDS32_WORD_9_PCREL
  4222. This is a 9-bit pc-relative reloc with the right 1 bit assumed to
  4223. be 0.
  4224. -- : BFD_RELOC_NDS32_15_PCREL
  4225. This is an 15-bit reloc with the right 1 bit assumed to be 0.
  4226. -- : BFD_RELOC_NDS32_17_PCREL
  4227. This is an 17-bit reloc with the right 1 bit assumed to be 0.
  4228. -- : BFD_RELOC_NDS32_25_PCREL
  4229. This is a 25-bit reloc with the right 1 bit assumed to be 0.
  4230. -- : BFD_RELOC_NDS32_HI20
  4231. This is a 20-bit reloc containing the high 20 bits of an address
  4232. used with the lower 12 bits
  4233. -- : BFD_RELOC_NDS32_LO12S3
  4234. This is a 12-bit reloc containing the lower 12 bits of an address
  4235. then shift right by 3. This is used with ldi,sdi...
  4236. -- : BFD_RELOC_NDS32_LO12S2
  4237. This is a 12-bit reloc containing the lower 12 bits of an address
  4238. then shift left by 2. This is used with lwi,swi...
  4239. -- : BFD_RELOC_NDS32_LO12S1
  4240. This is a 12-bit reloc containing the lower 12 bits of an address
  4241. then shift left by 1. This is used with lhi,shi...
  4242. -- : BFD_RELOC_NDS32_LO12S0
  4243. This is a 12-bit reloc containing the lower 12 bits of an address
  4244. then shift left by 0. This is used with lbisbi...
  4245. -- : BFD_RELOC_NDS32_LO12S0_ORI
  4246. This is a 12-bit reloc containing the lower 12 bits of an address
  4247. then shift left by 0. This is only used with branch relaxations
  4248. -- : BFD_RELOC_NDS32_SDA15S3
  4249. This is a 15-bit reloc containing the small data area 18-bit signed
  4250. offset and shift left by 3 for use in ldi, sdi...
  4251. -- : BFD_RELOC_NDS32_SDA15S2
  4252. This is a 15-bit reloc containing the small data area 17-bit signed
  4253. offset and shift left by 2 for use in lwi, swi...
  4254. -- : BFD_RELOC_NDS32_SDA15S1
  4255. This is a 15-bit reloc containing the small data area 16-bit signed
  4256. offset and shift left by 1 for use in lhi, shi...
  4257. -- : BFD_RELOC_NDS32_SDA15S0
  4258. This is a 15-bit reloc containing the small data area 15-bit signed
  4259. offset and shift left by 0 for use in lbi, sbi...
  4260. -- : BFD_RELOC_NDS32_SDA16S3
  4261. This is a 16-bit reloc containing the small data area 16-bit signed
  4262. offset and shift left by 3
  4263. -- : BFD_RELOC_NDS32_SDA17S2
  4264. This is a 17-bit reloc containing the small data area 17-bit signed
  4265. offset and shift left by 2 for use in lwi.gp, swi.gp...
  4266. -- : BFD_RELOC_NDS32_SDA18S1
  4267. This is a 18-bit reloc containing the small data area 18-bit signed
  4268. offset and shift left by 1 for use in lhi.gp, shi.gp...
  4269. -- : BFD_RELOC_NDS32_SDA19S0
  4270. This is a 19-bit reloc containing the small data area 19-bit signed
  4271. offset and shift left by 0 for use in lbi.gp, sbi.gp...
  4272. -- : BFD_RELOC_NDS32_GOT20
  4273. -- : BFD_RELOC_NDS32_9_PLTREL
  4274. -- : BFD_RELOC_NDS32_25_PLTREL
  4275. -- : BFD_RELOC_NDS32_COPY
  4276. -- : BFD_RELOC_NDS32_GLOB_DAT
  4277. -- : BFD_RELOC_NDS32_JMP_SLOT
  4278. -- : BFD_RELOC_NDS32_RELATIVE
  4279. -- : BFD_RELOC_NDS32_GOTOFF
  4280. -- : BFD_RELOC_NDS32_GOTOFF_HI20
  4281. -- : BFD_RELOC_NDS32_GOTOFF_LO12
  4282. -- : BFD_RELOC_NDS32_GOTPC20
  4283. -- : BFD_RELOC_NDS32_GOT_HI20
  4284. -- : BFD_RELOC_NDS32_GOT_LO12
  4285. -- : BFD_RELOC_NDS32_GOTPC_HI20
  4286. -- : BFD_RELOC_NDS32_GOTPC_LO12
  4287. for PIC
  4288. -- : BFD_RELOC_NDS32_INSN16
  4289. -- : BFD_RELOC_NDS32_LABEL
  4290. -- : BFD_RELOC_NDS32_LONGCALL1
  4291. -- : BFD_RELOC_NDS32_LONGCALL2
  4292. -- : BFD_RELOC_NDS32_LONGCALL3
  4293. -- : BFD_RELOC_NDS32_LONGJUMP1
  4294. -- : BFD_RELOC_NDS32_LONGJUMP2
  4295. -- : BFD_RELOC_NDS32_LONGJUMP3
  4296. -- : BFD_RELOC_NDS32_LOADSTORE
  4297. -- : BFD_RELOC_NDS32_9_FIXED
  4298. -- : BFD_RELOC_NDS32_15_FIXED
  4299. -- : BFD_RELOC_NDS32_17_FIXED
  4300. -- : BFD_RELOC_NDS32_25_FIXED
  4301. -- : BFD_RELOC_NDS32_LONGCALL4
  4302. -- : BFD_RELOC_NDS32_LONGCALL5
  4303. -- : BFD_RELOC_NDS32_LONGCALL6
  4304. -- : BFD_RELOC_NDS32_LONGJUMP4
  4305. -- : BFD_RELOC_NDS32_LONGJUMP5
  4306. -- : BFD_RELOC_NDS32_LONGJUMP6
  4307. -- : BFD_RELOC_NDS32_LONGJUMP7
  4308. for relax
  4309. -- : BFD_RELOC_NDS32_PLTREL_HI20
  4310. -- : BFD_RELOC_NDS32_PLTREL_LO12
  4311. -- : BFD_RELOC_NDS32_PLT_GOTREL_HI20
  4312. -- : BFD_RELOC_NDS32_PLT_GOTREL_LO12
  4313. for PIC
  4314. -- : BFD_RELOC_NDS32_SDA12S2_DP
  4315. -- : BFD_RELOC_NDS32_SDA12S2_SP
  4316. -- : BFD_RELOC_NDS32_LO12S2_DP
  4317. -- : BFD_RELOC_NDS32_LO12S2_SP
  4318. for floating point
  4319. -- : BFD_RELOC_NDS32_DWARF2_OP1
  4320. -- : BFD_RELOC_NDS32_DWARF2_OP2
  4321. -- : BFD_RELOC_NDS32_DWARF2_LEB
  4322. for dwarf2 debug_line.
  4323. -- : BFD_RELOC_NDS32_UPDATE_TA
  4324. for eliminate 16-bit instructions
  4325. -- : BFD_RELOC_NDS32_PLT_GOTREL_LO20
  4326. -- : BFD_RELOC_NDS32_PLT_GOTREL_LO15
  4327. -- : BFD_RELOC_NDS32_PLT_GOTREL_LO19
  4328. -- : BFD_RELOC_NDS32_GOT_LO15
  4329. -- : BFD_RELOC_NDS32_GOT_LO19
  4330. -- : BFD_RELOC_NDS32_GOTOFF_LO15
  4331. -- : BFD_RELOC_NDS32_GOTOFF_LO19
  4332. -- : BFD_RELOC_NDS32_GOT15S2
  4333. -- : BFD_RELOC_NDS32_GOT17S2
  4334. for PIC object relaxation
  4335. -- : BFD_RELOC_NDS32_5
  4336. NDS32 relocs. This is a 5 bit absolute address.
  4337. -- : BFD_RELOC_NDS32_10_UPCREL
  4338. This is a 10-bit unsigned pc-relative reloc with the right 1 bit
  4339. assumed to be 0.
  4340. -- : BFD_RELOC_NDS32_SDA_FP7U2_RELA
  4341. If fp were omitted, fp can used as another gp.
  4342. -- : BFD_RELOC_NDS32_RELAX_ENTRY
  4343. -- : BFD_RELOC_NDS32_GOT_SUFF
  4344. -- : BFD_RELOC_NDS32_GOTOFF_SUFF
  4345. -- : BFD_RELOC_NDS32_PLT_GOT_SUFF
  4346. -- : BFD_RELOC_NDS32_MULCALL_SUFF
  4347. -- : BFD_RELOC_NDS32_PTR
  4348. -- : BFD_RELOC_NDS32_PTR_COUNT
  4349. -- : BFD_RELOC_NDS32_PTR_RESOLVED
  4350. -- : BFD_RELOC_NDS32_PLTBLOCK
  4351. -- : BFD_RELOC_NDS32_RELAX_REGION_BEGIN
  4352. -- : BFD_RELOC_NDS32_RELAX_REGION_END
  4353. -- : BFD_RELOC_NDS32_MINUEND
  4354. -- : BFD_RELOC_NDS32_SUBTRAHEND
  4355. -- : BFD_RELOC_NDS32_DIFF8
  4356. -- : BFD_RELOC_NDS32_DIFF16
  4357. -- : BFD_RELOC_NDS32_DIFF32
  4358. -- : BFD_RELOC_NDS32_DIFF_ULEB128
  4359. -- : BFD_RELOC_NDS32_EMPTY
  4360. relaxation relative relocation types
  4361. -- : BFD_RELOC_NDS32_25_ABS
  4362. This is a 25 bit absolute address.
  4363. -- : BFD_RELOC_NDS32_DATA
  4364. -- : BFD_RELOC_NDS32_TRAN
  4365. -- : BFD_RELOC_NDS32_17IFC_PCREL
  4366. -- : BFD_RELOC_NDS32_10IFCU_PCREL
  4367. For ex9 and ifc using.
  4368. -- : BFD_RELOC_NDS32_TPOFF
  4369. -- : BFD_RELOC_NDS32_GOTTPOFF
  4370. -- : BFD_RELOC_NDS32_TLS_LE_HI20
  4371. -- : BFD_RELOC_NDS32_TLS_LE_LO12
  4372. -- : BFD_RELOC_NDS32_TLS_LE_20
  4373. -- : BFD_RELOC_NDS32_TLS_LE_15S0
  4374. -- : BFD_RELOC_NDS32_TLS_LE_15S1
  4375. -- : BFD_RELOC_NDS32_TLS_LE_15S2
  4376. -- : BFD_RELOC_NDS32_TLS_LE_ADD
  4377. -- : BFD_RELOC_NDS32_TLS_LE_LS
  4378. -- : BFD_RELOC_NDS32_TLS_IE_HI20
  4379. -- : BFD_RELOC_NDS32_TLS_IE_LO12
  4380. -- : BFD_RELOC_NDS32_TLS_IE_LO12S2
  4381. -- : BFD_RELOC_NDS32_TLS_IEGP_HI20
  4382. -- : BFD_RELOC_NDS32_TLS_IEGP_LO12
  4383. -- : BFD_RELOC_NDS32_TLS_IEGP_LO12S2
  4384. -- : BFD_RELOC_NDS32_TLS_IEGP_LW
  4385. -- : BFD_RELOC_NDS32_TLS_DESC
  4386. -- : BFD_RELOC_NDS32_TLS_DESC_HI20
  4387. -- : BFD_RELOC_NDS32_TLS_DESC_LO12
  4388. -- : BFD_RELOC_NDS32_TLS_DESC_20
  4389. -- : BFD_RELOC_NDS32_TLS_DESC_SDA17S2
  4390. -- : BFD_RELOC_NDS32_TLS_DESC_ADD
  4391. -- : BFD_RELOC_NDS32_TLS_DESC_FUNC
  4392. -- : BFD_RELOC_NDS32_TLS_DESC_CALL
  4393. -- : BFD_RELOC_NDS32_TLS_DESC_MEM
  4394. -- : BFD_RELOC_NDS32_REMOVE
  4395. -- : BFD_RELOC_NDS32_GROUP
  4396. For TLS.
  4397. -- : BFD_RELOC_NDS32_LSI
  4398. For floating load store relaxation.
  4399. -- : BFD_RELOC_V850_9_PCREL
  4400. This is a 9-bit reloc
  4401. -- : BFD_RELOC_V850_22_PCREL
  4402. This is a 22-bit reloc
  4403. -- : BFD_RELOC_V850_SDA_16_16_OFFSET
  4404. This is a 16 bit offset from the short data area pointer.
  4405. -- : BFD_RELOC_V850_SDA_15_16_OFFSET
  4406. This is a 16 bit offset (of which only 15 bits are used) from the
  4407. short data area pointer.
  4408. -- : BFD_RELOC_V850_ZDA_16_16_OFFSET
  4409. This is a 16 bit offset from the zero data area pointer.
  4410. -- : BFD_RELOC_V850_ZDA_15_16_OFFSET
  4411. This is a 16 bit offset (of which only 15 bits are used) from the
  4412. zero data area pointer.
  4413. -- : BFD_RELOC_V850_TDA_6_8_OFFSET
  4414. This is an 8 bit offset (of which only 6 bits are used) from the
  4415. tiny data area pointer.
  4416. -- : BFD_RELOC_V850_TDA_7_8_OFFSET
  4417. This is an 8bit offset (of which only 7 bits are used) from the
  4418. tiny data area pointer.
  4419. -- : BFD_RELOC_V850_TDA_7_7_OFFSET
  4420. This is a 7 bit offset from the tiny data area pointer.
  4421. -- : BFD_RELOC_V850_TDA_16_16_OFFSET
  4422. This is a 16 bit offset from the tiny data area pointer.
  4423. -- : BFD_RELOC_V850_TDA_4_5_OFFSET
  4424. This is a 5 bit offset (of which only 4 bits are used) from the
  4425. tiny data area pointer.
  4426. -- : BFD_RELOC_V850_TDA_4_4_OFFSET
  4427. This is a 4 bit offset from the tiny data area pointer.
  4428. -- : BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET
  4429. This is a 16 bit offset from the short data area pointer, with the
  4430. bits placed non-contiguously in the instruction.
  4431. -- : BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET
  4432. This is a 16 bit offset from the zero data area pointer, with the
  4433. bits placed non-contiguously in the instruction.
  4434. -- : BFD_RELOC_V850_CALLT_6_7_OFFSET
  4435. This is a 6 bit offset from the call table base pointer.
  4436. -- : BFD_RELOC_V850_CALLT_16_16_OFFSET
  4437. This is a 16 bit offset from the call table base pointer.
  4438. -- : BFD_RELOC_V850_LONGCALL
  4439. Used for relaxing indirect function calls.
  4440. -- : BFD_RELOC_V850_LONGJUMP
  4441. Used for relaxing indirect jumps.
  4442. -- : BFD_RELOC_V850_ALIGN
  4443. Used to maintain alignment whilst relaxing.
  4444. -- : BFD_RELOC_V850_LO16_SPLIT_OFFSET
  4445. This is a variation of BFD_RELOC_LO16 that can be used in v850e
  4446. ld.bu instructions.
  4447. -- : BFD_RELOC_V850_16_PCREL
  4448. This is a 16-bit reloc.
  4449. -- : BFD_RELOC_V850_17_PCREL
  4450. This is a 17-bit reloc.
  4451. -- : BFD_RELOC_V850_23
  4452. This is a 23-bit reloc.
  4453. -- : BFD_RELOC_V850_32_PCREL
  4454. This is a 32-bit reloc.
  4455. -- : BFD_RELOC_V850_32_ABS
  4456. This is a 32-bit reloc.
  4457. -- : BFD_RELOC_V850_16_SPLIT_OFFSET
  4458. This is a 16-bit reloc.
  4459. -- : BFD_RELOC_V850_16_S1
  4460. This is a 16-bit reloc.
  4461. -- : BFD_RELOC_V850_LO16_S1
  4462. Low 16 bits. 16 bit shifted by 1.
  4463. -- : BFD_RELOC_V850_CALLT_15_16_OFFSET
  4464. This is a 16 bit offset from the call table base pointer.
  4465. -- : BFD_RELOC_V850_32_GOTPCREL
  4466. DSO relocations.
  4467. -- : BFD_RELOC_V850_16_GOT
  4468. DSO relocations.
  4469. -- : BFD_RELOC_V850_32_GOT
  4470. DSO relocations.
  4471. -- : BFD_RELOC_V850_22_PLT_PCREL
  4472. DSO relocations.
  4473. -- : BFD_RELOC_V850_32_PLT_PCREL
  4474. DSO relocations.
  4475. -- : BFD_RELOC_V850_COPY
  4476. DSO relocations.
  4477. -- : BFD_RELOC_V850_GLOB_DAT
  4478. DSO relocations.
  4479. -- : BFD_RELOC_V850_JMP_SLOT
  4480. DSO relocations.
  4481. -- : BFD_RELOC_V850_RELATIVE
  4482. DSO relocations.
  4483. -- : BFD_RELOC_V850_16_GOTOFF
  4484. DSO relocations.
  4485. -- : BFD_RELOC_V850_32_GOTOFF
  4486. DSO relocations.
  4487. -- : BFD_RELOC_V850_CODE
  4488. start code.
  4489. -- : BFD_RELOC_V850_DATA
  4490. start data in text.
  4491. -- : BFD_RELOC_TIC30_LDP
  4492. This is a 8bit DP reloc for the tms320c30, where the most
  4493. significant 8 bits of a 24 bit word are placed into the least
  4494. significant 8 bits of the opcode.
  4495. -- : BFD_RELOC_TIC54X_PARTLS7
  4496. This is a 7bit reloc for the tms320c54x, where the least
  4497. significant 7 bits of a 16 bit word are placed into the least
  4498. significant 7 bits of the opcode.
  4499. -- : BFD_RELOC_TIC54X_PARTMS9
  4500. This is a 9bit DP reloc for the tms320c54x, where the most
  4501. significant 9 bits of a 16 bit word are placed into the least
  4502. significant 9 bits of the opcode.
  4503. -- : BFD_RELOC_TIC54X_23
  4504. This is an extended address 23-bit reloc for the tms320c54x.
  4505. -- : BFD_RELOC_TIC54X_16_OF_23
  4506. This is a 16-bit reloc for the tms320c54x, where the least
  4507. significant 16 bits of a 23-bit extended address are placed into
  4508. the opcode.
  4509. -- : BFD_RELOC_TIC54X_MS7_OF_23
  4510. This is a reloc for the tms320c54x, where the most significant 7
  4511. bits of a 23-bit extended address are placed into the opcode.
  4512. -- : BFD_RELOC_C6000_PCR_S21
  4513. -- : BFD_RELOC_C6000_PCR_S12
  4514. -- : BFD_RELOC_C6000_PCR_S10
  4515. -- : BFD_RELOC_C6000_PCR_S7
  4516. -- : BFD_RELOC_C6000_ABS_S16
  4517. -- : BFD_RELOC_C6000_ABS_L16
  4518. -- : BFD_RELOC_C6000_ABS_H16
  4519. -- : BFD_RELOC_C6000_SBR_U15_B
  4520. -- : BFD_RELOC_C6000_SBR_U15_H
  4521. -- : BFD_RELOC_C6000_SBR_U15_W
  4522. -- : BFD_RELOC_C6000_SBR_S16
  4523. -- : BFD_RELOC_C6000_SBR_L16_B
  4524. -- : BFD_RELOC_C6000_SBR_L16_H
  4525. -- : BFD_RELOC_C6000_SBR_L16_W
  4526. -- : BFD_RELOC_C6000_SBR_H16_B
  4527. -- : BFD_RELOC_C6000_SBR_H16_H
  4528. -- : BFD_RELOC_C6000_SBR_H16_W
  4529. -- : BFD_RELOC_C6000_SBR_GOT_U15_W
  4530. -- : BFD_RELOC_C6000_SBR_GOT_L16_W
  4531. -- : BFD_RELOC_C6000_SBR_GOT_H16_W
  4532. -- : BFD_RELOC_C6000_DSBT_INDEX
  4533. -- : BFD_RELOC_C6000_PREL31
  4534. -- : BFD_RELOC_C6000_COPY
  4535. -- : BFD_RELOC_C6000_JUMP_SLOT
  4536. -- : BFD_RELOC_C6000_EHTYPE
  4537. -- : BFD_RELOC_C6000_PCR_H16
  4538. -- : BFD_RELOC_C6000_PCR_L16
  4539. -- : BFD_RELOC_C6000_ALIGN
  4540. -- : BFD_RELOC_C6000_FPHEAD
  4541. -- : BFD_RELOC_C6000_NOCMP
  4542. TMS320C6000 relocations.
  4543. -- : BFD_RELOC_FR30_48
  4544. This is a 48 bit reloc for the FR30 that stores 32 bits.
  4545. -- : BFD_RELOC_FR30_20
  4546. This is a 32 bit reloc for the FR30 that stores 20 bits split up
  4547. into two sections.
  4548. -- : BFD_RELOC_FR30_6_IN_4
  4549. This is a 16 bit reloc for the FR30 that stores a 6 bit word offset
  4550. in 4 bits.
  4551. -- : BFD_RELOC_FR30_8_IN_8
  4552. This is a 16 bit reloc for the FR30 that stores an 8 bit byte
  4553. offset into 8 bits.
  4554. -- : BFD_RELOC_FR30_9_IN_8
  4555. This is a 16 bit reloc for the FR30 that stores a 9 bit short
  4556. offset into 8 bits.
  4557. -- : BFD_RELOC_FR30_10_IN_8
  4558. This is a 16 bit reloc for the FR30 that stores a 10 bit word
  4559. offset into 8 bits.
  4560. -- : BFD_RELOC_FR30_9_PCREL
  4561. This is a 16 bit reloc for the FR30 that stores a 9 bit pc relative
  4562. short offset into 8 bits.
  4563. -- : BFD_RELOC_FR30_12_PCREL
  4564. This is a 16 bit reloc for the FR30 that stores a 12 bit pc
  4565. relative short offset into 11 bits.
  4566. -- : BFD_RELOC_MCORE_PCREL_IMM8BY4
  4567. -- : BFD_RELOC_MCORE_PCREL_IMM11BY2
  4568. -- : BFD_RELOC_MCORE_PCREL_IMM4BY2
  4569. -- : BFD_RELOC_MCORE_PCREL_32
  4570. -- : BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2
  4571. -- : BFD_RELOC_MCORE_RVA
  4572. Motorola Mcore relocations.
  4573. -- : BFD_RELOC_MEP_8
  4574. -- : BFD_RELOC_MEP_16
  4575. -- : BFD_RELOC_MEP_32
  4576. -- : BFD_RELOC_MEP_PCREL8A2
  4577. -- : BFD_RELOC_MEP_PCREL12A2
  4578. -- : BFD_RELOC_MEP_PCREL17A2
  4579. -- : BFD_RELOC_MEP_PCREL24A2
  4580. -- : BFD_RELOC_MEP_PCABS24A2
  4581. -- : BFD_RELOC_MEP_LOW16
  4582. -- : BFD_RELOC_MEP_HI16U
  4583. -- : BFD_RELOC_MEP_HI16S
  4584. -- : BFD_RELOC_MEP_GPREL
  4585. -- : BFD_RELOC_MEP_TPREL
  4586. -- : BFD_RELOC_MEP_TPREL7
  4587. -- : BFD_RELOC_MEP_TPREL7A2
  4588. -- : BFD_RELOC_MEP_TPREL7A4
  4589. -- : BFD_RELOC_MEP_UIMM24
  4590. -- : BFD_RELOC_MEP_ADDR24A4
  4591. -- : BFD_RELOC_MEP_GNU_VTINHERIT
  4592. -- : BFD_RELOC_MEP_GNU_VTENTRY
  4593. Toshiba Media Processor Relocations.
  4594. -- : BFD_RELOC_METAG_HIADDR16
  4595. -- : BFD_RELOC_METAG_LOADDR16
  4596. -- : BFD_RELOC_METAG_RELBRANCH
  4597. -- : BFD_RELOC_METAG_GETSETOFF
  4598. -- : BFD_RELOC_METAG_HIOG
  4599. -- : BFD_RELOC_METAG_LOOG
  4600. -- : BFD_RELOC_METAG_REL8
  4601. -- : BFD_RELOC_METAG_REL16
  4602. -- : BFD_RELOC_METAG_HI16_GOTOFF
  4603. -- : BFD_RELOC_METAG_LO16_GOTOFF
  4604. -- : BFD_RELOC_METAG_GETSET_GOTOFF
  4605. -- : BFD_RELOC_METAG_GETSET_GOT
  4606. -- : BFD_RELOC_METAG_HI16_GOTPC
  4607. -- : BFD_RELOC_METAG_LO16_GOTPC
  4608. -- : BFD_RELOC_METAG_HI16_PLT
  4609. -- : BFD_RELOC_METAG_LO16_PLT
  4610. -- : BFD_RELOC_METAG_RELBRANCH_PLT
  4611. -- : BFD_RELOC_METAG_GOTOFF
  4612. -- : BFD_RELOC_METAG_PLT
  4613. -- : BFD_RELOC_METAG_COPY
  4614. -- : BFD_RELOC_METAG_JMP_SLOT
  4615. -- : BFD_RELOC_METAG_RELATIVE
  4616. -- : BFD_RELOC_METAG_GLOB_DAT
  4617. -- : BFD_RELOC_METAG_TLS_GD
  4618. -- : BFD_RELOC_METAG_TLS_LDM
  4619. -- : BFD_RELOC_METAG_TLS_LDO_HI16
  4620. -- : BFD_RELOC_METAG_TLS_LDO_LO16
  4621. -- : BFD_RELOC_METAG_TLS_LDO
  4622. -- : BFD_RELOC_METAG_TLS_IE
  4623. -- : BFD_RELOC_METAG_TLS_IENONPIC
  4624. -- : BFD_RELOC_METAG_TLS_IENONPIC_HI16
  4625. -- : BFD_RELOC_METAG_TLS_IENONPIC_LO16
  4626. -- : BFD_RELOC_METAG_TLS_TPOFF
  4627. -- : BFD_RELOC_METAG_TLS_DTPMOD
  4628. -- : BFD_RELOC_METAG_TLS_DTPOFF
  4629. -- : BFD_RELOC_METAG_TLS_LE
  4630. -- : BFD_RELOC_METAG_TLS_LE_HI16
  4631. -- : BFD_RELOC_METAG_TLS_LE_LO16
  4632. Imagination Technologies Meta relocations.
  4633. -- : BFD_RELOC_MMIX_GETA
  4634. -- : BFD_RELOC_MMIX_GETA_1
  4635. -- : BFD_RELOC_MMIX_GETA_2
  4636. -- : BFD_RELOC_MMIX_GETA_3
  4637. These are relocations for the GETA instruction.
  4638. -- : BFD_RELOC_MMIX_CBRANCH
  4639. -- : BFD_RELOC_MMIX_CBRANCH_J
  4640. -- : BFD_RELOC_MMIX_CBRANCH_1
  4641. -- : BFD_RELOC_MMIX_CBRANCH_2
  4642. -- : BFD_RELOC_MMIX_CBRANCH_3
  4643. These are relocations for a conditional branch instruction.
  4644. -- : BFD_RELOC_MMIX_PUSHJ
  4645. -- : BFD_RELOC_MMIX_PUSHJ_1
  4646. -- : BFD_RELOC_MMIX_PUSHJ_2
  4647. -- : BFD_RELOC_MMIX_PUSHJ_3
  4648. -- : BFD_RELOC_MMIX_PUSHJ_STUBBABLE
  4649. These are relocations for the PUSHJ instruction.
  4650. -- : BFD_RELOC_MMIX_JMP
  4651. -- : BFD_RELOC_MMIX_JMP_1
  4652. -- : BFD_RELOC_MMIX_JMP_2
  4653. -- : BFD_RELOC_MMIX_JMP_3
  4654. These are relocations for the JMP instruction.
  4655. -- : BFD_RELOC_MMIX_ADDR19
  4656. This is a relocation for a relative address as in a GETA
  4657. instruction or a branch.
  4658. -- : BFD_RELOC_MMIX_ADDR27
  4659. This is a relocation for a relative address as in a JMP
  4660. instruction.
  4661. -- : BFD_RELOC_MMIX_REG_OR_BYTE
  4662. This is a relocation for an instruction field that may be a general
  4663. register or a value 0..255.
  4664. -- : BFD_RELOC_MMIX_REG
  4665. This is a relocation for an instruction field that may be a general
  4666. register.
  4667. -- : BFD_RELOC_MMIX_BASE_PLUS_OFFSET
  4668. This is a relocation for two instruction fields holding a register
  4669. and an offset, the equivalent of the relocation.
  4670. -- : BFD_RELOC_MMIX_LOCAL
  4671. This relocation is an assertion that the expression is not
  4672. allocated as a global register. It does not modify contents.
  4673. -- : BFD_RELOC_AVR_7_PCREL
  4674. This is a 16 bit reloc for the AVR that stores 8 bit pc relative
  4675. short offset into 7 bits.
  4676. -- : BFD_RELOC_AVR_13_PCREL
  4677. This is a 16 bit reloc for the AVR that stores 13 bit pc relative
  4678. short offset into 12 bits.
  4679. -- : BFD_RELOC_AVR_16_PM
  4680. This is a 16 bit reloc for the AVR that stores 17 bit value
  4681. (usually program memory address) into 16 bits.
  4682. -- : BFD_RELOC_AVR_LO8_LDI
  4683. This is a 16 bit reloc for the AVR that stores 8 bit value (usually
  4684. data memory address) into 8 bit immediate value of LDI insn.
  4685. -- : BFD_RELOC_AVR_HI8_LDI
  4686. This is a 16 bit reloc for the AVR that stores 8 bit value (high 8
  4687. bit of data memory address) into 8 bit immediate value of LDI insn.
  4688. -- : BFD_RELOC_AVR_HH8_LDI
  4689. This is a 16 bit reloc for the AVR that stores 8 bit value (most
  4690. high 8 bit of program memory address) into 8 bit immediate value of
  4691. LDI insn.
  4692. -- : BFD_RELOC_AVR_MS8_LDI
  4693. This is a 16 bit reloc for the AVR that stores 8 bit value (most
  4694. high 8 bit of 32 bit value) into 8 bit immediate value of LDI insn.
  4695. -- : BFD_RELOC_AVR_LO8_LDI_NEG
  4696. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4697. (usually data memory address) into 8 bit immediate value of SUBI
  4698. insn.
  4699. -- : BFD_RELOC_AVR_HI8_LDI_NEG
  4700. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4701. (high 8 bit of data memory address) into 8 bit immediate value of
  4702. SUBI insn.
  4703. -- : BFD_RELOC_AVR_HH8_LDI_NEG
  4704. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4705. (most high 8 bit of program memory address) into 8 bit immediate
  4706. value of LDI or SUBI insn.
  4707. -- : BFD_RELOC_AVR_MS8_LDI_NEG
  4708. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4709. (msb of 32 bit value) into 8 bit immediate value of LDI insn.
  4710. -- : BFD_RELOC_AVR_LO8_LDI_PM
  4711. This is a 16 bit reloc for the AVR that stores 8 bit value (usually
  4712. command address) into 8 bit immediate value of LDI insn.
  4713. -- : BFD_RELOC_AVR_LO8_LDI_GS
  4714. This is a 16 bit reloc for the AVR that stores 8 bit value (command
  4715. address) into 8 bit immediate value of LDI insn. If the address is
  4716. beyond the 128k boundary, the linker inserts a jump stub for this
  4717. reloc in the lower 128k.
  4718. -- : BFD_RELOC_AVR_HI8_LDI_PM
  4719. This is a 16 bit reloc for the AVR that stores 8 bit value (high 8
  4720. bit of command address) into 8 bit immediate value of LDI insn.
  4721. -- : BFD_RELOC_AVR_HI8_LDI_GS
  4722. This is a 16 bit reloc for the AVR that stores 8 bit value (high 8
  4723. bit of command address) into 8 bit immediate value of LDI insn. If
  4724. the address is beyond the 128k boundary, the linker inserts a jump
  4725. stub for this reloc below 128k.
  4726. -- : BFD_RELOC_AVR_HH8_LDI_PM
  4727. This is a 16 bit reloc for the AVR that stores 8 bit value (most
  4728. high 8 bit of command address) into 8 bit immediate value of LDI
  4729. insn.
  4730. -- : BFD_RELOC_AVR_LO8_LDI_PM_NEG
  4731. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4732. (usually command address) into 8 bit immediate value of SUBI insn.
  4733. -- : BFD_RELOC_AVR_HI8_LDI_PM_NEG
  4734. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4735. (high 8 bit of 16 bit command address) into 8 bit immediate value
  4736. of SUBI insn.
  4737. -- : BFD_RELOC_AVR_HH8_LDI_PM_NEG
  4738. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4739. (high 6 bit of 22 bit command address) into 8 bit immediate value
  4740. of SUBI insn.
  4741. -- : BFD_RELOC_AVR_CALL
  4742. This is a 32 bit reloc for the AVR that stores 23 bit value into 22
  4743. bits.
  4744. -- : BFD_RELOC_AVR_LDI
  4745. This is a 16 bit reloc for the AVR that stores all needed bits for
  4746. absolute addressing with ldi with overflow check to linktime
  4747. -- : BFD_RELOC_AVR_6
  4748. This is a 6 bit reloc for the AVR that stores offset for ldd/std
  4749. instructions
  4750. -- : BFD_RELOC_AVR_6_ADIW
  4751. This is a 6 bit reloc for the AVR that stores offset for adiw/sbiw
  4752. instructions
  4753. -- : BFD_RELOC_AVR_8_LO
  4754. This is a 8 bit reloc for the AVR that stores bits 0..7 of a symbol
  4755. in .byte lo8(symbol)
  4756. -- : BFD_RELOC_AVR_8_HI
  4757. This is a 8 bit reloc for the AVR that stores bits 8..15 of a
  4758. symbol in .byte hi8(symbol)
  4759. -- : BFD_RELOC_AVR_8_HLO
  4760. This is a 8 bit reloc for the AVR that stores bits 16..23 of a
  4761. symbol in .byte hlo8(symbol)
  4762. -- : BFD_RELOC_AVR_DIFF8
  4763. -- : BFD_RELOC_AVR_DIFF16
  4764. -- : BFD_RELOC_AVR_DIFF32
  4765. AVR relocations to mark the difference of two local symbols. These
  4766. are only needed to support linker relaxation and can be ignored
  4767. when not relaxing. The field is set to the value of the difference
  4768. assuming no relaxation. The relocation encodes the position of the
  4769. second symbol so the linker can determine whether to adjust the
  4770. field value.
  4771. -- : BFD_RELOC_AVR_LDS_STS_16
  4772. This is a 7 bit reloc for the AVR that stores SRAM address for
  4773. 16bit lds and sts instructions supported only tiny core.
  4774. -- : BFD_RELOC_AVR_PORT6
  4775. This is a 6 bit reloc for the AVR that stores an I/O register
  4776. number for the IN and OUT instructions
  4777. -- : BFD_RELOC_AVR_PORT5
  4778. This is a 5 bit reloc for the AVR that stores an I/O register
  4779. number for the SBIC, SBIS, SBI and CBI instructions
  4780. -- : BFD_RELOC_RISCV_HI20
  4781. -- : BFD_RELOC_RISCV_PCREL_HI20
  4782. -- : BFD_RELOC_RISCV_PCREL_LO12_I
  4783. -- : BFD_RELOC_RISCV_PCREL_LO12_S
  4784. -- : BFD_RELOC_RISCV_LO12_I
  4785. -- : BFD_RELOC_RISCV_LO12_S
  4786. -- : BFD_RELOC_RISCV_GPREL12_I
  4787. -- : BFD_RELOC_RISCV_GPREL12_S
  4788. -- : BFD_RELOC_RISCV_TPREL_HI20
  4789. -- : BFD_RELOC_RISCV_TPREL_LO12_I
  4790. -- : BFD_RELOC_RISCV_TPREL_LO12_S
  4791. -- : BFD_RELOC_RISCV_TPREL_ADD
  4792. -- : BFD_RELOC_RISCV_CALL
  4793. -- : BFD_RELOC_RISCV_CALL_PLT
  4794. -- : BFD_RELOC_RISCV_ADD8
  4795. -- : BFD_RELOC_RISCV_ADD16
  4796. -- : BFD_RELOC_RISCV_ADD32
  4797. -- : BFD_RELOC_RISCV_ADD64
  4798. -- : BFD_RELOC_RISCV_SUB8
  4799. -- : BFD_RELOC_RISCV_SUB16
  4800. -- : BFD_RELOC_RISCV_SUB32
  4801. -- : BFD_RELOC_RISCV_SUB64
  4802. -- : BFD_RELOC_RISCV_GOT_HI20
  4803. -- : BFD_RELOC_RISCV_TLS_GOT_HI20
  4804. -- : BFD_RELOC_RISCV_TLS_GD_HI20
  4805. -- : BFD_RELOC_RISCV_JMP
  4806. -- : BFD_RELOC_RISCV_TLS_DTPMOD32
  4807. -- : BFD_RELOC_RISCV_TLS_DTPREL32
  4808. -- : BFD_RELOC_RISCV_TLS_DTPMOD64
  4809. -- : BFD_RELOC_RISCV_TLS_DTPREL64
  4810. -- : BFD_RELOC_RISCV_TLS_TPREL32
  4811. -- : BFD_RELOC_RISCV_TLS_TPREL64
  4812. -- : BFD_RELOC_RISCV_ALIGN
  4813. -- : BFD_RELOC_RISCV_RVC_BRANCH
  4814. -- : BFD_RELOC_RISCV_RVC_JUMP
  4815. -- : BFD_RELOC_RISCV_RVC_LUI
  4816. -- : BFD_RELOC_RISCV_GPREL_I
  4817. -- : BFD_RELOC_RISCV_GPREL_S
  4818. -- : BFD_RELOC_RISCV_TPREL_I
  4819. -- : BFD_RELOC_RISCV_TPREL_S
  4820. -- : BFD_RELOC_RISCV_RELAX
  4821. -- : BFD_RELOC_RISCV_CFA
  4822. -- : BFD_RELOC_RISCV_SUB6
  4823. -- : BFD_RELOC_RISCV_SET6
  4824. -- : BFD_RELOC_RISCV_SET8
  4825. -- : BFD_RELOC_RISCV_SET16
  4826. -- : BFD_RELOC_RISCV_SET32
  4827. -- : BFD_RELOC_RISCV_32_PCREL
  4828. RISC-V relocations.
  4829. -- : BFD_RELOC_RL78_NEG8
  4830. -- : BFD_RELOC_RL78_NEG16
  4831. -- : BFD_RELOC_RL78_NEG24
  4832. -- : BFD_RELOC_RL78_NEG32
  4833. -- : BFD_RELOC_RL78_16_OP
  4834. -- : BFD_RELOC_RL78_24_OP
  4835. -- : BFD_RELOC_RL78_32_OP
  4836. -- : BFD_RELOC_RL78_8U
  4837. -- : BFD_RELOC_RL78_16U
  4838. -- : BFD_RELOC_RL78_24U
  4839. -- : BFD_RELOC_RL78_DIR3U_PCREL
  4840. -- : BFD_RELOC_RL78_DIFF
  4841. -- : BFD_RELOC_RL78_GPRELB
  4842. -- : BFD_RELOC_RL78_GPRELW
  4843. -- : BFD_RELOC_RL78_GPRELL
  4844. -- : BFD_RELOC_RL78_SYM
  4845. -- : BFD_RELOC_RL78_OP_SUBTRACT
  4846. -- : BFD_RELOC_RL78_OP_NEG
  4847. -- : BFD_RELOC_RL78_OP_AND
  4848. -- : BFD_RELOC_RL78_OP_SHRA
  4849. -- : BFD_RELOC_RL78_ABS8
  4850. -- : BFD_RELOC_RL78_ABS16
  4851. -- : BFD_RELOC_RL78_ABS16_REV
  4852. -- : BFD_RELOC_RL78_ABS32
  4853. -- : BFD_RELOC_RL78_ABS32_REV
  4854. -- : BFD_RELOC_RL78_ABS16U
  4855. -- : BFD_RELOC_RL78_ABS16UW
  4856. -- : BFD_RELOC_RL78_ABS16UL
  4857. -- : BFD_RELOC_RL78_RELAX
  4858. -- : BFD_RELOC_RL78_HI16
  4859. -- : BFD_RELOC_RL78_HI8
  4860. -- : BFD_RELOC_RL78_LO16
  4861. -- : BFD_RELOC_RL78_CODE
  4862. -- : BFD_RELOC_RL78_SADDR
  4863. Renesas RL78 Relocations.
  4864. -- : BFD_RELOC_RX_NEG8
  4865. -- : BFD_RELOC_RX_NEG16
  4866. -- : BFD_RELOC_RX_NEG24
  4867. -- : BFD_RELOC_RX_NEG32
  4868. -- : BFD_RELOC_RX_16_OP
  4869. -- : BFD_RELOC_RX_24_OP
  4870. -- : BFD_RELOC_RX_32_OP
  4871. -- : BFD_RELOC_RX_8U
  4872. -- : BFD_RELOC_RX_16U
  4873. -- : BFD_RELOC_RX_24U
  4874. -- : BFD_RELOC_RX_DIR3U_PCREL
  4875. -- : BFD_RELOC_RX_DIFF
  4876. -- : BFD_RELOC_RX_GPRELB
  4877. -- : BFD_RELOC_RX_GPRELW
  4878. -- : BFD_RELOC_RX_GPRELL
  4879. -- : BFD_RELOC_RX_SYM
  4880. -- : BFD_RELOC_RX_OP_SUBTRACT
  4881. -- : BFD_RELOC_RX_OP_NEG
  4882. -- : BFD_RELOC_RX_ABS8
  4883. -- : BFD_RELOC_RX_ABS16
  4884. -- : BFD_RELOC_RX_ABS16_REV
  4885. -- : BFD_RELOC_RX_ABS32
  4886. -- : BFD_RELOC_RX_ABS32_REV
  4887. -- : BFD_RELOC_RX_ABS16U
  4888. -- : BFD_RELOC_RX_ABS16UW
  4889. -- : BFD_RELOC_RX_ABS16UL
  4890. -- : BFD_RELOC_RX_RELAX
  4891. Renesas RX Relocations.
  4892. -- : BFD_RELOC_390_12
  4893. Direct 12 bit.
  4894. -- : BFD_RELOC_390_GOT12
  4895. 12 bit GOT offset.
  4896. -- : BFD_RELOC_390_PLT32
  4897. 32 bit PC relative PLT address.
  4898. -- : BFD_RELOC_390_COPY
  4899. Copy symbol at runtime.
  4900. -- : BFD_RELOC_390_GLOB_DAT
  4901. Create GOT entry.
  4902. -- : BFD_RELOC_390_JMP_SLOT
  4903. Create PLT entry.
  4904. -- : BFD_RELOC_390_RELATIVE
  4905. Adjust by program base.
  4906. -- : BFD_RELOC_390_GOTPC
  4907. 32 bit PC relative offset to GOT.
  4908. -- : BFD_RELOC_390_GOT16
  4909. 16 bit GOT offset.
  4910. -- : BFD_RELOC_390_PC12DBL
  4911. PC relative 12 bit shifted by 1.
  4912. -- : BFD_RELOC_390_PLT12DBL
  4913. 12 bit PC rel. PLT shifted by 1.
  4914. -- : BFD_RELOC_390_PC16DBL
  4915. PC relative 16 bit shifted by 1.
  4916. -- : BFD_RELOC_390_PLT16DBL
  4917. 16 bit PC rel. PLT shifted by 1.
  4918. -- : BFD_RELOC_390_PC24DBL
  4919. PC relative 24 bit shifted by 1.
  4920. -- : BFD_RELOC_390_PLT24DBL
  4921. 24 bit PC rel. PLT shifted by 1.
  4922. -- : BFD_RELOC_390_PC32DBL
  4923. PC relative 32 bit shifted by 1.
  4924. -- : BFD_RELOC_390_PLT32DBL
  4925. 32 bit PC rel. PLT shifted by 1.
  4926. -- : BFD_RELOC_390_GOTPCDBL
  4927. 32 bit PC rel. GOT shifted by 1.
  4928. -- : BFD_RELOC_390_GOT64
  4929. 64 bit GOT offset.
  4930. -- : BFD_RELOC_390_PLT64
  4931. 64 bit PC relative PLT address.
  4932. -- : BFD_RELOC_390_GOTENT
  4933. 32 bit rel. offset to GOT entry.
  4934. -- : BFD_RELOC_390_GOTOFF64
  4935. 64 bit offset to GOT.
  4936. -- : BFD_RELOC_390_GOTPLT12
  4937. 12-bit offset to symbol-entry within GOT, with PLT handling.
  4938. -- : BFD_RELOC_390_GOTPLT16
  4939. 16-bit offset to symbol-entry within GOT, with PLT handling.
  4940. -- : BFD_RELOC_390_GOTPLT32
  4941. 32-bit offset to symbol-entry within GOT, with PLT handling.
  4942. -- : BFD_RELOC_390_GOTPLT64
  4943. 64-bit offset to symbol-entry within GOT, with PLT handling.
  4944. -- : BFD_RELOC_390_GOTPLTENT
  4945. 32-bit rel. offset to symbol-entry within GOT, with PLT handling.
  4946. -- : BFD_RELOC_390_PLTOFF16
  4947. 16-bit rel. offset from the GOT to a PLT entry.
  4948. -- : BFD_RELOC_390_PLTOFF32
  4949. 32-bit rel. offset from the GOT to a PLT entry.
  4950. -- : BFD_RELOC_390_PLTOFF64
  4951. 64-bit rel. offset from the GOT to a PLT entry.
  4952. -- : BFD_RELOC_390_TLS_LOAD
  4953. -- : BFD_RELOC_390_TLS_GDCALL
  4954. -- : BFD_RELOC_390_TLS_LDCALL
  4955. -- : BFD_RELOC_390_TLS_GD32
  4956. -- : BFD_RELOC_390_TLS_GD64
  4957. -- : BFD_RELOC_390_TLS_GOTIE12
  4958. -- : BFD_RELOC_390_TLS_GOTIE32
  4959. -- : BFD_RELOC_390_TLS_GOTIE64
  4960. -- : BFD_RELOC_390_TLS_LDM32
  4961. -- : BFD_RELOC_390_TLS_LDM64
  4962. -- : BFD_RELOC_390_TLS_IE32
  4963. -- : BFD_RELOC_390_TLS_IE64
  4964. -- : BFD_RELOC_390_TLS_IEENT
  4965. -- : BFD_RELOC_390_TLS_LE32
  4966. -- : BFD_RELOC_390_TLS_LE64
  4967. -- : BFD_RELOC_390_TLS_LDO32
  4968. -- : BFD_RELOC_390_TLS_LDO64
  4969. -- : BFD_RELOC_390_TLS_DTPMOD
  4970. -- : BFD_RELOC_390_TLS_DTPOFF
  4971. -- : BFD_RELOC_390_TLS_TPOFF
  4972. s390 tls relocations.
  4973. -- : BFD_RELOC_390_20
  4974. -- : BFD_RELOC_390_GOT20
  4975. -- : BFD_RELOC_390_GOTPLT20
  4976. -- : BFD_RELOC_390_TLS_GOTIE20
  4977. Long displacement extension.
  4978. -- : BFD_RELOC_390_IRELATIVE
  4979. STT_GNU_IFUNC relocation.
  4980. -- : BFD_RELOC_SCORE_GPREL15
  4981. Score relocations Low 16 bit for load/store
  4982. -- : BFD_RELOC_SCORE_DUMMY2
  4983. -- : BFD_RELOC_SCORE_JMP
  4984. This is a 24-bit reloc with the right 1 bit assumed to be 0
  4985. -- : BFD_RELOC_SCORE_BRANCH
  4986. This is a 19-bit reloc with the right 1 bit assumed to be 0
  4987. -- : BFD_RELOC_SCORE_IMM30
  4988. This is a 32-bit reloc for 48-bit instructions.
  4989. -- : BFD_RELOC_SCORE_IMM32
  4990. This is a 32-bit reloc for 48-bit instructions.
  4991. -- : BFD_RELOC_SCORE16_JMP
  4992. This is a 11-bit reloc with the right 1 bit assumed to be 0
  4993. -- : BFD_RELOC_SCORE16_BRANCH
  4994. This is a 8-bit reloc with the right 1 bit assumed to be 0
  4995. -- : BFD_RELOC_SCORE_BCMP
  4996. This is a 9-bit reloc with the right 1 bit assumed to be 0
  4997. -- : BFD_RELOC_SCORE_GOT15
  4998. -- : BFD_RELOC_SCORE_GOT_LO16
  4999. -- : BFD_RELOC_SCORE_CALL15
  5000. -- : BFD_RELOC_SCORE_DUMMY_HI16
  5001. Undocumented Score relocs
  5002. -- : BFD_RELOC_IP2K_FR9
  5003. Scenix IP2K - 9-bit register number / data address
  5004. -- : BFD_RELOC_IP2K_BANK
  5005. Scenix IP2K - 4-bit register/data bank number
  5006. -- : BFD_RELOC_IP2K_ADDR16CJP
  5007. Scenix IP2K - low 13 bits of instruction word address
  5008. -- : BFD_RELOC_IP2K_PAGE3
  5009. Scenix IP2K - high 3 bits of instruction word address
  5010. -- : BFD_RELOC_IP2K_LO8DATA
  5011. -- : BFD_RELOC_IP2K_HI8DATA
  5012. -- : BFD_RELOC_IP2K_EX8DATA
  5013. Scenix IP2K - ext/low/high 8 bits of data address
  5014. -- : BFD_RELOC_IP2K_LO8INSN
  5015. -- : BFD_RELOC_IP2K_HI8INSN
  5016. Scenix IP2K - low/high 8 bits of instruction word address
  5017. -- : BFD_RELOC_IP2K_PC_SKIP
  5018. Scenix IP2K - even/odd PC modifier to modify snb pcl.0
  5019. -- : BFD_RELOC_IP2K_TEXT
  5020. Scenix IP2K - 16 bit word address in text section.
  5021. -- : BFD_RELOC_IP2K_FR_OFFSET
  5022. Scenix IP2K - 7-bit sp or dp offset
  5023. -- : BFD_RELOC_VPE4KMATH_DATA
  5024. -- : BFD_RELOC_VPE4KMATH_INSN
  5025. Scenix VPE4K coprocessor - data/insn-space addressing
  5026. -- : BFD_RELOC_VTABLE_INHERIT
  5027. -- : BFD_RELOC_VTABLE_ENTRY
  5028. These two relocations are used by the linker to determine which of
  5029. the entries in a C++ virtual function table are actually used.
  5030. When the -gc-sections option is given, the linker will zero out the
  5031. entries that are not used, so that the code for those functions
  5032. need not be included in the output.
  5033. VTABLE_INHERIT is a zero-space relocation used to describe to the
  5034. linker the inheritance tree of a C++ virtual function table. The
  5035. relocation's symbol should be the parent class' vtable, and the
  5036. relocation should be located at the child vtable.
  5037. VTABLE_ENTRY is a zero-space relocation that describes the use of a
  5038. virtual function table entry. The reloc's symbol should refer to
  5039. the table of the class mentioned in the code. Off of that base, an
  5040. offset describes the entry that is being used. For Rela hosts,
  5041. this offset is stored in the reloc's addend. For Rel hosts, we are
  5042. forced to put this offset in the reloc's section offset.
  5043. -- : BFD_RELOC_IA64_IMM14
  5044. -- : BFD_RELOC_IA64_IMM22
  5045. -- : BFD_RELOC_IA64_IMM64
  5046. -- : BFD_RELOC_IA64_DIR32MSB
  5047. -- : BFD_RELOC_IA64_DIR32LSB
  5048. -- : BFD_RELOC_IA64_DIR64MSB
  5049. -- : BFD_RELOC_IA64_DIR64LSB
  5050. -- : BFD_RELOC_IA64_GPREL22
  5051. -- : BFD_RELOC_IA64_GPREL64I
  5052. -- : BFD_RELOC_IA64_GPREL32MSB
  5053. -- : BFD_RELOC_IA64_GPREL32LSB
  5054. -- : BFD_RELOC_IA64_GPREL64MSB
  5055. -- : BFD_RELOC_IA64_GPREL64LSB
  5056. -- : BFD_RELOC_IA64_LTOFF22
  5057. -- : BFD_RELOC_IA64_LTOFF64I
  5058. -- : BFD_RELOC_IA64_PLTOFF22
  5059. -- : BFD_RELOC_IA64_PLTOFF64I
  5060. -- : BFD_RELOC_IA64_PLTOFF64MSB
  5061. -- : BFD_RELOC_IA64_PLTOFF64LSB
  5062. -- : BFD_RELOC_IA64_FPTR64I
  5063. -- : BFD_RELOC_IA64_FPTR32MSB
  5064. -- : BFD_RELOC_IA64_FPTR32LSB
  5065. -- : BFD_RELOC_IA64_FPTR64MSB
  5066. -- : BFD_RELOC_IA64_FPTR64LSB
  5067. -- : BFD_RELOC_IA64_PCREL21B
  5068. -- : BFD_RELOC_IA64_PCREL21BI
  5069. -- : BFD_RELOC_IA64_PCREL21M
  5070. -- : BFD_RELOC_IA64_PCREL21F
  5071. -- : BFD_RELOC_IA64_PCREL22
  5072. -- : BFD_RELOC_IA64_PCREL60B
  5073. -- : BFD_RELOC_IA64_PCREL64I
  5074. -- : BFD_RELOC_IA64_PCREL32MSB
  5075. -- : BFD_RELOC_IA64_PCREL32LSB
  5076. -- : BFD_RELOC_IA64_PCREL64MSB
  5077. -- : BFD_RELOC_IA64_PCREL64LSB
  5078. -- : BFD_RELOC_IA64_LTOFF_FPTR22
  5079. -- : BFD_RELOC_IA64_LTOFF_FPTR64I
  5080. -- : BFD_RELOC_IA64_LTOFF_FPTR32MSB
  5081. -- : BFD_RELOC_IA64_LTOFF_FPTR32LSB
  5082. -- : BFD_RELOC_IA64_LTOFF_FPTR64MSB
  5083. -- : BFD_RELOC_IA64_LTOFF_FPTR64LSB
  5084. -- : BFD_RELOC_IA64_SEGREL32MSB
  5085. -- : BFD_RELOC_IA64_SEGREL32LSB
  5086. -- : BFD_RELOC_IA64_SEGREL64MSB
  5087. -- : BFD_RELOC_IA64_SEGREL64LSB
  5088. -- : BFD_RELOC_IA64_SECREL32MSB
  5089. -- : BFD_RELOC_IA64_SECREL32LSB
  5090. -- : BFD_RELOC_IA64_SECREL64MSB
  5091. -- : BFD_RELOC_IA64_SECREL64LSB
  5092. -- : BFD_RELOC_IA64_REL32MSB
  5093. -- : BFD_RELOC_IA64_REL32LSB
  5094. -- : BFD_RELOC_IA64_REL64MSB
  5095. -- : BFD_RELOC_IA64_REL64LSB
  5096. -- : BFD_RELOC_IA64_LTV32MSB
  5097. -- : BFD_RELOC_IA64_LTV32LSB
  5098. -- : BFD_RELOC_IA64_LTV64MSB
  5099. -- : BFD_RELOC_IA64_LTV64LSB
  5100. -- : BFD_RELOC_IA64_IPLTMSB
  5101. -- : BFD_RELOC_IA64_IPLTLSB
  5102. -- : BFD_RELOC_IA64_COPY
  5103. -- : BFD_RELOC_IA64_LTOFF22X
  5104. -- : BFD_RELOC_IA64_LDXMOV
  5105. -- : BFD_RELOC_IA64_TPREL14
  5106. -- : BFD_RELOC_IA64_TPREL22
  5107. -- : BFD_RELOC_IA64_TPREL64I
  5108. -- : BFD_RELOC_IA64_TPREL64MSB
  5109. -- : BFD_RELOC_IA64_TPREL64LSB
  5110. -- : BFD_RELOC_IA64_LTOFF_TPREL22
  5111. -- : BFD_RELOC_IA64_DTPMOD64MSB
  5112. -- : BFD_RELOC_IA64_DTPMOD64LSB
  5113. -- : BFD_RELOC_IA64_LTOFF_DTPMOD22
  5114. -- : BFD_RELOC_IA64_DTPREL14
  5115. -- : BFD_RELOC_IA64_DTPREL22
  5116. -- : BFD_RELOC_IA64_DTPREL64I
  5117. -- : BFD_RELOC_IA64_DTPREL32MSB
  5118. -- : BFD_RELOC_IA64_DTPREL32LSB
  5119. -- : BFD_RELOC_IA64_DTPREL64MSB
  5120. -- : BFD_RELOC_IA64_DTPREL64LSB
  5121. -- : BFD_RELOC_IA64_LTOFF_DTPREL22
  5122. Intel IA64 Relocations.
  5123. -- : BFD_RELOC_M68HC11_HI8
  5124. Motorola 68HC11 reloc. This is the 8 bit high part of an absolute
  5125. address.
  5126. -- : BFD_RELOC_M68HC11_LO8
  5127. Motorola 68HC11 reloc. This is the 8 bit low part of an absolute
  5128. address.
  5129. -- : BFD_RELOC_M68HC11_3B
  5130. Motorola 68HC11 reloc. This is the 3 bit of a value.
  5131. -- : BFD_RELOC_M68HC11_RL_JUMP
  5132. Motorola 68HC11 reloc. This reloc marks the beginning of a
  5133. jump/call instruction. It is used for linker relaxation to
  5134. correctly identify beginning of instruction and change some
  5135. branches to use PC-relative addressing mode.
  5136. -- : BFD_RELOC_M68HC11_RL_GROUP
  5137. Motorola 68HC11 reloc. This reloc marks a group of several
  5138. instructions that gcc generates and for which the linker relaxation
  5139. pass can modify and/or remove some of them.
  5140. -- : BFD_RELOC_M68HC11_LO16
  5141. Motorola 68HC11 reloc. This is the 16-bit lower part of an
  5142. address. It is used for 'call' instruction to specify the symbol
  5143. address without any special transformation (due to memory bank
  5144. window).
  5145. -- : BFD_RELOC_M68HC11_PAGE
  5146. Motorola 68HC11 reloc. This is a 8-bit reloc that specifies the
  5147. page number of an address. It is used by 'call' instruction to
  5148. specify the page number of the symbol.
  5149. -- : BFD_RELOC_M68HC11_24
  5150. Motorola 68HC11 reloc. This is a 24-bit reloc that represents the
  5151. address with a 16-bit value and a 8-bit page number. The symbol
  5152. address is transformed to follow the 16K memory bank of 68HC12
  5153. (seen as mapped in the window).
  5154. -- : BFD_RELOC_M68HC12_5B
  5155. Motorola 68HC12 reloc. This is the 5 bits of a value.
  5156. -- : BFD_RELOC_XGATE_RL_JUMP
  5157. Freescale XGATE reloc. This reloc marks the beginning of a bra/jal
  5158. instruction.
  5159. -- : BFD_RELOC_XGATE_RL_GROUP
  5160. Freescale XGATE reloc. This reloc marks a group of several
  5161. instructions that gcc generates and for which the linker relaxation
  5162. pass can modify and/or remove some of them.
  5163. -- : BFD_RELOC_XGATE_LO16
  5164. Freescale XGATE reloc. This is the 16-bit lower part of an
  5165. address. It is used for the '16-bit' instructions.
  5166. -- : BFD_RELOC_XGATE_GPAGE
  5167. Freescale XGATE reloc.
  5168. -- : BFD_RELOC_XGATE_24
  5169. Freescale XGATE reloc.
  5170. -- : BFD_RELOC_XGATE_PCREL_9
  5171. Freescale XGATE reloc. This is a 9-bit pc-relative reloc.
  5172. -- : BFD_RELOC_XGATE_PCREL_10
  5173. Freescale XGATE reloc. This is a 10-bit pc-relative reloc.
  5174. -- : BFD_RELOC_XGATE_IMM8_LO
  5175. Freescale XGATE reloc. This is the 16-bit lower part of an
  5176. address. It is used for the '16-bit' instructions.
  5177. -- : BFD_RELOC_XGATE_IMM8_HI
  5178. Freescale XGATE reloc. This is the 16-bit higher part of an
  5179. address. It is used for the '16-bit' instructions.
  5180. -- : BFD_RELOC_XGATE_IMM3
  5181. Freescale XGATE reloc. This is a 3-bit pc-relative reloc.
  5182. -- : BFD_RELOC_XGATE_IMM4
  5183. Freescale XGATE reloc. This is a 4-bit pc-relative reloc.
  5184. -- : BFD_RELOC_XGATE_IMM5
  5185. Freescale XGATE reloc. This is a 5-bit pc-relative reloc.
  5186. -- : BFD_RELOC_M68HC12_9B
  5187. Motorola 68HC12 reloc. This is the 9 bits of a value.
  5188. -- : BFD_RELOC_M68HC12_16B
  5189. Motorola 68HC12 reloc. This is the 16 bits of a value.
  5190. -- : BFD_RELOC_M68HC12_9_PCREL
  5191. Motorola 68HC12/XGATE reloc. This is a PCREL9 branch.
  5192. -- : BFD_RELOC_M68HC12_10_PCREL
  5193. Motorola 68HC12/XGATE reloc. This is a PCREL10 branch.
  5194. -- : BFD_RELOC_M68HC12_LO8XG
  5195. Motorola 68HC12/XGATE reloc. This is the 8 bit low part of an
  5196. absolute address and immediately precedes a matching HI8XG part.
  5197. -- : BFD_RELOC_M68HC12_HI8XG
  5198. Motorola 68HC12/XGATE reloc. This is the 8 bit high part of an
  5199. absolute address and immediately follows a matching LO8XG part.
  5200. -- : BFD_RELOC_S12Z_15_PCREL
  5201. Freescale S12Z reloc. This is a 15 bit relative address. If the
  5202. most significant bits are all zero then it may be truncated to 8
  5203. bits.
  5204. -- : BFD_RELOC_CR16_NUM8
  5205. -- : BFD_RELOC_CR16_NUM16
  5206. -- : BFD_RELOC_CR16_NUM32
  5207. -- : BFD_RELOC_CR16_NUM32a
  5208. -- : BFD_RELOC_CR16_REGREL0
  5209. -- : BFD_RELOC_CR16_REGREL4
  5210. -- : BFD_RELOC_CR16_REGREL4a
  5211. -- : BFD_RELOC_CR16_REGREL14
  5212. -- : BFD_RELOC_CR16_REGREL14a
  5213. -- : BFD_RELOC_CR16_REGREL16
  5214. -- : BFD_RELOC_CR16_REGREL20
  5215. -- : BFD_RELOC_CR16_REGREL20a
  5216. -- : BFD_RELOC_CR16_ABS20
  5217. -- : BFD_RELOC_CR16_ABS24
  5218. -- : BFD_RELOC_CR16_IMM4
  5219. -- : BFD_RELOC_CR16_IMM8
  5220. -- : BFD_RELOC_CR16_IMM16
  5221. -- : BFD_RELOC_CR16_IMM20
  5222. -- : BFD_RELOC_CR16_IMM24
  5223. -- : BFD_RELOC_CR16_IMM32
  5224. -- : BFD_RELOC_CR16_IMM32a
  5225. -- : BFD_RELOC_CR16_DISP4
  5226. -- : BFD_RELOC_CR16_DISP8
  5227. -- : BFD_RELOC_CR16_DISP16
  5228. -- : BFD_RELOC_CR16_DISP20
  5229. -- : BFD_RELOC_CR16_DISP24
  5230. -- : BFD_RELOC_CR16_DISP24a
  5231. -- : BFD_RELOC_CR16_SWITCH8
  5232. -- : BFD_RELOC_CR16_SWITCH16
  5233. -- : BFD_RELOC_CR16_SWITCH32
  5234. -- : BFD_RELOC_CR16_GOT_REGREL20
  5235. -- : BFD_RELOC_CR16_GOTC_REGREL20
  5236. -- : BFD_RELOC_CR16_GLOB_DAT
  5237. NS CR16 Relocations.
  5238. -- : BFD_RELOC_CRX_REL4
  5239. -- : BFD_RELOC_CRX_REL8
  5240. -- : BFD_RELOC_CRX_REL8_CMP
  5241. -- : BFD_RELOC_CRX_REL16
  5242. -- : BFD_RELOC_CRX_REL24
  5243. -- : BFD_RELOC_CRX_REL32
  5244. -- : BFD_RELOC_CRX_REGREL12
  5245. -- : BFD_RELOC_CRX_REGREL22
  5246. -- : BFD_RELOC_CRX_REGREL28
  5247. -- : BFD_RELOC_CRX_REGREL32
  5248. -- : BFD_RELOC_CRX_ABS16
  5249. -- : BFD_RELOC_CRX_ABS32
  5250. -- : BFD_RELOC_CRX_NUM8
  5251. -- : BFD_RELOC_CRX_NUM16
  5252. -- : BFD_RELOC_CRX_NUM32
  5253. -- : BFD_RELOC_CRX_IMM16
  5254. -- : BFD_RELOC_CRX_IMM32
  5255. -- : BFD_RELOC_CRX_SWITCH8
  5256. -- : BFD_RELOC_CRX_SWITCH16
  5257. -- : BFD_RELOC_CRX_SWITCH32
  5258. NS CRX Relocations.
  5259. -- : BFD_RELOC_CRIS_BDISP8
  5260. -- : BFD_RELOC_CRIS_UNSIGNED_5
  5261. -- : BFD_RELOC_CRIS_SIGNED_6
  5262. -- : BFD_RELOC_CRIS_UNSIGNED_6
  5263. -- : BFD_RELOC_CRIS_SIGNED_8
  5264. -- : BFD_RELOC_CRIS_UNSIGNED_8
  5265. -- : BFD_RELOC_CRIS_SIGNED_16
  5266. -- : BFD_RELOC_CRIS_UNSIGNED_16
  5267. -- : BFD_RELOC_CRIS_LAPCQ_OFFSET
  5268. -- : BFD_RELOC_CRIS_UNSIGNED_4
  5269. These relocs are only used within the CRIS assembler. They are not
  5270. (at present) written to any object files.
  5271. -- : BFD_RELOC_CRIS_COPY
  5272. -- : BFD_RELOC_CRIS_GLOB_DAT
  5273. -- : BFD_RELOC_CRIS_JUMP_SLOT
  5274. -- : BFD_RELOC_CRIS_RELATIVE
  5275. Relocs used in ELF shared libraries for CRIS.
  5276. -- : BFD_RELOC_CRIS_32_GOT
  5277. 32-bit offset to symbol-entry within GOT.
  5278. -- : BFD_RELOC_CRIS_16_GOT
  5279. 16-bit offset to symbol-entry within GOT.
  5280. -- : BFD_RELOC_CRIS_32_GOTPLT
  5281. 32-bit offset to symbol-entry within GOT, with PLT handling.
  5282. -- : BFD_RELOC_CRIS_16_GOTPLT
  5283. 16-bit offset to symbol-entry within GOT, with PLT handling.
  5284. -- : BFD_RELOC_CRIS_32_GOTREL
  5285. 32-bit offset to symbol, relative to GOT.
  5286. -- : BFD_RELOC_CRIS_32_PLT_GOTREL
  5287. 32-bit offset to symbol with PLT entry, relative to GOT.
  5288. -- : BFD_RELOC_CRIS_32_PLT_PCREL
  5289. 32-bit offset to symbol with PLT entry, relative to this
  5290. relocation.
  5291. -- : BFD_RELOC_CRIS_32_GOT_GD
  5292. -- : BFD_RELOC_CRIS_16_GOT_GD
  5293. -- : BFD_RELOC_CRIS_32_GD
  5294. -- : BFD_RELOC_CRIS_DTP
  5295. -- : BFD_RELOC_CRIS_32_DTPREL
  5296. -- : BFD_RELOC_CRIS_16_DTPREL
  5297. -- : BFD_RELOC_CRIS_32_GOT_TPREL
  5298. -- : BFD_RELOC_CRIS_16_GOT_TPREL
  5299. -- : BFD_RELOC_CRIS_32_TPREL
  5300. -- : BFD_RELOC_CRIS_16_TPREL
  5301. -- : BFD_RELOC_CRIS_DTPMOD
  5302. -- : BFD_RELOC_CRIS_32_IE
  5303. Relocs used in TLS code for CRIS.
  5304. -- : BFD_RELOC_OR1K_REL_26
  5305. -- : BFD_RELOC_OR1K_SLO16
  5306. -- : BFD_RELOC_OR1K_PCREL_PG21
  5307. -- : BFD_RELOC_OR1K_LO13
  5308. -- : BFD_RELOC_OR1K_SLO13
  5309. -- : BFD_RELOC_OR1K_GOTPC_HI16
  5310. -- : BFD_RELOC_OR1K_GOTPC_LO16
  5311. -- : BFD_RELOC_OR1K_GOT16
  5312. -- : BFD_RELOC_OR1K_GOT_PG21
  5313. -- : BFD_RELOC_OR1K_GOT_LO13
  5314. -- : BFD_RELOC_OR1K_PLT26
  5315. -- : BFD_RELOC_OR1K_PLTA26
  5316. -- : BFD_RELOC_OR1K_GOTOFF_SLO16
  5317. -- : BFD_RELOC_OR1K_COPY
  5318. -- : BFD_RELOC_OR1K_GLOB_DAT
  5319. -- : BFD_RELOC_OR1K_JMP_SLOT
  5320. -- : BFD_RELOC_OR1K_RELATIVE
  5321. -- : BFD_RELOC_OR1K_TLS_GD_HI16
  5322. -- : BFD_RELOC_OR1K_TLS_GD_LO16
  5323. -- : BFD_RELOC_OR1K_TLS_GD_PG21
  5324. -- : BFD_RELOC_OR1K_TLS_GD_LO13
  5325. -- : BFD_RELOC_OR1K_TLS_LDM_HI16
  5326. -- : BFD_RELOC_OR1K_TLS_LDM_LO16
  5327. -- : BFD_RELOC_OR1K_TLS_LDM_PG21
  5328. -- : BFD_RELOC_OR1K_TLS_LDM_LO13
  5329. -- : BFD_RELOC_OR1K_TLS_LDO_HI16
  5330. -- : BFD_RELOC_OR1K_TLS_LDO_LO16
  5331. -- : BFD_RELOC_OR1K_TLS_IE_HI16
  5332. -- : BFD_RELOC_OR1K_TLS_IE_AHI16
  5333. -- : BFD_RELOC_OR1K_TLS_IE_LO16
  5334. -- : BFD_RELOC_OR1K_TLS_IE_PG21
  5335. -- : BFD_RELOC_OR1K_TLS_IE_LO13
  5336. -- : BFD_RELOC_OR1K_TLS_LE_HI16
  5337. -- : BFD_RELOC_OR1K_TLS_LE_AHI16
  5338. -- : BFD_RELOC_OR1K_TLS_LE_LO16
  5339. -- : BFD_RELOC_OR1K_TLS_LE_SLO16
  5340. -- : BFD_RELOC_OR1K_TLS_TPOFF
  5341. -- : BFD_RELOC_OR1K_TLS_DTPOFF
  5342. -- : BFD_RELOC_OR1K_TLS_DTPMOD
  5343. OpenRISC 1000 Relocations.
  5344. -- : BFD_RELOC_H8_DIR16A8
  5345. -- : BFD_RELOC_H8_DIR16R8
  5346. -- : BFD_RELOC_H8_DIR24A8
  5347. -- : BFD_RELOC_H8_DIR24R8
  5348. -- : BFD_RELOC_H8_DIR32A16
  5349. -- : BFD_RELOC_H8_DISP32A16
  5350. H8 elf Relocations.
  5351. -- : BFD_RELOC_XSTORMY16_REL_12
  5352. -- : BFD_RELOC_XSTORMY16_12
  5353. -- : BFD_RELOC_XSTORMY16_24
  5354. -- : BFD_RELOC_XSTORMY16_FPTR16
  5355. Sony Xstormy16 Relocations.
  5356. -- : BFD_RELOC_RELC
  5357. Self-describing complex relocations.
  5358. -- : BFD_RELOC_XC16X_PAG
  5359. -- : BFD_RELOC_XC16X_POF
  5360. -- : BFD_RELOC_XC16X_SEG
  5361. -- : BFD_RELOC_XC16X_SOF
  5362. Infineon Relocations.
  5363. -- : BFD_RELOC_VAX_GLOB_DAT
  5364. -- : BFD_RELOC_VAX_JMP_SLOT
  5365. -- : BFD_RELOC_VAX_RELATIVE
  5366. Relocations used by VAX ELF.
  5367. -- : BFD_RELOC_MT_PC16
  5368. Morpho MT - 16 bit immediate relocation.
  5369. -- : BFD_RELOC_MT_HI16
  5370. Morpho MT - Hi 16 bits of an address.
  5371. -- : BFD_RELOC_MT_LO16
  5372. Morpho MT - Low 16 bits of an address.
  5373. -- : BFD_RELOC_MT_GNU_VTINHERIT
  5374. Morpho MT - Used to tell the linker which vtable entries are used.
  5375. -- : BFD_RELOC_MT_GNU_VTENTRY
  5376. Morpho MT - Used to tell the linker which vtable entries are used.
  5377. -- : BFD_RELOC_MT_PCINSN8
  5378. Morpho MT - 8 bit immediate relocation.
  5379. -- : BFD_RELOC_MSP430_10_PCREL
  5380. -- : BFD_RELOC_MSP430_16_PCREL
  5381. -- : BFD_RELOC_MSP430_16
  5382. -- : BFD_RELOC_MSP430_16_PCREL_BYTE
  5383. -- : BFD_RELOC_MSP430_16_BYTE
  5384. -- : BFD_RELOC_MSP430_2X_PCREL
  5385. -- : BFD_RELOC_MSP430_RL_PCREL
  5386. -- : BFD_RELOC_MSP430_ABS8
  5387. -- : BFD_RELOC_MSP430X_PCR20_EXT_SRC
  5388. -- : BFD_RELOC_MSP430X_PCR20_EXT_DST
  5389. -- : BFD_RELOC_MSP430X_PCR20_EXT_ODST
  5390. -- : BFD_RELOC_MSP430X_ABS20_EXT_SRC
  5391. -- : BFD_RELOC_MSP430X_ABS20_EXT_DST
  5392. -- : BFD_RELOC_MSP430X_ABS20_EXT_ODST
  5393. -- : BFD_RELOC_MSP430X_ABS20_ADR_SRC
  5394. -- : BFD_RELOC_MSP430X_ABS20_ADR_DST
  5395. -- : BFD_RELOC_MSP430X_PCR16
  5396. -- : BFD_RELOC_MSP430X_PCR20_CALL
  5397. -- : BFD_RELOC_MSP430X_ABS16
  5398. -- : BFD_RELOC_MSP430_ABS_HI16
  5399. -- : BFD_RELOC_MSP430_PREL31
  5400. -- : BFD_RELOC_MSP430_SYM_DIFF
  5401. -- : BFD_RELOC_MSP430_SET_ULEB128
  5402. -- : BFD_RELOC_MSP430_SUB_ULEB128
  5403. msp430 specific relocation codes
  5404. -- : BFD_RELOC_NIOS2_S16
  5405. -- : BFD_RELOC_NIOS2_U16
  5406. -- : BFD_RELOC_NIOS2_CALL26
  5407. -- : BFD_RELOC_NIOS2_IMM5
  5408. -- : BFD_RELOC_NIOS2_CACHE_OPX
  5409. -- : BFD_RELOC_NIOS2_IMM6
  5410. -- : BFD_RELOC_NIOS2_IMM8
  5411. -- : BFD_RELOC_NIOS2_HI16
  5412. -- : BFD_RELOC_NIOS2_LO16
  5413. -- : BFD_RELOC_NIOS2_HIADJ16
  5414. -- : BFD_RELOC_NIOS2_GPREL
  5415. -- : BFD_RELOC_NIOS2_UJMP
  5416. -- : BFD_RELOC_NIOS2_CJMP
  5417. -- : BFD_RELOC_NIOS2_CALLR
  5418. -- : BFD_RELOC_NIOS2_ALIGN
  5419. -- : BFD_RELOC_NIOS2_GOT16
  5420. -- : BFD_RELOC_NIOS2_CALL16
  5421. -- : BFD_RELOC_NIOS2_GOTOFF_LO
  5422. -- : BFD_RELOC_NIOS2_GOTOFF_HA
  5423. -- : BFD_RELOC_NIOS2_PCREL_LO
  5424. -- : BFD_RELOC_NIOS2_PCREL_HA
  5425. -- : BFD_RELOC_NIOS2_TLS_GD16
  5426. -- : BFD_RELOC_NIOS2_TLS_LDM16
  5427. -- : BFD_RELOC_NIOS2_TLS_LDO16
  5428. -- : BFD_RELOC_NIOS2_TLS_IE16
  5429. -- : BFD_RELOC_NIOS2_TLS_LE16
  5430. -- : BFD_RELOC_NIOS2_TLS_DTPMOD
  5431. -- : BFD_RELOC_NIOS2_TLS_DTPREL
  5432. -- : BFD_RELOC_NIOS2_TLS_TPREL
  5433. -- : BFD_RELOC_NIOS2_COPY
  5434. -- : BFD_RELOC_NIOS2_GLOB_DAT
  5435. -- : BFD_RELOC_NIOS2_JUMP_SLOT
  5436. -- : BFD_RELOC_NIOS2_RELATIVE
  5437. -- : BFD_RELOC_NIOS2_GOTOFF
  5438. -- : BFD_RELOC_NIOS2_CALL26_NOAT
  5439. -- : BFD_RELOC_NIOS2_GOT_LO
  5440. -- : BFD_RELOC_NIOS2_GOT_HA
  5441. -- : BFD_RELOC_NIOS2_CALL_LO
  5442. -- : BFD_RELOC_NIOS2_CALL_HA
  5443. -- : BFD_RELOC_NIOS2_R2_S12
  5444. -- : BFD_RELOC_NIOS2_R2_I10_1_PCREL
  5445. -- : BFD_RELOC_NIOS2_R2_T1I7_1_PCREL
  5446. -- : BFD_RELOC_NIOS2_R2_T1I7_2
  5447. -- : BFD_RELOC_NIOS2_R2_T2I4
  5448. -- : BFD_RELOC_NIOS2_R2_T2I4_1
  5449. -- : BFD_RELOC_NIOS2_R2_T2I4_2
  5450. -- : BFD_RELOC_NIOS2_R2_X1I7_2
  5451. -- : BFD_RELOC_NIOS2_R2_X2L5
  5452. -- : BFD_RELOC_NIOS2_R2_F1I5_2
  5453. -- : BFD_RELOC_NIOS2_R2_L5I4X1
  5454. -- : BFD_RELOC_NIOS2_R2_T1X1I6
  5455. -- : BFD_RELOC_NIOS2_R2_T1X1I6_2
  5456. Relocations used by the Altera Nios II core.
  5457. -- : BFD_RELOC_PRU_U16
  5458. PRU LDI 16-bit unsigned data-memory relocation.
  5459. -- : BFD_RELOC_PRU_U16_PMEMIMM
  5460. PRU LDI 16-bit unsigned instruction-memory relocation.
  5461. -- : BFD_RELOC_PRU_LDI32
  5462. PRU relocation for two consecutive LDI load instructions that load
  5463. a 32 bit value into a register. If the higher bits are all zero,
  5464. then the second instruction may be relaxed.
  5465. -- : BFD_RELOC_PRU_S10_PCREL
  5466. PRU QBBx 10-bit signed PC-relative relocation.
  5467. -- : BFD_RELOC_PRU_U8_PCREL
  5468. PRU 8-bit unsigned relocation used for the LOOP instruction.
  5469. -- : BFD_RELOC_PRU_32_PMEM
  5470. -- : BFD_RELOC_PRU_16_PMEM
  5471. PRU Program Memory relocations. Used to convert from byte
  5472. addressing to 32-bit word addressing.
  5473. -- : BFD_RELOC_PRU_GNU_DIFF8
  5474. -- : BFD_RELOC_PRU_GNU_DIFF16
  5475. -- : BFD_RELOC_PRU_GNU_DIFF32
  5476. -- : BFD_RELOC_PRU_GNU_DIFF16_PMEM
  5477. -- : BFD_RELOC_PRU_GNU_DIFF32_PMEM
  5478. PRU relocations to mark the difference of two local symbols. These
  5479. are only needed to support linker relaxation and can be ignored
  5480. when not relaxing. The field is set to the value of the difference
  5481. assuming no relaxation. The relocation encodes the position of the
  5482. second symbol so the linker can determine whether to adjust the
  5483. field value. The PMEM variants encode the word difference, instead
  5484. of byte difference between symbols.
  5485. -- : BFD_RELOC_IQ2000_OFFSET_16
  5486. -- : BFD_RELOC_IQ2000_OFFSET_21
  5487. -- : BFD_RELOC_IQ2000_UHI16
  5488. IQ2000 Relocations.
  5489. -- : BFD_RELOC_XTENSA_RTLD
  5490. Special Xtensa relocation used only by PLT entries in ELF shared
  5491. objects to indicate that the runtime linker should set the value to
  5492. one of its own internal functions or data structures.
  5493. -- : BFD_RELOC_XTENSA_GLOB_DAT
  5494. -- : BFD_RELOC_XTENSA_JMP_SLOT
  5495. -- : BFD_RELOC_XTENSA_RELATIVE
  5496. Xtensa relocations for ELF shared objects.
  5497. -- : BFD_RELOC_XTENSA_PLT
  5498. Xtensa relocation used in ELF object files for symbols that may
  5499. require PLT entries. Otherwise, this is just a generic 32-bit
  5500. relocation.
  5501. -- : BFD_RELOC_XTENSA_DIFF8
  5502. -- : BFD_RELOC_XTENSA_DIFF16
  5503. -- : BFD_RELOC_XTENSA_DIFF32
  5504. Xtensa relocations for backward compatibility. These have been
  5505. replaced by BFD_RELOC_XTENSA_PDIFF and BFD_RELOC_XTENSA_NDIFF.
  5506. Xtensa relocations to mark the difference of two local symbols.
  5507. These are only needed to support linker relaxation and can be
  5508. ignored when not relaxing. The field is set to the value of the
  5509. difference assuming no relaxation. The relocation encodes the
  5510. position of the first symbol so the linker can determine whether to
  5511. adjust the field value.
  5512. -- : BFD_RELOC_XTENSA_SLOT0_OP
  5513. -- : BFD_RELOC_XTENSA_SLOT1_OP
  5514. -- : BFD_RELOC_XTENSA_SLOT2_OP
  5515. -- : BFD_RELOC_XTENSA_SLOT3_OP
  5516. -- : BFD_RELOC_XTENSA_SLOT4_OP
  5517. -- : BFD_RELOC_XTENSA_SLOT5_OP
  5518. -- : BFD_RELOC_XTENSA_SLOT6_OP
  5519. -- : BFD_RELOC_XTENSA_SLOT7_OP
  5520. -- : BFD_RELOC_XTENSA_SLOT8_OP
  5521. -- : BFD_RELOC_XTENSA_SLOT9_OP
  5522. -- : BFD_RELOC_XTENSA_SLOT10_OP
  5523. -- : BFD_RELOC_XTENSA_SLOT11_OP
  5524. -- : BFD_RELOC_XTENSA_SLOT12_OP
  5525. -- : BFD_RELOC_XTENSA_SLOT13_OP
  5526. -- : BFD_RELOC_XTENSA_SLOT14_OP
  5527. Generic Xtensa relocations for instruction operands. Only the slot
  5528. number is encoded in the relocation. The relocation applies to the
  5529. last PC-relative immediate operand, or if there are no PC-relative
  5530. immediates, to the last immediate operand.
  5531. -- : BFD_RELOC_XTENSA_SLOT0_ALT
  5532. -- : BFD_RELOC_XTENSA_SLOT1_ALT
  5533. -- : BFD_RELOC_XTENSA_SLOT2_ALT
  5534. -- : BFD_RELOC_XTENSA_SLOT3_ALT
  5535. -- : BFD_RELOC_XTENSA_SLOT4_ALT
  5536. -- : BFD_RELOC_XTENSA_SLOT5_ALT
  5537. -- : BFD_RELOC_XTENSA_SLOT6_ALT
  5538. -- : BFD_RELOC_XTENSA_SLOT7_ALT
  5539. -- : BFD_RELOC_XTENSA_SLOT8_ALT
  5540. -- : BFD_RELOC_XTENSA_SLOT9_ALT
  5541. -- : BFD_RELOC_XTENSA_SLOT10_ALT
  5542. -- : BFD_RELOC_XTENSA_SLOT11_ALT
  5543. -- : BFD_RELOC_XTENSA_SLOT12_ALT
  5544. -- : BFD_RELOC_XTENSA_SLOT13_ALT
  5545. -- : BFD_RELOC_XTENSA_SLOT14_ALT
  5546. Alternate Xtensa relocations. Only the slot is encoded in the
  5547. relocation. The meaning of these relocations is opcode-specific.
  5548. -- : BFD_RELOC_XTENSA_OP0
  5549. -- : BFD_RELOC_XTENSA_OP1
  5550. -- : BFD_RELOC_XTENSA_OP2
  5551. Xtensa relocations for backward compatibility. These have all been
  5552. replaced by BFD_RELOC_XTENSA_SLOT0_OP.
  5553. -- : BFD_RELOC_XTENSA_ASM_EXPAND
  5554. Xtensa relocation to mark that the assembler expanded the
  5555. instructions from an original target. The expansion size is
  5556. encoded in the reloc size.
  5557. -- : BFD_RELOC_XTENSA_ASM_SIMPLIFY
  5558. Xtensa relocation to mark that the linker should simplify
  5559. assembler-expanded instructions. This is commonly used internally
  5560. by the linker after analysis of a BFD_RELOC_XTENSA_ASM_EXPAND.
  5561. -- : BFD_RELOC_XTENSA_TLSDESC_FN
  5562. -- : BFD_RELOC_XTENSA_TLSDESC_ARG
  5563. -- : BFD_RELOC_XTENSA_TLS_DTPOFF
  5564. -- : BFD_RELOC_XTENSA_TLS_TPOFF
  5565. -- : BFD_RELOC_XTENSA_TLS_FUNC
  5566. -- : BFD_RELOC_XTENSA_TLS_ARG
  5567. -- : BFD_RELOC_XTENSA_TLS_CALL
  5568. Xtensa TLS relocations.
  5569. -- : BFD_RELOC_XTENSA_PDIFF8
  5570. -- : BFD_RELOC_XTENSA_PDIFF16
  5571. -- : BFD_RELOC_XTENSA_PDIFF32
  5572. -- : BFD_RELOC_XTENSA_NDIFF8
  5573. -- : BFD_RELOC_XTENSA_NDIFF16
  5574. -- : BFD_RELOC_XTENSA_NDIFF32
  5575. Xtensa relocations to mark the difference of two local symbols.
  5576. These are only needed to support linker relaxation and can be
  5577. ignored when not relaxing. The field is set to the value of the
  5578. difference assuming no relaxation. The relocation encodes the
  5579. position of the subtracted symbol so the linker can determine
  5580. whether to adjust the field value. PDIFF relocations are used for
  5581. positive differences, NDIFF relocations are used for negative
  5582. differences. The difference value is treated as unsigned with
  5583. these relocation types, giving full 8/16 value ranges.
  5584. -- : BFD_RELOC_Z80_DISP8
  5585. 8 bit signed offset in (ix+d) or (iy+d).
  5586. -- : BFD_RELOC_Z80_BYTE0
  5587. First 8 bits of multibyte (32, 24 or 16 bit) value.
  5588. -- : BFD_RELOC_Z80_BYTE1
  5589. Second 8 bits of multibyte (32, 24 or 16 bit) value.
  5590. -- : BFD_RELOC_Z80_BYTE2
  5591. Third 8 bits of multibyte (32 or 24 bit) value.
  5592. -- : BFD_RELOC_Z80_BYTE3
  5593. Fourth 8 bits of multibyte (32 bit) value.
  5594. -- : BFD_RELOC_Z80_WORD0
  5595. Lowest 16 bits of multibyte (32 or 24 bit) value.
  5596. -- : BFD_RELOC_Z80_WORD1
  5597. Highest 16 bits of multibyte (32 or 24 bit) value.
  5598. -- : BFD_RELOC_Z80_16_BE
  5599. Like BFD_RELOC_16 but big-endian.
  5600. -- : BFD_RELOC_Z8K_DISP7
  5601. DJNZ offset.
  5602. -- : BFD_RELOC_Z8K_CALLR
  5603. CALR offset.
  5604. -- : BFD_RELOC_Z8K_IMM4L
  5605. 4 bit value.
  5606. -- : BFD_RELOC_LM32_CALL
  5607. -- : BFD_RELOC_LM32_BRANCH
  5608. -- : BFD_RELOC_LM32_16_GOT
  5609. -- : BFD_RELOC_LM32_GOTOFF_HI16
  5610. -- : BFD_RELOC_LM32_GOTOFF_LO16
  5611. -- : BFD_RELOC_LM32_COPY
  5612. -- : BFD_RELOC_LM32_GLOB_DAT
  5613. -- : BFD_RELOC_LM32_JMP_SLOT
  5614. -- : BFD_RELOC_LM32_RELATIVE
  5615. Lattice Mico32 relocations.
  5616. -- : BFD_RELOC_MACH_O_SECTDIFF
  5617. Difference between two section addreses. Must be followed by a
  5618. BFD_RELOC_MACH_O_PAIR.
  5619. -- : BFD_RELOC_MACH_O_LOCAL_SECTDIFF
  5620. Like BFD_RELOC_MACH_O_SECTDIFF but with a local symbol.
  5621. -- : BFD_RELOC_MACH_O_PAIR
  5622. Pair of relocation. Contains the first symbol.
  5623. -- : BFD_RELOC_MACH_O_SUBTRACTOR32
  5624. Symbol will be substracted. Must be followed by a BFD_RELOC_32.
  5625. -- : BFD_RELOC_MACH_O_SUBTRACTOR64
  5626. Symbol will be substracted. Must be followed by a BFD_RELOC_64.
  5627. -- : BFD_RELOC_MACH_O_X86_64_BRANCH32
  5628. -- : BFD_RELOC_MACH_O_X86_64_BRANCH8
  5629. PCREL relocations. They are marked as branch to create PLT entry
  5630. if required.
  5631. -- : BFD_RELOC_MACH_O_X86_64_GOT
  5632. Used when referencing a GOT entry.
  5633. -- : BFD_RELOC_MACH_O_X86_64_GOT_LOAD
  5634. Used when loading a GOT entry with movq. It is specially marked so
  5635. that the linker could optimize the movq to a leaq if possible.
  5636. -- : BFD_RELOC_MACH_O_X86_64_PCREL32_1
  5637. Same as BFD_RELOC_32_PCREL but with an implicit -1 addend.
  5638. -- : BFD_RELOC_MACH_O_X86_64_PCREL32_2
  5639. Same as BFD_RELOC_32_PCREL but with an implicit -2 addend.
  5640. -- : BFD_RELOC_MACH_O_X86_64_PCREL32_4
  5641. Same as BFD_RELOC_32_PCREL but with an implicit -4 addend.
  5642. -- : BFD_RELOC_MACH_O_X86_64_TLV
  5643. Used when referencing a TLV entry.
  5644. -- : BFD_RELOC_MACH_O_ARM64_ADDEND
  5645. Addend for PAGE or PAGEOFF.
  5646. -- : BFD_RELOC_MACH_O_ARM64_GOT_LOAD_PAGE21
  5647. Relative offset to page of GOT slot.
  5648. -- : BFD_RELOC_MACH_O_ARM64_GOT_LOAD_PAGEOFF12
  5649. Relative offset within page of GOT slot.
  5650. -- : BFD_RELOC_MACH_O_ARM64_POINTER_TO_GOT
  5651. Address of a GOT entry.
  5652. -- : BFD_RELOC_MICROBLAZE_32_LO
  5653. This is a 32 bit reloc for the microblaze that stores the low 16
  5654. bits of a value
  5655. -- : BFD_RELOC_MICROBLAZE_32_LO_PCREL
  5656. This is a 32 bit pc-relative reloc for the microblaze that stores
  5657. the low 16 bits of a value
  5658. -- : BFD_RELOC_MICROBLAZE_32_ROSDA
  5659. This is a 32 bit reloc for the microblaze that stores a value
  5660. relative to the read-only small data area anchor
  5661. -- : BFD_RELOC_MICROBLAZE_32_RWSDA
  5662. This is a 32 bit reloc for the microblaze that stores a value
  5663. relative to the read-write small data area anchor
  5664. -- : BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM
  5665. This is a 32 bit reloc for the microblaze to handle expressions of
  5666. the form "Symbol Op Symbol"
  5667. -- : BFD_RELOC_MICROBLAZE_64_NONE
  5668. This is a 64 bit reloc that stores the 32 bit pc relative value in
  5669. two words (with an imm instruction). No relocation is done here -
  5670. only used for relaxing
  5671. -- : BFD_RELOC_MICROBLAZE_64_GOTPC
  5672. This is a 64 bit reloc that stores the 32 bit pc relative value in
  5673. two words (with an imm instruction). The relocation is PC-relative
  5674. GOT offset
  5675. -- : BFD_RELOC_MICROBLAZE_64_GOT
  5676. This is a 64 bit reloc that stores the 32 bit pc relative value in
  5677. two words (with an imm instruction). The relocation is GOT offset
  5678. -- : BFD_RELOC_MICROBLAZE_64_PLT
  5679. This is a 64 bit reloc that stores the 32 bit pc relative value in
  5680. two words (with an imm instruction). The relocation is PC-relative
  5681. offset into PLT
  5682. -- : BFD_RELOC_MICROBLAZE_64_GOTOFF
  5683. This is a 64 bit reloc that stores the 32 bit GOT relative value in
  5684. two words (with an imm instruction). The relocation is relative
  5685. offset from _GLOBAL_OFFSET_TABLE_
  5686. -- : BFD_RELOC_MICROBLAZE_32_GOTOFF
  5687. This is a 32 bit reloc that stores the 32 bit GOT relative value in
  5688. a word. The relocation is relative offset from
  5689. -- : BFD_RELOC_MICROBLAZE_COPY
  5690. This is used to tell the dynamic linker to copy the value out of
  5691. the dynamic object into the runtime process image.
  5692. -- : BFD_RELOC_MICROBLAZE_64_TLS
  5693. Unused Reloc
  5694. -- : BFD_RELOC_MICROBLAZE_64_TLSGD
  5695. This is a 64 bit reloc that stores the 32 bit GOT relative value of
  5696. the GOT TLS GD info entry in two words (with an imm instruction).
  5697. The relocation is GOT offset.
  5698. -- : BFD_RELOC_MICROBLAZE_64_TLSLD
  5699. This is a 64 bit reloc that stores the 32 bit GOT relative value of
  5700. the GOT TLS LD info entry in two words (with an imm instruction).
  5701. The relocation is GOT offset.
  5702. -- : BFD_RELOC_MICROBLAZE_32_TLSDTPMOD
  5703. This is a 32 bit reloc that stores the Module ID to GOT(n).
  5704. -- : BFD_RELOC_MICROBLAZE_32_TLSDTPREL
  5705. This is a 32 bit reloc that stores TLS offset to GOT(n+1).
  5706. -- : BFD_RELOC_MICROBLAZE_64_TLSDTPREL
  5707. This is a 32 bit reloc for storing TLS offset to two words (uses
  5708. imm instruction)
  5709. -- : BFD_RELOC_MICROBLAZE_64_TLSGOTTPREL
  5710. This is a 64 bit reloc that stores 32-bit thread pointer relative
  5711. offset to two words (uses imm instruction).
  5712. -- : BFD_RELOC_MICROBLAZE_64_TLSTPREL
  5713. This is a 64 bit reloc that stores 32-bit thread pointer relative
  5714. offset to two words (uses imm instruction).
  5715. -- : BFD_RELOC_MICROBLAZE_64_TEXTPCREL
  5716. This is a 64 bit reloc that stores the 32 bit pc relative value in
  5717. two words (with an imm instruction). The relocation is PC-relative
  5718. offset from start of TEXT.
  5719. -- : BFD_RELOC_MICROBLAZE_64_TEXTREL
  5720. This is a 64 bit reloc that stores the 32 bit offset value in two
  5721. words (with an imm instruction). The relocation is relative offset
  5722. from start of TEXT.
  5723. -- : BFD_RELOC_AARCH64_RELOC_START
  5724. AArch64 pseudo relocation code to mark the start of the AArch64
  5725. relocation enumerators. N.B. the order of the enumerators is
  5726. important as several tables in the AArch64 bfd backend are indexed
  5727. by these enumerators; make sure they are all synced.
  5728. -- : BFD_RELOC_AARCH64_NULL
  5729. Deprecated AArch64 null relocation code.
  5730. -- : BFD_RELOC_AARCH64_NONE
  5731. AArch64 null relocation code.
  5732. -- : BFD_RELOC_AARCH64_64
  5733. -- : BFD_RELOC_AARCH64_32
  5734. -- : BFD_RELOC_AARCH64_16
  5735. Basic absolute relocations of N bits. These are equivalent to
  5736. BFD_RELOC_N and they were added to assist the indexing of the howto
  5737. table.
  5738. -- : BFD_RELOC_AARCH64_64_PCREL
  5739. -- : BFD_RELOC_AARCH64_32_PCREL
  5740. -- : BFD_RELOC_AARCH64_16_PCREL
  5741. PC-relative relocations. These are equivalent to BFD_RELOC_N_PCREL
  5742. and they were added to assist the indexing of the howto table.
  5743. -- : BFD_RELOC_AARCH64_MOVW_G0
  5744. AArch64 MOV[NZK] instruction with most significant bits 0 to 15 of
  5745. an unsigned address/value.
  5746. -- : BFD_RELOC_AARCH64_MOVW_G0_NC
  5747. AArch64 MOV[NZK] instruction with less significant bits 0 to 15 of
  5748. an address/value. No overflow checking.
  5749. -- : BFD_RELOC_AARCH64_MOVW_G1
  5750. AArch64 MOV[NZK] instruction with most significant bits 16 to 31 of
  5751. an unsigned address/value.
  5752. -- : BFD_RELOC_AARCH64_MOVW_G1_NC
  5753. AArch64 MOV[NZK] instruction with less significant bits 16 to 31 of
  5754. an address/value. No overflow checking.
  5755. -- : BFD_RELOC_AARCH64_MOVW_G2
  5756. AArch64 MOV[NZK] instruction with most significant bits 32 to 47 of
  5757. an unsigned address/value.
  5758. -- : BFD_RELOC_AARCH64_MOVW_G2_NC
  5759. AArch64 MOV[NZK] instruction with less significant bits 32 to 47 of
  5760. an address/value. No overflow checking.
  5761. -- : BFD_RELOC_AARCH64_MOVW_G3
  5762. AArch64 MOV[NZK] instruction with most signficant bits 48 to 64 of
  5763. a signed or unsigned address/value.
  5764. -- : BFD_RELOC_AARCH64_MOVW_G0_S
  5765. AArch64 MOV[NZ] instruction with most significant bits 0 to 15 of a
  5766. signed value. Changes instruction to MOVZ or MOVN depending on the
  5767. value's sign.
  5768. -- : BFD_RELOC_AARCH64_MOVW_G1_S
  5769. AArch64 MOV[NZ] instruction with most significant bits 16 to 31 of
  5770. a signed value. Changes instruction to MOVZ or MOVN depending on
  5771. the value's sign.
  5772. -- : BFD_RELOC_AARCH64_MOVW_G2_S
  5773. AArch64 MOV[NZ] instruction with most significant bits 32 to 47 of
  5774. a signed value. Changes instruction to MOVZ or MOVN depending on
  5775. the value's sign.
  5776. -- : BFD_RELOC_AARCH64_MOVW_PREL_G0
  5777. AArch64 MOV[NZ] instruction with most significant bits 0 to 15 of a
  5778. signed value. Changes instruction to MOVZ or MOVN depending on the
  5779. value's sign.
  5780. -- : BFD_RELOC_AARCH64_MOVW_PREL_G0_NC
  5781. AArch64 MOV[NZ] instruction with most significant bits 0 to 15 of a
  5782. signed value. Changes instruction to MOVZ or MOVN depending on the
  5783. value's sign.
  5784. -- : BFD_RELOC_AARCH64_MOVW_PREL_G1
  5785. AArch64 MOVK instruction with most significant bits 16 to 31 of a
  5786. signed value.
  5787. -- : BFD_RELOC_AARCH64_MOVW_PREL_G1_NC
  5788. AArch64 MOVK instruction with most significant bits 16 to 31 of a
  5789. signed value.
  5790. -- : BFD_RELOC_AARCH64_MOVW_PREL_G2
  5791. AArch64 MOVK instruction with most significant bits 32 to 47 of a
  5792. signed value.
  5793. -- : BFD_RELOC_AARCH64_MOVW_PREL_G2_NC
  5794. AArch64 MOVK instruction with most significant bits 32 to 47 of a
  5795. signed value.
  5796. -- : BFD_RELOC_AARCH64_MOVW_PREL_G3
  5797. AArch64 MOVK instruction with most significant bits 47 to 63 of a
  5798. signed value.
  5799. -- : BFD_RELOC_AARCH64_LD_LO19_PCREL
  5800. AArch64 Load Literal instruction, holding a 19 bit pc-relative word
  5801. offset. The lowest two bits must be zero and are not stored in the
  5802. instruction, giving a 21 bit signed byte offset.
  5803. -- : BFD_RELOC_AARCH64_ADR_LO21_PCREL
  5804. AArch64 ADR instruction, holding a simple 21 bit pc-relative byte
  5805. offset.
  5806. -- : BFD_RELOC_AARCH64_ADR_HI21_PCREL
  5807. AArch64 ADRP instruction, with bits 12 to 32 of a pc-relative page
  5808. offset, giving a 4KB aligned page base address.
  5809. -- : BFD_RELOC_AARCH64_ADR_HI21_NC_PCREL
  5810. AArch64 ADRP instruction, with bits 12 to 32 of a pc-relative page
  5811. offset, giving a 4KB aligned page base address, but with no
  5812. overflow checking.
  5813. -- : BFD_RELOC_AARCH64_ADD_LO12
  5814. AArch64 ADD immediate instruction, holding bits 0 to 11 of the
  5815. address. Used in conjunction with
  5816. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  5817. -- : BFD_RELOC_AARCH64_LDST8_LO12
  5818. AArch64 8-bit load/store instruction, holding bits 0 to 11 of the
  5819. address. Used in conjunction with
  5820. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  5821. -- : BFD_RELOC_AARCH64_TSTBR14
  5822. AArch64 14 bit pc-relative test bit and branch. The lowest two
  5823. bits must be zero and are not stored in the instruction, giving a
  5824. 16 bit signed byte offset.
  5825. -- : BFD_RELOC_AARCH64_BRANCH19
  5826. AArch64 19 bit pc-relative conditional branch and compare & branch.
  5827. The lowest two bits must be zero and are not stored in the
  5828. instruction, giving a 21 bit signed byte offset.
  5829. -- : BFD_RELOC_AARCH64_JUMP26
  5830. AArch64 26 bit pc-relative unconditional branch. The lowest two
  5831. bits must be zero and are not stored in the instruction, giving a
  5832. 28 bit signed byte offset.
  5833. -- : BFD_RELOC_AARCH64_CALL26
  5834. AArch64 26 bit pc-relative unconditional branch and link. The
  5835. lowest two bits must be zero and are not stored in the instruction,
  5836. giving a 28 bit signed byte offset.
  5837. -- : BFD_RELOC_AARCH64_LDST16_LO12
  5838. AArch64 16-bit load/store instruction, holding bits 0 to 11 of the
  5839. address. Used in conjunction with
  5840. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  5841. -- : BFD_RELOC_AARCH64_LDST32_LO12
  5842. AArch64 32-bit load/store instruction, holding bits 0 to 11 of the
  5843. address. Used in conjunction with
  5844. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  5845. -- : BFD_RELOC_AARCH64_LDST64_LO12
  5846. AArch64 64-bit load/store instruction, holding bits 0 to 11 of the
  5847. address. Used in conjunction with
  5848. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  5849. -- : BFD_RELOC_AARCH64_LDST128_LO12
  5850. AArch64 128-bit load/store instruction, holding bits 0 to 11 of the
  5851. address. Used in conjunction with
  5852. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  5853. -- : BFD_RELOC_AARCH64_GOT_LD_PREL19
  5854. AArch64 Load Literal instruction, holding a 19 bit PC relative word
  5855. offset of the global offset table entry for a symbol. The lowest
  5856. two bits must be zero and are not stored in the instruction, giving
  5857. a 21 bit signed byte offset. This relocation type requires signed
  5858. overflow checking.
  5859. -- : BFD_RELOC_AARCH64_ADR_GOT_PAGE
  5860. Get to the page base of the global offset table entry for a symbol
  5861. as part of an ADRP instruction using a 21 bit PC relative
  5862. value.Used in conjunction with BFD_RELOC_AARCH64_LD64_GOT_LO12_NC.
  5863. -- : BFD_RELOC_AARCH64_LD64_GOT_LO12_NC
  5864. Unsigned 12 bit byte offset for 64 bit load/store from the page of
  5865. the GOT entry for this symbol. Used in conjunction with
  5866. BFD_RELOC_AARCH64_ADR_GOT_PAGE. Valid in LP64 ABI only.
  5867. -- : BFD_RELOC_AARCH64_LD32_GOT_LO12_NC
  5868. Unsigned 12 bit byte offset for 32 bit load/store from the page of
  5869. the GOT entry for this symbol. Used in conjunction with
  5870. BFD_RELOC_AARCH64_ADR_GOT_PAGE. Valid in ILP32 ABI only.
  5871. -- : BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC
  5872. Unsigned 16 bit byte offset for 64 bit load/store from the GOT
  5873. entry for this symbol. Valid in LP64 ABI only.
  5874. -- : BFD_RELOC_AARCH64_MOVW_GOTOFF_G1
  5875. Unsigned 16 bit byte higher offset for 64 bit load/store from the
  5876. GOT entry for this symbol. Valid in LP64 ABI only.
  5877. -- : BFD_RELOC_AARCH64_LD64_GOTOFF_LO15
  5878. Unsigned 15 bit byte offset for 64 bit load/store from the page of
  5879. the GOT entry for this symbol. Valid in LP64 ABI only.
  5880. -- : BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14
  5881. Scaled 14 bit byte offset to the page base of the global offset
  5882. table.
  5883. -- : BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15
  5884. Scaled 15 bit byte offset to the page base of the global offset
  5885. table.
  5886. -- : BFD_RELOC_AARCH64_TLSGD_ADR_PAGE21
  5887. Get to the page base of the global offset table entry for a symbols
  5888. tls_index structure as part of an adrp instruction using a 21 bit
  5889. PC relative value. Used in conjunction with
  5890. BFD_RELOC_AARCH64_TLSGD_ADD_LO12_NC.
  5891. -- : BFD_RELOC_AARCH64_TLSGD_ADR_PREL21
  5892. AArch64 TLS General Dynamic
  5893. -- : BFD_RELOC_AARCH64_TLSGD_ADD_LO12_NC
  5894. Unsigned 12 bit byte offset to global offset table entry for a
  5895. symbols tls_index structure. Used in conjunction with
  5896. BFD_RELOC_AARCH64_TLSGD_ADR_PAGE21.
  5897. -- : BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC
  5898. AArch64 TLS General Dynamic relocation.
  5899. -- : BFD_RELOC_AARCH64_TLSGD_MOVW_G1
  5900. AArch64 TLS General Dynamic relocation.
  5901. -- : BFD_RELOC_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21
  5902. AArch64 TLS INITIAL EXEC relocation.
  5903. -- : BFD_RELOC_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC
  5904. AArch64 TLS INITIAL EXEC relocation.
  5905. -- : BFD_RELOC_AARCH64_TLSIE_LD32_GOTTPREL_LO12_NC
  5906. AArch64 TLS INITIAL EXEC relocation.
  5907. -- : BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19
  5908. AArch64 TLS INITIAL EXEC relocation.
  5909. -- : BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC
  5910. AArch64 TLS INITIAL EXEC relocation.
  5911. -- : BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G1
  5912. AArch64 TLS INITIAL EXEC relocation.
  5913. -- : BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_HI12
  5914. bit[23:12] of byte offset to module TLS base address.
  5915. -- : BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12
  5916. Unsigned 12 bit byte offset to module TLS base address.
  5917. -- : BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC
  5918. No overflow check version of
  5919. BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12.
  5920. -- : BFD_RELOC_AARCH64_TLSLD_ADD_LO12_NC
  5921. Unsigned 12 bit byte offset to global offset table entry for a
  5922. symbols tls_index structure. Used in conjunction with
  5923. BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21.
  5924. -- : BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21
  5925. GOT entry page address for AArch64 TLS Local Dynamic, used with
  5926. ADRP instruction.
  5927. -- : BFD_RELOC_AARCH64_TLSLD_ADR_PREL21
  5928. GOT entry address for AArch64 TLS Local Dynamic, used with ADR
  5929. instruction.
  5930. -- : BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12
  5931. bit[11:1] of byte offset to module TLS base address, encoded in
  5932. ldst instructions.
  5933. -- : BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC
  5934. Similar as BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12, but no
  5935. overflow check.
  5936. -- : BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12
  5937. bit[11:2] of byte offset to module TLS base address, encoded in
  5938. ldst instructions.
  5939. -- : BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC
  5940. Similar as BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12, but no
  5941. overflow check.
  5942. -- : BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12
  5943. bit[11:3] of byte offset to module TLS base address, encoded in
  5944. ldst instructions.
  5945. -- : BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC
  5946. Similar as BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12, but no
  5947. overflow check.
  5948. -- : BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12
  5949. bit[11:0] of byte offset to module TLS base address, encoded in
  5950. ldst instructions.
  5951. -- : BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC
  5952. Similar as BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12, but no
  5953. overflow check.
  5954. -- : BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0
  5955. bit[15:0] of byte offset to module TLS base address.
  5956. -- : BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0_NC
  5957. No overflow check version of BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0
  5958. -- : BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1
  5959. bit[31:16] of byte offset to module TLS base address.
  5960. -- : BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1_NC
  5961. No overflow check version of BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1
  5962. -- : BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G2
  5963. bit[47:32] of byte offset to module TLS base address.
  5964. -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G2
  5965. AArch64 TLS LOCAL EXEC relocation.
  5966. -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1
  5967. AArch64 TLS LOCAL EXEC relocation.
  5968. -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1_NC
  5969. AArch64 TLS LOCAL EXEC relocation.
  5970. -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0
  5971. AArch64 TLS LOCAL EXEC relocation.
  5972. -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0_NC
  5973. AArch64 TLS LOCAL EXEC relocation.
  5974. -- : BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_HI12
  5975. AArch64 TLS LOCAL EXEC relocation.
  5976. -- : BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12
  5977. AArch64 TLS LOCAL EXEC relocation.
  5978. -- : BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12_NC
  5979. AArch64 TLS LOCAL EXEC relocation.
  5980. -- : BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12
  5981. bit[11:1] of byte offset to module TLS base address, encoded in
  5982. ldst instructions.
  5983. -- : BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC
  5984. Similar as BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12, but no
  5985. overflow check.
  5986. -- : BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12
  5987. bit[11:2] of byte offset to module TLS base address, encoded in
  5988. ldst instructions.
  5989. -- : BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC
  5990. Similar as BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12, but no
  5991. overflow check.
  5992. -- : BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12
  5993. bit[11:3] of byte offset to module TLS base address, encoded in
  5994. ldst instructions.
  5995. -- : BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC
  5996. Similar as BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12, but no
  5997. overflow check.
  5998. -- : BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12
  5999. bit[11:0] of byte offset to module TLS base address, encoded in
  6000. ldst instructions.
  6001. -- : BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC
  6002. Similar as BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12, but no
  6003. overflow check.
  6004. -- : BFD_RELOC_AARCH64_TLSDESC_LD_PREL19
  6005. AArch64 TLS DESC relocation.
  6006. -- : BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21
  6007. AArch64 TLS DESC relocation.
  6008. -- : BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE21
  6009. AArch64 TLS DESC relocation.
  6010. -- : BFD_RELOC_AARCH64_TLSDESC_LD64_LO12
  6011. AArch64 TLS DESC relocation.
  6012. -- : BFD_RELOC_AARCH64_TLSDESC_LD32_LO12_NC
  6013. AArch64 TLS DESC relocation.
  6014. -- : BFD_RELOC_AARCH64_TLSDESC_ADD_LO12
  6015. AArch64 TLS DESC relocation.
  6016. -- : BFD_RELOC_AARCH64_TLSDESC_OFF_G1
  6017. AArch64 TLS DESC relocation.
  6018. -- : BFD_RELOC_AARCH64_TLSDESC_OFF_G0_NC
  6019. AArch64 TLS DESC relocation.
  6020. -- : BFD_RELOC_AARCH64_TLSDESC_LDR
  6021. AArch64 TLS DESC relocation.
  6022. -- : BFD_RELOC_AARCH64_TLSDESC_ADD
  6023. AArch64 TLS DESC relocation.
  6024. -- : BFD_RELOC_AARCH64_TLSDESC_CALL
  6025. AArch64 TLS DESC relocation.
  6026. -- : BFD_RELOC_AARCH64_COPY
  6027. AArch64 TLS relocation.
  6028. -- : BFD_RELOC_AARCH64_GLOB_DAT
  6029. AArch64 TLS relocation.
  6030. -- : BFD_RELOC_AARCH64_JUMP_SLOT
  6031. AArch64 TLS relocation.
  6032. -- : BFD_RELOC_AARCH64_RELATIVE
  6033. AArch64 TLS relocation.
  6034. -- : BFD_RELOC_AARCH64_TLS_DTPMOD
  6035. AArch64 TLS relocation.
  6036. -- : BFD_RELOC_AARCH64_TLS_DTPREL
  6037. AArch64 TLS relocation.
  6038. -- : BFD_RELOC_AARCH64_TLS_TPREL
  6039. AArch64 TLS relocation.
  6040. -- : BFD_RELOC_AARCH64_TLSDESC
  6041. AArch64 TLS relocation.
  6042. -- : BFD_RELOC_AARCH64_IRELATIVE
  6043. AArch64 support for STT_GNU_IFUNC.
  6044. -- : BFD_RELOC_AARCH64_RELOC_END
  6045. AArch64 pseudo relocation code to mark the end of the AArch64
  6046. relocation enumerators that have direct mapping to ELF reloc codes.
  6047. There are a few more enumerators after this one; those are mainly
  6048. used by the AArch64 assembler for the internal fixup or to select
  6049. one of the above enumerators.
  6050. -- : BFD_RELOC_AARCH64_GAS_INTERNAL_FIXUP
  6051. AArch64 pseudo relocation code to be used internally by the AArch64
  6052. assembler and not (currently) written to any object files.
  6053. -- : BFD_RELOC_AARCH64_LDST_LO12
  6054. AArch64 unspecified load/store instruction, holding bits 0 to 11 of
  6055. the address. Used in conjunction with
  6056. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  6057. -- : BFD_RELOC_AARCH64_TLSLD_LDST_DTPREL_LO12
  6058. AArch64 pseudo relocation code for TLS local dynamic mode. It's to
  6059. be used internally by the AArch64 assembler and not (currently)
  6060. written to any object files.
  6061. -- : BFD_RELOC_AARCH64_TLSLD_LDST_DTPREL_LO12_NC
  6062. Similar as BFD_RELOC_AARCH64_TLSLD_LDST_DTPREL_LO12, but no
  6063. overflow check.
  6064. -- : BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
  6065. AArch64 pseudo relocation code for TLS local exec mode. It's to be
  6066. used internally by the AArch64 assembler and not (currently)
  6067. written to any object files.
  6068. -- : BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC
  6069. Similar as BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12, but no overflow
  6070. check.
  6071. -- : BFD_RELOC_AARCH64_LD_GOT_LO12_NC
  6072. AArch64 pseudo relocation code to be used internally by the AArch64
  6073. assembler and not (currently) written to any object files.
  6074. -- : BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_LO12_NC
  6075. AArch64 pseudo relocation code to be used internally by the AArch64
  6076. assembler and not (currently) written to any object files.
  6077. -- : BFD_RELOC_AARCH64_TLSDESC_LD_LO12_NC
  6078. AArch64 pseudo relocation code to be used internally by the AArch64
  6079. assembler and not (currently) written to any object files.
  6080. -- : BFD_RELOC_TILEPRO_COPY
  6081. -- : BFD_RELOC_TILEPRO_GLOB_DAT
  6082. -- : BFD_RELOC_TILEPRO_JMP_SLOT
  6083. -- : BFD_RELOC_TILEPRO_RELATIVE
  6084. -- : BFD_RELOC_TILEPRO_BROFF_X1
  6085. -- : BFD_RELOC_TILEPRO_JOFFLONG_X1
  6086. -- : BFD_RELOC_TILEPRO_JOFFLONG_X1_PLT
  6087. -- : BFD_RELOC_TILEPRO_IMM8_X0
  6088. -- : BFD_RELOC_TILEPRO_IMM8_Y0
  6089. -- : BFD_RELOC_TILEPRO_IMM8_X1
  6090. -- : BFD_RELOC_TILEPRO_IMM8_Y1
  6091. -- : BFD_RELOC_TILEPRO_DEST_IMM8_X1
  6092. -- : BFD_RELOC_TILEPRO_MT_IMM15_X1
  6093. -- : BFD_RELOC_TILEPRO_MF_IMM15_X1
  6094. -- : BFD_RELOC_TILEPRO_IMM16_X0
  6095. -- : BFD_RELOC_TILEPRO_IMM16_X1
  6096. -- : BFD_RELOC_TILEPRO_IMM16_X0_LO
  6097. -- : BFD_RELOC_TILEPRO_IMM16_X1_LO
  6098. -- : BFD_RELOC_TILEPRO_IMM16_X0_HI
  6099. -- : BFD_RELOC_TILEPRO_IMM16_X1_HI
  6100. -- : BFD_RELOC_TILEPRO_IMM16_X0_HA
  6101. -- : BFD_RELOC_TILEPRO_IMM16_X1_HA
  6102. -- : BFD_RELOC_TILEPRO_IMM16_X0_PCREL
  6103. -- : BFD_RELOC_TILEPRO_IMM16_X1_PCREL
  6104. -- : BFD_RELOC_TILEPRO_IMM16_X0_LO_PCREL
  6105. -- : BFD_RELOC_TILEPRO_IMM16_X1_LO_PCREL
  6106. -- : BFD_RELOC_TILEPRO_IMM16_X0_HI_PCREL
  6107. -- : BFD_RELOC_TILEPRO_IMM16_X1_HI_PCREL
  6108. -- : BFD_RELOC_TILEPRO_IMM16_X0_HA_PCREL
  6109. -- : BFD_RELOC_TILEPRO_IMM16_X1_HA_PCREL
  6110. -- : BFD_RELOC_TILEPRO_IMM16_X0_GOT
  6111. -- : BFD_RELOC_TILEPRO_IMM16_X1_GOT
  6112. -- : BFD_RELOC_TILEPRO_IMM16_X0_GOT_LO
  6113. -- : BFD_RELOC_TILEPRO_IMM16_X1_GOT_LO
  6114. -- : BFD_RELOC_TILEPRO_IMM16_X0_GOT_HI
  6115. -- : BFD_RELOC_TILEPRO_IMM16_X1_GOT_HI
  6116. -- : BFD_RELOC_TILEPRO_IMM16_X0_GOT_HA
  6117. -- : BFD_RELOC_TILEPRO_IMM16_X1_GOT_HA
  6118. -- : BFD_RELOC_TILEPRO_MMSTART_X0
  6119. -- : BFD_RELOC_TILEPRO_MMEND_X0
  6120. -- : BFD_RELOC_TILEPRO_MMSTART_X1
  6121. -- : BFD_RELOC_TILEPRO_MMEND_X1
  6122. -- : BFD_RELOC_TILEPRO_SHAMT_X0
  6123. -- : BFD_RELOC_TILEPRO_SHAMT_X1
  6124. -- : BFD_RELOC_TILEPRO_SHAMT_Y0
  6125. -- : BFD_RELOC_TILEPRO_SHAMT_Y1
  6126. -- : BFD_RELOC_TILEPRO_TLS_GD_CALL
  6127. -- : BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD
  6128. -- : BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD
  6129. -- : BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD
  6130. -- : BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD
  6131. -- : BFD_RELOC_TILEPRO_TLS_IE_LOAD
  6132. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD
  6133. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD
  6134. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_LO
  6135. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_LO
  6136. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HI
  6137. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HI
  6138. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HA
  6139. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HA
  6140. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE
  6141. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE
  6142. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_LO
  6143. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_LO
  6144. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HI
  6145. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HI
  6146. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HA
  6147. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HA
  6148. -- : BFD_RELOC_TILEPRO_TLS_DTPMOD32
  6149. -- : BFD_RELOC_TILEPRO_TLS_DTPOFF32
  6150. -- : BFD_RELOC_TILEPRO_TLS_TPOFF32
  6151. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE
  6152. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE
  6153. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO
  6154. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO
  6155. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI
  6156. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI
  6157. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA
  6158. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA
  6159. Tilera TILEPro Relocations.
  6160. -- : BFD_RELOC_TILEGX_HW0
  6161. -- : BFD_RELOC_TILEGX_HW1
  6162. -- : BFD_RELOC_TILEGX_HW2
  6163. -- : BFD_RELOC_TILEGX_HW3
  6164. -- : BFD_RELOC_TILEGX_HW0_LAST
  6165. -- : BFD_RELOC_TILEGX_HW1_LAST
  6166. -- : BFD_RELOC_TILEGX_HW2_LAST
  6167. -- : BFD_RELOC_TILEGX_COPY
  6168. -- : BFD_RELOC_TILEGX_GLOB_DAT
  6169. -- : BFD_RELOC_TILEGX_JMP_SLOT
  6170. -- : BFD_RELOC_TILEGX_RELATIVE
  6171. -- : BFD_RELOC_TILEGX_BROFF_X1
  6172. -- : BFD_RELOC_TILEGX_JUMPOFF_X1
  6173. -- : BFD_RELOC_TILEGX_JUMPOFF_X1_PLT
  6174. -- : BFD_RELOC_TILEGX_IMM8_X0
  6175. -- : BFD_RELOC_TILEGX_IMM8_Y0
  6176. -- : BFD_RELOC_TILEGX_IMM8_X1
  6177. -- : BFD_RELOC_TILEGX_IMM8_Y1
  6178. -- : BFD_RELOC_TILEGX_DEST_IMM8_X1
  6179. -- : BFD_RELOC_TILEGX_MT_IMM14_X1
  6180. -- : BFD_RELOC_TILEGX_MF_IMM14_X1
  6181. -- : BFD_RELOC_TILEGX_MMSTART_X0
  6182. -- : BFD_RELOC_TILEGX_MMEND_X0
  6183. -- : BFD_RELOC_TILEGX_SHAMT_X0
  6184. -- : BFD_RELOC_TILEGX_SHAMT_X1
  6185. -- : BFD_RELOC_TILEGX_SHAMT_Y0
  6186. -- : BFD_RELOC_TILEGX_SHAMT_Y1
  6187. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0
  6188. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0
  6189. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1
  6190. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1
  6191. -- : BFD_RELOC_TILEGX_IMM16_X0_HW2
  6192. -- : BFD_RELOC_TILEGX_IMM16_X1_HW2
  6193. -- : BFD_RELOC_TILEGX_IMM16_X0_HW3
  6194. -- : BFD_RELOC_TILEGX_IMM16_X1_HW3
  6195. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST
  6196. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST
  6197. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST
  6198. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST
  6199. -- : BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST
  6200. -- : BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST
  6201. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_PCREL
  6202. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_PCREL
  6203. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_PCREL
  6204. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_PCREL
  6205. -- : BFD_RELOC_TILEGX_IMM16_X0_HW2_PCREL
  6206. -- : BFD_RELOC_TILEGX_IMM16_X1_HW2_PCREL
  6207. -- : BFD_RELOC_TILEGX_IMM16_X0_HW3_PCREL
  6208. -- : BFD_RELOC_TILEGX_IMM16_X1_HW3_PCREL
  6209. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PCREL
  6210. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PCREL
  6211. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PCREL
  6212. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PCREL
  6213. -- : BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PCREL
  6214. -- : BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PCREL
  6215. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_GOT
  6216. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_GOT
  6217. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_PLT_PCREL
  6218. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_PLT_PCREL
  6219. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_PLT_PCREL
  6220. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_PLT_PCREL
  6221. -- : BFD_RELOC_TILEGX_IMM16_X0_HW2_PLT_PCREL
  6222. -- : BFD_RELOC_TILEGX_IMM16_X1_HW2_PLT_PCREL
  6223. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_GOT
  6224. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_GOT
  6225. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_GOT
  6226. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_GOT
  6227. -- : BFD_RELOC_TILEGX_IMM16_X0_HW3_PLT_PCREL
  6228. -- : BFD_RELOC_TILEGX_IMM16_X1_HW3_PLT_PCREL
  6229. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_GD
  6230. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_GD
  6231. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE
  6232. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE
  6233. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE
  6234. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE
  6235. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE
  6236. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE
  6237. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_GD
  6238. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_GD
  6239. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_GD
  6240. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_GD
  6241. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_IE
  6242. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_IE
  6243. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL
  6244. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL
  6245. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL
  6246. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL
  6247. -- : BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL
  6248. -- : BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL
  6249. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_IE
  6250. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_IE
  6251. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_IE
  6252. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_IE
  6253. -- : BFD_RELOC_TILEGX_TLS_DTPMOD64
  6254. -- : BFD_RELOC_TILEGX_TLS_DTPOFF64
  6255. -- : BFD_RELOC_TILEGX_TLS_TPOFF64
  6256. -- : BFD_RELOC_TILEGX_TLS_DTPMOD32
  6257. -- : BFD_RELOC_TILEGX_TLS_DTPOFF32
  6258. -- : BFD_RELOC_TILEGX_TLS_TPOFF32
  6259. -- : BFD_RELOC_TILEGX_TLS_GD_CALL
  6260. -- : BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD
  6261. -- : BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD
  6262. -- : BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD
  6263. -- : BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD
  6264. -- : BFD_RELOC_TILEGX_TLS_IE_LOAD
  6265. -- : BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD
  6266. -- : BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD
  6267. -- : BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD
  6268. -- : BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD
  6269. Tilera TILE-Gx Relocations.
  6270. -- : BFD_RELOC_BPF_64
  6271. -- : BFD_RELOC_BPF_32
  6272. -- : BFD_RELOC_BPF_16
  6273. -- : BFD_RELOC_BPF_DISP16
  6274. -- : BFD_RELOC_BPF_DISP32
  6275. Linux eBPF relocations.
  6276. -- : BFD_RELOC_EPIPHANY_SIMM8
  6277. Adapteva EPIPHANY - 8 bit signed pc-relative displacement
  6278. -- : BFD_RELOC_EPIPHANY_SIMM24
  6279. Adapteva EPIPHANY - 24 bit signed pc-relative displacement
  6280. -- : BFD_RELOC_EPIPHANY_HIGH
  6281. Adapteva EPIPHANY - 16 most-significant bits of absolute address
  6282. -- : BFD_RELOC_EPIPHANY_LOW
  6283. Adapteva EPIPHANY - 16 least-significant bits of absolute address
  6284. -- : BFD_RELOC_EPIPHANY_SIMM11
  6285. Adapteva EPIPHANY - 11 bit signed number - add/sub immediate
  6286. -- : BFD_RELOC_EPIPHANY_IMM11
  6287. Adapteva EPIPHANY - 11 bit sign-magnitude number (ld/st
  6288. displacement)
  6289. -- : BFD_RELOC_EPIPHANY_IMM8
  6290. Adapteva EPIPHANY - 8 bit immediate for 16 bit mov instruction.
  6291. -- : BFD_RELOC_VISIUM_HI16
  6292. -- : BFD_RELOC_VISIUM_LO16
  6293. -- : BFD_RELOC_VISIUM_IM16
  6294. -- : BFD_RELOC_VISIUM_REL16
  6295. -- : BFD_RELOC_VISIUM_HI16_PCREL
  6296. -- : BFD_RELOC_VISIUM_LO16_PCREL
  6297. -- : BFD_RELOC_VISIUM_IM16_PCREL
  6298. Visium Relocations.
  6299. -- : BFD_RELOC_WASM32_LEB128
  6300. -- : BFD_RELOC_WASM32_LEB128_GOT
  6301. -- : BFD_RELOC_WASM32_LEB128_GOT_CODE
  6302. -- : BFD_RELOC_WASM32_LEB128_PLT
  6303. -- : BFD_RELOC_WASM32_PLT_INDEX
  6304. -- : BFD_RELOC_WASM32_ABS32_CODE
  6305. -- : BFD_RELOC_WASM32_COPY
  6306. -- : BFD_RELOC_WASM32_CODE_POINTER
  6307. -- : BFD_RELOC_WASM32_INDEX
  6308. -- : BFD_RELOC_WASM32_PLT_SIG
  6309. WebAssembly relocations.
  6310. -- : BFD_RELOC_CKCORE_NONE
  6311. -- : BFD_RELOC_CKCORE_ADDR32
  6312. -- : BFD_RELOC_CKCORE_PCREL_IMM8BY4
  6313. -- : BFD_RELOC_CKCORE_PCREL_IMM11BY2
  6314. -- : BFD_RELOC_CKCORE_PCREL_IMM4BY2
  6315. -- : BFD_RELOC_CKCORE_PCREL32
  6316. -- : BFD_RELOC_CKCORE_PCREL_JSR_IMM11BY2
  6317. -- : BFD_RELOC_CKCORE_GNU_VTINHERIT
  6318. -- : BFD_RELOC_CKCORE_GNU_VTENTRY
  6319. -- : BFD_RELOC_CKCORE_RELATIVE
  6320. -- : BFD_RELOC_CKCORE_COPY
  6321. -- : BFD_RELOC_CKCORE_GLOB_DAT
  6322. -- : BFD_RELOC_CKCORE_JUMP_SLOT
  6323. -- : BFD_RELOC_CKCORE_GOTOFF
  6324. -- : BFD_RELOC_CKCORE_GOTPC
  6325. -- : BFD_RELOC_CKCORE_GOT32
  6326. -- : BFD_RELOC_CKCORE_PLT32
  6327. -- : BFD_RELOC_CKCORE_ADDRGOT
  6328. -- : BFD_RELOC_CKCORE_ADDRPLT
  6329. -- : BFD_RELOC_CKCORE_PCREL_IMM26BY2
  6330. -- : BFD_RELOC_CKCORE_PCREL_IMM16BY2
  6331. -- : BFD_RELOC_CKCORE_PCREL_IMM16BY4
  6332. -- : BFD_RELOC_CKCORE_PCREL_IMM10BY2
  6333. -- : BFD_RELOC_CKCORE_PCREL_IMM10BY4
  6334. -- : BFD_RELOC_CKCORE_ADDR_HI16
  6335. -- : BFD_RELOC_CKCORE_ADDR_LO16
  6336. -- : BFD_RELOC_CKCORE_GOTPC_HI16
  6337. -- : BFD_RELOC_CKCORE_GOTPC_LO16
  6338. -- : BFD_RELOC_CKCORE_GOTOFF_HI16
  6339. -- : BFD_RELOC_CKCORE_GOTOFF_LO16
  6340. -- : BFD_RELOC_CKCORE_GOT12
  6341. -- : BFD_RELOC_CKCORE_GOT_HI16
  6342. -- : BFD_RELOC_CKCORE_GOT_LO16
  6343. -- : BFD_RELOC_CKCORE_PLT12
  6344. -- : BFD_RELOC_CKCORE_PLT_HI16
  6345. -- : BFD_RELOC_CKCORE_PLT_LO16
  6346. -- : BFD_RELOC_CKCORE_ADDRGOT_HI16
  6347. -- : BFD_RELOC_CKCORE_ADDRGOT_LO16
  6348. -- : BFD_RELOC_CKCORE_ADDRPLT_HI16
  6349. -- : BFD_RELOC_CKCORE_ADDRPLT_LO16
  6350. -- : BFD_RELOC_CKCORE_PCREL_JSR_IMM26BY2
  6351. -- : BFD_RELOC_CKCORE_TOFFSET_LO16
  6352. -- : BFD_RELOC_CKCORE_DOFFSET_LO16
  6353. -- : BFD_RELOC_CKCORE_PCREL_IMM18BY2
  6354. -- : BFD_RELOC_CKCORE_DOFFSET_IMM18
  6355. -- : BFD_RELOC_CKCORE_DOFFSET_IMM18BY2
  6356. -- : BFD_RELOC_CKCORE_DOFFSET_IMM18BY4
  6357. -- : BFD_RELOC_CKCORE_GOTOFF_IMM18
  6358. -- : BFD_RELOC_CKCORE_GOT_IMM18BY4
  6359. -- : BFD_RELOC_CKCORE_PLT_IMM18BY4
  6360. -- : BFD_RELOC_CKCORE_PCREL_IMM7BY4
  6361. -- : BFD_RELOC_CKCORE_TLS_LE32
  6362. -- : BFD_RELOC_CKCORE_TLS_IE32
  6363. -- : BFD_RELOC_CKCORE_TLS_GD32
  6364. -- : BFD_RELOC_CKCORE_TLS_LDM32
  6365. -- : BFD_RELOC_CKCORE_TLS_LDO32
  6366. -- : BFD_RELOC_CKCORE_TLS_DTPMOD32
  6367. -- : BFD_RELOC_CKCORE_TLS_DTPOFF32
  6368. -- : BFD_RELOC_CKCORE_TLS_TPOFF32
  6369. -- : BFD_RELOC_CKCORE_PCREL_FLRW_IMM8BY4
  6370. -- : BFD_RELOC_CKCORE_NOJSRI
  6371. -- : BFD_RELOC_CKCORE_CALLGRAPH
  6372. -- : BFD_RELOC_CKCORE_IRELATIVE
  6373. -- : BFD_RELOC_CKCORE_PCREL_BLOOP_IMM4BY4
  6374. -- : BFD_RELOC_CKCORE_PCREL_BLOOP_IMM12BY4
  6375. C-SKY relocations.
  6376. -- : BFD_RELOC_S12Z_OPR
  6377. S12Z relocations.
  6378. typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;
  6379. 2.10.2.2 'bfd_reloc_type_lookup'
  6380. ................................
  6381. *Synopsis*
  6382. reloc_howto_type *bfd_reloc_type_lookup
  6383. (bfd *abfd, bfd_reloc_code_real_type code);
  6384. reloc_howto_type *bfd_reloc_name_lookup
  6385. (bfd *abfd, const char *reloc_name);
  6386. *Description*
  6387. Return a pointer to a howto structure which, when invoked, will perform
  6388. the relocation CODE on data from the architecture noted.
  6389. 2.10.2.3 'bfd_default_reloc_type_lookup'
  6390. ........................................
  6391. *Synopsis*
  6392. reloc_howto_type *bfd_default_reloc_type_lookup
  6393. (bfd *abfd, bfd_reloc_code_real_type code);
  6394. *Description*
  6395. Provides a default relocation lookup routine for any architecture.
  6396. 2.10.2.4 'bfd_get_reloc_code_name'
  6397. ..................................
  6398. *Synopsis*
  6399. const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code);
  6400. *Description*
  6401. Provides a printable name for the supplied relocation code. Useful
  6402. mainly for printing error messages.
  6403. 2.10.2.5 'bfd_generic_relax_section'
  6404. ....................................
  6405. *Synopsis*
  6406. bfd_boolean bfd_generic_relax_section
  6407. (bfd *abfd,
  6408. asection *section,
  6409. struct bfd_link_info *,
  6410. bfd_boolean *);
  6411. *Description*
  6412. Provides default handling for relaxing for back ends which don't do
  6413. relaxing.
  6414. 2.10.2.6 'bfd_generic_gc_sections'
  6415. ..................................
  6416. *Synopsis*
  6417. bfd_boolean bfd_generic_gc_sections
  6418. (bfd *, struct bfd_link_info *);
  6419. *Description*
  6420. Provides default handling for relaxing for back ends which don't do
  6421. section gc - i.e., does nothing.
  6422. 2.10.2.7 'bfd_generic_lookup_section_flags'
  6423. ...........................................
  6424. *Synopsis*
  6425. bfd_boolean bfd_generic_lookup_section_flags
  6426. (struct bfd_link_info *, struct flag_info *, asection *);
  6427. *Description*
  6428. Provides default handling for section flags lookup - i.e., does nothing.
  6429. Returns FALSE if the section should be omitted, otherwise TRUE.
  6430. 2.10.2.8 'bfd_generic_merge_sections'
  6431. .....................................
  6432. *Synopsis*
  6433. bfd_boolean bfd_generic_merge_sections
  6434. (bfd *, struct bfd_link_info *);
  6435. *Description*
  6436. Provides default handling for SEC_MERGE section merging for back ends
  6437. which don't have SEC_MERGE support - i.e., does nothing.
  6438. 2.10.2.9 'bfd_generic_get_relocated_section_contents'
  6439. .....................................................
  6440. *Synopsis*
  6441. bfd_byte *bfd_generic_get_relocated_section_contents
  6442. (bfd *abfd,
  6443. struct bfd_link_info *link_info,
  6444. struct bfd_link_order *link_order,
  6445. bfd_byte *data,
  6446. bfd_boolean relocatable,
  6447. asymbol **symbols);
  6448. *Description*
  6449. Provides default handling of relocation effort for back ends which can't
  6450. be bothered to do it efficiently.
  6451. 2.10.2.10 '_bfd_generic_set_reloc'
  6452. ..................................
  6453. *Synopsis*
  6454. void _bfd_generic_set_reloc
  6455. (bfd *abfd,
  6456. sec_ptr section,
  6457. arelent **relptr,
  6458. unsigned int count);
  6459. *Description*
  6460. Installs a new set of internal relocations in SECTION.
  6461. 2.10.2.11 '_bfd_unrecognized_reloc'
  6462. ...................................
  6463. *Synopsis*
  6464. bfd_boolean _bfd_unrecognized_reloc
  6465. (bfd * abfd,
  6466. sec_ptr section,
  6467. unsigned int r_type);
  6468. *Description*
  6469. Reports an unrecognized reloc. Written as a function in order to reduce
  6470. code duplication. Returns FALSE so that it can be called from a return
  6471. statement.
  6472. 
  6473. File: bfd.info, Node: Core Files, Next: Targets, Prev: Relocations, Up: BFD front end
  6474. 2.11 Core files
  6475. ===============
  6476. 2.11.1 Core file functions
  6477. --------------------------
  6478. *Description*
  6479. These are functions pertaining to core files.
  6480. 2.11.1.1 'bfd_core_file_failing_command'
  6481. ........................................
  6482. *Synopsis*
  6483. const char *bfd_core_file_failing_command (bfd *abfd);
  6484. *Description*
  6485. Return a read-only string explaining which program was running when it
  6486. failed and produced the core file ABFD.
  6487. 2.11.1.2 'bfd_core_file_failing_signal'
  6488. .......................................
  6489. *Synopsis*
  6490. int bfd_core_file_failing_signal (bfd *abfd);
  6491. *Description*
  6492. Returns the signal number which caused the core dump which generated the
  6493. file the BFD ABFD is attached to.
  6494. 2.11.1.3 'bfd_core_file_pid'
  6495. ............................
  6496. *Synopsis*
  6497. int bfd_core_file_pid (bfd *abfd);
  6498. *Description*
  6499. Returns the PID of the process the core dump the BFD ABFD is attached to
  6500. was generated from.
  6501. 2.11.1.4 'core_file_matches_executable_p'
  6502. .........................................
  6503. *Synopsis*
  6504. bfd_boolean core_file_matches_executable_p
  6505. (bfd *core_bfd, bfd *exec_bfd);
  6506. *Description*
  6507. Return 'TRUE' if the core file attached to CORE_BFD was generated by a
  6508. run of the executable file attached to EXEC_BFD, 'FALSE' otherwise.
  6509. 2.11.1.5 'generic_core_file_matches_executable_p'
  6510. .................................................
  6511. *Synopsis*
  6512. bfd_boolean generic_core_file_matches_executable_p
  6513. (bfd *core_bfd, bfd *exec_bfd);
  6514. *Description*
  6515. Return TRUE if the core file attached to CORE_BFD was generated by a run
  6516. of the executable file attached to EXEC_BFD. The match is based on
  6517. executable basenames only.
  6518. Note: When not able to determine the core file failing command or the
  6519. executable name, we still return TRUE even though we're not sure that
  6520. core file and executable match. This is to avoid generating a false
  6521. warning in situations where we really don't know whether they match or
  6522. not.
  6523. 
  6524. File: bfd.info, Node: Targets, Next: Architectures, Prev: Core Files, Up: BFD front end
  6525. 2.12 Targets
  6526. ============
  6527. *Description*
  6528. Each port of BFD to a different machine requires the creation of a
  6529. target back end. All the back end provides to the root part of BFD is a
  6530. structure containing pointers to functions which perform certain low
  6531. level operations on files. BFD translates the applications's requests
  6532. through a pointer into calls to the back end routines.
  6533. When a file is opened with 'bfd_openr', its format and target are
  6534. unknown. BFD uses various mechanisms to determine how to interpret the
  6535. file. The operations performed are:
  6536. * Create a BFD by calling the internal routine '_bfd_new_bfd', then
  6537. call 'bfd_find_target' with the target string supplied to
  6538. 'bfd_openr' and the new BFD pointer.
  6539. * If a null target string was provided to 'bfd_find_target', look up
  6540. the environment variable 'GNUTARGET' and use that as the target
  6541. string.
  6542. * If the target string is still 'NULL', or the target string is
  6543. 'default', then use the first item in the target vector as the
  6544. target type, and set 'target_defaulted' in the BFD to cause
  6545. 'bfd_check_format' to loop through all the targets. *Note
  6546. bfd_target::. *Note Formats::.
  6547. * Otherwise, inspect the elements in the target vector one by one,
  6548. until a match on target name is found. When found, use it.
  6549. * Otherwise return the error 'bfd_error_invalid_target' to
  6550. 'bfd_openr'.
  6551. * 'bfd_openr' attempts to open the file using 'bfd_open_file', and
  6552. returns the BFD.
  6553. Once the BFD has been opened and the target selected, the file format
  6554. may be determined. This is done by calling 'bfd_check_format' on the
  6555. BFD with a suggested format. If 'target_defaulted' has been set, each
  6556. possible target type is tried to see if it recognizes the specified
  6557. format. 'bfd_check_format' returns 'TRUE' when the caller guesses
  6558. right.
  6559. * Menu:
  6560. * bfd_target::
  6561. 
  6562. File: bfd.info, Node: bfd_target, Prev: Targets, Up: Targets
  6563. 2.12.1 bfd_target
  6564. -----------------
  6565. *Description*
  6566. This structure contains everything that BFD knows about a target. It
  6567. includes things like its byte order, name, and which routines to call to
  6568. do various operations.
  6569. Every BFD points to a target structure with its 'xvec' member.
  6570. The macros below are used to dispatch to functions through the
  6571. 'bfd_target' vector. They are used in a number of macros further down
  6572. in 'bfd.h', and are also used when calling various routines by hand
  6573. inside the BFD implementation. The ARGLIST argument must be
  6574. parenthesized; it contains all the arguments to the called function.
  6575. They make the documentation (more) unpleasant to read, so if someone
  6576. wants to fix this and not break the above, please do.
  6577. #define BFD_SEND(bfd, message, arglist) \
  6578. ((*((bfd)->xvec->message)) arglist)
  6579. #ifdef DEBUG_BFD_SEND
  6580. #undef BFD_SEND
  6581. #define BFD_SEND(bfd, message, arglist) \
  6582. (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
  6583. ((*((bfd)->xvec->message)) arglist) : \
  6584. (bfd_assert (__FILE__,__LINE__), NULL))
  6585. #endif
  6586. For operations which index on the BFD format:
  6587. #define BFD_SEND_FMT(bfd, message, arglist) \
  6588. (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist)
  6589. #ifdef DEBUG_BFD_SEND
  6590. #undef BFD_SEND_FMT
  6591. #define BFD_SEND_FMT(bfd, message, arglist) \
  6592. (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
  6593. (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist) : \
  6594. (bfd_assert (__FILE__,__LINE__), NULL))
  6595. #endif
  6596. This is the structure which defines the type of BFD this is. The
  6597. 'xvec' member of the struct 'bfd' itself points here. Each module that
  6598. implements access to a different target under BFD, defines one of these.
  6599. FIXME, these names should be rationalised with the names of the entry
  6600. points which call them. Too bad we can't have one macro to define them
  6601. both!
  6602. enum bfd_flavour
  6603. {
  6604. /* N.B. Update bfd_flavour_name if you change this. */
  6605. bfd_target_unknown_flavour,
  6606. bfd_target_aout_flavour,
  6607. bfd_target_coff_flavour,
  6608. bfd_target_ecoff_flavour,
  6609. bfd_target_xcoff_flavour,
  6610. bfd_target_elf_flavour,
  6611. bfd_target_tekhex_flavour,
  6612. bfd_target_srec_flavour,
  6613. bfd_target_verilog_flavour,
  6614. bfd_target_ihex_flavour,
  6615. bfd_target_som_flavour,
  6616. bfd_target_os9k_flavour,
  6617. bfd_target_versados_flavour,
  6618. bfd_target_msdos_flavour,
  6619. bfd_target_ovax_flavour,
  6620. bfd_target_evax_flavour,
  6621. bfd_target_mmo_flavour,
  6622. bfd_target_mach_o_flavour,
  6623. bfd_target_pef_flavour,
  6624. bfd_target_pef_xlib_flavour,
  6625. bfd_target_sym_flavour
  6626. };
  6627. enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN };
  6628. /* Forward declaration. */
  6629. typedef struct bfd_link_info _bfd_link_info;
  6630. /* Forward declaration. */
  6631. typedef struct flag_info flag_info;
  6632. typedef void (*bfd_cleanup) (bfd *);
  6633. typedef struct bfd_target
  6634. {
  6635. /* Identifies the kind of target, e.g., SunOS4, Ultrix, etc. */
  6636. const char *name;
  6637. /* The "flavour" of a back end is a general indication about
  6638. the contents of a file. */
  6639. enum bfd_flavour flavour;
  6640. /* The order of bytes within the data area of a file. */
  6641. enum bfd_endian byteorder;
  6642. /* The order of bytes within the header parts of a file. */
  6643. enum bfd_endian header_byteorder;
  6644. /* A mask of all the flags which an executable may have set -
  6645. from the set BFD_NO_FLAGS, HAS_RELOC, ...D_PAGED. */
  6646. flagword object_flags;
  6647. /* A mask of all the flags which a section may have set - from
  6648. the set SEC_NO_FLAGS, SEC_ALLOC, ...SET_NEVER_LOAD. */
  6649. flagword section_flags;
  6650. /* The character normally found at the front of a symbol.
  6651. (if any), perhaps `_'. */
  6652. char symbol_leading_char;
  6653. /* The pad character for file names within an archive header. */
  6654. char ar_pad_char;
  6655. /* The maximum number of characters in an archive header. */
  6656. unsigned char ar_max_namelen;
  6657. /* How well this target matches, used to select between various
  6658. possible targets when more than one target matches. */
  6659. unsigned char match_priority;
  6660. /* Entries for byte swapping for data. These are different from the
  6661. other entry points, since they don't take a BFD as the first argument.
  6662. Certain other handlers could do the same. */
  6663. bfd_uint64_t (*bfd_getx64) (const void *);
  6664. bfd_int64_t (*bfd_getx_signed_64) (const void *);
  6665. void (*bfd_putx64) (bfd_uint64_t, void *);
  6666. bfd_vma (*bfd_getx32) (const void *);
  6667. bfd_signed_vma (*bfd_getx_signed_32) (const void *);
  6668. void (*bfd_putx32) (bfd_vma, void *);
  6669. bfd_vma (*bfd_getx16) (const void *);
  6670. bfd_signed_vma (*bfd_getx_signed_16) (const void *);
  6671. void (*bfd_putx16) (bfd_vma, void *);
  6672. /* Byte swapping for the headers. */
  6673. bfd_uint64_t (*bfd_h_getx64) (const void *);
  6674. bfd_int64_t (*bfd_h_getx_signed_64) (const void *);
  6675. void (*bfd_h_putx64) (bfd_uint64_t, void *);
  6676. bfd_vma (*bfd_h_getx32) (const void *);
  6677. bfd_signed_vma (*bfd_h_getx_signed_32) (const void *);
  6678. void (*bfd_h_putx32) (bfd_vma, void *);
  6679. bfd_vma (*bfd_h_getx16) (const void *);
  6680. bfd_signed_vma (*bfd_h_getx_signed_16) (const void *);
  6681. void (*bfd_h_putx16) (bfd_vma, void *);
  6682. /* Format dependent routines: these are vectors of entry points
  6683. within the target vector structure, one for each format to check. */
  6684. /* Check the format of a file being read. Return a bfd_cleanup on
  6685. success or zero on failure. */
  6686. bfd_cleanup (*_bfd_check_format[bfd_type_end]) (bfd *);
  6687. /* Set the format of a file being written. */
  6688. bfd_boolean (*_bfd_set_format[bfd_type_end]) (bfd *);
  6689. /* Write cached information into a file being written, at bfd_close. */
  6690. bfd_boolean (*_bfd_write_contents[bfd_type_end]) (bfd *);
  6691. The general target vector. These vectors are initialized using the
  6692. BFD_JUMP_TABLE macros.
  6693. /* Generic entry points. */
  6694. #define BFD_JUMP_TABLE_GENERIC(NAME) \
  6695. NAME##_close_and_cleanup, \
  6696. NAME##_bfd_free_cached_info, \
  6697. NAME##_new_section_hook, \
  6698. NAME##_get_section_contents, \
  6699. NAME##_get_section_contents_in_window
  6700. /* Called when the BFD is being closed to do any necessary cleanup. */
  6701. bfd_boolean (*_close_and_cleanup) (bfd *);
  6702. /* Ask the BFD to free all cached information. */
  6703. bfd_boolean (*_bfd_free_cached_info) (bfd *);
  6704. /* Called when a new section is created. */
  6705. bfd_boolean (*_new_section_hook) (bfd *, sec_ptr);
  6706. /* Read the contents of a section. */
  6707. bfd_boolean (*_bfd_get_section_contents) (bfd *, sec_ptr, void *, file_ptr,
  6708. bfd_size_type);
  6709. bfd_boolean (*_bfd_get_section_contents_in_window) (bfd *, sec_ptr,
  6710. bfd_window *, file_ptr,
  6711. bfd_size_type);
  6712. /* Entry points to copy private data. */
  6713. #define BFD_JUMP_TABLE_COPY(NAME) \
  6714. NAME##_bfd_copy_private_bfd_data, \
  6715. NAME##_bfd_merge_private_bfd_data, \
  6716. _bfd_generic_init_private_section_data, \
  6717. NAME##_bfd_copy_private_section_data, \
  6718. NAME##_bfd_copy_private_symbol_data, \
  6719. NAME##_bfd_copy_private_header_data, \
  6720. NAME##_bfd_set_private_flags, \
  6721. NAME##_bfd_print_private_bfd_data
  6722. /* Called to copy BFD general private data from one object file
  6723. to another. */
  6724. bfd_boolean (*_bfd_copy_private_bfd_data) (bfd *, bfd *);
  6725. /* Called to merge BFD general private data from one object file
  6726. to a common output file when linking. */
  6727. bfd_boolean (*_bfd_merge_private_bfd_data) (bfd *, struct bfd_link_info *);
  6728. /* Called to initialize BFD private section data from one object file
  6729. to another. */
  6730. #define bfd_init_private_section_data(ibfd, isec, obfd, osec, link_info) \
  6731. BFD_SEND (obfd, _bfd_init_private_section_data, \
  6732. (ibfd, isec, obfd, osec, link_info))
  6733. bfd_boolean (*_bfd_init_private_section_data) (bfd *, sec_ptr, bfd *,
  6734. sec_ptr,
  6735. struct bfd_link_info *);
  6736. /* Called to copy BFD private section data from one object file
  6737. to another. */
  6738. bfd_boolean (*_bfd_copy_private_section_data) (bfd *, sec_ptr, bfd *,
  6739. sec_ptr);
  6740. /* Called to copy BFD private symbol data from one symbol
  6741. to another. */
  6742. bfd_boolean (*_bfd_copy_private_symbol_data) (bfd *, asymbol *, bfd *,
  6743. asymbol *);
  6744. /* Called to copy BFD private header data from one object file
  6745. to another. */
  6746. bfd_boolean (*_bfd_copy_private_header_data) (bfd *, bfd *);
  6747. /* Called to set private backend flags. */
  6748. bfd_boolean (*_bfd_set_private_flags) (bfd *, flagword);
  6749. /* Called to print private BFD data. */
  6750. bfd_boolean (*_bfd_print_private_bfd_data) (bfd *, void *);
  6751. /* Core file entry points. */
  6752. #define BFD_JUMP_TABLE_CORE(NAME) \
  6753. NAME##_core_file_failing_command, \
  6754. NAME##_core_file_failing_signal, \
  6755. NAME##_core_file_matches_executable_p, \
  6756. NAME##_core_file_pid
  6757. char * (*_core_file_failing_command) (bfd *);
  6758. int (*_core_file_failing_signal) (bfd *);
  6759. bfd_boolean (*_core_file_matches_executable_p) (bfd *, bfd *);
  6760. int (*_core_file_pid) (bfd *);
  6761. /* Archive entry points. */
  6762. #define BFD_JUMP_TABLE_ARCHIVE(NAME) \
  6763. NAME##_slurp_armap, \
  6764. NAME##_slurp_extended_name_table, \
  6765. NAME##_construct_extended_name_table, \
  6766. NAME##_truncate_arname, \
  6767. NAME##_write_armap, \
  6768. NAME##_read_ar_hdr, \
  6769. NAME##_write_ar_hdr, \
  6770. NAME##_openr_next_archived_file, \
  6771. NAME##_get_elt_at_index, \
  6772. NAME##_generic_stat_arch_elt, \
  6773. NAME##_update_armap_timestamp
  6774. bfd_boolean (*_bfd_slurp_armap) (bfd *);
  6775. bfd_boolean (*_bfd_slurp_extended_name_table) (bfd *);
  6776. bfd_boolean (*_bfd_construct_extended_name_table) (bfd *, char **,
  6777. bfd_size_type *,
  6778. const char **);
  6779. void (*_bfd_truncate_arname) (bfd *, const char *, char *);
  6780. bfd_boolean (*write_armap) (bfd *, unsigned int, struct orl *,
  6781. unsigned int, int);
  6782. void * (*_bfd_read_ar_hdr_fn) (bfd *);
  6783. bfd_boolean (*_bfd_write_ar_hdr_fn) (bfd *, bfd *);
  6784. bfd * (*openr_next_archived_file) (bfd *, bfd *);
  6785. #define bfd_get_elt_at_index(b,i) \
  6786. BFD_SEND (b, _bfd_get_elt_at_index, (b,i))
  6787. bfd * (*_bfd_get_elt_at_index) (bfd *, symindex);
  6788. int (*_bfd_stat_arch_elt) (bfd *, struct stat *);
  6789. bfd_boolean (*_bfd_update_armap_timestamp) (bfd *);
  6790. /* Entry points used for symbols. */
  6791. #define BFD_JUMP_TABLE_SYMBOLS(NAME) \
  6792. NAME##_get_symtab_upper_bound, \
  6793. NAME##_canonicalize_symtab, \
  6794. NAME##_make_empty_symbol, \
  6795. NAME##_print_symbol, \
  6796. NAME##_get_symbol_info, \
  6797. NAME##_get_symbol_version_string, \
  6798. NAME##_bfd_is_local_label_name, \
  6799. NAME##_bfd_is_target_special_symbol, \
  6800. NAME##_get_lineno, \
  6801. NAME##_find_nearest_line, \
  6802. NAME##_find_line, \
  6803. NAME##_find_inliner_info, \
  6804. NAME##_bfd_make_debug_symbol, \
  6805. NAME##_read_minisymbols, \
  6806. NAME##_minisymbol_to_symbol
  6807. long (*_bfd_get_symtab_upper_bound) (bfd *);
  6808. long (*_bfd_canonicalize_symtab) (bfd *, struct bfd_symbol **);
  6809. struct bfd_symbol *
  6810. (*_bfd_make_empty_symbol) (bfd *);
  6811. void (*_bfd_print_symbol) (bfd *, void *, struct bfd_symbol *,
  6812. bfd_print_symbol_type);
  6813. #define bfd_print_symbol(b,p,s,e) \
  6814. BFD_SEND (b, _bfd_print_symbol, (b,p,s,e))
  6815. void (*_bfd_get_symbol_info) (bfd *, struct bfd_symbol *,
  6816. symbol_info *);
  6817. #define bfd_get_symbol_info(b,p,e) \
  6818. BFD_SEND (b, _bfd_get_symbol_info, (b,p,e))
  6819. const char *(*_bfd_get_symbol_version_string) (bfd *, struct bfd_symbol *,
  6820. bfd_boolean,
  6821. bfd_boolean *);
  6822. #define bfd_get_symbol_version_string(b,s,p,h) \
  6823. BFD_SEND (b, _bfd_get_symbol_version_string, (b,s,p,h))
  6824. bfd_boolean (*_bfd_is_local_label_name) (bfd *, const char *);
  6825. bfd_boolean (*_bfd_is_target_special_symbol) (bfd *, asymbol *);
  6826. alent * (*_get_lineno) (bfd *, struct bfd_symbol *);
  6827. bfd_boolean (*_bfd_find_nearest_line) (bfd *, struct bfd_symbol **,
  6828. struct bfd_section *, bfd_vma,
  6829. const char **, const char **,
  6830. unsigned int *, unsigned int *);
  6831. bfd_boolean (*_bfd_find_line) (bfd *, struct bfd_symbol **,
  6832. struct bfd_symbol *, const char **,
  6833. unsigned int *);
  6834. bfd_boolean (*_bfd_find_inliner_info)
  6835. (bfd *, const char **, const char **, unsigned int *);
  6836. /* Back-door to allow format-aware applications to create debug symbols
  6837. while using BFD for everything else. Currently used by the assembler
  6838. when creating COFF files. */
  6839. asymbol * (*_bfd_make_debug_symbol) (bfd *, void *, unsigned long size);
  6840. #define bfd_read_minisymbols(b, d, m, s) \
  6841. BFD_SEND (b, _read_minisymbols, (b, d, m, s))
  6842. long (*_read_minisymbols) (bfd *, bfd_boolean, void **,
  6843. unsigned int *);
  6844. #define bfd_minisymbol_to_symbol(b, d, m, f) \
  6845. BFD_SEND (b, _minisymbol_to_symbol, (b, d, m, f))
  6846. asymbol * (*_minisymbol_to_symbol) (bfd *, bfd_boolean, const void *,
  6847. asymbol *);
  6848. /* Routines for relocs. */
  6849. #define BFD_JUMP_TABLE_RELOCS(NAME) \
  6850. NAME##_get_reloc_upper_bound, \
  6851. NAME##_canonicalize_reloc, \
  6852. NAME##_set_reloc, \
  6853. NAME##_bfd_reloc_type_lookup, \
  6854. NAME##_bfd_reloc_name_lookup
  6855. long (*_get_reloc_upper_bound) (bfd *, sec_ptr);
  6856. long (*_bfd_canonicalize_reloc) (bfd *, sec_ptr, arelent **,
  6857. struct bfd_symbol **);
  6858. void (*_bfd_set_reloc) (bfd *, sec_ptr, arelent **, unsigned int);
  6859. /* See documentation on reloc types. */
  6860. reloc_howto_type *
  6861. (*reloc_type_lookup) (bfd *, bfd_reloc_code_real_type);
  6862. reloc_howto_type *
  6863. (*reloc_name_lookup) (bfd *, const char *);
  6864. /* Routines used when writing an object file. */
  6865. #define BFD_JUMP_TABLE_WRITE(NAME) \
  6866. NAME##_set_arch_mach, \
  6867. NAME##_set_section_contents
  6868. bfd_boolean (*_bfd_set_arch_mach) (bfd *, enum bfd_architecture,
  6869. unsigned long);
  6870. bfd_boolean (*_bfd_set_section_contents) (bfd *, sec_ptr, const void *,
  6871. file_ptr, bfd_size_type);
  6872. /* Routines used by the linker. */
  6873. #define BFD_JUMP_TABLE_LINK(NAME) \
  6874. NAME##_sizeof_headers, \
  6875. NAME##_bfd_get_relocated_section_contents, \
  6876. NAME##_bfd_relax_section, \
  6877. NAME##_bfd_link_hash_table_create, \
  6878. NAME##_bfd_link_add_symbols, \
  6879. NAME##_bfd_link_just_syms, \
  6880. NAME##_bfd_copy_link_hash_symbol_type, \
  6881. NAME##_bfd_final_link, \
  6882. NAME##_bfd_link_split_section, \
  6883. NAME##_bfd_link_check_relocs, \
  6884. NAME##_bfd_gc_sections, \
  6885. NAME##_bfd_lookup_section_flags, \
  6886. NAME##_bfd_merge_sections, \
  6887. NAME##_bfd_is_group_section, \
  6888. NAME##_bfd_group_name, \
  6889. NAME##_bfd_discard_group, \
  6890. NAME##_section_already_linked, \
  6891. NAME##_bfd_define_common_symbol, \
  6892. NAME##_bfd_link_hide_symbol, \
  6893. NAME##_bfd_define_start_stop
  6894. int (*_bfd_sizeof_headers) (bfd *, struct bfd_link_info *);
  6895. bfd_byte * (*_bfd_get_relocated_section_contents) (bfd *,
  6896. struct bfd_link_info *,
  6897. struct bfd_link_order *,
  6898. bfd_byte *, bfd_boolean,
  6899. struct bfd_symbol **);
  6900. bfd_boolean (*_bfd_relax_section) (bfd *, struct bfd_section *,
  6901. struct bfd_link_info *, bfd_boolean *);
  6902. /* Create a hash table for the linker. Different backends store
  6903. different information in this table. */
  6904. struct bfd_link_hash_table *
  6905. (*_bfd_link_hash_table_create) (bfd *);
  6906. /* Add symbols from this object file into the hash table. */
  6907. bfd_boolean (*_bfd_link_add_symbols) (bfd *, struct bfd_link_info *);
  6908. /* Indicate that we are only retrieving symbol values from this section. */
  6909. void (*_bfd_link_just_syms) (asection *, struct bfd_link_info *);
  6910. /* Copy the symbol type and other attributes for a linker script
  6911. assignment of one symbol to another. */
  6912. #define bfd_copy_link_hash_symbol_type(b, t, f) \
  6913. BFD_SEND (b, _bfd_copy_link_hash_symbol_type, (b, t, f))
  6914. void (*_bfd_copy_link_hash_symbol_type) (bfd *,
  6915. struct bfd_link_hash_entry *,
  6916. struct bfd_link_hash_entry *);
  6917. /* Do a link based on the link_order structures attached to each
  6918. section of the BFD. */
  6919. bfd_boolean (*_bfd_final_link) (bfd *, struct bfd_link_info *);
  6920. /* Should this section be split up into smaller pieces during linking. */
  6921. bfd_boolean (*_bfd_link_split_section) (bfd *, struct bfd_section *);
  6922. /* Check the relocations in the bfd for validity. */
  6923. bfd_boolean (* _bfd_link_check_relocs)(bfd *, struct bfd_link_info *);
  6924. /* Remove sections that are not referenced from the output. */
  6925. bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *);
  6926. /* Sets the bitmask of allowed and disallowed section flags. */
  6927. bfd_boolean (*_bfd_lookup_section_flags) (struct bfd_link_info *,
  6928. struct flag_info *, asection *);
  6929. /* Attempt to merge SEC_MERGE sections. */
  6930. bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *);
  6931. /* Is this section a member of a group? */
  6932. bfd_boolean (*_bfd_is_group_section) (bfd *, const struct bfd_section *);
  6933. /* The group name, if section is a member of a group. */
  6934. const char *(*_bfd_group_name) (bfd *, const struct bfd_section *);
  6935. /* Discard members of a group. */
  6936. bfd_boolean (*_bfd_discard_group) (bfd *, struct bfd_section *);
  6937. /* Check if SEC has been already linked during a reloceatable or
  6938. final link. */
  6939. bfd_boolean (*_section_already_linked) (bfd *, asection *,
  6940. struct bfd_link_info *);
  6941. /* Define a common symbol. */
  6942. bfd_boolean (*_bfd_define_common_symbol) (bfd *, struct bfd_link_info *,
  6943. struct bfd_link_hash_entry *);
  6944. /* Hide a symbol. */
  6945. void (*_bfd_link_hide_symbol) (bfd *, struct bfd_link_info *,
  6946. struct bfd_link_hash_entry *);
  6947. /* Define a __start, __stop, .startof. or .sizeof. symbol. */
  6948. struct bfd_link_hash_entry *
  6949. (*_bfd_define_start_stop) (struct bfd_link_info *, const char *,
  6950. asection *);
  6951. /* Routines to handle dynamic symbols and relocs. */
  6952. #define BFD_JUMP_TABLE_DYNAMIC(NAME) \
  6953. NAME##_get_dynamic_symtab_upper_bound, \
  6954. NAME##_canonicalize_dynamic_symtab, \
  6955. NAME##_get_synthetic_symtab, \
  6956. NAME##_get_dynamic_reloc_upper_bound, \
  6957. NAME##_canonicalize_dynamic_reloc
  6958. /* Get the amount of memory required to hold the dynamic symbols. */
  6959. long (*_bfd_get_dynamic_symtab_upper_bound) (bfd *);
  6960. /* Read in the dynamic symbols. */
  6961. long (*_bfd_canonicalize_dynamic_symtab) (bfd *, struct bfd_symbol **);
  6962. /* Create synthetized symbols. */
  6963. long (*_bfd_get_synthetic_symtab) (bfd *, long, struct bfd_symbol **,
  6964. long, struct bfd_symbol **,
  6965. struct bfd_symbol **);
  6966. /* Get the amount of memory required to hold the dynamic relocs. */
  6967. long (*_bfd_get_dynamic_reloc_upper_bound) (bfd *);
  6968. /* Read in the dynamic relocs. */
  6969. long (*_bfd_canonicalize_dynamic_reloc) (bfd *, arelent **,
  6970. struct bfd_symbol **);
  6971. A pointer to an alternative bfd_target in case the current one is not
  6972. satisfactory. This can happen when the target cpu supports both big and
  6973. little endian code, and target chosen by the linker has the wrong
  6974. endianness. The function open_output() in ld/ldlang.c uses this field
  6975. to find an alternative output format that is suitable.
  6976. /* Opposite endian version of this target. */
  6977. const struct bfd_target *alternative_target;
  6978. /* Data for use by back-end routines, which isn't
  6979. generic enough to belong in this structure. */
  6980. const void *backend_data;
  6981. } bfd_target;
  6982. static inline const char *
  6983. bfd_get_target (const bfd *abfd)
  6984. {
  6985. return abfd->xvec->name;
  6986. }
  6987. static inline enum bfd_flavour
  6988. bfd_get_flavour (const bfd *abfd)
  6989. {
  6990. return abfd->xvec->flavour;
  6991. }
  6992. static inline flagword
  6993. bfd_applicable_file_flags (const bfd *abfd)
  6994. {
  6995. return abfd->xvec->object_flags;
  6996. }
  6997. static inline bfd_boolean
  6998. bfd_family_coff (const bfd *abfd)
  6999. {
  7000. return (bfd_get_flavour (abfd) == bfd_target_coff_flavour
  7001. || bfd_get_flavour (abfd) == bfd_target_xcoff_flavour);
  7002. }
  7003. static inline bfd_boolean
  7004. bfd_big_endian (const bfd *abfd)
  7005. {
  7006. return abfd->xvec->byteorder == BFD_ENDIAN_BIG;
  7007. }
  7008. static inline bfd_boolean
  7009. bfd_little_endian (const bfd *abfd)
  7010. {
  7011. return abfd->xvec->byteorder == BFD_ENDIAN_LITTLE;
  7012. }
  7013. static inline bfd_boolean
  7014. bfd_header_big_endian (const bfd *abfd)
  7015. {
  7016. return abfd->xvec->header_byteorder == BFD_ENDIAN_BIG;
  7017. }
  7018. static inline bfd_boolean
  7019. bfd_header_little_endian (const bfd *abfd)
  7020. {
  7021. return abfd->xvec->header_byteorder == BFD_ENDIAN_LITTLE;
  7022. }
  7023. static inline flagword
  7024. bfd_applicable_section_flags (const bfd *abfd)
  7025. {
  7026. return abfd->xvec->section_flags;
  7027. }
  7028. static inline char
  7029. bfd_get_symbol_leading_char (const bfd *abfd)
  7030. {
  7031. return abfd->xvec->symbol_leading_char;
  7032. }
  7033. static inline enum bfd_flavour
  7034. bfd_asymbol_flavour (const asymbol *sy)
  7035. {
  7036. if ((sy->flags & BSF_SYNTHETIC) != 0)
  7037. return bfd_target_unknown_flavour;
  7038. return sy->the_bfd->xvec->flavour;
  7039. }
  7040. 2.12.1.1 'bfd_set_default_target'
  7041. .................................
  7042. *Synopsis*
  7043. bfd_boolean bfd_set_default_target (const char *name);
  7044. *Description*
  7045. Set the default target vector to use when recognizing a BFD. This takes
  7046. the name of the target, which may be a BFD target name or a
  7047. configuration triplet.
  7048. 2.12.1.2 'bfd_find_target'
  7049. ..........................
  7050. *Synopsis*
  7051. const bfd_target *bfd_find_target (const char *target_name, bfd *abfd);
  7052. *Description*
  7053. Return a pointer to the transfer vector for the object target named
  7054. TARGET_NAME. If TARGET_NAME is 'NULL', choose the one in the
  7055. environment variable 'GNUTARGET'; if that is null or not defined, then
  7056. choose the first entry in the target list. Passing in the string
  7057. "default" or setting the environment variable to "default" will cause
  7058. the first entry in the target list to be returned, and
  7059. "target_defaulted" will be set in the BFD if ABFD isn't 'NULL'. This
  7060. causes 'bfd_check_format' to loop over all the targets to find the one
  7061. that matches the file being read.
  7062. 2.12.1.3 'bfd_get_target_info'
  7063. ..............................
  7064. *Synopsis*
  7065. const bfd_target *bfd_get_target_info (const char *target_name,
  7066. bfd *abfd,
  7067. bfd_boolean *is_bigendian,
  7068. int *underscoring,
  7069. const char **def_target_arch);
  7070. *Description*
  7071. Return a pointer to the transfer vector for the object target named
  7072. TARGET_NAME. If TARGET_NAME is 'NULL', choose the one in the
  7073. environment variable 'GNUTARGET'; if that is null or not defined, then
  7074. choose the first entry in the target list. Passing in the string
  7075. "default" or setting the environment variable to "default" will cause
  7076. the first entry in the target list to be returned, and
  7077. "target_defaulted" will be set in the BFD if ABFD isn't 'NULL'. This
  7078. causes 'bfd_check_format' to loop over all the targets to find the one
  7079. that matches the file being read. If IS_BIGENDIAN is not 'NULL', then
  7080. set this value to target's endian mode. True for big-endian, FALSE for
  7081. little-endian or for invalid target. If UNDERSCORING is not 'NULL',
  7082. then set this value to target's underscoring mode. Zero for
  7083. none-underscoring, -1 for invalid target, else the value of target
  7084. vector's symbol underscoring. If DEF_TARGET_ARCH is not 'NULL', then
  7085. set it to the architecture string specified by the target_name.
  7086. 2.12.1.4 'bfd_target_list'
  7087. ..........................
  7088. *Synopsis*
  7089. const char ** bfd_target_list (void);
  7090. *Description*
  7091. Return a freshly malloced NULL-terminated vector of the names of all the
  7092. valid BFD targets. Do not modify the names.
  7093. 2.12.1.5 'bfd_iterate_over_targets'
  7094. ...................................
  7095. *Synopsis*
  7096. const bfd_target *bfd_iterate_over_targets
  7097. (int (*func) (const bfd_target *, void *),
  7098. void *data);
  7099. *Description*
  7100. Call FUNC for each target in the list of BFD target vectors, passing
  7101. DATA to FUNC. Stop iterating if FUNC returns a non-zero result, and
  7102. return that target vector. Return NULL if FUNC always returns zero.
  7103. 2.12.1.6 'bfd_flavour_name'
  7104. ...........................
  7105. *Synopsis*
  7106. const char *bfd_flavour_name (enum bfd_flavour flavour);
  7107. *Description*
  7108. Return the string form of FLAVOUR.
  7109. 
  7110. File: bfd.info, Node: Architectures, Next: Opening and Closing, Prev: Targets, Up: BFD front end
  7111. 2.13 Architectures
  7112. ==================
  7113. BFD keeps one atom in a BFD describing the architecture of the data
  7114. attached to the BFD: a pointer to a 'bfd_arch_info_type'.
  7115. Pointers to structures can be requested independently of a BFD so
  7116. that an architecture's information can be interrogated without access to
  7117. an open BFD.
  7118. The architecture information is provided by each architecture
  7119. package. The set of default architectures is selected by the macro
  7120. 'SELECT_ARCHITECTURES'. This is normally set up in the
  7121. 'config/TARGET.mt' file of your choice. If the name is not defined,
  7122. then all the architectures supported are included.
  7123. When BFD starts up, all the architectures are called with an
  7124. initialize method. It is up to the architecture back end to insert as
  7125. many items into the list of architectures as it wants to; generally this
  7126. would be one for each machine and one for the default case (an item with
  7127. a machine field of 0).
  7128. BFD's idea of an architecture is implemented in 'archures.c'.
  7129. 2.13.1 bfd_architecture
  7130. -----------------------
  7131. *Description*
  7132. This enum gives the object file's CPU architecture, in a global
  7133. sense--i.e., what processor family does it belong to? Another field
  7134. indicates which processor within the family is in use. The machine
  7135. gives a number which distinguishes different versions of the
  7136. architecture, containing, for example, 68020 for Motorola 68020.
  7137. enum bfd_architecture
  7138. {
  7139. bfd_arch_unknown, /* File arch not known. */
  7140. bfd_arch_obscure, /* Arch known, not one of these. */
  7141. bfd_arch_m68k, /* Motorola 68xxx. */
  7142. #define bfd_mach_m68000 1
  7143. #define bfd_mach_m68008 2
  7144. #define bfd_mach_m68010 3
  7145. #define bfd_mach_m68020 4
  7146. #define bfd_mach_m68030 5
  7147. #define bfd_mach_m68040 6
  7148. #define bfd_mach_m68060 7
  7149. #define bfd_mach_cpu32 8
  7150. #define bfd_mach_fido 9
  7151. #define bfd_mach_mcf_isa_a_nodiv 10
  7152. #define bfd_mach_mcf_isa_a 11
  7153. #define bfd_mach_mcf_isa_a_mac 12
  7154. #define bfd_mach_mcf_isa_a_emac 13
  7155. #define bfd_mach_mcf_isa_aplus 14
  7156. #define bfd_mach_mcf_isa_aplus_mac 15
  7157. #define bfd_mach_mcf_isa_aplus_emac 16
  7158. #define bfd_mach_mcf_isa_b_nousp 17
  7159. #define bfd_mach_mcf_isa_b_nousp_mac 18
  7160. #define bfd_mach_mcf_isa_b_nousp_emac 19
  7161. #define bfd_mach_mcf_isa_b 20
  7162. #define bfd_mach_mcf_isa_b_mac 21
  7163. #define bfd_mach_mcf_isa_b_emac 22
  7164. #define bfd_mach_mcf_isa_b_float 23
  7165. #define bfd_mach_mcf_isa_b_float_mac 24
  7166. #define bfd_mach_mcf_isa_b_float_emac 25
  7167. #define bfd_mach_mcf_isa_c 26
  7168. #define bfd_mach_mcf_isa_c_mac 27
  7169. #define bfd_mach_mcf_isa_c_emac 28
  7170. #define bfd_mach_mcf_isa_c_nodiv 29
  7171. #define bfd_mach_mcf_isa_c_nodiv_mac 30
  7172. #define bfd_mach_mcf_isa_c_nodiv_emac 31
  7173. bfd_arch_vax, /* DEC Vax. */
  7174. bfd_arch_or1k, /* OpenRISC 1000. */
  7175. #define bfd_mach_or1k 1
  7176. #define bfd_mach_or1knd 2
  7177. bfd_arch_sparc, /* SPARC. */
  7178. #define bfd_mach_sparc 1
  7179. /* The difference between v8plus and v9 is that v9 is a true 64 bit env. */
  7180. #define bfd_mach_sparc_sparclet 2
  7181. #define bfd_mach_sparc_sparclite 3
  7182. #define bfd_mach_sparc_v8plus 4
  7183. #define bfd_mach_sparc_v8plusa 5 /* with ultrasparc add'ns. */
  7184. #define bfd_mach_sparc_sparclite_le 6
  7185. #define bfd_mach_sparc_v9 7
  7186. #define bfd_mach_sparc_v9a 8 /* with ultrasparc add'ns. */
  7187. #define bfd_mach_sparc_v8plusb 9 /* with cheetah add'ns. */
  7188. #define bfd_mach_sparc_v9b 10 /* with cheetah add'ns. */
  7189. #define bfd_mach_sparc_v8plusc 11 /* with UA2005 and T1 add'ns. */
  7190. #define bfd_mach_sparc_v9c 12 /* with UA2005 and T1 add'ns. */
  7191. #define bfd_mach_sparc_v8plusd 13 /* with UA2007 and T3 add'ns. */
  7192. #define bfd_mach_sparc_v9d 14 /* with UA2007 and T3 add'ns. */
  7193. #define bfd_mach_sparc_v8pluse 15 /* with OSA2001 and T4 add'ns (no IMA). */
  7194. #define bfd_mach_sparc_v9e 16 /* with OSA2001 and T4 add'ns (no IMA). */
  7195. #define bfd_mach_sparc_v8plusv 17 /* with OSA2011 and T4 and IMA and FJMAU add'ns. */
  7196. #define bfd_mach_sparc_v9v 18 /* with OSA2011 and T4 and IMA and FJMAU add'ns. */
  7197. #define bfd_mach_sparc_v8plusm 19 /* with OSA2015 and M7 add'ns. */
  7198. #define bfd_mach_sparc_v9m 20 /* with OSA2015 and M7 add'ns. */
  7199. #define bfd_mach_sparc_v8plusm8 21 /* with OSA2017 and M8 add'ns. */
  7200. #define bfd_mach_sparc_v9m8 22 /* with OSA2017 and M8 add'ns. */
  7201. /* Nonzero if MACH has the v9 instruction set. */
  7202. #define bfd_mach_sparc_v9_p(mach) \
  7203. ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9m8 \
  7204. && (mach) != bfd_mach_sparc_sparclite_le)
  7205. /* Nonzero if MACH is a 64 bit sparc architecture. */
  7206. #define bfd_mach_sparc_64bit_p(mach) \
  7207. ((mach) >= bfd_mach_sparc_v9 \
  7208. && (mach) != bfd_mach_sparc_v8plusb \
  7209. && (mach) != bfd_mach_sparc_v8plusc \
  7210. && (mach) != bfd_mach_sparc_v8plusd \
  7211. && (mach) != bfd_mach_sparc_v8pluse \
  7212. && (mach) != bfd_mach_sparc_v8plusv \
  7213. && (mach) != bfd_mach_sparc_v8plusm \
  7214. && (mach) != bfd_mach_sparc_v8plusm8)
  7215. bfd_arch_spu, /* PowerPC SPU. */
  7216. #define bfd_mach_spu 256
  7217. bfd_arch_mips, /* MIPS Rxxxx. */
  7218. #define bfd_mach_mips3000 3000
  7219. #define bfd_mach_mips3900 3900
  7220. #define bfd_mach_mips4000 4000
  7221. #define bfd_mach_mips4010 4010
  7222. #define bfd_mach_mips4100 4100
  7223. #define bfd_mach_mips4111 4111
  7224. #define bfd_mach_mips4120 4120
  7225. #define bfd_mach_mips4300 4300
  7226. #define bfd_mach_mips4400 4400
  7227. #define bfd_mach_mips4600 4600
  7228. #define bfd_mach_mips4650 4650
  7229. #define bfd_mach_mips5000 5000
  7230. #define bfd_mach_mips5400 5400
  7231. #define bfd_mach_mips5500 5500
  7232. #define bfd_mach_mips5900 5900
  7233. #define bfd_mach_mips6000 6000
  7234. #define bfd_mach_mips7000 7000
  7235. #define bfd_mach_mips8000 8000
  7236. #define bfd_mach_mips9000 9000
  7237. #define bfd_mach_mips10000 10000
  7238. #define bfd_mach_mips12000 12000
  7239. #define bfd_mach_mips14000 14000
  7240. #define bfd_mach_mips16000 16000
  7241. #define bfd_mach_mips16 16
  7242. #define bfd_mach_mips5 5
  7243. #define bfd_mach_mips_loongson_2e 3001
  7244. #define bfd_mach_mips_loongson_2f 3002
  7245. #define bfd_mach_mips_gs464 3003
  7246. #define bfd_mach_mips_gs464e 3004
  7247. #define bfd_mach_mips_gs264e 3005
  7248. #define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01. */
  7249. #define bfd_mach_mips_octeon 6501
  7250. #define bfd_mach_mips_octeonp 6601
  7251. #define bfd_mach_mips_octeon2 6502
  7252. #define bfd_mach_mips_octeon3 6503
  7253. #define bfd_mach_mips_xlr 887682 /* decimal 'XLR'. */
  7254. #define bfd_mach_mips_interaptiv_mr2 736550 /* decimal 'IA2'. */
  7255. #define bfd_mach_mipsisa32 32
  7256. #define bfd_mach_mipsisa32r2 33
  7257. #define bfd_mach_mipsisa32r3 34
  7258. #define bfd_mach_mipsisa32r5 36
  7259. #define bfd_mach_mipsisa32r6 37
  7260. #define bfd_mach_mipsisa64 64
  7261. #define bfd_mach_mipsisa64r2 65
  7262. #define bfd_mach_mipsisa64r3 66
  7263. #define bfd_mach_mipsisa64r5 68
  7264. #define bfd_mach_mipsisa64r6 69
  7265. #define bfd_mach_mips_micromips 96
  7266. bfd_arch_i386, /* Intel 386. */
  7267. #define bfd_mach_i386_intel_syntax (1 << 0)
  7268. #define bfd_mach_i386_i8086 (1 << 1)
  7269. #define bfd_mach_i386_i386 (1 << 2)
  7270. #define bfd_mach_x86_64 (1 << 3)
  7271. #define bfd_mach_x64_32 (1 << 4)
  7272. #define bfd_mach_i386_i386_intel_syntax (bfd_mach_i386_i386 | bfd_mach_i386_intel_syntax)
  7273. #define bfd_mach_x86_64_intel_syntax (bfd_mach_x86_64 | bfd_mach_i386_intel_syntax)
  7274. #define bfd_mach_x64_32_intel_syntax (bfd_mach_x64_32 | bfd_mach_i386_intel_syntax)
  7275. bfd_arch_l1om, /* Intel L1OM. */
  7276. #define bfd_mach_l1om (1 << 5)
  7277. #define bfd_mach_l1om_intel_syntax (bfd_mach_l1om | bfd_mach_i386_intel_syntax)
  7278. bfd_arch_k1om, /* Intel K1OM. */
  7279. #define bfd_mach_k1om (1 << 6)
  7280. #define bfd_mach_k1om_intel_syntax (bfd_mach_k1om | bfd_mach_i386_intel_syntax)
  7281. bfd_arch_iamcu, /* Intel MCU. */
  7282. #define bfd_mach_iamcu (1 << 8)
  7283. #define bfd_mach_i386_iamcu (bfd_mach_i386_i386 | bfd_mach_iamcu)
  7284. #define bfd_mach_i386_iamcu_intel_syntax (bfd_mach_i386_iamcu | bfd_mach_i386_intel_syntax)
  7285. bfd_arch_romp, /* IBM ROMP PC/RT. */
  7286. bfd_arch_convex, /* Convex. */
  7287. bfd_arch_m98k, /* Motorola 98xxx. */
  7288. bfd_arch_pyramid, /* Pyramid Technology. */
  7289. bfd_arch_h8300, /* Renesas H8/300 (formerly Hitachi H8/300). */
  7290. #define bfd_mach_h8300 1
  7291. #define bfd_mach_h8300h 2
  7292. #define bfd_mach_h8300s 3
  7293. #define bfd_mach_h8300hn 4
  7294. #define bfd_mach_h8300sn 5
  7295. #define bfd_mach_h8300sx 6
  7296. #define bfd_mach_h8300sxn 7
  7297. bfd_arch_pdp11, /* DEC PDP-11. */
  7298. bfd_arch_powerpc, /* PowerPC. */
  7299. #define bfd_mach_ppc 32
  7300. #define bfd_mach_ppc64 64
  7301. #define bfd_mach_ppc_403 403
  7302. #define bfd_mach_ppc_403gc 4030
  7303. #define bfd_mach_ppc_405 405
  7304. #define bfd_mach_ppc_505 505
  7305. #define bfd_mach_ppc_601 601
  7306. #define bfd_mach_ppc_602 602
  7307. #define bfd_mach_ppc_603 603
  7308. #define bfd_mach_ppc_ec603e 6031
  7309. #define bfd_mach_ppc_604 604
  7310. #define bfd_mach_ppc_620 620
  7311. #define bfd_mach_ppc_630 630
  7312. #define bfd_mach_ppc_750 750
  7313. #define bfd_mach_ppc_860 860
  7314. #define bfd_mach_ppc_a35 35
  7315. #define bfd_mach_ppc_rs64ii 642
  7316. #define bfd_mach_ppc_rs64iii 643
  7317. #define bfd_mach_ppc_7400 7400
  7318. #define bfd_mach_ppc_e500 500
  7319. #define bfd_mach_ppc_e500mc 5001
  7320. #define bfd_mach_ppc_e500mc64 5005
  7321. #define bfd_mach_ppc_e5500 5006
  7322. #define bfd_mach_ppc_e6500 5007
  7323. #define bfd_mach_ppc_titan 83
  7324. #define bfd_mach_ppc_vle 84
  7325. bfd_arch_rs6000, /* IBM RS/6000. */
  7326. #define bfd_mach_rs6k 6000
  7327. #define bfd_mach_rs6k_rs1 6001
  7328. #define bfd_mach_rs6k_rsc 6003
  7329. #define bfd_mach_rs6k_rs2 6002
  7330. bfd_arch_hppa, /* HP PA RISC. */
  7331. #define bfd_mach_hppa10 10
  7332. #define bfd_mach_hppa11 11
  7333. #define bfd_mach_hppa20 20
  7334. #define bfd_mach_hppa20w 25
  7335. bfd_arch_d10v, /* Mitsubishi D10V. */
  7336. #define bfd_mach_d10v 1
  7337. #define bfd_mach_d10v_ts2 2
  7338. #define bfd_mach_d10v_ts3 3
  7339. bfd_arch_d30v, /* Mitsubishi D30V. */
  7340. bfd_arch_dlx, /* DLX. */
  7341. bfd_arch_m68hc11, /* Motorola 68HC11. */
  7342. bfd_arch_m68hc12, /* Motorola 68HC12. */
  7343. #define bfd_mach_m6812_default 0
  7344. #define bfd_mach_m6812 1
  7345. #define bfd_mach_m6812s 2
  7346. bfd_arch_m9s12x, /* Freescale S12X. */
  7347. bfd_arch_m9s12xg, /* Freescale XGATE. */
  7348. bfd_arch_s12z, /* Freescale S12Z. */
  7349. #define bfd_mach_s12z_default 0
  7350. bfd_arch_z8k, /* Zilog Z8000. */
  7351. #define bfd_mach_z8001 1
  7352. #define bfd_mach_z8002 2
  7353. bfd_arch_sh, /* Renesas / SuperH SH (formerly Hitachi SH). */
  7354. #define bfd_mach_sh 1
  7355. #define bfd_mach_sh2 0x20
  7356. #define bfd_mach_sh_dsp 0x2d
  7357. #define bfd_mach_sh2a 0x2a
  7358. #define bfd_mach_sh2a_nofpu 0x2b
  7359. #define bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu 0x2a1
  7360. #define bfd_mach_sh2a_nofpu_or_sh3_nommu 0x2a2
  7361. #define bfd_mach_sh2a_or_sh4 0x2a3
  7362. #define bfd_mach_sh2a_or_sh3e 0x2a4
  7363. #define bfd_mach_sh2e 0x2e
  7364. #define bfd_mach_sh3 0x30
  7365. #define bfd_mach_sh3_nommu 0x31
  7366. #define bfd_mach_sh3_dsp 0x3d
  7367. #define bfd_mach_sh3e 0x3e
  7368. #define bfd_mach_sh4 0x40
  7369. #define bfd_mach_sh4_nofpu 0x41
  7370. #define bfd_mach_sh4_nommu_nofpu 0x42
  7371. #define bfd_mach_sh4a 0x4a
  7372. #define bfd_mach_sh4a_nofpu 0x4b
  7373. #define bfd_mach_sh4al_dsp 0x4d
  7374. bfd_arch_alpha, /* Dec Alpha. */
  7375. #define bfd_mach_alpha_ev4 0x10
  7376. #define bfd_mach_alpha_ev5 0x20
  7377. #define bfd_mach_alpha_ev6 0x30
  7378. bfd_arch_arm, /* Advanced Risc Machines ARM. */
  7379. #define bfd_mach_arm_unknown 0
  7380. #define bfd_mach_arm_2 1
  7381. #define bfd_mach_arm_2a 2
  7382. #define bfd_mach_arm_3 3
  7383. #define bfd_mach_arm_3M 4
  7384. #define bfd_mach_arm_4 5
  7385. #define bfd_mach_arm_4T 6
  7386. #define bfd_mach_arm_5 7
  7387. #define bfd_mach_arm_5T 8
  7388. #define bfd_mach_arm_5TE 9
  7389. #define bfd_mach_arm_XScale 10
  7390. #define bfd_mach_arm_ep9312 11
  7391. #define bfd_mach_arm_iWMMXt 12
  7392. #define bfd_mach_arm_iWMMXt2 13
  7393. #define bfd_mach_arm_5TEJ 14
  7394. #define bfd_mach_arm_6 15
  7395. #define bfd_mach_arm_6KZ 16
  7396. #define bfd_mach_arm_6T2 17
  7397. #define bfd_mach_arm_6K 18
  7398. #define bfd_mach_arm_7 19
  7399. #define bfd_mach_arm_6M 20
  7400. #define bfd_mach_arm_6SM 21
  7401. #define bfd_mach_arm_7EM 22
  7402. #define bfd_mach_arm_8 23
  7403. #define bfd_mach_arm_8R 24
  7404. #define bfd_mach_arm_8M_BASE 25
  7405. #define bfd_mach_arm_8M_MAIN 26
  7406. #define bfd_mach_arm_8_1M_MAIN 27
  7407. bfd_arch_nds32, /* Andes NDS32. */
  7408. #define bfd_mach_n1 1
  7409. #define bfd_mach_n1h 2
  7410. #define bfd_mach_n1h_v2 3
  7411. #define bfd_mach_n1h_v3 4
  7412. #define bfd_mach_n1h_v3m 5
  7413. bfd_arch_ns32k, /* National Semiconductors ns32000. */
  7414. bfd_arch_tic30, /* Texas Instruments TMS320C30. */
  7415. bfd_arch_tic4x, /* Texas Instruments TMS320C3X/4X. */
  7416. #define bfd_mach_tic3x 30
  7417. #define bfd_mach_tic4x 40
  7418. bfd_arch_tic54x, /* Texas Instruments TMS320C54X. */
  7419. bfd_arch_tic6x, /* Texas Instruments TMS320C6X. */
  7420. bfd_arch_v850, /* NEC V850. */
  7421. bfd_arch_v850_rh850,/* NEC V850 (using RH850 ABI). */
  7422. #define bfd_mach_v850 1
  7423. #define bfd_mach_v850e 'E'
  7424. #define bfd_mach_v850e1 '1'
  7425. #define bfd_mach_v850e2 0x4532
  7426. #define bfd_mach_v850e2v3 0x45325633
  7427. #define bfd_mach_v850e3v5 0x45335635 /* ('E'|'3'|'V'|'5'). */
  7428. bfd_arch_arc, /* ARC Cores. */
  7429. #define bfd_mach_arc_a4 0
  7430. #define bfd_mach_arc_a5 1
  7431. #define bfd_mach_arc_arc600 2
  7432. #define bfd_mach_arc_arc601 4
  7433. #define bfd_mach_arc_arc700 3
  7434. #define bfd_mach_arc_arcv2 5
  7435. bfd_arch_m32c, /* Renesas M16C/M32C. */
  7436. #define bfd_mach_m16c 0x75
  7437. #define bfd_mach_m32c 0x78
  7438. bfd_arch_m32r, /* Renesas M32R (formerly Mitsubishi M32R/D). */
  7439. #define bfd_mach_m32r 1 /* For backwards compatibility. */
  7440. #define bfd_mach_m32rx 'x'
  7441. #define bfd_mach_m32r2 '2'
  7442. bfd_arch_mn10200, /* Matsushita MN10200. */
  7443. bfd_arch_mn10300, /* Matsushita MN10300. */
  7444. #define bfd_mach_mn10300 300
  7445. #define bfd_mach_am33 330
  7446. #define bfd_mach_am33_2 332
  7447. bfd_arch_fr30,
  7448. #define bfd_mach_fr30 0x46523330
  7449. bfd_arch_frv,
  7450. #define bfd_mach_frv 1
  7451. #define bfd_mach_frvsimple 2
  7452. #define bfd_mach_fr300 300
  7453. #define bfd_mach_fr400 400
  7454. #define bfd_mach_fr450 450
  7455. #define bfd_mach_frvtomcat 499 /* fr500 prototype. */
  7456. #define bfd_mach_fr500 500
  7457. #define bfd_mach_fr550 550
  7458. bfd_arch_moxie, /* The moxie processor. */
  7459. #define bfd_mach_moxie 1
  7460. bfd_arch_ft32, /* The ft32 processor. */
  7461. #define bfd_mach_ft32 1
  7462. #define bfd_mach_ft32b 2
  7463. bfd_arch_mcore,
  7464. bfd_arch_mep,
  7465. #define bfd_mach_mep 1
  7466. #define bfd_mach_mep_h1 0x6831
  7467. #define bfd_mach_mep_c5 0x6335
  7468. bfd_arch_metag,
  7469. #define bfd_mach_metag 1
  7470. bfd_arch_ia64, /* HP/Intel ia64. */
  7471. #define bfd_mach_ia64_elf64 64
  7472. #define bfd_mach_ia64_elf32 32
  7473. bfd_arch_ip2k, /* Ubicom IP2K microcontrollers. */
  7474. #define bfd_mach_ip2022 1
  7475. #define bfd_mach_ip2022ext 2
  7476. bfd_arch_iq2000, /* Vitesse IQ2000. */
  7477. #define bfd_mach_iq2000 1
  7478. #define bfd_mach_iq10 2
  7479. bfd_arch_bpf, /* Linux eBPF. */
  7480. #define bfd_mach_bpf 1
  7481. #define bfd_mach_xbpf 2
  7482. bfd_arch_epiphany, /* Adapteva EPIPHANY. */
  7483. #define bfd_mach_epiphany16 1
  7484. #define bfd_mach_epiphany32 2
  7485. bfd_arch_mt,
  7486. #define bfd_mach_ms1 1
  7487. #define bfd_mach_mrisc2 2
  7488. #define bfd_mach_ms2 3
  7489. bfd_arch_pj,
  7490. bfd_arch_avr, /* Atmel AVR microcontrollers. */
  7491. #define bfd_mach_avr1 1
  7492. #define bfd_mach_avr2 2
  7493. #define bfd_mach_avr25 25
  7494. #define bfd_mach_avr3 3
  7495. #define bfd_mach_avr31 31
  7496. #define bfd_mach_avr35 35
  7497. #define bfd_mach_avr4 4
  7498. #define bfd_mach_avr5 5
  7499. #define bfd_mach_avr51 51
  7500. #define bfd_mach_avr6 6
  7501. #define bfd_mach_avrtiny 100
  7502. #define bfd_mach_avrxmega1 101
  7503. #define bfd_mach_avrxmega2 102
  7504. #define bfd_mach_avrxmega3 103
  7505. #define bfd_mach_avrxmega4 104
  7506. #define bfd_mach_avrxmega5 105
  7507. #define bfd_mach_avrxmega6 106
  7508. #define bfd_mach_avrxmega7 107
  7509. bfd_arch_bfin, /* ADI Blackfin. */
  7510. #define bfd_mach_bfin 1
  7511. bfd_arch_cr16, /* National Semiconductor CompactRISC (ie CR16). */
  7512. #define bfd_mach_cr16 1
  7513. bfd_arch_crx, /* National Semiconductor CRX. */
  7514. #define bfd_mach_crx 1
  7515. bfd_arch_cris, /* Axis CRIS. */
  7516. #define bfd_mach_cris_v0_v10 255
  7517. #define bfd_mach_cris_v32 32
  7518. #define bfd_mach_cris_v10_v32 1032
  7519. bfd_arch_riscv,
  7520. #define bfd_mach_riscv32 132
  7521. #define bfd_mach_riscv64 164
  7522. bfd_arch_rl78,
  7523. #define bfd_mach_rl78 0x75
  7524. bfd_arch_rx, /* Renesas RX. */
  7525. #define bfd_mach_rx 0x75
  7526. #define bfd_mach_rx_v2 0x76
  7527. #define bfd_mach_rx_v3 0x77
  7528. bfd_arch_s390, /* IBM s390. */
  7529. #define bfd_mach_s390_31 31
  7530. #define bfd_mach_s390_64 64
  7531. bfd_arch_score, /* Sunplus score. */
  7532. #define bfd_mach_score3 3
  7533. #define bfd_mach_score7 7
  7534. bfd_arch_mmix, /* Donald Knuth's educational processor. */
  7535. bfd_arch_xstormy16,
  7536. #define bfd_mach_xstormy16 1
  7537. bfd_arch_msp430, /* Texas Instruments MSP430 architecture. */
  7538. #define bfd_mach_msp11 11
  7539. #define bfd_mach_msp110 110
  7540. #define bfd_mach_msp12 12
  7541. #define bfd_mach_msp13 13
  7542. #define bfd_mach_msp14 14
  7543. #define bfd_mach_msp15 15
  7544. #define bfd_mach_msp16 16
  7545. #define bfd_mach_msp20 20
  7546. #define bfd_mach_msp21 21
  7547. #define bfd_mach_msp22 22
  7548. #define bfd_mach_msp23 23
  7549. #define bfd_mach_msp24 24
  7550. #define bfd_mach_msp26 26
  7551. #define bfd_mach_msp31 31
  7552. #define bfd_mach_msp32 32
  7553. #define bfd_mach_msp33 33
  7554. #define bfd_mach_msp41 41
  7555. #define bfd_mach_msp42 42
  7556. #define bfd_mach_msp43 43
  7557. #define bfd_mach_msp44 44
  7558. #define bfd_mach_msp430x 45
  7559. #define bfd_mach_msp46 46
  7560. #define bfd_mach_msp47 47
  7561. #define bfd_mach_msp54 54
  7562. bfd_arch_xc16x, /* Infineon's XC16X Series. */
  7563. #define bfd_mach_xc16x 1
  7564. #define bfd_mach_xc16xl 2
  7565. #define bfd_mach_xc16xs 3
  7566. bfd_arch_xgate, /* Freescale XGATE. */
  7567. #define bfd_mach_xgate 1
  7568. bfd_arch_xtensa, /* Tensilica's Xtensa cores. */
  7569. #define bfd_mach_xtensa 1
  7570. bfd_arch_z80,
  7571. /* Zilog Z80 without undocumented opcodes. */
  7572. #define bfd_mach_z80strict 1
  7573. /* Zilog Z180: successor with additional instructions, but without
  7574. halves of ix and iy. */
  7575. #define bfd_mach_z180 2
  7576. /* Zilog Z80 with ixl, ixh, iyl, and iyh. */
  7577. #define bfd_mach_z80 3
  7578. /* Zilog eZ80 (successor of Z80 & Z180) in Z80 (16-bit address) mode. */
  7579. #define bfd_mach_ez80_z80 4
  7580. /* Zilog eZ80 (successor of Z80 & Z180) in ADL (24-bit address) mode. */
  7581. #define bfd_mach_ez80_adl 5
  7582. /* Z80N */
  7583. #define bfd_mach_z80n 6
  7584. /* Zilog Z80 with all undocumented instructions. */
  7585. #define bfd_mach_z80full 7
  7586. /* GameBoy Z80 (reduced instruction set). */
  7587. #define bfd_mach_gbz80 8
  7588. /* ASCII R800: successor with multiplication. */
  7589. #define bfd_mach_r800 11
  7590. bfd_arch_lm32, /* Lattice Mico32. */
  7591. #define bfd_mach_lm32 1
  7592. bfd_arch_microblaze,/* Xilinx MicroBlaze. */
  7593. bfd_arch_tilepro, /* Tilera TILEPro. */
  7594. bfd_arch_tilegx, /* Tilera TILE-Gx. */
  7595. #define bfd_mach_tilepro 1
  7596. #define bfd_mach_tilegx 1
  7597. #define bfd_mach_tilegx32 2
  7598. bfd_arch_aarch64, /* AArch64. */
  7599. #define bfd_mach_aarch64 0
  7600. #define bfd_mach_aarch64_8R 1
  7601. #define bfd_mach_aarch64_ilp32 32
  7602. bfd_arch_nios2, /* Nios II. */
  7603. #define bfd_mach_nios2 0
  7604. #define bfd_mach_nios2r1 1
  7605. #define bfd_mach_nios2r2 2
  7606. bfd_arch_visium, /* Visium. */
  7607. #define bfd_mach_visium 1
  7608. bfd_arch_wasm32, /* WebAssembly. */
  7609. #define bfd_mach_wasm32 1
  7610. bfd_arch_pru, /* PRU. */
  7611. #define bfd_mach_pru 0
  7612. bfd_arch_nfp, /* Netronome Flow Processor */
  7613. #define bfd_mach_nfp3200 0x3200
  7614. #define bfd_mach_nfp6000 0x6000
  7615. bfd_arch_csky, /* C-SKY. */
  7616. #define bfd_mach_ck_unknown 0
  7617. #define bfd_mach_ck510 1
  7618. #define bfd_mach_ck610 2
  7619. #define bfd_mach_ck801 3
  7620. #define bfd_mach_ck802 4
  7621. #define bfd_mach_ck803 5
  7622. #define bfd_mach_ck807 6
  7623. #define bfd_mach_ck810 7
  7624. #define bfd_mach_ck860 8
  7625. bfd_arch_last
  7626. };
  7627. 2.13.2 bfd_arch_info
  7628. --------------------
  7629. *Description*
  7630. This structure contains information on architectures for use within BFD.
  7631. typedef struct bfd_arch_info
  7632. {
  7633. int bits_per_word;
  7634. int bits_per_address;
  7635. int bits_per_byte;
  7636. enum bfd_architecture arch;
  7637. unsigned long mach;
  7638. const char *arch_name;
  7639. const char *printable_name;
  7640. unsigned int section_align_power;
  7641. /* TRUE if this is the default machine for the architecture.
  7642. The default arch should be the first entry for an arch so that
  7643. all the entries for that arch can be accessed via next. */
  7644. bfd_boolean the_default;
  7645. const struct bfd_arch_info * (*compatible) (const struct bfd_arch_info *,
  7646. const struct bfd_arch_info *);
  7647. bfd_boolean (*scan) (const struct bfd_arch_info *, const char *);
  7648. /* Allocate via bfd_malloc and return a fill buffer of size COUNT. If
  7649. IS_BIGENDIAN is TRUE, the order of bytes is big endian. If CODE is
  7650. TRUE, the buffer contains code. */
  7651. void *(*fill) (bfd_size_type count, bfd_boolean is_bigendian,
  7652. bfd_boolean code);
  7653. const struct bfd_arch_info *next;
  7654. /* On some architectures the offset for a relocation can point into
  7655. the middle of an instruction. This field specifies the maximum
  7656. offset such a relocation can have (in octets). This affects the
  7657. behaviour of the disassembler, since a value greater than zero
  7658. means that it may need to disassemble an instruction twice, once
  7659. to get its length and then a second time to display it. If the
  7660. value is negative then this has to be done for every single
  7661. instruction, regardless of the offset of the reloc. */
  7662. signed int max_reloc_offset_into_insn;
  7663. }
  7664. bfd_arch_info_type;
  7665. 2.13.2.1 'bfd_printable_name'
  7666. .............................
  7667. *Synopsis*
  7668. const char *bfd_printable_name (bfd *abfd);
  7669. *Description*
  7670. Return a printable string representing the architecture and machine from
  7671. the pointer to the architecture info structure.
  7672. 2.13.2.2 'bfd_scan_arch'
  7673. ........................
  7674. *Synopsis*
  7675. const bfd_arch_info_type *bfd_scan_arch (const char *string);
  7676. *Description*
  7677. Figure out if BFD supports any cpu which could be described with the
  7678. name STRING. Return a pointer to an 'arch_info' structure if a machine
  7679. is found, otherwise NULL.
  7680. 2.13.2.3 'bfd_arch_list'
  7681. ........................
  7682. *Synopsis*
  7683. const char **bfd_arch_list (void);
  7684. *Description*
  7685. Return a freshly malloced NULL-terminated vector of the names of all the
  7686. valid BFD architectures. Do not modify the names.
  7687. 2.13.2.4 'bfd_arch_get_compatible'
  7688. ..................................
  7689. *Synopsis*
  7690. const bfd_arch_info_type *bfd_arch_get_compatible
  7691. (const bfd *abfd, const bfd *bbfd, bfd_boolean accept_unknowns);
  7692. *Description*
  7693. Determine whether two BFDs' architectures and machine types are
  7694. compatible. Calculates the lowest common denominator between the two
  7695. architectures and machine types implied by the BFDs and returns a
  7696. pointer to an 'arch_info' structure describing the compatible machine.
  7697. 2.13.2.5 'bfd_default_arch_struct'
  7698. ..................................
  7699. *Description*
  7700. The 'bfd_default_arch_struct' is an item of 'bfd_arch_info_type' which
  7701. has been initialized to a fairly generic state. A BFD starts life by
  7702. pointing to this structure, until the correct back end has determined
  7703. the real architecture of the file.
  7704. extern const bfd_arch_info_type bfd_default_arch_struct;
  7705. 2.13.2.6 'bfd_set_arch_info'
  7706. ............................
  7707. *Synopsis*
  7708. void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg);
  7709. *Description*
  7710. Set the architecture info of ABFD to ARG.
  7711. 2.13.2.7 'bfd_default_set_arch_mach'
  7712. ....................................
  7713. *Synopsis*
  7714. bfd_boolean bfd_default_set_arch_mach
  7715. (bfd *abfd, enum bfd_architecture arch, unsigned long mach);
  7716. *Description*
  7717. Set the architecture and machine type in BFD ABFD to ARCH and MACH.
  7718. Find the correct pointer to a structure and insert it into the
  7719. 'arch_info' pointer.
  7720. 2.13.2.8 'bfd_get_arch'
  7721. .......................
  7722. *Synopsis*
  7723. enum bfd_architecture bfd_get_arch (const bfd *abfd);
  7724. *Description*
  7725. Return the enumerated type which describes the BFD ABFD's architecture.
  7726. 2.13.2.9 'bfd_get_mach'
  7727. .......................
  7728. *Synopsis*
  7729. unsigned long bfd_get_mach (const bfd *abfd);
  7730. *Description*
  7731. Return the long type which describes the BFD ABFD's machine.
  7732. 2.13.2.10 'bfd_arch_bits_per_byte'
  7733. ..................................
  7734. *Synopsis*
  7735. unsigned int bfd_arch_bits_per_byte (const bfd *abfd);
  7736. *Description*
  7737. Return the number of bits in one of the BFD ABFD's architecture's bytes.
  7738. 2.13.2.11 'bfd_arch_bits_per_address'
  7739. .....................................
  7740. *Synopsis*
  7741. unsigned int bfd_arch_bits_per_address (const bfd *abfd);
  7742. *Description*
  7743. Return the number of bits in one of the BFD ABFD's architecture's
  7744. addresses.
  7745. 2.13.2.12 'bfd_default_compatible'
  7746. ..................................
  7747. *Synopsis*
  7748. const bfd_arch_info_type *bfd_default_compatible
  7749. (const bfd_arch_info_type *a, const bfd_arch_info_type *b);
  7750. *Description*
  7751. The default function for testing for compatibility.
  7752. 2.13.2.13 'bfd_default_scan'
  7753. ............................
  7754. *Synopsis*
  7755. bfd_boolean bfd_default_scan
  7756. (const struct bfd_arch_info *info, const char *string);
  7757. *Description*
  7758. The default function for working out whether this is an architecture hit
  7759. and a machine hit.
  7760. 2.13.2.14 'bfd_get_arch_info'
  7761. .............................
  7762. *Synopsis*
  7763. const bfd_arch_info_type *bfd_get_arch_info (bfd *abfd);
  7764. *Description*
  7765. Return the architecture info struct in ABFD.
  7766. 2.13.2.15 'bfd_lookup_arch'
  7767. ...........................
  7768. *Synopsis*
  7769. const bfd_arch_info_type *bfd_lookup_arch
  7770. (enum bfd_architecture arch, unsigned long machine);
  7771. *Description*
  7772. Look for the architecture info structure which matches the arguments
  7773. ARCH and MACHINE. A machine of 0 matches the machine/architecture
  7774. structure which marks itself as the default.
  7775. 2.13.2.16 'bfd_printable_arch_mach'
  7776. ...................................
  7777. *Synopsis*
  7778. const char *bfd_printable_arch_mach
  7779. (enum bfd_architecture arch, unsigned long machine);
  7780. *Description*
  7781. Return a printable string representing the architecture and machine
  7782. type.
  7783. This routine is depreciated.
  7784. 2.13.2.17 'bfd_octets_per_byte'
  7785. ...............................
  7786. *Synopsis*
  7787. unsigned int bfd_octets_per_byte (const bfd *abfd,
  7788. const asection *sec);
  7789. *Description*
  7790. Return the number of octets (8-bit quantities) per target byte (minimum
  7791. addressable unit). In most cases, this will be one, but some DSP
  7792. targets have 16, 32, or even 48 bits per byte.
  7793. 2.13.2.18 'bfd_arch_mach_octets_per_byte'
  7794. .........................................
  7795. *Synopsis*
  7796. unsigned int bfd_arch_mach_octets_per_byte
  7797. (enum bfd_architecture arch, unsigned long machine);
  7798. *Description*
  7799. See bfd_octets_per_byte.
  7800. This routine is provided for those cases where a bfd * is not
  7801. available
  7802. 2.13.2.19 'bfd_arch_default_fill'
  7803. .................................
  7804. *Synopsis*
  7805. void *bfd_arch_default_fill (bfd_size_type count,
  7806. bfd_boolean is_bigendian,
  7807. bfd_boolean code);
  7808. *Description*
  7809. Allocate via bfd_malloc and return a fill buffer of size COUNT. If
  7810. IS_BIGENDIAN is TRUE, the order of bytes is big endian. If CODE is
  7811. TRUE, the buffer contains code.
  7812. 
  7813. File: bfd.info, Node: Opening and Closing, Next: Internal, Prev: Architectures, Up: BFD front end
  7814. /* Set to N to open the next N BFDs using an alternate id space. */
  7815. extern unsigned int bfd_use_reserved_id;
  7816. 2.14 Opening and closing BFDs
  7817. =============================
  7818. 2.14.1 Functions for opening and closing
  7819. ----------------------------------------
  7820. 2.14.1.1 'bfd_fopen'
  7821. ....................
  7822. *Synopsis*
  7823. bfd *bfd_fopen (const char *filename, const char *target,
  7824. const char *mode, int fd);
  7825. *Description*
  7826. Open the file FILENAME with the target TARGET. Return a pointer to the
  7827. created BFD. If FD is not -1, then 'fdopen' is used to open the file;
  7828. otherwise, 'fopen' is used. MODE is passed directly to 'fopen' or
  7829. 'fdopen'.
  7830. Calls 'bfd_find_target', so TARGET is interpreted as by that
  7831. function.
  7832. The new BFD is marked as cacheable iff FD is -1.
  7833. If 'NULL' is returned then an error has occured. Possible errors are
  7834. 'bfd_error_no_memory', 'bfd_error_invalid_target' or 'system_call'
  7835. error.
  7836. On error, FD is always closed.
  7837. A copy of the FILENAME argument is stored in the newly created BFD.
  7838. It can be accessed via the bfd_get_filename() macro.
  7839. 2.14.1.2 'bfd_openr'
  7840. ....................
  7841. *Synopsis*
  7842. bfd *bfd_openr (const char *filename, const char *target);
  7843. *Description*
  7844. Open the file FILENAME (using 'fopen') with the target TARGET. Return a
  7845. pointer to the created BFD.
  7846. Calls 'bfd_find_target', so TARGET is interpreted as by that
  7847. function.
  7848. If 'NULL' is returned then an error has occured. Possible errors are
  7849. 'bfd_error_no_memory', 'bfd_error_invalid_target' or 'system_call'
  7850. error.
  7851. A copy of the FILENAME argument is stored in the newly created BFD.
  7852. It can be accessed via the bfd_get_filename() macro.
  7853. 2.14.1.3 'bfd_fdopenr'
  7854. ......................
  7855. *Synopsis*
  7856. bfd *bfd_fdopenr (const char *filename, const char *target, int fd);
  7857. *Description*
  7858. 'bfd_fdopenr' is to 'bfd_fopenr' much like 'fdopen' is to 'fopen'. It
  7859. opens a BFD on a file already described by the FD supplied.
  7860. When the file is later 'bfd_close'd, the file descriptor will be
  7861. closed. If the caller desires that this file descriptor be cached by
  7862. BFD (opened as needed, closed as needed to free descriptors for other
  7863. opens), with the supplied FD used as an initial file descriptor (but
  7864. subject to closure at any time), call bfd_set_cacheable(bfd, 1) on the
  7865. returned BFD. The default is to assume no caching; the file descriptor
  7866. will remain open until 'bfd_close', and will not be affected by BFD
  7867. operations on other files.
  7868. Possible errors are 'bfd_error_no_memory', 'bfd_error_invalid_target'
  7869. and 'bfd_error_system_call'.
  7870. On error, FD is closed.
  7871. A copy of the FILENAME argument is stored in the newly created BFD.
  7872. It can be accessed via the bfd_get_filename() macro.
  7873. 2.14.1.4 'bfd_openstreamr'
  7874. ..........................
  7875. *Synopsis*
  7876. bfd *bfd_openstreamr (const char * filename, const char * target,
  7877. void * stream);
  7878. *Description*
  7879. Open a BFD for read access on an existing stdio stream. When the BFD is
  7880. passed to 'bfd_close', the stream will be closed.
  7881. A copy of the FILENAME argument is stored in the newly created BFD.
  7882. It can be accessed via the bfd_get_filename() macro.
  7883. 2.14.1.5 'bfd_openr_iovec'
  7884. ..........................
  7885. *Synopsis*
  7886. bfd *bfd_openr_iovec (const char *filename, const char *target,
  7887. void *(*open_func) (struct bfd *nbfd,
  7888. void *open_closure),
  7889. void *open_closure,
  7890. file_ptr (*pread_func) (struct bfd *nbfd,
  7891. void *stream,
  7892. void *buf,
  7893. file_ptr nbytes,
  7894. file_ptr offset),
  7895. int (*close_func) (struct bfd *nbfd,
  7896. void *stream),
  7897. int (*stat_func) (struct bfd *abfd,
  7898. void *stream,
  7899. struct stat *sb));
  7900. *Description*
  7901. Create and return a BFD backed by a read-only STREAM. The STREAM is
  7902. created using OPEN_FUNC, accessed using PREAD_FUNC and destroyed using
  7903. CLOSE_FUNC.
  7904. Calls 'bfd_find_target', so TARGET is interpreted as by that
  7905. function.
  7906. Calls OPEN_FUNC (which can call 'bfd_zalloc' and 'bfd_get_filename')
  7907. to obtain the read-only stream backing the BFD. OPEN_FUNC either
  7908. succeeds returning the non-'NULL' STREAM, or fails returning 'NULL'
  7909. (setting 'bfd_error').
  7910. Calls PREAD_FUNC to request NBYTES of data from STREAM starting at
  7911. OFFSET (e.g., via a call to 'bfd_read'). PREAD_FUNC either succeeds
  7912. returning the number of bytes read (which can be less than NBYTES when
  7913. end-of-file), or fails returning -1 (setting 'bfd_error').
  7914. Calls CLOSE_FUNC when the BFD is later closed using 'bfd_close'.
  7915. CLOSE_FUNC either succeeds returning 0, or fails returning -1 (setting
  7916. 'bfd_error').
  7917. Calls STAT_FUNC to fill in a stat structure for bfd_stat,
  7918. bfd_get_size, and bfd_get_mtime calls. STAT_FUNC returns 0 on success,
  7919. or returns -1 on failure (setting 'bfd_error').
  7920. If 'bfd_openr_iovec' returns 'NULL' then an error has occurred.
  7921. Possible errors are 'bfd_error_no_memory', 'bfd_error_invalid_target'
  7922. and 'bfd_error_system_call'.
  7923. A copy of the FILENAME argument is stored in the newly created BFD.
  7924. It can be accessed via the bfd_get_filename() macro.
  7925. 2.14.1.6 'bfd_openw'
  7926. ....................
  7927. *Synopsis*
  7928. bfd *bfd_openw (const char *filename, const char *target);
  7929. *Description*
  7930. Create a BFD, associated with file FILENAME, using the file format
  7931. TARGET, and return a pointer to it.
  7932. Possible errors are 'bfd_error_system_call', 'bfd_error_no_memory',
  7933. 'bfd_error_invalid_target'.
  7934. A copy of the FILENAME argument is stored in the newly created BFD.
  7935. It can be accessed via the bfd_get_filename() macro.
  7936. 2.14.1.7 'bfd_close'
  7937. ....................
  7938. *Synopsis*
  7939. bfd_boolean bfd_close (bfd *abfd);
  7940. *Description*
  7941. Close a BFD. If the BFD was open for writing, then pending operations
  7942. are completed and the file written out and closed. If the created file
  7943. is executable, then 'chmod' is called to mark it as such.
  7944. All memory attached to the BFD is released.
  7945. The file descriptor associated with the BFD is closed (even if it was
  7946. passed in to BFD by 'bfd_fdopenr').
  7947. *Returns*
  7948. 'TRUE' is returned if all is ok, otherwise 'FALSE'.
  7949. 2.14.1.8 'bfd_close_all_done'
  7950. .............................
  7951. *Synopsis*
  7952. bfd_boolean bfd_close_all_done (bfd *);
  7953. *Description*
  7954. Close a BFD. Differs from 'bfd_close' since it does not complete any
  7955. pending operations. This routine would be used if the application had
  7956. just used BFD for swapping and didn't want to use any of the writing
  7957. code.
  7958. If the created file is executable, then 'chmod' is called to mark it
  7959. as such.
  7960. All memory attached to the BFD is released.
  7961. *Returns*
  7962. 'TRUE' is returned if all is ok, otherwise 'FALSE'.
  7963. 2.14.1.9 'bfd_create'
  7964. .....................
  7965. *Synopsis*
  7966. bfd *bfd_create (const char *filename, bfd *templ);
  7967. *Description*
  7968. Create a new BFD in the manner of 'bfd_openw', but without opening a
  7969. file. The new BFD takes the target from the target used by TEMPL. The
  7970. format is always set to 'bfd_object'.
  7971. A copy of the FILENAME argument is stored in the newly created BFD.
  7972. It can be accessed via the bfd_get_filename() macro.
  7973. 2.14.1.10 'bfd_make_writable'
  7974. .............................
  7975. *Synopsis*
  7976. bfd_boolean bfd_make_writable (bfd *abfd);
  7977. *Description*
  7978. Takes a BFD as created by 'bfd_create' and converts it into one like as
  7979. returned by 'bfd_openw'. It does this by converting the BFD to
  7980. BFD_IN_MEMORY. It's assumed that you will call 'bfd_make_readable' on
  7981. this bfd later.
  7982. *Returns*
  7983. 'TRUE' is returned if all is ok, otherwise 'FALSE'.
  7984. 2.14.1.11 'bfd_make_readable'
  7985. .............................
  7986. *Synopsis*
  7987. bfd_boolean bfd_make_readable (bfd *abfd);
  7988. *Description*
  7989. Takes a BFD as created by 'bfd_create' and 'bfd_make_writable' and
  7990. converts it into one like as returned by 'bfd_openr'. It does this by
  7991. writing the contents out to the memory buffer, then reversing the
  7992. direction.
  7993. *Returns*
  7994. 'TRUE' is returned if all is ok, otherwise 'FALSE'.
  7995. 2.14.1.12 'bfd_alloc'
  7996. .....................
  7997. *Synopsis*
  7998. void *bfd_alloc (bfd *abfd, bfd_size_type wanted);
  7999. *Description*
  8000. Allocate a block of WANTED bytes of memory attached to 'abfd' and return
  8001. a pointer to it.
  8002. 2.14.1.13 'bfd_zalloc'
  8003. ......................
  8004. *Synopsis*
  8005. void *bfd_zalloc (bfd *abfd, bfd_size_type wanted);
  8006. *Description*
  8007. Allocate a block of WANTED bytes of zeroed memory attached to 'abfd' and
  8008. return a pointer to it.
  8009. 2.14.1.14 'bfd_calc_gnu_debuglink_crc32'
  8010. ........................................
  8011. *Synopsis*
  8012. unsigned long bfd_calc_gnu_debuglink_crc32
  8013. (unsigned long crc, const unsigned char *buf, bfd_size_type len);
  8014. *Description*
  8015. Computes a CRC value as used in the .gnu_debuglink section. Advances
  8016. the previously computed CRC value by computing and adding in the crc32
  8017. for LEN bytes of BUF.
  8018. *Returns*
  8019. Return the updated CRC32 value.
  8020. 2.14.1.15 'bfd_get_debug_link_info_1'
  8021. .....................................
  8022. *Synopsis*
  8023. char *bfd_get_debug_link_info_1 (bfd *abfd, void *crc32_out);
  8024. *Description*
  8025. Extracts the filename and CRC32 value for any separate debug information
  8026. file associated with ABFD.
  8027. The CRC32_OUT parameter is an untyped pointer because this routine is
  8028. used as a 'get_func_type' function, but it is expected to be an unsigned
  8029. long pointer.
  8030. *Returns*
  8031. The filename of the associated debug information file, or NULL if there
  8032. is no such file. If the filename was found then the contents of
  8033. CRC32_OUT are updated to hold the corresponding CRC32 value for the
  8034. file.
  8035. The returned filename is allocated with 'malloc'; freeing it is the
  8036. responsibility of the caller.
  8037. 2.14.1.16 'bfd_get_debug_link_info'
  8038. ...................................
  8039. *Synopsis*
  8040. char *bfd_get_debug_link_info (bfd *abfd, unsigned long *crc32_out);
  8041. *Description*
  8042. Extracts the filename and CRC32 value for any separate debug information
  8043. file associated with ABFD.
  8044. *Returns*
  8045. The filename of the associated debug information file, or NULL if there
  8046. is no such file. If the filename was found then the contents of
  8047. CRC32_OUT are updated to hold the corresponding CRC32 value for the
  8048. file.
  8049. The returned filename is allocated with 'malloc'; freeing it is the
  8050. responsibility of the caller.
  8051. 2.14.1.17 'bfd_get_alt_debug_link_info'
  8052. .......................................
  8053. *Synopsis*
  8054. char *bfd_get_alt_debug_link_info (bfd * abfd,
  8055. bfd_size_type *buildid_len,
  8056. bfd_byte **buildid_out);
  8057. *Description*
  8058. Fetch the filename and BuildID value for any alternate debuginfo
  8059. associated with ABFD. Return NULL if no such info found, otherwise
  8060. return filename and update BUILDID_LEN and BUILDID_OUT. The returned
  8061. filename and build_id are allocated with 'malloc'; freeing them is the
  8062. responsibility of the caller.
  8063. 2.14.1.18 'separate_debug_file_exists'
  8064. ......................................
  8065. *Synopsis*
  8066. bfd_boolean separate_debug_file_exists
  8067. (char *name, void *crc32_p);
  8068. *Description*
  8069. Checks to see if NAME is a file and if its contents match CRC32, which
  8070. is a pointer to an 'unsigned long' containing a CRC32.
  8071. The CRC32_P parameter is an untyped pointer because this routine is
  8072. used as a 'check_func_type' function.
  8073. 2.14.1.19 'separate_alt_debug_file_exists'
  8074. ..........................................
  8075. *Synopsis*
  8076. bfd_boolean separate_alt_debug_file_exists
  8077. (char *name, void *unused);
  8078. *Description*
  8079. Checks to see if NAME is a file.
  8080. 2.14.1.20 'find_separate_debug_file'
  8081. ....................................
  8082. *Synopsis*
  8083. char *find_separate_debug_file
  8084. (bfd *abfd, const char *dir, bfd_boolean include_dirs,
  8085. get_func_type get, check_func_type check, void *data);
  8086. *Description*
  8087. Searches for a debug information file corresponding to ABFD.
  8088. The name of the separate debug info file is returned by the GET
  8089. function. This function scans various fixed locations in the
  8090. filesystem, including the file tree rooted at DIR. If the INCLUDE_DIRS
  8091. parameter is true then the directory components of ABFD's filename will
  8092. be included in the searched locations.
  8093. DATA is passed unmodified to the GET and CHECK functions. It is
  8094. generally used to implement build-id-like matching in the callback
  8095. functions.
  8096. *Returns*
  8097. Returns the filename of the first file to be found which receives a TRUE
  8098. result from the CHECK function. Returns NULL if no valid file could be
  8099. found.
  8100. 2.14.1.21 'bfd_follow_gnu_debuglink'
  8101. ....................................
  8102. *Synopsis*
  8103. char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir);
  8104. *Description*
  8105. Takes a BFD and searches it for a .gnu_debuglink section. If this
  8106. section is found, it examines the section for the name and checksum of a
  8107. '.debug' file containing auxiliary debugging information. It then
  8108. searches the filesystem for this .debug file in some standard locations,
  8109. including the directory tree rooted at DIR, and if found returns the
  8110. full filename.
  8111. If DIR is NULL, the search will take place starting at the current
  8112. directory.
  8113. *Returns*
  8114. 'NULL' on any errors or failure to locate the .debug file, otherwise a
  8115. pointer to a heap-allocated string containing the filename. The caller
  8116. is responsible for freeing this string.
  8117. 2.14.1.22 'bfd_follow_gnu_debugaltlink'
  8118. .......................................
  8119. *Synopsis*
  8120. char *bfd_follow_gnu_debugaltlink (bfd *abfd, const char *dir);
  8121. *Description*
  8122. Takes a BFD and searches it for a .gnu_debugaltlink section. If this
  8123. section is found, it examines the section for the name of a file
  8124. containing auxiliary debugging information. It then searches the
  8125. filesystem for this file in a set of standard locations, including the
  8126. directory tree rooted at DIR, and if found returns the full filename.
  8127. If DIR is NULL, the search will take place starting at the current
  8128. directory.
  8129. *Returns*
  8130. 'NULL' on any errors or failure to locate the debug file, otherwise a
  8131. pointer to a heap-allocated string containing the filename. The caller
  8132. is responsible for freeing this string.
  8133. 2.14.1.23 'bfd_create_gnu_debuglink_section'
  8134. ............................................
  8135. *Synopsis*
  8136. struct bfd_section *bfd_create_gnu_debuglink_section
  8137. (bfd *abfd, const char *filename);
  8138. *Description*
  8139. Takes a BFD and adds a .gnu_debuglink section to it. The section is
  8140. sized to be big enough to contain a link to the specified FILENAME.
  8141. *Returns*
  8142. A pointer to the new section is returned if all is ok. Otherwise 'NULL'
  8143. is returned and bfd_error is set.
  8144. 2.14.1.24 'bfd_fill_in_gnu_debuglink_section'
  8145. .............................................
  8146. *Synopsis*
  8147. bfd_boolean bfd_fill_in_gnu_debuglink_section
  8148. (bfd *abfd, struct bfd_section *sect, const char *filename);
  8149. *Description*
  8150. Takes a BFD and containing a .gnu_debuglink section SECT and fills in
  8151. the contents of the section to contain a link to the specified FILENAME.
  8152. The filename should be relative to the current directory.
  8153. *Returns*
  8154. 'TRUE' is returned if all is ok. Otherwise 'FALSE' is returned and
  8155. bfd_error is set.
  8156. 2.14.1.25 'get_build_id'
  8157. ........................
  8158. *Synopsis*
  8159. struct bfd_build_id * get_build_id (bfd *abfd);
  8160. *Description*
  8161. Finds the build-id associated with ABFD. If the build-id is extracted
  8162. from the note section then a build-id structure is built for it, using
  8163. memory allocated to ABFD, and this is then attached to the ABFD.
  8164. *Returns*
  8165. Returns a pointer to the build-id structure if a build-id could be
  8166. found. If no build-id is found NULL is returned and error code is set.
  8167. 2.14.1.26 'get_build_id_name'
  8168. .............................
  8169. *Synopsis*
  8170. char * get_build_id_name (bfd *abfd, void *build_id_out_p)
  8171. *Description*
  8172. Searches ABFD for a build-id, and then constructs a pathname from it.
  8173. The path is computed as .build-id/NN/NN+NN.debug where NNNN+NN is the
  8174. build-id value as a hexadecimal string.
  8175. *Returns*
  8176. Returns the constructed filename or NULL upon error. It is the caller's
  8177. responsibility to free the memory used to hold the filename. If a
  8178. filename is returned then the BUILD_ID_OUT_P parameter (which points to
  8179. a 'struct bfd_build_id' pointer) is set to a pointer to the build_id
  8180. structure.
  8181. 2.14.1.27 'check_build_id_file'
  8182. ...............................
  8183. *Synopsis*
  8184. bfd_boolean check_build_id_file (char *name, void *buildid_p);
  8185. *Description*
  8186. Checks to see if NAME is a readable file and if its build-id matches
  8187. BUILDID.
  8188. *Returns*
  8189. Returns TRUE if the file exists, is readable, and contains a build-id
  8190. which matches the build-id pointed at by BUILD_ID_P (which is really a
  8191. 'struct bfd_build_id **').
  8192. 2.14.1.28 'bfd_follow_build_id_debuglink'
  8193. .........................................
  8194. *Synopsis*
  8195. char *bfd_follow_build_id_debuglink (bfd *abfd, const char *dir);
  8196. *Description*
  8197. Takes ABFD and searches it for a .note.gnu.build-id section. If this
  8198. section is found, it extracts the value of the NT_GNU_BUILD_ID note,
  8199. which should be a hexadecimal value NNNN+NN (for 32+ hex digits). It
  8200. then searches the filesystem for a file named .BUILD-ID/NN/NN+NN.DEBUG
  8201. in a set of standard locations, including the directory tree rooted at
  8202. DIR. The filename of the first matching file to be found is returned.
  8203. A matching file should contain a .note.gnu.build-id section with the
  8204. same NNNN+NN note as ABFD, although this check is currently not
  8205. implemented.
  8206. If DIR is NULL, the search will take place starting at the current
  8207. directory.
  8208. *Returns*
  8209. 'NULL' on any errors or failure to locate the debug file, otherwise a
  8210. pointer to a heap-allocated string containing the filename. The caller
  8211. is responsible for freeing this string.
  8212. 2.14.1.29 'bfd_set_filename'
  8213. ............................
  8214. *Synopsis*
  8215. const char *bfd_set_filename (bfd *abfd, const char *filename);
  8216. *Description*
  8217. Set the filename of ABFD, copying the FILENAME parameter to bfd_alloc'd
  8218. memory owned by ABFD. Returns a pointer the newly allocated name, or
  8219. NULL if the allocation failed.
  8220. 
  8221. File: bfd.info, Node: Internal, Next: File Caching, Prev: Opening and Closing, Up: BFD front end
  8222. 2.15 Implementation details
  8223. ===========================
  8224. 2.15.1 Internal functions
  8225. -------------------------
  8226. *Description*
  8227. These routines are used within BFD. They are not intended for export,
  8228. but are documented here for completeness.
  8229. 2.15.1.1 'bfd_write_bigendian_4byte_int'
  8230. ........................................
  8231. *Synopsis*
  8232. bfd_boolean bfd_write_bigendian_4byte_int (bfd *, unsigned int);
  8233. *Description*
  8234. Write a 4 byte integer I to the output BFD ABFD, in big endian order
  8235. regardless of what else is going on. This is useful in archives.
  8236. 2.15.1.2 'bfd_put_size'
  8237. .......................
  8238. 2.15.1.3 'bfd_get_size'
  8239. .......................
  8240. *Description*
  8241. These macros as used for reading and writing raw data in sections; each
  8242. access (except for bytes) is vectored through the target format of the
  8243. BFD and mangled accordingly. The mangling performs any necessary endian
  8244. translations and removes alignment restrictions. Note that types
  8245. accepted and returned by these macros are identical so they can be
  8246. swapped around in macros--for example, 'libaout.h' defines 'GET_WORD' to
  8247. either 'bfd_get_32' or 'bfd_get_64'.
  8248. In the put routines, VAL must be a 'bfd_vma'. If we are on a system
  8249. without prototypes, the caller is responsible for making sure that is
  8250. true, with a cast if necessary. We don't cast them in the macro
  8251. definitions because that would prevent 'lint' or 'gcc -Wall' from
  8252. detecting sins such as passing a pointer. To detect calling these with
  8253. less than a 'bfd_vma', use 'gcc -Wconversion' on a host with 64 bit
  8254. 'bfd_vma''s.
  8255. /* Byte swapping macros for user section data. */
  8256. #define bfd_put_8(abfd, val, ptr) \
  8257. ((void) (*((unsigned char *) (ptr)) = (val) & 0xff))
  8258. #define bfd_put_signed_8 \
  8259. bfd_put_8
  8260. #define bfd_get_8(abfd, ptr) \
  8261. ((bfd_vma) *(const unsigned char *) (ptr) & 0xff)
  8262. #define bfd_get_signed_8(abfd, ptr) \
  8263. ((((bfd_signed_vma) *(const unsigned char *) (ptr) & 0xff) ^ 0x80) - 0x80)
  8264. #define bfd_put_16(abfd, val, ptr) \
  8265. BFD_SEND (abfd, bfd_putx16, ((val),(ptr)))
  8266. #define bfd_put_signed_16 \
  8267. bfd_put_16
  8268. #define bfd_get_16(abfd, ptr) \
  8269. BFD_SEND (abfd, bfd_getx16, (ptr))
  8270. #define bfd_get_signed_16(abfd, ptr) \
  8271. BFD_SEND (abfd, bfd_getx_signed_16, (ptr))
  8272. #define bfd_put_24(abfd, val, ptr) \
  8273. do \
  8274. if (bfd_big_endian (abfd)) \
  8275. bfd_putb24 ((val), (ptr)); \
  8276. else \
  8277. bfd_putl24 ((val), (ptr)); \
  8278. while (0)
  8279. bfd_vma bfd_getb24 (const void *p);
  8280. bfd_vma bfd_getl24 (const void *p);
  8281. #define bfd_get_24(abfd, ptr) \
  8282. (bfd_big_endian (abfd) ? bfd_getb24 (ptr) : bfd_getl24 (ptr))
  8283. #define bfd_put_32(abfd, val, ptr) \
  8284. BFD_SEND (abfd, bfd_putx32, ((val),(ptr)))
  8285. #define bfd_put_signed_32 \
  8286. bfd_put_32
  8287. #define bfd_get_32(abfd, ptr) \
  8288. BFD_SEND (abfd, bfd_getx32, (ptr))
  8289. #define bfd_get_signed_32(abfd, ptr) \
  8290. BFD_SEND (abfd, bfd_getx_signed_32, (ptr))
  8291. #define bfd_put_64(abfd, val, ptr) \
  8292. BFD_SEND (abfd, bfd_putx64, ((val), (ptr)))
  8293. #define bfd_put_signed_64 \
  8294. bfd_put_64
  8295. #define bfd_get_64(abfd, ptr) \
  8296. BFD_SEND (abfd, bfd_getx64, (ptr))
  8297. #define bfd_get_signed_64(abfd, ptr) \
  8298. BFD_SEND (abfd, bfd_getx_signed_64, (ptr))
  8299. #define bfd_get(bits, abfd, ptr) \
  8300. ((bits) == 8 ? bfd_get_8 (abfd, ptr) \
  8301. : (bits) == 16 ? bfd_get_16 (abfd, ptr) \
  8302. : (bits) == 32 ? bfd_get_32 (abfd, ptr) \
  8303. : (bits) == 64 ? bfd_get_64 (abfd, ptr) \
  8304. : (abort (), (bfd_vma) - 1))
  8305. #define bfd_put(bits, abfd, val, ptr) \
  8306. ((bits) == 8 ? bfd_put_8 (abfd, val, ptr) \
  8307. : (bits) == 16 ? bfd_put_16 (abfd, val, ptr) \
  8308. : (bits) == 32 ? bfd_put_32 (abfd, val, ptr) \
  8309. : (bits) == 64 ? bfd_put_64 (abfd, val, ptr) \
  8310. : (abort (), (void) 0))
  8311. 2.15.1.4 'bfd_h_put_size'
  8312. .........................
  8313. *Description*
  8314. These macros have the same function as their 'bfd_get_x' brethren,
  8315. except that they are used for removing information for the header
  8316. records of object files. Believe it or not, some object files keep
  8317. their header records in big endian order and their data in little endian
  8318. order.
  8319. /* Byte swapping macros for file header data. */
  8320. #define bfd_h_put_8(abfd, val, ptr) \
  8321. bfd_put_8 (abfd, val, ptr)
  8322. #define bfd_h_put_signed_8(abfd, val, ptr) \
  8323. bfd_put_8 (abfd, val, ptr)
  8324. #define bfd_h_get_8(abfd, ptr) \
  8325. bfd_get_8 (abfd, ptr)
  8326. #define bfd_h_get_signed_8(abfd, ptr) \
  8327. bfd_get_signed_8 (abfd, ptr)
  8328. #define bfd_h_put_16(abfd, val, ptr) \
  8329. BFD_SEND (abfd, bfd_h_putx16, (val, ptr))
  8330. #define bfd_h_put_signed_16 \
  8331. bfd_h_put_16
  8332. #define bfd_h_get_16(abfd, ptr) \
  8333. BFD_SEND (abfd, bfd_h_getx16, (ptr))
  8334. #define bfd_h_get_signed_16(abfd, ptr) \
  8335. BFD_SEND (abfd, bfd_h_getx_signed_16, (ptr))
  8336. #define bfd_h_put_32(abfd, val, ptr) \
  8337. BFD_SEND (abfd, bfd_h_putx32, (val, ptr))
  8338. #define bfd_h_put_signed_32 \
  8339. bfd_h_put_32
  8340. #define bfd_h_get_32(abfd, ptr) \
  8341. BFD_SEND (abfd, bfd_h_getx32, (ptr))
  8342. #define bfd_h_get_signed_32(abfd, ptr) \
  8343. BFD_SEND (abfd, bfd_h_getx_signed_32, (ptr))
  8344. #define bfd_h_put_64(abfd, val, ptr) \
  8345. BFD_SEND (abfd, bfd_h_putx64, (val, ptr))
  8346. #define bfd_h_put_signed_64 \
  8347. bfd_h_put_64
  8348. #define bfd_h_get_64(abfd, ptr) \
  8349. BFD_SEND (abfd, bfd_h_getx64, (ptr))
  8350. #define bfd_h_get_signed_64(abfd, ptr) \
  8351. BFD_SEND (abfd, bfd_h_getx_signed_64, (ptr))
  8352. /* Aliases for the above, which should eventually go away. */
  8353. #define H_PUT_64 bfd_h_put_64
  8354. #define H_PUT_32 bfd_h_put_32
  8355. #define H_PUT_16 bfd_h_put_16
  8356. #define H_PUT_8 bfd_h_put_8
  8357. #define H_PUT_S64 bfd_h_put_signed_64
  8358. #define H_PUT_S32 bfd_h_put_signed_32
  8359. #define H_PUT_S16 bfd_h_put_signed_16
  8360. #define H_PUT_S8 bfd_h_put_signed_8
  8361. #define H_GET_64 bfd_h_get_64
  8362. #define H_GET_32 bfd_h_get_32
  8363. #define H_GET_16 bfd_h_get_16
  8364. #define H_GET_8 bfd_h_get_8
  8365. #define H_GET_S64 bfd_h_get_signed_64
  8366. #define H_GET_S32 bfd_h_get_signed_32
  8367. #define H_GET_S16 bfd_h_get_signed_16
  8368. #define H_GET_S8 bfd_h_get_signed_8
  8369. 2.15.1.5 'bfd_log2'
  8370. ...................
  8371. *Synopsis*
  8372. unsigned int bfd_log2 (bfd_vma x);
  8373. *Description*
  8374. Return the log base 2 of the value supplied, rounded up. E.g., an X of
  8375. 1025 returns 11. A X of 0 returns 0.
  8376. 
  8377. File: bfd.info, Node: File Caching, Next: Linker Functions, Prev: Internal, Up: BFD front end
  8378. 2.16 File caching
  8379. =================
  8380. The file caching mechanism is embedded within BFD and allows the
  8381. application to open as many BFDs as it wants without regard to the
  8382. underlying operating system's file descriptor limit (often as low as 20
  8383. open files). The module in 'cache.c' maintains a least recently used
  8384. list of 'bfd_cache_max_open' files, and exports the name
  8385. 'bfd_cache_lookup', which runs around and makes sure that the required
  8386. BFD is open. If not, then it chooses a file to close, closes it and
  8387. opens the one wanted, returning its file handle.
  8388. 2.16.1 Caching functions
  8389. ------------------------
  8390. 2.16.1.1 'bfd_cache_init'
  8391. .........................
  8392. *Synopsis*
  8393. bfd_boolean bfd_cache_init (bfd *abfd);
  8394. *Description*
  8395. Add a newly opened BFD to the cache.
  8396. 2.16.1.2 'bfd_cache_close'
  8397. ..........................
  8398. *Synopsis*
  8399. bfd_boolean bfd_cache_close (bfd *abfd);
  8400. *Description*
  8401. Remove the BFD ABFD from the cache. If the attached file is open, then
  8402. close it too.
  8403. *Returns*
  8404. 'FALSE' is returned if closing the file fails, 'TRUE' is returned if all
  8405. is well.
  8406. 2.16.1.3 'bfd_cache_close_all'
  8407. ..............................
  8408. *Synopsis*
  8409. bfd_boolean bfd_cache_close_all (void);
  8410. *Description*
  8411. Remove all BFDs from the cache. If the attached file is open, then
  8412. close it too.
  8413. *Returns*
  8414. 'FALSE' is returned if closing one of the file fails, 'TRUE' is returned
  8415. if all is well.
  8416. 2.16.1.4 'bfd_open_file'
  8417. ........................
  8418. *Synopsis*
  8419. FILE* bfd_open_file (bfd *abfd);
  8420. *Description*
  8421. Call the OS to open a file for ABFD. Return the 'FILE *' (possibly
  8422. 'NULL') that results from this operation. Set up the BFD so that future
  8423. accesses know the file is open. If the 'FILE *' returned is 'NULL',
  8424. then it won't have been put in the cache, so it won't have to be removed
  8425. from it.
  8426. 
  8427. File: bfd.info, Node: Linker Functions, Next: Hash Tables, Prev: File Caching, Up: BFD front end
  8428. 2.17 Linker Functions
  8429. =====================
  8430. The linker uses three special entry points in the BFD target vector. It
  8431. is not necessary to write special routines for these entry points when
  8432. creating a new BFD back end, since generic versions are provided.
  8433. However, writing them can speed up linking and make it use significantly
  8434. less runtime memory.
  8435. The first routine creates a hash table used by the other routines.
  8436. The second routine adds the symbols from an object file to the hash
  8437. table. The third routine takes all the object files and links them
  8438. together to create the output file. These routines are designed so that
  8439. the linker proper does not need to know anything about the symbols in
  8440. the object files that it is linking. The linker merely arranges the
  8441. sections as directed by the linker script and lets BFD handle the
  8442. details of symbols and relocs.
  8443. The second routine and third routines are passed a pointer to a
  8444. 'struct bfd_link_info' structure (defined in 'bfdlink.h') which holds
  8445. information relevant to the link, including the linker hash table (which
  8446. was created by the first routine) and a set of callback functions to the
  8447. linker proper.
  8448. The generic linker routines are in 'linker.c', and use the header
  8449. file 'genlink.h'. As of this writing, the only back ends which have
  8450. implemented versions of these routines are a.out (in 'aoutx.h') and
  8451. ECOFF (in 'ecoff.c'). The a.out routines are used as examples
  8452. throughout this section.
  8453. * Menu:
  8454. * Creating a Linker Hash Table::
  8455. * Adding Symbols to the Hash Table::
  8456. * Performing the Final Link::
  8457. 
  8458. File: bfd.info, Node: Creating a Linker Hash Table, Next: Adding Symbols to the Hash Table, Prev: Linker Functions, Up: Linker Functions
  8459. 2.17.1 Creating a linker hash table
  8460. -----------------------------------
  8461. The linker routines must create a hash table, which must be derived from
  8462. 'struct bfd_link_hash_table' described in 'bfdlink.c'. *Note Hash
  8463. Tables::, for information on how to create a derived hash table. This
  8464. entry point is called using the target vector of the linker output file.
  8465. The '_bfd_link_hash_table_create' entry point must allocate and
  8466. initialize an instance of the desired hash table. If the back end does
  8467. not require any additional information to be stored with the entries in
  8468. the hash table, the entry point may simply create a 'struct
  8469. bfd_link_hash_table'. Most likely, however, some additional information
  8470. will be needed.
  8471. For example, with each entry in the hash table the a.out linker keeps
  8472. the index the symbol has in the final output file (this index number is
  8473. used so that when doing a relocatable link the symbol index used in the
  8474. output file can be quickly filled in when copying over a reloc). The
  8475. a.out linker code defines the required structures and functions for a
  8476. hash table derived from 'struct bfd_link_hash_table'. The a.out linker
  8477. hash table is created by the function
  8478. 'NAME(aout,link_hash_table_create)'; it simply allocates space for the
  8479. hash table, initializes it, and returns a pointer to it.
  8480. When writing the linker routines for a new back end, you will
  8481. generally not know exactly which fields will be required until you have
  8482. finished. You should simply create a new hash table which defines no
  8483. additional fields, and then simply add fields as they become necessary.
  8484. 
  8485. File: bfd.info, Node: Adding Symbols to the Hash Table, Next: Performing the Final Link, Prev: Creating a Linker Hash Table, Up: Linker Functions
  8486. 2.17.2 Adding symbols to the hash table
  8487. ---------------------------------------
  8488. The linker proper will call the '_bfd_link_add_symbols' entry point for
  8489. each object file or archive which is to be linked (typically these are
  8490. the files named on the command line, but some may also come from the
  8491. linker script). The entry point is responsible for examining the file.
  8492. For an object file, BFD must add any relevant symbol information to the
  8493. hash table. For an archive, BFD must determine which elements of the
  8494. archive should be used and adding them to the link.
  8495. The a.out version of this entry point is
  8496. 'NAME(aout,link_add_symbols)'.
  8497. * Menu:
  8498. * Differing file formats::
  8499. * Adding symbols from an object file::
  8500. * Adding symbols from an archive::
  8501. 
  8502. 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
  8503. 2.17.2.1 Differing file formats
  8504. ...............................
  8505. Normally all the files involved in a link will be of the same format,
  8506. but it is also possible to link together different format object files,
  8507. and the back end must support that. The '_bfd_link_add_symbols' entry
  8508. point is called via the target vector of the file to be added. This has
  8509. an important consequence: the function may not assume that the hash
  8510. table is the type created by the corresponding
  8511. '_bfd_link_hash_table_create' vector. All the '_bfd_link_add_symbols'
  8512. function can assume about the hash table is that it is derived from
  8513. 'struct bfd_link_hash_table'.
  8514. Sometimes the '_bfd_link_add_symbols' function must store some
  8515. information in the hash table entry to be used by the '_bfd_final_link'
  8516. function. In such a case the output bfd xvec must be checked to make
  8517. sure that the hash table was created by an object file of the same
  8518. format.
  8519. The '_bfd_final_link' routine must be prepared to handle a hash entry
  8520. without any extra information added by the '_bfd_link_add_symbols'
  8521. function. A hash entry without extra information will also occur when
  8522. the linker script directs the linker to create a symbol. Note that,
  8523. regardless of how a hash table entry is added, all the fields will be
  8524. initialized to some sort of null value by the hash table entry
  8525. initialization function.
  8526. See 'ecoff_link_add_externals' for an example of how to check the
  8527. output bfd before saving information (in this case, the ECOFF external
  8528. symbol debugging information) in a hash table entry.
  8529. 
  8530. 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
  8531. 2.17.2.2 Adding symbols from an object file
  8532. ...........................................
  8533. When the '_bfd_link_add_symbols' routine is passed an object file, it
  8534. must add all externally visible symbols in that object file to the hash
  8535. table. The actual work of adding the symbol to the hash table is
  8536. normally handled by the function '_bfd_generic_link_add_one_symbol'.
  8537. The '_bfd_link_add_symbols' routine is responsible for reading all the
  8538. symbols from the object file and passing the correct information to
  8539. '_bfd_generic_link_add_one_symbol'.
  8540. The '_bfd_link_add_symbols' routine should not use
  8541. 'bfd_canonicalize_symtab' to read the symbols. The point of providing
  8542. this routine is to avoid the overhead of converting the symbols into
  8543. generic 'asymbol' structures.
  8544. '_bfd_generic_link_add_one_symbol' handles the details of combining
  8545. common symbols, warning about multiple definitions, and so forth. It
  8546. takes arguments which describe the symbol to add, notably symbol flags,
  8547. a section, and an offset. The symbol flags include such things as
  8548. 'BSF_WEAK' or 'BSF_INDIRECT'. The section is a section in the object
  8549. file, or something like 'bfd_und_section_ptr' for an undefined symbol or
  8550. 'bfd_com_section_ptr' for a common symbol.
  8551. If the '_bfd_final_link' routine is also going to need to read the
  8552. symbol information, the '_bfd_link_add_symbols' routine should save it
  8553. somewhere attached to the object file BFD. However, the information
  8554. should only be saved if the 'keep_memory' field of the 'info' argument
  8555. is TRUE, so that the '-no-keep-memory' linker switch is effective.
  8556. The a.out function which adds symbols from an object file is
  8557. 'aout_link_add_object_symbols', and most of the interesting work is in
  8558. 'aout_link_add_symbols'. The latter saves pointers to the hash tables
  8559. entries created by '_bfd_generic_link_add_one_symbol' indexed by symbol
  8560. number, so that the '_bfd_final_link' routine does not have to call the
  8561. hash table lookup routine to locate the entry.
  8562. 
  8563. File: bfd.info, Node: Adding symbols from an archive, Prev: Adding symbols from an object file, Up: Adding Symbols to the Hash Table
  8564. 2.17.2.3 Adding symbols from an archive
  8565. .......................................
  8566. When the '_bfd_link_add_symbols' routine is passed an archive, it must
  8567. look through the symbols defined by the archive and decide which
  8568. elements of the archive should be included in the link. For each such
  8569. element it must call the 'add_archive_element' linker callback, and it
  8570. must add the symbols from the object file to the linker hash table.
  8571. (The callback may in fact indicate that a replacement BFD should be
  8572. used, in which case the symbols from that BFD should be added to the
  8573. linker hash table instead.)
  8574. In most cases the work of looking through the symbols in the archive
  8575. should be done by the '_bfd_generic_link_add_archive_symbols' function.
  8576. '_bfd_generic_link_add_archive_symbols' is passed a function to call to
  8577. make the final decision about adding an archive element to the link and
  8578. to do the actual work of adding the symbols to the linker hash table.
  8579. If the element is to be included, the 'add_archive_element' linker
  8580. callback routine must be called with the element as an argument, and the
  8581. element's symbols must be added to the linker hash table just as though
  8582. the element had itself been passed to the '_bfd_link_add_symbols'
  8583. function.
  8584. When the a.out '_bfd_link_add_symbols' function receives an archive,
  8585. it calls '_bfd_generic_link_add_archive_symbols' passing
  8586. 'aout_link_check_archive_element' as the function argument.
  8587. 'aout_link_check_archive_element' calls 'aout_link_check_ar_symbols'.
  8588. If the latter decides to add the element (an element is only added if it
  8589. provides a real, non-common, definition for a previously undefined or
  8590. common symbol) it calls the 'add_archive_element' callback and then
  8591. 'aout_link_check_archive_element' calls 'aout_link_add_symbols' to
  8592. actually add the symbols to the linker hash table - possibly those of a
  8593. substitute BFD, if the 'add_archive_element' callback avails itself of
  8594. that option.
  8595. The ECOFF back end is unusual in that it does not normally call
  8596. '_bfd_generic_link_add_archive_symbols', because ECOFF archives already
  8597. contain a hash table of symbols. The ECOFF back end searches the
  8598. archive itself to avoid the overhead of creating a new hash table.
  8599. 
  8600. File: bfd.info, Node: Performing the Final Link, Prev: Adding Symbols to the Hash Table, Up: Linker Functions
  8601. 2.17.3 Performing the final link
  8602. --------------------------------
  8603. When all the input files have been processed, the linker calls the
  8604. '_bfd_final_link' entry point of the output BFD. This routine is
  8605. responsible for producing the final output file, which has several
  8606. aspects. It must relocate the contents of the input sections and copy
  8607. the data into the output sections. It must build an output symbol table
  8608. including any local symbols from the input files and the global symbols
  8609. from the hash table. When producing relocatable output, it must modify
  8610. the input relocs and write them into the output file. There may also be
  8611. object format dependent work to be done.
  8612. The linker will also call the 'write_object_contents' entry point
  8613. when the BFD is closed. The two entry points must work together in
  8614. order to produce the correct output file.
  8615. The details of how this works are inevitably dependent upon the
  8616. specific object file format. The a.out '_bfd_final_link' routine is
  8617. 'NAME(aout,final_link)'.
  8618. * Menu:
  8619. * Information provided by the linker::
  8620. * Relocating the section contents::
  8621. * Writing the symbol table::
  8622. 
  8623. File: bfd.info, Node: Information provided by the linker, Next: Relocating the section contents, Prev: Performing the Final Link, Up: Performing the Final Link
  8624. 2.17.3.1 Information provided by the linker
  8625. ...........................................
  8626. Before the linker calls the '_bfd_final_link' entry point, it sets up
  8627. some data structures for the function to use.
  8628. The 'input_bfds' field of the 'bfd_link_info' structure will point to
  8629. a list of all the input files included in the link. These files are
  8630. linked through the 'link.next' field of the 'bfd' structure.
  8631. Each section in the output file will have a list of 'link_order'
  8632. structures attached to the 'map_head.link_order' field (the 'link_order'
  8633. structure is defined in 'bfdlink.h'). These structures describe how to
  8634. create the contents of the output section in terms of the contents of
  8635. various input sections, fill constants, and, eventually, other types of
  8636. information. They also describe relocs that must be created by the BFD
  8637. backend, but do not correspond to any input file; this is used to
  8638. support -Ur, which builds constructors while generating a relocatable
  8639. object file.
  8640. 
  8641. File: bfd.info, Node: Relocating the section contents, Next: Writing the symbol table, Prev: Information provided by the linker, Up: Performing the Final Link
  8642. 2.17.3.2 Relocating the section contents
  8643. ........................................
  8644. The '_bfd_final_link' function should look through the 'link_order'
  8645. structures attached to each section of the output file. Each
  8646. 'link_order' structure should either be handled specially, or it should
  8647. be passed to the function '_bfd_default_link_order' which will do the
  8648. right thing ('_bfd_default_link_order' is defined in 'linker.c').
  8649. For efficiency, a 'link_order' of type 'bfd_indirect_link_order'
  8650. whose associated section belongs to a BFD of the same format as the
  8651. output BFD must be handled specially. This type of 'link_order'
  8652. describes part of an output section in terms of a section belonging to
  8653. one of the input files. The '_bfd_final_link' function should read the
  8654. contents of the section and any associated relocs, apply the relocs to
  8655. the section contents, and write out the modified section contents. If
  8656. performing a relocatable link, the relocs themselves must also be
  8657. modified and written out.
  8658. The functions '_bfd_relocate_contents' and '_bfd_final_link_relocate'
  8659. provide some general support for performing the actual relocations,
  8660. notably overflow checking. Their arguments include information about
  8661. the symbol the relocation is against and a 'reloc_howto_type' argument
  8662. which describes the relocation to perform. These functions are defined
  8663. in 'reloc.c'.
  8664. The a.out function which handles reading, relocating, and writing
  8665. section contents is 'aout_link_input_section'. The actual relocation is
  8666. done in 'aout_link_input_section_std' and 'aout_link_input_section_ext'.
  8667. 
  8668. File: bfd.info, Node: Writing the symbol table, Prev: Relocating the section contents, Up: Performing the Final Link
  8669. 2.17.3.3 Writing the symbol table
  8670. .................................
  8671. The '_bfd_final_link' function must gather all the symbols in the input
  8672. files and write them out. It must also write out all the symbols in the
  8673. global hash table. This must be controlled by the 'strip' and 'discard'
  8674. fields of the 'bfd_link_info' structure.
  8675. The local symbols of the input files will not have been entered into
  8676. the linker hash table. The '_bfd_final_link' routine must consider each
  8677. input file and include the symbols in the output file. It may be
  8678. convenient to do this when looking through the 'link_order' structures,
  8679. or it may be done by stepping through the 'input_bfds' list.
  8680. The '_bfd_final_link' routine must also traverse the global hash
  8681. table to gather all the externally visible symbols. It is possible that
  8682. most of the externally visible symbols may be written out when
  8683. considering the symbols of each input file, but it is still necessary to
  8684. traverse the hash table since the linker script may have defined some
  8685. symbols that are not in any of the input files.
  8686. The 'strip' field of the 'bfd_link_info' structure controls which
  8687. symbols are written out. The possible values are listed in 'bfdlink.h'.
  8688. If the value is 'strip_some', then the 'keep_hash' field of the
  8689. 'bfd_link_info' structure is a hash table of symbols to keep; each
  8690. symbol should be looked up in this hash table, and only symbols which
  8691. are present should be included in the output file.
  8692. If the 'strip' field of the 'bfd_link_info' structure permits local
  8693. symbols to be written out, the 'discard' field is used to further
  8694. controls which local symbols are included in the output file. If the
  8695. value is 'discard_l', then all local symbols which begin with a certain
  8696. prefix are discarded; this is controlled by the
  8697. 'bfd_is_local_label_name' entry point.
  8698. The a.out backend handles symbols by calling
  8699. 'aout_link_write_symbols' on each input BFD and then traversing the
  8700. global hash table with the function 'aout_link_write_other_symbol'. It
  8701. builds a string table while writing out the symbols, which is written to
  8702. the output file at the end of 'NAME(aout,final_link)'.
  8703. 2.17.3.4 'bfd_link_split_section'
  8704. .................................
  8705. *Synopsis*
  8706. bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec);
  8707. *Description*
  8708. Return nonzero if SEC should be split during a reloceatable or final
  8709. link.
  8710. #define bfd_link_split_section(abfd, sec) \
  8711. BFD_SEND (abfd, _bfd_link_split_section, (abfd, sec))
  8712. 2.17.3.5 'bfd_section_already_linked'
  8713. .....................................
  8714. *Synopsis*
  8715. bfd_boolean bfd_section_already_linked (bfd *abfd,
  8716. asection *sec,
  8717. struct bfd_link_info *info);
  8718. *Description*
  8719. Check if DATA has been already linked during a reloceatable or final
  8720. link. Return TRUE if it has.
  8721. #define bfd_section_already_linked(abfd, sec, info) \
  8722. BFD_SEND (abfd, _section_already_linked, (abfd, sec, info))
  8723. 2.17.3.6 'bfd_generic_define_common_symbol'
  8724. ...........................................
  8725. *Synopsis*
  8726. bfd_boolean bfd_generic_define_common_symbol
  8727. (bfd *output_bfd, struct bfd_link_info *info,
  8728. struct bfd_link_hash_entry *h);
  8729. *Description*
  8730. Convert common symbol H into a defined symbol. Return TRUE on success
  8731. and FALSE on failure.
  8732. #define bfd_define_common_symbol(output_bfd, info, h) \
  8733. BFD_SEND (output_bfd, _bfd_define_common_symbol, (output_bfd, info, h))
  8734. 2.17.3.7 '_bfd_generic_link_hide_symbol'
  8735. ........................................
  8736. *Synopsis*
  8737. void _bfd_generic_link_hide_symbol
  8738. (bfd *output_bfd, struct bfd_link_info *info,
  8739. struct bfd_link_hash_entry *h);
  8740. *Description*
  8741. Hide symbol H. This is an internal function. It should not be called
  8742. from outside the BFD library.
  8743. #define bfd_link_hide_symbol(output_bfd, info, h) \
  8744. BFD_SEND (output_bfd, _bfd_link_hide_symbol, (output_bfd, info, h))
  8745. 2.17.3.8 'bfd_generic_define_start_stop'
  8746. ........................................
  8747. *Synopsis*
  8748. struct bfd_link_hash_entry *bfd_generic_define_start_stop
  8749. (struct bfd_link_info *info,
  8750. const char *symbol, asection *sec);
  8751. *Description*
  8752. Define a __start, __stop, .startof. or .sizeof. symbol. Return the
  8753. symbol or NULL if no such undefined symbol exists.
  8754. #define bfd_define_start_stop(output_bfd, info, symbol, sec) \
  8755. BFD_SEND (output_bfd, _bfd_define_start_stop, (info, symbol, sec))
  8756. 2.17.3.9 'bfd_find_version_for_sym'
  8757. ...................................
  8758. *Synopsis*
  8759. struct bfd_elf_version_tree * bfd_find_version_for_sym
  8760. (struct bfd_elf_version_tree *verdefs,
  8761. const char *sym_name, bfd_boolean *hide);
  8762. *Description*
  8763. Search an elf version script tree for symbol versioning info and export
  8764. / don't-export status for a given symbol. Return non-NULL on success
  8765. and NULL on failure; also sets the output 'hide' boolean parameter.
  8766. 2.17.3.10 'bfd_hide_sym_by_version'
  8767. ...................................
  8768. *Synopsis*
  8769. bfd_boolean bfd_hide_sym_by_version
  8770. (struct bfd_elf_version_tree *verdefs, const char *sym_name);
  8771. *Description*
  8772. Search an elf version script tree for symbol versioning info for a given
  8773. symbol. Return TRUE if the symbol is hidden.
  8774. 2.17.3.11 'bfd_link_check_relocs'
  8775. .................................
  8776. *Synopsis*
  8777. bfd_boolean bfd_link_check_relocs
  8778. (bfd *abfd, struct bfd_link_info *info);
  8779. *Description*
  8780. Checks the relocs in ABFD for validity. Does not execute the relocs.
  8781. Return TRUE if everything is OK, FALSE otherwise. This is the external
  8782. entry point to this code.
  8783. 2.17.3.12 '_bfd_generic_link_check_relocs'
  8784. ..........................................
  8785. *Synopsis*
  8786. bfd_boolean _bfd_generic_link_check_relocs
  8787. (bfd *abfd, struct bfd_link_info *info);
  8788. *Description*
  8789. Stub function for targets that do not implement reloc checking. Return
  8790. TRUE. This is an internal function. It should not be called from
  8791. outside the BFD library.
  8792. 2.17.3.13 'bfd_merge_private_bfd_data'
  8793. ......................................
  8794. *Synopsis*
  8795. bfd_boolean bfd_merge_private_bfd_data
  8796. (bfd *ibfd, struct bfd_link_info *info);
  8797. *Description*
  8798. Merge private BFD information from the BFD IBFD to the the output file
  8799. BFD when linking. Return 'TRUE' on success, 'FALSE' on error. Possible
  8800. error returns are:
  8801. * 'bfd_error_no_memory' - Not enough memory exists to create private
  8802. data for OBFD.
  8803. #define bfd_merge_private_bfd_data(ibfd, info) \
  8804. BFD_SEND ((info)->output_bfd, _bfd_merge_private_bfd_data, \
  8805. (ibfd, info))
  8806. 2.17.3.14 '_bfd_generic_verify_endian_match'
  8807. ............................................
  8808. *Synopsis*
  8809. bfd_boolean _bfd_generic_verify_endian_match
  8810. (bfd *ibfd, struct bfd_link_info *info);
  8811. *Description*
  8812. Can be used from / for bfd_merge_private_bfd_data to check that
  8813. endianness matches between input and output file. Returns TRUE for a
  8814. match, otherwise returns FALSE and emits an error.
  8815. 
  8816. File: bfd.info, Node: Hash Tables, Prev: Linker Functions, Up: BFD front end
  8817. 2.18 Hash Tables
  8818. ================
  8819. BFD provides a simple set of hash table functions. Routines are
  8820. provided to initialize a hash table, to free a hash table, to look up a
  8821. string in a hash table and optionally create an entry for it, and to
  8822. traverse a hash table. There is currently no routine to delete an
  8823. string from a hash table.
  8824. The basic hash table does not permit any data to be stored with a
  8825. string. However, a hash table is designed to present a base class from
  8826. which other types of hash tables may be derived. These derived types
  8827. may store additional information with the string. Hash tables were
  8828. implemented in this way, rather than simply providing a data pointer in
  8829. a hash table entry, because they were designed for use by the linker
  8830. back ends. The linker may create thousands of hash table entries, and
  8831. the overhead of allocating private data and storing and following
  8832. pointers becomes noticeable.
  8833. The basic hash table code is in 'hash.c'.
  8834. * Menu:
  8835. * Creating and Freeing a Hash Table::
  8836. * Looking Up or Entering a String::
  8837. * Traversing a Hash Table::
  8838. * Deriving a New Hash Table Type::
  8839. 
  8840. File: bfd.info, Node: Creating and Freeing a Hash Table, Next: Looking Up or Entering a String, Prev: Hash Tables, Up: Hash Tables
  8841. 2.18.1 Creating and freeing a hash table
  8842. ----------------------------------------
  8843. To create a hash table, create an instance of a 'struct bfd_hash_table'
  8844. (defined in 'bfd.h') and call 'bfd_hash_table_init' (if you know
  8845. approximately how many entries you will need, the function
  8846. 'bfd_hash_table_init_n', which takes a SIZE argument, may be used).
  8847. 'bfd_hash_table_init' returns 'FALSE' if some sort of error occurs.
  8848. The function 'bfd_hash_table_init' take as an argument a function to
  8849. use to create new entries. For a basic hash table, use the function
  8850. 'bfd_hash_newfunc'. *Note Deriving a New Hash Table Type::, for why you
  8851. would want to use a different value for this argument.
  8852. 'bfd_hash_table_init' will create an objalloc which will be used to
  8853. allocate new entries. You may allocate memory on this objalloc using
  8854. 'bfd_hash_allocate'.
  8855. Use 'bfd_hash_table_free' to free up all the memory that has been
  8856. allocated for a hash table. This will not free up the 'struct
  8857. bfd_hash_table' itself, which you must provide.
  8858. Use 'bfd_hash_set_default_size' to set the default size of hash table
  8859. to use.
  8860. 
  8861. 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
  8862. 2.18.2 Looking up or entering a string
  8863. --------------------------------------
  8864. The function 'bfd_hash_lookup' is used both to look up a string in the
  8865. hash table and to create a new entry.
  8866. If the CREATE argument is 'FALSE', 'bfd_hash_lookup' will look up a
  8867. string. If the string is found, it will returns a pointer to a 'struct
  8868. bfd_hash_entry'. If the string is not found in the table
  8869. 'bfd_hash_lookup' will return 'NULL'. You should not modify any of the
  8870. fields in the returns 'struct bfd_hash_entry'.
  8871. If the CREATE argument is 'TRUE', the string will be entered into the
  8872. hash table if it is not already there. Either way a pointer to a
  8873. 'struct bfd_hash_entry' will be returned, either to the existing
  8874. structure or to a newly created one. In this case, a 'NULL' return
  8875. means that an error occurred.
  8876. If the CREATE argument is 'TRUE', and a new entry is created, the
  8877. COPY argument is used to decide whether to copy the string onto the hash
  8878. table objalloc or not. If COPY is passed as 'FALSE', you must be
  8879. careful not to deallocate or modify the string as long as the hash table
  8880. exists.
  8881. 
  8882. 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
  8883. 2.18.3 Traversing a hash table
  8884. ------------------------------
  8885. The function 'bfd_hash_traverse' may be used to traverse a hash table,
  8886. calling a function on each element. The traversal is done in a random
  8887. order.
  8888. 'bfd_hash_traverse' takes as arguments a function and a generic 'void
  8889. *' pointer. The function is called with a hash table entry (a 'struct
  8890. bfd_hash_entry *') and the generic pointer passed to
  8891. 'bfd_hash_traverse'. The function must return a 'boolean' value, which
  8892. indicates whether to continue traversing the hash table. If the
  8893. function returns 'FALSE', 'bfd_hash_traverse' will stop the traversal
  8894. and return immediately.
  8895. 
  8896. File: bfd.info, Node: Deriving a New Hash Table Type, Prev: Traversing a Hash Table, Up: Hash Tables
  8897. 2.18.4 Deriving a new hash table type
  8898. -------------------------------------
  8899. Many uses of hash tables want to store additional information which each
  8900. entry in the hash table. Some also find it convenient to store
  8901. additional information with the hash table itself. This may be done
  8902. using a derived hash table.
  8903. Since C is not an object oriented language, creating a derived hash
  8904. table requires sticking together some boilerplate routines with a few
  8905. differences specific to the type of hash table you want to create.
  8906. An example of a derived hash table is the linker hash table. The
  8907. structures for this are defined in 'bfdlink.h'. The functions are in
  8908. 'linker.c'.
  8909. You may also derive a hash table from an already derived hash table.
  8910. For example, the a.out linker backend code uses a hash table derived
  8911. from the linker hash table.
  8912. * Menu:
  8913. * Define the Derived Structures::
  8914. * Write the Derived Creation Routine::
  8915. * Write Other Derived Routines::
  8916. 
  8917. 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
  8918. 2.18.4.1 Define the derived structures
  8919. ......................................
  8920. You must define a structure for an entry in the hash table, and a
  8921. structure for the hash table itself.
  8922. The first field in the structure for an entry in the hash table must
  8923. be of the type used for an entry in the hash table you are deriving
  8924. from. If you are deriving from a basic hash table this is 'struct
  8925. bfd_hash_entry', which is defined in 'bfd.h'. The first field in the
  8926. structure for the hash table itself must be of the type of the hash
  8927. table you are deriving from itself. If you are deriving from a basic
  8928. hash table, this is 'struct bfd_hash_table'.
  8929. For example, the linker hash table defines 'struct
  8930. bfd_link_hash_entry' (in 'bfdlink.h'). The first field, 'root', is of
  8931. type 'struct bfd_hash_entry'. Similarly, the first field in 'struct
  8932. bfd_link_hash_table', 'table', is of type 'struct bfd_hash_table'.
  8933. 
  8934. 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
  8935. 2.18.4.2 Write the derived creation routine
  8936. ...........................................
  8937. You must write a routine which will create and initialize an entry in
  8938. the hash table. This routine is passed as the function argument to
  8939. 'bfd_hash_table_init'.
  8940. In order to permit other hash tables to be derived from the hash
  8941. table you are creating, this routine must be written in a standard way.
  8942. The first argument to the creation routine is a pointer to a hash
  8943. table entry. This may be 'NULL', in which case the routine should
  8944. allocate the right amount of space. Otherwise the space has already
  8945. been allocated by a hash table type derived from this one.
  8946. After allocating space, the creation routine must call the creation
  8947. routine of the hash table type it is derived from, passing in a pointer
  8948. to the space it just allocated. This will initialize any fields used by
  8949. the base hash table.
  8950. Finally the creation routine must initialize any local fields for the
  8951. new hash table type.
  8952. Here is a boilerplate example of a creation routine. FUNCTION_NAME
  8953. is the name of the routine. ENTRY_TYPE is the type of an entry in the
  8954. hash table you are creating. BASE_NEWFUNC is the name of the creation
  8955. routine of the hash table type your hash table is derived from.
  8956. struct bfd_hash_entry *
  8957. FUNCTION_NAME (struct bfd_hash_entry *entry,
  8958. struct bfd_hash_table *table,
  8959. const char *string)
  8960. {
  8961. struct ENTRY_TYPE *ret = (ENTRY_TYPE *) entry;
  8962. /* Allocate the structure if it has not already been allocated by a
  8963. derived class. */
  8964. if (ret == NULL)
  8965. {
  8966. ret = bfd_hash_allocate (table, sizeof (* ret));
  8967. if (ret == NULL)
  8968. return NULL;
  8969. }
  8970. /* Call the allocation method of the base class. */
  8971. ret = ((ENTRY_TYPE *)
  8972. BASE_NEWFUNC ((struct bfd_hash_entry *) ret, table, string));
  8973. /* Initialize the local fields here. */
  8974. return (struct bfd_hash_entry *) ret;
  8975. }
  8976. *Description*
  8977. The creation routine for the linker hash table, which is in 'linker.c',
  8978. looks just like this example. FUNCTION_NAME is
  8979. '_bfd_link_hash_newfunc'. ENTRY_TYPE is 'struct bfd_link_hash_entry'.
  8980. BASE_NEWFUNC is 'bfd_hash_newfunc', the creation routine for a basic
  8981. hash table.
  8982. '_bfd_link_hash_newfunc' also initializes the local fields in a
  8983. linker hash table entry: 'type', 'written' and 'next'.
  8984. 
  8985. File: bfd.info, Node: Write Other Derived Routines, Prev: Write the Derived Creation Routine, Up: Deriving a New Hash Table Type
  8986. 2.18.4.3 Write other derived routines
  8987. .....................................
  8988. You will want to write other routines for your new hash table, as well.
  8989. You will want an initialization routine which calls the
  8990. initialization routine of the hash table you are deriving from and
  8991. initializes any other local fields. For the linker hash table, this is
  8992. '_bfd_link_hash_table_init' in 'linker.c'.
  8993. You will want a lookup routine which calls the lookup routine of the
  8994. hash table you are deriving from and casts the result. The linker hash
  8995. table uses 'bfd_link_hash_lookup' in 'linker.c' (this actually takes an
  8996. additional argument which it uses to decide how to return the looked up
  8997. value).
  8998. You may want a traversal routine. This should just call the
  8999. traversal routine of the hash table you are deriving from with
  9000. appropriate casts. The linker hash table uses 'bfd_link_hash_traverse'
  9001. in 'linker.c'.
  9002. These routines may simply be defined as macros. For example, the
  9003. a.out backend linker hash table, which is derived from the linker hash
  9004. table, uses macros for the lookup and traversal routines. These are
  9005. 'aout_link_hash_lookup' and 'aout_link_hash_traverse' in aoutx.h.
  9006. 
  9007. File: bfd.info, Node: BFD back ends, Next: GNU Free Documentation License, Prev: BFD front end, Up: Top
  9008. 3 BFD back ends
  9009. ***************
  9010. * Menu:
  9011. * What to Put Where::
  9012. * aout :: a.out backends
  9013. * coff :: coff backends
  9014. * elf :: elf backends
  9015. * mmo :: mmo backend
  9016. 
  9017. File: bfd.info, Node: What to Put Where, Next: aout, Prev: BFD back ends, Up: BFD back ends
  9018. 3.1 What to Put Where
  9019. =====================
  9020. All of BFD lives in one directory.
  9021. 
  9022. File: bfd.info, Node: aout, Next: coff, Prev: What to Put Where, Up: BFD back ends
  9023. 3.2 a.out backends
  9024. ==================
  9025. *Description*
  9026. BFD supports a number of different flavours of a.out format, though the
  9027. major differences are only the sizes of the structures on disk, and the
  9028. shape of the relocation information.
  9029. The support is split into a basic support file 'aoutx.h' and other
  9030. files which derive functions from the base. One derivation file is
  9031. 'aoutf1.h' (for a.out flavour 1), and adds to the basic a.out functions
  9032. support for sun3, sun4, and 386 a.out files, to create a target jump
  9033. vector for a specific target.
  9034. This information is further split out into more specific files for
  9035. each machine, including 'sunos.c' for sun3 and sun4, and 'demo64.c' for
  9036. a demonstration of a 64 bit a.out format.
  9037. The base file 'aoutx.h' defines general mechanisms for reading and
  9038. writing records to and from disk and various other methods which BFD
  9039. requires. It is included by 'aout32.c' and 'aout64.c' to form the names
  9040. 'aout_32_swap_exec_header_in', 'aout_64_swap_exec_header_in', etc.
  9041. As an example, this is what goes on to make the back end for a sun4,
  9042. from 'aout32.c':
  9043. #define ARCH_SIZE 32
  9044. #include "aoutx.h"
  9045. Which exports names:
  9046. ...
  9047. aout_32_canonicalize_reloc
  9048. aout_32_find_nearest_line
  9049. aout_32_get_lineno
  9050. aout_32_get_reloc_upper_bound
  9051. ...
  9052. from 'sunos.c':
  9053. #define TARGET_NAME "a.out-sunos-big"
  9054. #define VECNAME sparc_aout_sunos_be_vec
  9055. #include "aoutf1.h"
  9056. requires all the names from 'aout32.c', and produces the jump vector
  9057. sparc_aout_sunos_be_vec
  9058. The file 'host-aout.c' is a special case. It is for a large set of
  9059. hosts that use "more or less standard" a.out files, and for which
  9060. cross-debugging is not interesting. It uses the standard 32-bit a.out
  9061. support routines, but determines the file offsets and addresses of the
  9062. text, data, and BSS sections, the machine architecture and machine type,
  9063. and the entry point address, in a host-dependent manner. Once these
  9064. values have been determined, generic code is used to handle the object
  9065. file.
  9066. When porting it to run on a new system, you must supply:
  9067. HOST_PAGE_SIZE
  9068. HOST_SEGMENT_SIZE
  9069. HOST_MACHINE_ARCH (optional)
  9070. HOST_MACHINE_MACHINE (optional)
  9071. HOST_TEXT_START_ADDR
  9072. HOST_STACK_END_ADDR
  9073. in the file '../include/sys/h-XXX.h' (for your host). These values,
  9074. plus the structures and macros defined in 'a.out.h' on your host system,
  9075. will produce a BFD target that will access ordinary a.out files on your
  9076. host. To configure a new machine to use 'host-aout.c', specify:
  9077. TDEFAULTS = -DDEFAULT_VECTOR=host_aout_big_vec
  9078. TDEPFILES= host-aout.o trad-core.o
  9079. in the 'config/XXX.mt' file, and modify 'configure.ac' to use the
  9080. 'XXX.mt' file (by setting "'bfd_target=XXX'") when your configuration is
  9081. selected.
  9082. 3.2.1 Relocations
  9083. -----------------
  9084. *Description*
  9085. The file 'aoutx.h' provides for both the _standard_ and _extended_ forms
  9086. of a.out relocation records.
  9087. The standard records contain only an address, a symbol index, and a
  9088. type field. The extended records also have a full integer for an
  9089. addend.
  9090. 3.2.2 Internal entry points
  9091. ---------------------------
  9092. *Description*
  9093. 'aoutx.h' exports several routines for accessing the contents of an
  9094. a.out file, which are gathered and exported in turn by various format
  9095. specific files (eg sunos.c).
  9096. 3.2.2.1 'aout_SIZE_swap_exec_header_in'
  9097. .......................................
  9098. *Synopsis*
  9099. void aout_SIZE_swap_exec_header_in,
  9100. (bfd *abfd,
  9101. struct external_exec *bytes,
  9102. struct internal_exec *execp);
  9103. *Description*
  9104. Swap the information in an executable header RAW_BYTES taken from a raw
  9105. byte stream memory image into the internal exec header structure EXECP.
  9106. 3.2.2.2 'aout_SIZE_swap_exec_header_out'
  9107. ........................................
  9108. *Synopsis*
  9109. void aout_SIZE_swap_exec_header_out
  9110. (bfd *abfd,
  9111. struct internal_exec *execp,
  9112. struct external_exec *raw_bytes);
  9113. *Description*
  9114. Swap the information in an internal exec header structure EXECP into the
  9115. buffer RAW_BYTES ready for writing to disk.
  9116. 3.2.2.3 'aout_SIZE_some_aout_object_p'
  9117. ......................................
  9118. *Synopsis*
  9119. const bfd_target *aout_SIZE_some_aout_object_p
  9120. (bfd *abfd,
  9121. struct internal_exec *execp,
  9122. const bfd_target *(*callback_to_real_object_p) (bfd *));
  9123. *Description*
  9124. Some a.out variant thinks that the file open in ABFD checking is an
  9125. a.out file. Do some more checking, and set up for access if it really
  9126. is. Call back to the calling environment's "finish up" function just
  9127. before returning, to handle any last-minute setup.
  9128. 3.2.2.4 'aout_SIZE_mkobject'
  9129. ............................
  9130. *Synopsis*
  9131. bfd_boolean aout_SIZE_mkobject, (bfd *abfd);
  9132. *Description*
  9133. Initialize BFD ABFD for use with a.out files.
  9134. 3.2.2.5 'aout_SIZE_machine_type'
  9135. ................................
  9136. *Synopsis*
  9137. enum machine_type aout_SIZE_machine_type
  9138. (enum bfd_architecture arch,
  9139. unsigned long machine,
  9140. bfd_boolean *unknown);
  9141. *Description*
  9142. Keep track of machine architecture and machine type for a.out's. Return
  9143. the 'machine_type' for a particular architecture and machine, or
  9144. 'M_UNKNOWN' if that exact architecture and machine can't be represented
  9145. in a.out format.
  9146. If the architecture is understood, machine type 0 (default) is always
  9147. understood.
  9148. 3.2.2.6 'aout_SIZE_set_arch_mach'
  9149. .................................
  9150. *Synopsis*
  9151. bfd_boolean aout_SIZE_set_arch_mach,
  9152. (bfd *,
  9153. enum bfd_architecture arch,
  9154. unsigned long machine);
  9155. *Description*
  9156. Set the architecture and the machine of the BFD ABFD to the values ARCH
  9157. and MACHINE. Verify that ABFD's format can support the architecture
  9158. required.
  9159. 3.2.2.7 'aout_SIZE_new_section_hook'
  9160. ....................................
  9161. *Synopsis*
  9162. bfd_boolean aout_SIZE_new_section_hook,
  9163. (bfd *abfd,
  9164. asection *newsect);
  9165. *Description*
  9166. Called by the BFD in response to a 'bfd_make_section' request.
  9167. 
  9168. File: bfd.info, Node: coff, Next: elf, Prev: aout, Up: BFD back ends
  9169. 3.3 coff backends
  9170. =================
  9171. BFD supports a number of different flavours of coff format. The major
  9172. differences between formats are the sizes and alignments of fields in
  9173. structures on disk, and the occasional extra field.
  9174. Coff in all its varieties is implemented with a few common files and
  9175. a number of implementation specific files. For example, the i386 coff
  9176. format is implemented in the file 'coff-i386.c'. This file '#include's
  9177. 'coff/i386.h' which defines the external structure of the coff format
  9178. for the i386, and 'coff/internal.h' which defines the internal
  9179. structure. 'coff-i386.c' also defines the relocations used by the i386
  9180. coff format *Note Relocations::.
  9181. 3.3.1 Porting to a new version of coff
  9182. --------------------------------------
  9183. The recommended method is to select from the existing implementations
  9184. the version of coff which is most like the one you want to use. For
  9185. example, we'll say that i386 coff is the one you select, and that your
  9186. coff flavour is called foo. Copy 'i386coff.c' to 'foocoff.c', copy
  9187. '../include/coff/i386.h' to '../include/coff/foo.h', and add the lines
  9188. to 'targets.c' and 'Makefile.in' so that your new back end is used.
  9189. Alter the shapes of the structures in '../include/coff/foo.h' so that
  9190. they match what you need. You will probably also have to add '#ifdef's
  9191. to the code in 'coff/internal.h' and 'coffcode.h' if your version of
  9192. coff is too wild.
  9193. You can verify that your new BFD backend works quite simply by
  9194. building 'objdump' from the 'binutils' directory, and making sure that
  9195. its version of what's going on and your host system's idea (assuming it
  9196. has the pretty standard coff dump utility, usually called 'att-dump' or
  9197. just 'dump') are the same. Then clean up your code, and send what
  9198. you've done to Cygnus. Then your stuff will be in the next release, and
  9199. you won't have to keep integrating it.
  9200. 3.3.2 How the coff backend works
  9201. --------------------------------
  9202. 3.3.2.1 File layout
  9203. ...................
  9204. The Coff backend is split into generic routines that are applicable to
  9205. any Coff target and routines that are specific to a particular target.
  9206. The target-specific routines are further split into ones which are
  9207. basically the same for all Coff targets except that they use the
  9208. external symbol format or use different values for certain constants.
  9209. The generic routines are in 'coffgen.c'. These routines work for any
  9210. Coff target. They use some hooks into the target specific code; the
  9211. hooks are in a 'bfd_coff_backend_data' structure, one of which exists
  9212. for each target.
  9213. The essentially similar target-specific routines are in 'coffcode.h'.
  9214. This header file includes executable C code. The various Coff targets
  9215. first include the appropriate Coff header file, make any special defines
  9216. that are needed, and then include 'coffcode.h'.
  9217. Some of the Coff targets then also have additional routines in the
  9218. target source file itself.
  9219. 3.3.2.2 Coff long section names
  9220. ...............................
  9221. In the standard Coff object format, section names are limited to the
  9222. eight bytes available in the 's_name' field of the 'SCNHDR' section
  9223. header structure. The format requires the field to be NUL-padded, but
  9224. not necessarily NUL-terminated, so the longest section names permitted
  9225. are a full eight characters.
  9226. The Microsoft PE variants of the Coff object file format add an
  9227. extension to support the use of long section names. This extension is
  9228. defined in section 4 of the Microsoft PE/COFF specification (rev 8.1).
  9229. If a section name is too long to fit into the section header's 's_name'
  9230. field, it is instead placed into the string table, and the 's_name'
  9231. field is filled with a slash ("/") followed by the ASCII decimal
  9232. representation of the offset of the full name relative to the string
  9233. table base.
  9234. Note that this implies that the extension can only be used in object
  9235. files, as executables do not contain a string table. The standard
  9236. specifies that long section names from objects emitted into executable
  9237. images are to be truncated.
  9238. However, as a GNU extension, BFD can generate executable images that
  9239. contain a string table and long section names. This would appear to be
  9240. technically valid, as the standard only says that Coff debugging
  9241. information is deprecated, not forbidden, and in practice it works,
  9242. although some tools that parse PE files expecting the MS standard format
  9243. may become confused; 'PEview' is one known example.
  9244. The functionality is supported in BFD by code implemented under the
  9245. control of the macro 'COFF_LONG_SECTION_NAMES'. If not defined, the
  9246. format does not support long section names in any way. If defined, it
  9247. is used to initialise a flag, '_bfd_coff_long_section_names', and a hook
  9248. function pointer, '_bfd_coff_set_long_section_names', in the Coff
  9249. backend data structure. The flag controls the generation of long
  9250. section names in output BFDs at runtime; if it is false, as it will be
  9251. by default when generating an executable image, long section names are
  9252. truncated; if true, the long section names extension is employed. The
  9253. hook points to a function that allows the value of the flag to be
  9254. altered at runtime, on formats that support long section names at all;
  9255. on other formats it points to a stub that returns an error indication.
  9256. With input BFDs, the flag is set according to whether any long
  9257. section names are detected while reading the section headers. For a
  9258. completely new BFD, the flag is set to the default for the target
  9259. format. This information can be used by a client of the BFD library
  9260. when deciding what output format to generate, and means that a BFD that
  9261. is opened for read and subsequently converted to a writeable BFD and
  9262. modified in-place will retain whatever format it had on input.
  9263. If 'COFF_LONG_SECTION_NAMES' is simply defined (blank), or is defined
  9264. to the value "1", then long section names are enabled by default; if it
  9265. is defined to the value zero, they are disabled by default (but still
  9266. accepted in input BFDs). The header 'coffcode.h' defines a macro,
  9267. 'COFF_DEFAULT_LONG_SECTION_NAMES', which is used in the backends to
  9268. initialise the backend data structure fields appropriately; see the
  9269. comments for further detail.
  9270. 3.3.2.3 Bit twiddling
  9271. .....................
  9272. Each flavour of coff supported in BFD has its own header file describing
  9273. the external layout of the structures. There is also an internal
  9274. description of the coff layout, in 'coff/internal.h'. A major function
  9275. of the coff backend is swapping the bytes and twiddling the bits to
  9276. translate the external form of the structures into the normal internal
  9277. form. This is all performed in the 'bfd_swap'_thing_direction routines.
  9278. Some elements are different sizes between different versions of coff; it
  9279. is the duty of the coff version specific include file to override the
  9280. definitions of various packing routines in 'coffcode.h'. E.g., the size
  9281. of line number entry in coff is sometimes 16 bits, and sometimes 32
  9282. bits. '#define'ing 'PUT_LNSZ_LNNO' and 'GET_LNSZ_LNNO' will select the
  9283. correct one. No doubt, some day someone will find a version of coff
  9284. which has a varying field size not catered to at the moment. To port
  9285. BFD, that person will have to add more '#defines'. Three of the bit
  9286. twiddling routines are exported to 'gdb'; 'coff_swap_aux_in',
  9287. 'coff_swap_sym_in' and 'coff_swap_lineno_in'. 'GDB' reads the symbol
  9288. table on its own, but uses BFD to fix things up. More of the bit
  9289. twiddlers are exported for 'gas'; 'coff_swap_aux_out',
  9290. 'coff_swap_sym_out', 'coff_swap_lineno_out', 'coff_swap_reloc_out',
  9291. 'coff_swap_filehdr_out', 'coff_swap_aouthdr_out',
  9292. 'coff_swap_scnhdr_out'. 'Gas' currently keeps track of all the symbol
  9293. table and reloc drudgery itself, thereby saving the internal BFD
  9294. overhead, but uses BFD to swap things on the way out, making cross ports
  9295. much safer. Doing so also allows BFD (and thus the linker) to use the
  9296. same header files as 'gas', which makes one avenue to disaster
  9297. disappear.
  9298. 3.3.2.4 Symbol reading
  9299. ......................
  9300. The simple canonical form for symbols used by BFD is not rich enough to
  9301. keep all the information available in a coff symbol table. The back end
  9302. gets around this problem by keeping the original symbol table around,
  9303. "behind the scenes".
  9304. When a symbol table is requested (through a call to
  9305. 'bfd_canonicalize_symtab'), a request gets through to
  9306. 'coff_get_normalized_symtab'. This reads the symbol table from the coff
  9307. file and swaps all the structures inside into the internal form. It
  9308. also fixes up all the pointers in the table (represented in the file by
  9309. offsets from the first symbol in the table) into physical pointers to
  9310. elements in the new internal table. This involves some work since the
  9311. meanings of fields change depending upon context: a field that is a
  9312. pointer to another structure in the symbol table at one moment may be
  9313. the size in bytes of a structure at the next. Another pass is made over
  9314. the table. All symbols which mark file names ('C_FILE' symbols) are
  9315. modified so that the internal string points to the value in the auxent
  9316. (the real filename) rather than the normal text associated with the
  9317. symbol ('".file"').
  9318. At this time the symbol names are moved around. Coff stores all
  9319. symbols less than nine characters long physically within the symbol
  9320. table; longer strings are kept at the end of the file in the string
  9321. table. This pass moves all strings into memory and replaces them with
  9322. pointers to the strings.
  9323. The symbol table is massaged once again, this time to create the
  9324. canonical table used by the BFD application. Each symbol is inspected
  9325. in turn, and a decision made (using the 'sclass' field) about the
  9326. various flags to set in the 'asymbol'. *Note Symbols::. The generated
  9327. canonical table shares strings with the hidden internal symbol table.
  9328. Any linenumbers are read from the coff file too, and attached to the
  9329. symbols which own the functions the linenumbers belong to.
  9330. 3.3.2.5 Symbol writing
  9331. ......................
  9332. Writing a symbol to a coff file which didn't come from a coff file will
  9333. lose any debugging information. The 'asymbol' structure remembers the
  9334. BFD from which the symbol was taken, and on output the back end makes
  9335. sure that the same destination target as source target is present.
  9336. When the symbols have come from a coff file then all the debugging
  9337. information is preserved.
  9338. Symbol tables are provided for writing to the back end in a vector of
  9339. pointers to pointers. This allows applications like the linker to
  9340. accumulate and output large symbol tables without having to do too much
  9341. byte copying.
  9342. This function runs through the provided symbol table and patches each
  9343. symbol marked as a file place holder ('C_FILE') to point to the next
  9344. file place holder in the list. It also marks each 'offset' field in the
  9345. list with the offset from the first symbol of the current symbol.
  9346. Another function of this procedure is to turn the canonical value
  9347. form of BFD into the form used by coff. Internally, BFD expects symbol
  9348. values to be offsets from a section base; so a symbol physically at
  9349. 0x120, but in a section starting at 0x100, would have the value 0x20.
  9350. Coff expects symbols to contain their final value, so symbols have their
  9351. values changed at this point to reflect their sum with their owning
  9352. section. This transformation uses the 'output_section' field of the
  9353. 'asymbol''s 'asection' *Note Sections::.
  9354. * 'coff_mangle_symbols'
  9355. This routine runs though the provided symbol table and uses the
  9356. offsets generated by the previous pass and the pointers generated when
  9357. the symbol table was read in to create the structured hierarchy required
  9358. by coff. It changes each pointer to a symbol into the index into the
  9359. symbol table of the asymbol.
  9360. * 'coff_write_symbols'
  9361. This routine runs through the symbol table and patches up the symbols
  9362. from their internal form into the coff way, calls the bit twiddlers, and
  9363. writes out the table to the file.
  9364. 3.3.2.6 'coff_symbol_type'
  9365. ..........................
  9366. *Description*
  9367. The hidden information for an 'asymbol' is described in a
  9368. 'combined_entry_type':
  9369. typedef struct coff_ptr_struct
  9370. {
  9371. /* Remembers the offset from the first symbol in the file for
  9372. this symbol. Generated by coff_renumber_symbols. */
  9373. unsigned int offset;
  9374. /* Should the value of this symbol be renumbered. Used for
  9375. XCOFF C_BSTAT symbols. Set by coff_slurp_symbol_table. */
  9376. unsigned int fix_value : 1;
  9377. /* Should the tag field of this symbol be renumbered.
  9378. Created by coff_pointerize_aux. */
  9379. unsigned int fix_tag : 1;
  9380. /* Should the endidx field of this symbol be renumbered.
  9381. Created by coff_pointerize_aux. */
  9382. unsigned int fix_end : 1;
  9383. /* Should the x_csect.x_scnlen field be renumbered.
  9384. Created by coff_pointerize_aux. */
  9385. unsigned int fix_scnlen : 1;
  9386. /* Fix up an XCOFF C_BINCL/C_EINCL symbol. The value is the
  9387. index into the line number entries. Set by coff_slurp_symbol_table. */
  9388. unsigned int fix_line : 1;
  9389. /* The container for the symbol structure as read and translated
  9390. from the file. */
  9391. union
  9392. {
  9393. union internal_auxent auxent;
  9394. struct internal_syment syment;
  9395. } u;
  9396. /* Selector for the union above. */
  9397. bfd_boolean is_sym;
  9398. } combined_entry_type;
  9399. /* Each canonical asymbol really looks like this: */
  9400. typedef struct coff_symbol_struct
  9401. {
  9402. /* The actual symbol which the rest of BFD works with */
  9403. asymbol symbol;
  9404. /* A pointer to the hidden information for this symbol */
  9405. combined_entry_type *native;
  9406. /* A pointer to the linenumber information for this symbol */
  9407. struct lineno_cache_entry *lineno;
  9408. /* Have the line numbers been relocated yet ? */
  9409. bfd_boolean done_lineno;
  9410. } coff_symbol_type;
  9411. 3.3.2.7 'bfd_coff_backend_data'
  9412. ...............................
  9413. /* COFF symbol classifications. */
  9414. enum coff_symbol_classification
  9415. {
  9416. /* Global symbol. */
  9417. COFF_SYMBOL_GLOBAL,
  9418. /* Common symbol. */
  9419. COFF_SYMBOL_COMMON,
  9420. /* Undefined symbol. */
  9421. COFF_SYMBOL_UNDEFINED,
  9422. /* Local symbol. */
  9423. COFF_SYMBOL_LOCAL,
  9424. /* PE section symbol. */
  9425. COFF_SYMBOL_PE_SECTION
  9426. };
  9427. typedef asection * (*coff_gc_mark_hook_fn)
  9428. (asection *, struct bfd_link_info *, struct internal_reloc *,
  9429. struct coff_link_hash_entry *, struct internal_syment *);
  9430. Special entry points for gdb to swap in coff symbol table parts:
  9431. typedef struct
  9432. {
  9433. void (*_bfd_coff_swap_aux_in)
  9434. (bfd *, void *, int, int, int, int, void *);
  9435. void (*_bfd_coff_swap_sym_in)
  9436. (bfd *, void *, void *);
  9437. void (*_bfd_coff_swap_lineno_in)
  9438. (bfd *, void *, void *);
  9439. unsigned int (*_bfd_coff_swap_aux_out)
  9440. (bfd *, void *, int, int, int, int, void *);
  9441. unsigned int (*_bfd_coff_swap_sym_out)
  9442. (bfd *, void *, void *);
  9443. unsigned int (*_bfd_coff_swap_lineno_out)
  9444. (bfd *, void *, void *);
  9445. unsigned int (*_bfd_coff_swap_reloc_out)
  9446. (bfd *, void *, void *);
  9447. unsigned int (*_bfd_coff_swap_filehdr_out)
  9448. (bfd *, void *, void *);
  9449. unsigned int (*_bfd_coff_swap_aouthdr_out)
  9450. (bfd *, void *, void *);
  9451. unsigned int (*_bfd_coff_swap_scnhdr_out)
  9452. (bfd *, void *, void *);
  9453. unsigned int _bfd_filhsz;
  9454. unsigned int _bfd_aoutsz;
  9455. unsigned int _bfd_scnhsz;
  9456. unsigned int _bfd_symesz;
  9457. unsigned int _bfd_auxesz;
  9458. unsigned int _bfd_relsz;
  9459. unsigned int _bfd_linesz;
  9460. unsigned int _bfd_filnmlen;
  9461. bfd_boolean _bfd_coff_long_filenames;
  9462. bfd_boolean _bfd_coff_long_section_names;
  9463. bfd_boolean (*_bfd_coff_set_long_section_names)
  9464. (bfd *, int);
  9465. unsigned int _bfd_coff_default_section_alignment_power;
  9466. bfd_boolean _bfd_coff_force_symnames_in_strings;
  9467. unsigned int _bfd_coff_debug_string_prefix_length;
  9468. unsigned int _bfd_coff_max_nscns;
  9469. void (*_bfd_coff_swap_filehdr_in)
  9470. (bfd *, void *, void *);
  9471. void (*_bfd_coff_swap_aouthdr_in)
  9472. (bfd *, void *, void *);
  9473. void (*_bfd_coff_swap_scnhdr_in)
  9474. (bfd *, void *, void *);
  9475. void (*_bfd_coff_swap_reloc_in)
  9476. (bfd *abfd, void *, void *);
  9477. bfd_boolean (*_bfd_coff_bad_format_hook)
  9478. (bfd *, void *);
  9479. bfd_boolean (*_bfd_coff_set_arch_mach_hook)
  9480. (bfd *, void *);
  9481. void * (*_bfd_coff_mkobject_hook)
  9482. (bfd *, void *, void *);
  9483. bfd_boolean (*_bfd_styp_to_sec_flags_hook)
  9484. (bfd *, void *, const char *, asection *, flagword *);
  9485. void (*_bfd_set_alignment_hook)
  9486. (bfd *, asection *, void *);
  9487. bfd_boolean (*_bfd_coff_slurp_symbol_table)
  9488. (bfd *);
  9489. bfd_boolean (*_bfd_coff_symname_in_debug)
  9490. (bfd *, struct internal_syment *);
  9491. bfd_boolean (*_bfd_coff_pointerize_aux_hook)
  9492. (bfd *, combined_entry_type *, combined_entry_type *,
  9493. unsigned int, combined_entry_type *);
  9494. bfd_boolean (*_bfd_coff_print_aux)
  9495. (bfd *, FILE *, combined_entry_type *, combined_entry_type *,
  9496. combined_entry_type *, unsigned int);
  9497. void (*_bfd_coff_reloc16_extra_cases)
  9498. (bfd *, struct bfd_link_info *, struct bfd_link_order *, arelent *,
  9499. bfd_byte *, unsigned int *, unsigned int *);
  9500. int (*_bfd_coff_reloc16_estimate)
  9501. (bfd *, asection *, arelent *, unsigned int,
  9502. struct bfd_link_info *);
  9503. enum coff_symbol_classification (*_bfd_coff_classify_symbol)
  9504. (bfd *, struct internal_syment *);
  9505. bfd_boolean (*_bfd_coff_compute_section_file_positions)
  9506. (bfd *);
  9507. bfd_boolean (*_bfd_coff_start_final_link)
  9508. (bfd *, struct bfd_link_info *);
  9509. bfd_boolean (*_bfd_coff_relocate_section)
  9510. (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
  9511. struct internal_reloc *, struct internal_syment *, asection **);
  9512. reloc_howto_type *(*_bfd_coff_rtype_to_howto)
  9513. (bfd *, asection *, struct internal_reloc *,
  9514. struct coff_link_hash_entry *, struct internal_syment *, bfd_vma *);
  9515. bfd_boolean (*_bfd_coff_adjust_symndx)
  9516. (bfd *, struct bfd_link_info *, bfd *, asection *,
  9517. struct internal_reloc *, bfd_boolean *);
  9518. bfd_boolean (*_bfd_coff_link_add_one_symbol)
  9519. (struct bfd_link_info *, bfd *, const char *, flagword,
  9520. asection *, bfd_vma, const char *, bfd_boolean, bfd_boolean,
  9521. struct bfd_link_hash_entry **);
  9522. bfd_boolean (*_bfd_coff_link_output_has_begun)
  9523. (bfd *, struct coff_final_link_info *);
  9524. bfd_boolean (*_bfd_coff_final_link_postscript)
  9525. (bfd *, struct coff_final_link_info *);
  9526. bfd_boolean (*_bfd_coff_print_pdata)
  9527. (bfd *, void *);
  9528. } bfd_coff_backend_data;
  9529. #define coff_backend_info(abfd) \
  9530. ((bfd_coff_backend_data *) (abfd)->xvec->backend_data)
  9531. #define bfd_coff_swap_aux_in(a,e,t,c,ind,num,i) \
  9532. ((coff_backend_info (a)->_bfd_coff_swap_aux_in) (a,e,t,c,ind,num,i))
  9533. #define bfd_coff_swap_sym_in(a,e,i) \
  9534. ((coff_backend_info (a)->_bfd_coff_swap_sym_in) (a,e,i))
  9535. #define bfd_coff_swap_lineno_in(a,e,i) \
  9536. ((coff_backend_info ( a)->_bfd_coff_swap_lineno_in) (a,e,i))
  9537. #define bfd_coff_swap_reloc_out(abfd, i, o) \
  9538. ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_out) (abfd, i, o))
  9539. #define bfd_coff_swap_lineno_out(abfd, i, o) \
  9540. ((coff_backend_info (abfd)->_bfd_coff_swap_lineno_out) (abfd, i, o))
  9541. #define bfd_coff_swap_aux_out(a,i,t,c,ind,num,o) \
  9542. ((coff_backend_info (a)->_bfd_coff_swap_aux_out) (a,i,t,c,ind,num,o))
  9543. #define bfd_coff_swap_sym_out(abfd, i,o) \
  9544. ((coff_backend_info (abfd)->_bfd_coff_swap_sym_out) (abfd, i, o))
  9545. #define bfd_coff_swap_scnhdr_out(abfd, i,o) \
  9546. ((coff_backend_info (abfd)->_bfd_coff_swap_scnhdr_out) (abfd, i, o))
  9547. #define bfd_coff_swap_filehdr_out(abfd, i,o) \
  9548. ((coff_backend_info (abfd)->_bfd_coff_swap_filehdr_out) (abfd, i, o))
  9549. #define bfd_coff_swap_aouthdr_out(abfd, i,o) \
  9550. ((coff_backend_info (abfd)->_bfd_coff_swap_aouthdr_out) (abfd, i, o))
  9551. #define bfd_coff_filhsz(abfd) (coff_backend_info (abfd)->_bfd_filhsz)
  9552. #define bfd_coff_aoutsz(abfd) (coff_backend_info (abfd)->_bfd_aoutsz)
  9553. #define bfd_coff_scnhsz(abfd) (coff_backend_info (abfd)->_bfd_scnhsz)
  9554. #define bfd_coff_symesz(abfd) (coff_backend_info (abfd)->_bfd_symesz)
  9555. #define bfd_coff_auxesz(abfd) (coff_backend_info (abfd)->_bfd_auxesz)
  9556. #define bfd_coff_relsz(abfd) (coff_backend_info (abfd)->_bfd_relsz)
  9557. #define bfd_coff_linesz(abfd) (coff_backend_info (abfd)->_bfd_linesz)
  9558. #define bfd_coff_filnmlen(abfd) (coff_backend_info (abfd)->_bfd_filnmlen)
  9559. #define bfd_coff_long_filenames(abfd) \
  9560. (coff_backend_info (abfd)->_bfd_coff_long_filenames)
  9561. #define bfd_coff_long_section_names(abfd) \
  9562. (coff_backend_info (abfd)->_bfd_coff_long_section_names)
  9563. #define bfd_coff_set_long_section_names(abfd, enable) \
  9564. ((coff_backend_info (abfd)->_bfd_coff_set_long_section_names) (abfd, enable))
  9565. #define bfd_coff_default_section_alignment_power(abfd) \
  9566. (coff_backend_info (abfd)->_bfd_coff_default_section_alignment_power)
  9567. #define bfd_coff_max_nscns(abfd) \
  9568. (coff_backend_info (abfd)->_bfd_coff_max_nscns)
  9569. #define bfd_coff_swap_filehdr_in(abfd, i,o) \
  9570. ((coff_backend_info (abfd)->_bfd_coff_swap_filehdr_in) (abfd, i, o))
  9571. #define bfd_coff_swap_aouthdr_in(abfd, i,o) \
  9572. ((coff_backend_info (abfd)->_bfd_coff_swap_aouthdr_in) (abfd, i, o))
  9573. #define bfd_coff_swap_scnhdr_in(abfd, i,o) \
  9574. ((coff_backend_info (abfd)->_bfd_coff_swap_scnhdr_in) (abfd, i, o))
  9575. #define bfd_coff_swap_reloc_in(abfd, i, o) \
  9576. ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_in) (abfd, i, o))
  9577. #define bfd_coff_bad_format_hook(abfd, filehdr) \
  9578. ((coff_backend_info (abfd)->_bfd_coff_bad_format_hook) (abfd, filehdr))
  9579. #define bfd_coff_set_arch_mach_hook(abfd, filehdr)\
  9580. ((coff_backend_info (abfd)->_bfd_coff_set_arch_mach_hook) (abfd, filehdr))
  9581. #define bfd_coff_mkobject_hook(abfd, filehdr, aouthdr)\
  9582. ((coff_backend_info (abfd)->_bfd_coff_mkobject_hook)\
  9583. (abfd, filehdr, aouthdr))
  9584. #define bfd_coff_styp_to_sec_flags_hook(abfd, scnhdr, name, section, flags_ptr)\
  9585. ((coff_backend_info (abfd)->_bfd_styp_to_sec_flags_hook)\
  9586. (abfd, scnhdr, name, section, flags_ptr))
  9587. #define bfd_coff_set_alignment_hook(abfd, sec, scnhdr)\
  9588. ((coff_backend_info (abfd)->_bfd_set_alignment_hook) (abfd, sec, scnhdr))
  9589. #define bfd_coff_slurp_symbol_table(abfd)\
  9590. ((coff_backend_info (abfd)->_bfd_coff_slurp_symbol_table) (abfd))
  9591. #define bfd_coff_symname_in_debug(abfd, sym)\
  9592. ((coff_backend_info (abfd)->_bfd_coff_symname_in_debug) (abfd, sym))
  9593. #define bfd_coff_force_symnames_in_strings(abfd)\
  9594. (coff_backend_info (abfd)->_bfd_coff_force_symnames_in_strings)
  9595. #define bfd_coff_debug_string_prefix_length(abfd)\
  9596. (coff_backend_info (abfd)->_bfd_coff_debug_string_prefix_length)
  9597. #define bfd_coff_print_aux(abfd, file, base, symbol, aux, indaux)\
  9598. ((coff_backend_info (abfd)->_bfd_coff_print_aux)\
  9599. (abfd, file, base, symbol, aux, indaux))
  9600. #define bfd_coff_reloc16_extra_cases(abfd, link_info, link_order,\
  9601. reloc, data, src_ptr, dst_ptr)\
  9602. ((coff_backend_info (abfd)->_bfd_coff_reloc16_extra_cases)\
  9603. (abfd, link_info, link_order, reloc, data, src_ptr, dst_ptr))
  9604. #define bfd_coff_reloc16_estimate(abfd, section, reloc, shrink, link_info)\
  9605. ((coff_backend_info (abfd)->_bfd_coff_reloc16_estimate)\
  9606. (abfd, section, reloc, shrink, link_info))
  9607. #define bfd_coff_classify_symbol(abfd, sym)\
  9608. ((coff_backend_info (abfd)->_bfd_coff_classify_symbol)\
  9609. (abfd, sym))
  9610. #define bfd_coff_compute_section_file_positions(abfd)\
  9611. ((coff_backend_info (abfd)->_bfd_coff_compute_section_file_positions)\
  9612. (abfd))
  9613. #define bfd_coff_start_final_link(obfd, info)\
  9614. ((coff_backend_info (obfd)->_bfd_coff_start_final_link)\
  9615. (obfd, info))
  9616. #define bfd_coff_relocate_section(obfd,info,ibfd,o,con,rel,isyms,secs)\
  9617. ((coff_backend_info (ibfd)->_bfd_coff_relocate_section)\
  9618. (obfd, info, ibfd, o, con, rel, isyms, secs))
  9619. #define bfd_coff_rtype_to_howto(abfd, sec, rel, h, sym, addendp)\
  9620. ((coff_backend_info (abfd)->_bfd_coff_rtype_to_howto)\
  9621. (abfd, sec, rel, h, sym, addendp))
  9622. #define bfd_coff_adjust_symndx(obfd, info, ibfd, sec, rel, adjustedp)\
  9623. ((coff_backend_info (abfd)->_bfd_coff_adjust_symndx)\
  9624. (obfd, info, ibfd, sec, rel, adjustedp))
  9625. #define bfd_coff_link_add_one_symbol(info, abfd, name, flags, section,\
  9626. value, string, cp, coll, hashp)\
  9627. ((coff_backend_info (abfd)->_bfd_coff_link_add_one_symbol)\
  9628. (info, abfd, name, flags, section, value, string, cp, coll, hashp))
  9629. #define bfd_coff_link_output_has_begun(a,p) \
  9630. ((coff_backend_info (a)->_bfd_coff_link_output_has_begun) (a, p))
  9631. #define bfd_coff_final_link_postscript(a,p) \
  9632. ((coff_backend_info (a)->_bfd_coff_final_link_postscript) (a, p))
  9633. #define bfd_coff_have_print_pdata(a) \
  9634. (coff_backend_info (a)->_bfd_coff_print_pdata)
  9635. #define bfd_coff_print_pdata(a,p) \
  9636. ((coff_backend_info (a)->_bfd_coff_print_pdata) (a, p))
  9637. /* Macro: Returns true if the bfd is a PE executable as opposed to a
  9638. PE object file. */
  9639. #define bfd_pei_p(abfd) \
  9640. (CONST_STRNEQ ((abfd)->xvec->name, "pei-"))
  9641. 3.3.2.8 Writing relocations
  9642. ...........................
  9643. To write relocations, the back end steps though the canonical relocation
  9644. table and create an 'internal_reloc'. The symbol index to use is
  9645. removed from the 'offset' field in the symbol table supplied. The
  9646. address comes directly from the sum of the section base address and the
  9647. relocation offset; the type is dug directly from the howto field. Then
  9648. the 'internal_reloc' is swapped into the shape of an 'external_reloc'
  9649. and written out to disk.
  9650. 3.3.2.9 Reading linenumbers
  9651. ...........................
  9652. Creating the linenumber table is done by reading in the entire coff
  9653. linenumber table, and creating another table for internal use.
  9654. A coff linenumber table is structured so that each function is marked
  9655. as having a line number of 0. Each line within the function is an
  9656. offset from the first line in the function. The base of the line number
  9657. information for the table is stored in the symbol associated with the
  9658. function.
  9659. Note: The PE format uses line number 0 for a flag indicating a new
  9660. source file.
  9661. The information is copied from the external to the internal table,
  9662. and each symbol which marks a function is marked by pointing its...
  9663. How does this work ?
  9664. 3.3.2.10 Reading relocations
  9665. ............................
  9666. Coff relocations are easily transformed into the internal BFD form
  9667. ('arelent').
  9668. Reading a coff relocation table is done in the following stages:
  9669. * Read the entire coff relocation table into memory.
  9670. * Process each relocation in turn; first swap it from the external to
  9671. the internal form.
  9672. * Turn the symbol referenced in the relocation's symbol index into a
  9673. pointer into the canonical symbol table. This table is the same as
  9674. the one returned by a call to 'bfd_canonicalize_symtab'. The back
  9675. end will call that routine and save the result if a
  9676. canonicalization hasn't been done.
  9677. * The reloc index is turned into a pointer to a howto structure, in a
  9678. back end specific way. For instance, the 386 uses the 'r_type' to
  9679. directly produce an index into a howto table vector.
  9680. 
  9681. File: bfd.info, Node: elf, Next: mmo, Prev: coff, Up: BFD back ends
  9682. 3.4 ELF backends
  9683. ================
  9684. BFD support for ELF formats is being worked on. Currently, the best
  9685. supported back ends are for sparc and i386 (running svr4 or Solaris 2).
  9686. Documentation of the internals of the support code still needs to be
  9687. written. The code is changing quickly enough that we haven't bothered
  9688. yet.
  9689. 
  9690. File: bfd.info, Node: mmo, Prev: elf, Up: BFD back ends
  9691. 3.5 mmo backend
  9692. ===============
  9693. The mmo object format is used exclusively together with Professor Donald
  9694. E. Knuth's educational 64-bit processor MMIX. The simulator 'mmix' which
  9695. is available at <http://mmix.cs.hm.edu/src/index.html> understands this
  9696. format. That package also includes a combined assembler and linker
  9697. called 'mmixal'. The mmo format has no advantages feature-wise compared
  9698. to e.g. ELF. It is a simple non-relocatable object format with no
  9699. support for archives or debugging information, except for symbol value
  9700. information and line numbers (which is not yet implemented in BFD). See
  9701. <http://mmix.cs.hm.edu/> for more information about MMIX. The ELF format
  9702. is used for intermediate object files in the BFD implementation.
  9703. * Menu:
  9704. * File layout::
  9705. * Symbol-table::
  9706. * mmo section mapping::
  9707. 
  9708. File: bfd.info, Node: File layout, Next: Symbol-table, Prev: mmo, Up: mmo
  9709. 3.5.1 File layout
  9710. -----------------
  9711. The mmo file contents is not partitioned into named sections as with
  9712. e.g. ELF. Memory areas is formed by specifying the location of the data
  9713. that follows. Only the memory area '0x0000...00' to '0x01ff...ff' is
  9714. executable, so it is used for code (and constants) and the area
  9715. '0x2000...00' to '0x20ff...ff' is used for writable data. *Note mmo
  9716. section mapping::.
  9717. There is provision for specifying "special data" of 65536 different
  9718. types. We use type 80 (decimal), arbitrarily chosen the same as the ELF
  9719. 'e_machine' number for MMIX, filling it with section information
  9720. normally found in ELF objects. *Note mmo section mapping::.
  9721. Contents is entered as 32-bit words, xor:ed over previous contents,
  9722. always zero-initialized. A word that starts with the byte '0x98' forms
  9723. a command called a 'lopcode', where the next byte distinguished between
  9724. the thirteen lopcodes. The two remaining bytes, called the 'Y' and 'Z'
  9725. fields, or the 'YZ' field (a 16-bit big-endian number), are used for
  9726. various purposes different for each lopcode. As documented in
  9727. <http://mmix.cs.hm.edu/doc/mmixal.pdf>, the lopcodes are:
  9728. 'lop_quote'
  9729. 0x98000001. The next word is contents, regardless of whether it
  9730. starts with 0x98 or not.
  9731. 'lop_loc'
  9732. 0x9801YYZZ, where 'Z' is 1 or 2. This is a location directive,
  9733. setting the location for the next data to the next 32-bit word (for
  9734. Z = 1) or 64-bit word (for Z = 2), plus Y * 2^56. Normally 'Y' is
  9735. 0 for the text segment and 2 for the data segment. Beware that the
  9736. low bits of non- tetrabyte-aligned values are silently discarded
  9737. when being automatically incremented and when storing contents (in
  9738. contrast to e.g. its use as current location when followed by
  9739. lop_fixo et al before the next possibly-quoted tetrabyte contents).
  9740. 'lop_skip'
  9741. 0x9802YYZZ. Increase the current location by 'YZ' bytes.
  9742. 'lop_fixo'
  9743. 0x9803YYZZ, where 'Z' is 1 or 2. Store the current location as 64
  9744. bits into the location pointed to by the next 32-bit (Z = 1) or
  9745. 64-bit (Z = 2) word, plus Y * 2^56.
  9746. 'lop_fixr'
  9747. 0x9804YYZZ. 'YZ' is stored into the current location plus 2 - 4 *
  9748. YZ.
  9749. 'lop_fixrx'
  9750. 0x980500ZZ. 'Z' is 16 or 24. A value 'L' derived from the
  9751. following 32-bit word are used in a manner similar to 'YZ' in
  9752. lop_fixr: it is xor:ed into the current location minus 4 * L. The
  9753. first byte of the word is 0 or 1. If it is 1, then L = (LOWEST 24
  9754. BITS OF WORD) - 2^Z, if 0, then L = (LOWEST 24 BITS OF WORD).
  9755. 'lop_file'
  9756. 0x9806YYZZ. 'Y' is the file number, 'Z' is count of 32-bit words.
  9757. Set the file number to 'Y' and the line counter to 0. The next Z *
  9758. 4 bytes contain the file name, padded with zeros if the count is
  9759. not a multiple of four. The same 'Y' may occur multiple times, but
  9760. 'Z' must be 0 for all but the first occurrence.
  9761. 'lop_line'
  9762. 0x9807YYZZ. 'YZ' is the line number. Together with lop_file, it
  9763. forms the source location for the next 32-bit word. Note that for
  9764. each non-lopcode 32-bit word, line numbers are assumed incremented
  9765. by one.
  9766. 'lop_spec'
  9767. 0x9808YYZZ. 'YZ' is the type number. Data until the next lopcode
  9768. other than lop_quote forms special data of type 'YZ'. *Note mmo
  9769. section mapping::.
  9770. Other types than 80, (or type 80 with a content that does not
  9771. parse) is stored in sections named '.MMIX.spec_data.N' where N is
  9772. the 'YZ'-type. The flags for such a sections say not to allocate
  9773. or load the data. The vma is 0. Contents of multiple occurrences
  9774. of special data N is concatenated to the data of the previous
  9775. lop_spec Ns. The location in data or code at which the lop_spec
  9776. occurred is lost.
  9777. 'lop_pre'
  9778. 0x980901ZZ. The first lopcode in a file. The 'Z' field forms the
  9779. length of header information in 32-bit words, where the first word
  9780. tells the time in seconds since '00:00:00 GMT Jan 1 1970'.
  9781. 'lop_post'
  9782. 0x980a00ZZ. Z > 32. This lopcode follows after all
  9783. content-generating lopcodes in a program. The 'Z' field denotes
  9784. the value of 'rG' at the beginning of the program. The following
  9785. 256 - Z big-endian 64-bit words are loaded into global registers
  9786. '$G' ... '$255'.
  9787. 'lop_stab'
  9788. 0x980b0000. The next-to-last lopcode in a program. Must follow
  9789. immediately after the lop_post lopcode and its data. After this
  9790. lopcode follows all symbols in a compressed format (*note
  9791. Symbol-table::).
  9792. 'lop_end'
  9793. 0x980cYYZZ. The last lopcode in a program. It must follow the
  9794. lop_stab lopcode and its data. The 'YZ' field contains the number
  9795. of 32-bit words of symbol table information after the preceding
  9796. lop_stab lopcode.
  9797. Note that the lopcode "fixups"; 'lop_fixr', 'lop_fixrx' and
  9798. 'lop_fixo' are not generated by BFD, but are handled. They are
  9799. generated by 'mmixal'.
  9800. This trivial one-label, one-instruction file:
  9801. :Main TRAP 1,2,3
  9802. can be represented this way in mmo:
  9803. 0x98090101 - lop_pre, one 32-bit word with timestamp.
  9804. <timestamp>
  9805. 0x98010002 - lop_loc, text segment, using a 64-bit address.
  9806. Note that mmixal does not emit this for the file above.
  9807. 0x00000000 - Address, high 32 bits.
  9808. 0x00000000 - Address, low 32 bits.
  9809. 0x98060002 - lop_file, 2 32-bit words for file-name.
  9810. 0x74657374 - "test"
  9811. 0x2e730000 - ".s\0\0"
  9812. 0x98070001 - lop_line, line 1.
  9813. 0x00010203 - TRAP 1,2,3
  9814. 0x980a00ff - lop_post, setting $255 to 0.
  9815. 0x00000000
  9816. 0x00000000
  9817. 0x980b0000 - lop_stab for ":Main" = 0, serial 1.
  9818. 0x203a4040 *Note Symbol-table::.
  9819. 0x10404020
  9820. 0x4d206120
  9821. 0x69016e00
  9822. 0x81000000
  9823. 0x980c0005 - lop_end; symbol table contained five 32-bit words.
  9824. 
  9825. File: bfd.info, Node: Symbol-table, Next: mmo section mapping, Prev: File layout, Up: mmo
  9826. 3.5.2 Symbol table format
  9827. -------------------------
  9828. From mmixal.w (or really, the generated mmixal.tex) in the MMIXware
  9829. package which also contains the 'mmix' simulator: "Symbols are stored
  9830. and retrieved by means of a 'ternary search trie', following ideas of
  9831. Bentley and Sedgewick. (See ACM-SIAM Symp. on Discrete Algorithms '8'
  9832. (1997), 360-369; R.Sedgewick, 'Algorithms in C' (Reading, Mass.
  9833. Addison-Wesley, 1998), '15.4'.) Each trie node stores a character, and
  9834. there are branches to subtries for the cases where a given character is
  9835. less than, equal to, or greater than the character in the trie. There
  9836. also is a pointer to a symbol table entry if a symbol ends at the
  9837. current node."
  9838. So it's a tree encoded as a stream of bytes. The stream of bytes
  9839. acts on a single virtual global symbol, adding and removing characters
  9840. and signalling complete symbol points. Here, we read the stream and
  9841. create symbols at the completion points.
  9842. First, there's a control byte 'm'. If any of the listed bits in 'm'
  9843. is nonzero, we execute what stands at the right, in the listed order:
  9844. (MMO3_LEFT)
  9845. 0x40 - Traverse left trie.
  9846. (Read a new command byte and recurse.)
  9847. (MMO3_SYMBITS)
  9848. 0x2f - Read the next byte as a character and store it in the
  9849. current character position; increment character position.
  9850. Test the bits of m:
  9851. (MMO3_WCHAR)
  9852. 0x80 - The character is 16-bit (so read another byte,
  9853. merge into current character.
  9854. (MMO3_TYPEBITS)
  9855. 0xf - We have a complete symbol; parse the type, value
  9856. and serial number and do what should be done
  9857. with a symbol. The type and length information
  9858. is in j = (m & 0xf).
  9859. (MMO3_REGQUAL_BITS)
  9860. j == 0xf: A register variable. The following
  9861. byte tells which register.
  9862. j <= 8: An absolute symbol. Read j bytes as the
  9863. big-endian number the symbol equals.
  9864. A j = 2 with two zero bytes denotes an
  9865. unknown symbol.
  9866. j > 8: As with j <= 8, but add (0x20 << 56)
  9867. to the value in the following j - 8
  9868. bytes.
  9869. Then comes the serial number, as a variant of
  9870. uleb128, but better named ubeb128:
  9871. Read bytes and shift the previous value left 7
  9872. (multiply by 128). Add in the new byte, repeat
  9873. until a byte has bit 7 set. The serial number
  9874. is the computed value minus 128.
  9875. (MMO3_MIDDLE)
  9876. 0x20 - Traverse middle trie. (Read a new command byte
  9877. and recurse.) Decrement character position.
  9878. (MMO3_RIGHT)
  9879. 0x10 - Traverse right trie. (Read a new command byte and
  9880. recurse.)
  9881. Let's look again at the 'lop_stab' for the trivial file (*note File
  9882. layout::).
  9883. 0x980b0000 - lop_stab for ":Main" = 0, serial 1.
  9884. 0x203a4040
  9885. 0x10404020
  9886. 0x4d206120
  9887. 0x69016e00
  9888. 0x81000000
  9889. This forms the trivial trie (note that the path between ":" and "M"
  9890. is redundant):
  9891. 203a ":"
  9892. 40 /
  9893. 40 /
  9894. 10 \
  9895. 40 /
  9896. 40 /
  9897. 204d "M"
  9898. 2061 "a"
  9899. 2069 "i"
  9900. 016e "n" is the last character in a full symbol, and
  9901. with a value represented in one byte.
  9902. 00 The value is 0.
  9903. 81 The serial number is 1.
  9904. 
  9905. File: bfd.info, Node: mmo section mapping, Prev: Symbol-table, Up: mmo
  9906. 3.5.3 mmo section mapping
  9907. -------------------------
  9908. The implementation in BFD uses special data type 80 (decimal) to
  9909. encapsulate and describe named sections, containing e.g. debug
  9910. information. If needed, any datum in the encapsulation will be quoted
  9911. using lop_quote. First comes a 32-bit word holding the number of 32-bit
  9912. words containing the zero-terminated zero-padded segment name. After
  9913. the name there's a 32-bit word holding flags describing the section
  9914. type. Then comes a 64-bit big-endian word with the section length (in
  9915. bytes), then another with the section start address. Depending on the
  9916. type of section, the contents might follow, zero-padded to 32-bit
  9917. boundary. For a loadable section (such as data or code), the contents
  9918. might follow at some later point, not necessarily immediately, as a
  9919. lop_loc with the same start address as in the section description,
  9920. followed by the contents. This in effect forms a descriptor that must
  9921. be emitted before the actual contents. Sections described this way must
  9922. not overlap.
  9923. For areas that don't have such descriptors, synthetic sections are
  9924. formed by BFD. Consecutive contents in the two memory areas
  9925. '0x0000...00' to '0x01ff...ff' and '0x2000...00' to '0x20ff...ff' are
  9926. entered in sections named '.text' and '.data' respectively. If an area
  9927. is not otherwise described, but would together with a neighboring lower
  9928. area be less than '0x40000000' bytes long, it is joined with the lower
  9929. area and the gap is zero-filled. For other cases, a new section is
  9930. formed, named '.MMIX.sec.N'. Here, N is a number, a running count
  9931. through the mmo file, starting at 0.
  9932. A loadable section specified as:
  9933. .section secname,"ax"
  9934. TETRA 1,2,3,4,-1,-2009
  9935. BYTE 80
  9936. and linked to address '0x4', is represented by the sequence:
  9937. 0x98080050 - lop_spec 80
  9938. 0x00000002 - two 32-bit words for the section name
  9939. 0x7365636e - "secn"
  9940. 0x616d6500 - "ame\0"
  9941. 0x00000033 - flags CODE, READONLY, LOAD, ALLOC
  9942. 0x00000000 - high 32 bits of section length
  9943. 0x0000001c - section length is 28 bytes; 6 * 4 + 1 + alignment to 32 bits
  9944. 0x00000000 - high 32 bits of section address
  9945. 0x00000004 - section address is 4
  9946. 0x98010002 - 64 bits with address of following data
  9947. 0x00000000 - high 32 bits of address
  9948. 0x00000004 - low 32 bits: data starts at address 4
  9949. 0x00000001 - 1
  9950. 0x00000002 - 2
  9951. 0x00000003 - 3
  9952. 0x00000004 - 4
  9953. 0xffffffff - -1
  9954. 0xfffff827 - -2009
  9955. 0x50000000 - 80 as a byte, padded with zeros.
  9956. Note that the lop_spec wrapping does not include the section
  9957. contents. Compare this to a non-loaded section specified as:
  9958. .section thirdsec
  9959. TETRA 200001,100002
  9960. BYTE 38,40
  9961. This, when linked to address '0x200000000000001c', is represented by:
  9962. 0x98080050 - lop_spec 80
  9963. 0x00000002 - two 32-bit words for the section name
  9964. 0x7365636e - "thir"
  9965. 0x616d6500 - "dsec"
  9966. 0x00000010 - flag READONLY
  9967. 0x00000000 - high 32 bits of section length
  9968. 0x0000000c - section length is 12 bytes; 2 * 4 + 2 + alignment to 32 bits
  9969. 0x20000000 - high 32 bits of address
  9970. 0x0000001c - low 32 bits of address 0x200000000000001c
  9971. 0x00030d41 - 200001
  9972. 0x000186a2 - 100002
  9973. 0x26280000 - 38, 40 as bytes, padded with zeros
  9974. For the latter example, the section contents must not be loaded in
  9975. memory, and is therefore specified as part of the special data. The
  9976. address is usually unimportant but might provide information for e.g.
  9977. the DWARF 2 debugging format.
  9978. 
  9979. File: bfd.info, Node: GNU Free Documentation License, Next: BFD Index, Prev: BFD back ends, Up: Top
  9980. Version 1.3, 3 November 2008
  9981. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  9982. <http://fsf.org/>
  9983. Everyone is permitted to copy and distribute verbatim copies
  9984. of this license document, but changing it is not allowed.
  9985. 0. PREAMBLE
  9986. The purpose of this License is to make a manual, textbook, or other
  9987. functional and useful document "free" in the sense of freedom: to
  9988. assure everyone the effective freedom to copy and redistribute it,
  9989. with or without modifying it, either commercially or
  9990. noncommercially. Secondarily, this License preserves for the
  9991. author and publisher a way to get credit for their work, while not
  9992. being considered responsible for modifications made by others.
  9993. This License is a kind of "copyleft", which means that derivative
  9994. works of the document must themselves be free in the same sense.
  9995. It complements the GNU General Public License, which is a copyleft
  9996. license designed for free software.
  9997. We have designed this License in order to use it for manuals for
  9998. free software, because free software needs free documentation: a
  9999. free program should come with manuals providing the same freedoms
  10000. that the software does. But this License is not limited to
  10001. software manuals; it can be used for any textual work, regardless
  10002. of subject matter or whether it is published as a printed book. We
  10003. recommend this License principally for works whose purpose is
  10004. instruction or reference.
  10005. 1. APPLICABILITY AND DEFINITIONS
  10006. This License applies to any manual or other work, in any medium,
  10007. that contains a notice placed by the copyright holder saying it can
  10008. be distributed under the terms of this License. Such a notice
  10009. grants a world-wide, royalty-free license, unlimited in duration,
  10010. to use that work under the conditions stated herein. The
  10011. "Document", below, refers to any such manual or work. Any member
  10012. of the public is a licensee, and is addressed as "you". You accept
  10013. the license if you copy, modify or distribute the work in a way
  10014. requiring permission under copyright law.
  10015. A "Modified Version" of the Document means any work containing the
  10016. Document or a portion of it, either copied verbatim, or with
  10017. modifications and/or translated into another language.
  10018. A "Secondary Section" is a named appendix or a front-matter section
  10019. of the Document that deals exclusively with the relationship of the
  10020. publishers or authors of the Document to the Document's overall
  10021. subject (or to related matters) and contains nothing that could
  10022. fall directly within that overall subject. (Thus, if the Document
  10023. is in part a textbook of mathematics, a Secondary Section may not
  10024. explain any mathematics.) The relationship could be a matter of
  10025. historical connection with the subject or with related matters, or
  10026. of legal, commercial, philosophical, ethical or political position
  10027. regarding them.
  10028. The "Invariant Sections" are certain Secondary Sections whose
  10029. titles are designated, as being those of Invariant Sections, in the
  10030. notice that says that the Document is released under this License.
  10031. If a section does not fit the above definition of Secondary then it
  10032. is not allowed to be designated as Invariant. The Document may
  10033. contain zero Invariant Sections. If the Document does not identify
  10034. any Invariant Sections then there are none.
  10035. The "Cover Texts" are certain short passages of text that are
  10036. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  10037. that says that the Document is released under this License. A
  10038. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  10039. be at most 25 words.
  10040. A "Transparent" copy of the Document means a machine-readable copy,
  10041. represented in a format whose specification is available to the
  10042. general public, that is suitable for revising the document
  10043. straightforwardly with generic text editors or (for images composed
  10044. of pixels) generic paint programs or (for drawings) some widely
  10045. available drawing editor, and that is suitable for input to text
  10046. formatters or for automatic translation to a variety of formats
  10047. suitable for input to text formatters. A copy made in an otherwise
  10048. Transparent file format whose markup, or absence of markup, has
  10049. been arranged to thwart or discourage subsequent modification by
  10050. readers is not Transparent. An image format is not Transparent if
  10051. used for any substantial amount of text. A copy that is not
  10052. "Transparent" is called "Opaque".
  10053. Examples of suitable formats for Transparent copies include plain
  10054. ASCII without markup, Texinfo input format, LaTeX input format,
  10055. SGML or XML using a publicly available DTD, and standard-conforming
  10056. simple HTML, PostScript or PDF designed for human modification.
  10057. Examples of transparent image formats include PNG, XCF and JPG.
  10058. Opaque formats include proprietary formats that can be read and
  10059. edited only by proprietary word processors, SGML or XML for which
  10060. the DTD and/or processing tools are not generally available, and
  10061. the machine-generated HTML, PostScript or PDF produced by some word
  10062. processors for output purposes only.
  10063. The "Title Page" means, for a printed book, the title page itself,
  10064. plus such following pages as are needed to hold, legibly, the
  10065. material this License requires to appear in the title page. For
  10066. works in formats which do not have any title page as such, "Title
  10067. Page" means the text near the most prominent appearance of the
  10068. work's title, preceding the beginning of the body of the text.
  10069. The "publisher" means any person or entity that distributes copies
  10070. of the Document to the public.
  10071. A section "Entitled XYZ" means a named subunit of the Document
  10072. whose title either is precisely XYZ or contains XYZ in parentheses
  10073. following text that translates XYZ in another language. (Here XYZ
  10074. stands for a specific section name mentioned below, such as
  10075. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  10076. To "Preserve the Title" of such a section when you modify the
  10077. Document means that it remains a section "Entitled XYZ" according
  10078. to this definition.
  10079. The Document may include Warranty Disclaimers next to the notice
  10080. which states that this License applies to the Document. These
  10081. Warranty Disclaimers are considered to be included by reference in
  10082. this License, but only as regards disclaiming warranties: any other
  10083. implication that these Warranty Disclaimers may have is void and
  10084. has no effect on the meaning of this License.
  10085. 2. VERBATIM COPYING
  10086. You may copy and distribute the Document in any medium, either
  10087. commercially or noncommercially, provided that this License, the
  10088. copyright notices, and the license notice saying this License
  10089. applies to the Document are reproduced in all copies, and that you
  10090. add no other conditions whatsoever to those of this License. You
  10091. may not use technical measures to obstruct or control the reading
  10092. or further copying of the copies you make or distribute. However,
  10093. you may accept compensation in exchange for copies. If you
  10094. distribute a large enough number of copies you must also follow the
  10095. conditions in section 3.
  10096. You may also lend copies, under the same conditions stated above,
  10097. and you may publicly display copies.
  10098. 3. COPYING IN QUANTITY
  10099. If you publish printed copies (or copies in media that commonly
  10100. have printed covers) of the Document, numbering more than 100, and
  10101. the Document's license notice requires Cover Texts, you must
  10102. enclose the copies in covers that carry, clearly and legibly, all
  10103. these Cover Texts: Front-Cover Texts on the front cover, and
  10104. Back-Cover Texts on the back cover. Both covers must also clearly
  10105. and legibly identify you as the publisher of these copies. The
  10106. front cover must present the full title with all words of the title
  10107. equally prominent and visible. You may add other material on the
  10108. covers in addition. Copying with changes limited to the covers, as
  10109. long as they preserve the title of the Document and satisfy these
  10110. conditions, can be treated as verbatim copying in other respects.
  10111. If the required texts for either cover are too voluminous to fit
  10112. legibly, you should put the first ones listed (as many as fit
  10113. reasonably) on the actual cover, and continue the rest onto
  10114. adjacent pages.
  10115. If you publish or distribute Opaque copies of the Document
  10116. numbering more than 100, you must either include a machine-readable
  10117. Transparent copy along with each Opaque copy, or state in or with
  10118. each Opaque copy a computer-network location from which the general
  10119. network-using public has access to download using public-standard
  10120. network protocols a complete Transparent copy of the Document, free
  10121. of added material. If you use the latter option, you must take
  10122. reasonably prudent steps, when you begin distribution of Opaque
  10123. copies in quantity, to ensure that this Transparent copy will
  10124. remain thus accessible at the stated location until at least one
  10125. year after the last time you distribute an Opaque copy (directly or
  10126. through your agents or retailers) of that edition to the public.
  10127. It is requested, but not required, that you contact the authors of
  10128. the Document well before redistributing any large number of copies,
  10129. to give them a chance to provide you with an updated version of the
  10130. Document.
  10131. 4. MODIFICATIONS
  10132. You may copy and distribute a Modified Version of the Document
  10133. under the conditions of sections 2 and 3 above, provided that you
  10134. release the Modified Version under precisely this License, with the
  10135. Modified Version filling the role of the Document, thus licensing
  10136. distribution and modification of the Modified Version to whoever
  10137. possesses a copy of it. In addition, you must do these things in
  10138. the Modified Version:
  10139. A. Use in the Title Page (and on the covers, if any) a title
  10140. distinct from that of the Document, and from those of previous
  10141. versions (which should, if there were any, be listed in the
  10142. History section of the Document). You may use the same title
  10143. as a previous version if the original publisher of that
  10144. version gives permission.
  10145. B. List on the Title Page, as authors, one or more persons or
  10146. entities responsible for authorship of the modifications in
  10147. the Modified Version, together with at least five of the
  10148. principal authors of the Document (all of its principal
  10149. authors, if it has fewer than five), unless they release you
  10150. from this requirement.
  10151. C. State on the Title page the name of the publisher of the
  10152. Modified Version, as the publisher.
  10153. D. Preserve all the copyright notices of the Document.
  10154. E. Add an appropriate copyright notice for your modifications
  10155. adjacent to the other copyright notices.
  10156. F. Include, immediately after the copyright notices, a license
  10157. notice giving the public permission to use the Modified
  10158. Version under the terms of this License, in the form shown in
  10159. the Addendum below.
  10160. G. Preserve in that license notice the full lists of Invariant
  10161. Sections and required Cover Texts given in the Document's
  10162. license notice.
  10163. H. Include an unaltered copy of this License.
  10164. I. Preserve the section Entitled "History", Preserve its Title,
  10165. and add to it an item stating at least the title, year, new
  10166. authors, and publisher of the Modified Version as given on the
  10167. Title Page. If there is no section Entitled "History" in the
  10168. Document, create one stating the title, year, authors, and
  10169. publisher of the Document as given on its Title Page, then add
  10170. an item describing the Modified Version as stated in the
  10171. previous sentence.
  10172. J. Preserve the network location, if any, given in the Document
  10173. for public access to a Transparent copy of the Document, and
  10174. likewise the network locations given in the Document for
  10175. previous versions it was based on. These may be placed in the
  10176. "History" section. You may omit a network location for a work
  10177. that was published at least four years before the Document
  10178. itself, or if the original publisher of the version it refers
  10179. to gives permission.
  10180. K. For any section Entitled "Acknowledgements" or "Dedications",
  10181. Preserve the Title of the section, and preserve in the section
  10182. all the substance and tone of each of the contributor
  10183. acknowledgements and/or dedications given therein.
  10184. L. Preserve all the Invariant Sections of the Document, unaltered
  10185. in their text and in their titles. Section numbers or the
  10186. equivalent are not considered part of the section titles.
  10187. M. Delete any section Entitled "Endorsements". Such a section
  10188. may not be included in the Modified Version.
  10189. N. Do not retitle any existing section to be Entitled
  10190. "Endorsements" or to conflict in title with any Invariant
  10191. Section.
  10192. O. Preserve any Warranty Disclaimers.
  10193. If the Modified Version includes new front-matter sections or
  10194. appendices that qualify as Secondary Sections and contain no
  10195. material copied from the Document, you may at your option designate
  10196. some or all of these sections as invariant. To do this, add their
  10197. titles to the list of Invariant Sections in the Modified Version's
  10198. license notice. These titles must be distinct from any other
  10199. section titles.
  10200. You may add a section Entitled "Endorsements", provided it contains
  10201. nothing but endorsements of your Modified Version by various
  10202. parties--for example, statements of peer review or that the text
  10203. has been approved by an organization as the authoritative
  10204. definition of a standard.
  10205. You may add a passage of up to five words as a Front-Cover Text,
  10206. and a passage of up to 25 words as a Back-Cover Text, to the end of
  10207. the list of Cover Texts in the Modified Version. Only one passage
  10208. of Front-Cover Text and one of Back-Cover Text may be added by (or
  10209. through arrangements made by) any one entity. If the Document
  10210. already includes a cover text for the same cover, previously added
  10211. by you or by arrangement made by the same entity you are acting on
  10212. behalf of, you may not add another; but you may replace the old
  10213. one, on explicit permission from the previous publisher that added
  10214. the old one.
  10215. The author(s) and publisher(s) of the Document do not by this
  10216. License give permission to use their names for publicity for or to
  10217. assert or imply endorsement of any Modified Version.
  10218. 5. COMBINING DOCUMENTS
  10219. You may combine the Document with other documents released under
  10220. this License, under the terms defined in section 4 above for
  10221. modified versions, provided that you include in the combination all
  10222. of the Invariant Sections of all of the original documents,
  10223. unmodified, and list them all as Invariant Sections of your
  10224. combined work in its license notice, and that you preserve all
  10225. their Warranty Disclaimers.
  10226. The combined work need only contain one copy of this License, and
  10227. multiple identical Invariant Sections may be replaced with a single
  10228. copy. If there are multiple Invariant Sections with the same name
  10229. but different contents, make the title of each such section unique
  10230. by adding at the end of it, in parentheses, the name of the
  10231. original author or publisher of that section if known, or else a
  10232. unique number. Make the same adjustment to the section titles in
  10233. the list of Invariant Sections in the license notice of the
  10234. combined work.
  10235. In the combination, you must combine any sections Entitled
  10236. "History" in the various original documents, forming one section
  10237. Entitled "History"; likewise combine any sections Entitled
  10238. "Acknowledgements", and any sections Entitled "Dedications". You
  10239. must delete all sections Entitled "Endorsements."
  10240. 6. COLLECTIONS OF DOCUMENTS
  10241. You may make a collection consisting of the Document and other
  10242. documents released under this License, and replace the individual
  10243. copies of this License in the various documents with a single copy
  10244. that is included in the collection, provided that you follow the
  10245. rules of this License for verbatim copying of each of the documents
  10246. in all other respects.
  10247. You may extract a single document from such a collection, and
  10248. distribute it individually under this License, provided you insert
  10249. a copy of this License into the extracted document, and follow this
  10250. License in all other respects regarding verbatim copying of that
  10251. document.
  10252. 7. AGGREGATION WITH INDEPENDENT WORKS
  10253. A compilation of the Document or its derivatives with other
  10254. separate and independent documents or works, in or on a volume of a
  10255. storage or distribution medium, is called an "aggregate" if the
  10256. copyright resulting from the compilation is not used to limit the
  10257. legal rights of the compilation's users beyond what the individual
  10258. works permit. When the Document is included in an aggregate, this
  10259. License does not apply to the other works in the aggregate which
  10260. are not themselves derivative works of the Document.
  10261. If the Cover Text requirement of section 3 is applicable to these
  10262. copies of the Document, then if the Document is less than one half
  10263. of the entire aggregate, the Document's Cover Texts may be placed
  10264. on covers that bracket the Document within the aggregate, or the
  10265. electronic equivalent of covers if the Document is in electronic
  10266. form. Otherwise they must appear on printed covers that bracket
  10267. the whole aggregate.
  10268. 8. TRANSLATION
  10269. Translation is considered a kind of modification, so you may
  10270. distribute translations of the Document under the terms of section
  10271. 4. Replacing Invariant Sections with translations requires special
  10272. permission from their copyright holders, but you may include
  10273. translations of some or all Invariant Sections in addition to the
  10274. original versions of these Invariant Sections. You may include a
  10275. translation of this License, and all the license notices in the
  10276. Document, and any Warranty Disclaimers, provided that you also
  10277. include the original English version of this License and the
  10278. original versions of those notices and disclaimers. In case of a
  10279. disagreement between the translation and the original version of
  10280. this License or a notice or disclaimer, the original version will
  10281. prevail.
  10282. If a section in the Document is Entitled "Acknowledgements",
  10283. "Dedications", or "History", the requirement (section 4) to
  10284. Preserve its Title (section 1) will typically require changing the
  10285. actual title.
  10286. 9. TERMINATION
  10287. You may not copy, modify, sublicense, or distribute the Document
  10288. except as expressly provided under this License. Any attempt
  10289. otherwise to copy, modify, sublicense, or distribute it is void,
  10290. and will automatically terminate your rights under this License.
  10291. However, if you cease all violation of this License, then your
  10292. license from a particular copyright holder is reinstated (a)
  10293. provisionally, unless and until the copyright holder explicitly and
  10294. finally terminates your license, and (b) permanently, if the
  10295. copyright holder fails to notify you of the violation by some
  10296. reasonable means prior to 60 days after the cessation.
  10297. Moreover, your license from a particular copyright holder is
  10298. reinstated permanently if the copyright holder notifies you of the
  10299. violation by some reasonable means, this is the first time you have
  10300. received notice of violation of this License (for any work) from
  10301. that copyright holder, and you cure the violation prior to 30 days
  10302. after your receipt of the notice.
  10303. Termination of your rights under this section does not terminate
  10304. the licenses of parties who have received copies or rights from you
  10305. under this License. If your rights have been terminated and not
  10306. permanently reinstated, receipt of a copy of some or all of the
  10307. same material does not give you any rights to use it.
  10308. 10. FUTURE REVISIONS OF THIS LICENSE
  10309. The Free Software Foundation may publish new, revised versions of
  10310. the GNU Free Documentation License from time to time. Such new
  10311. versions will be similar in spirit to the present version, but may
  10312. differ in detail to address new problems or concerns. See
  10313. <http://www.gnu.org/copyleft/>.
  10314. Each version of the License is given a distinguishing version
  10315. number. If the Document specifies that a particular numbered
  10316. version of this License "or any later version" applies to it, you
  10317. have the option of following the terms and conditions either of
  10318. that specified version or of any later version that has been
  10319. published (not as a draft) by the Free Software Foundation. If the
  10320. Document does not specify a version number of this License, you may
  10321. choose any version ever published (not as a draft) by the Free
  10322. Software Foundation. If the Document specifies that a proxy can
  10323. decide which future versions of this License can be used, that
  10324. proxy's public statement of acceptance of a version permanently
  10325. authorizes you to choose that version for the Document.
  10326. 11. RELICENSING
  10327. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  10328. World Wide Web server that publishes copyrightable works and also
  10329. provides prominent facilities for anybody to edit those works. A
  10330. public wiki that anybody can edit is an example of such a server.
  10331. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  10332. site means any set of copyrightable works thus published on the MMC
  10333. site.
  10334. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  10335. license published by Creative Commons Corporation, a not-for-profit
  10336. corporation with a principal place of business in San Francisco,
  10337. California, as well as future copyleft versions of that license
  10338. published by that same organization.
  10339. "Incorporate" means to publish or republish a Document, in whole or
  10340. in part, as part of another Document.
  10341. An MMC is "eligible for relicensing" if it is licensed under this
  10342. License, and if all works that were first published under this
  10343. License somewhere other than this MMC, and subsequently
  10344. incorporated in whole or in part into the MMC, (1) had no cover
  10345. texts or invariant sections, and (2) were thus incorporated prior
  10346. to November 1, 2008.
  10347. The operator of an MMC Site may republish an MMC contained in the
  10348. site under CC-BY-SA on the same site at any time before August 1,
  10349. 2009, provided the MMC is eligible for relicensing.
  10350. ADDENDUM: How to use this License for your documents
  10351. ====================================================
  10352. To use this License in a document you have written, include a copy of
  10353. the License in the document and put the following copyright and license
  10354. notices just after the title page:
  10355. Copyright (C) YEAR YOUR NAME.
  10356. Permission is granted to copy, distribute and/or modify this document
  10357. under the terms of the GNU Free Documentation License, Version 1.3
  10358. or any later version published by the Free Software Foundation;
  10359. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  10360. Texts. A copy of the license is included in the section entitled ``GNU
  10361. Free Documentation License''.
  10362. If you have Invariant Sections, Front-Cover Texts and Back-Cover
  10363. Texts, replace the "with...Texts." line with this:
  10364. with the Invariant Sections being LIST THEIR TITLES, with
  10365. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  10366. being LIST.
  10367. If you have Invariant Sections without Cover Texts, or some other
  10368. combination of the three, merge those two alternatives to suit the
  10369. situation.
  10370. If your document contains nontrivial examples of program code, we
  10371. recommend releasing these examples in parallel under your choice of free
  10372. software license, such as the GNU General Public License, to permit
  10373. their use in free software.
  10374. 
  10375. File: bfd.info, Node: BFD Index, Prev: GNU Free Documentation License, Up: Top
  10376. BFD Index
  10377. *********
  10378. �[index�]
  10379. * Menu:
  10380. * _bfd_error_handler: Error reporting. (line 112)
  10381. * _bfd_final_link_relocate: Relocating the section contents.
  10382. (line 22)
  10383. * _bfd_generic_link_add_archive_symbols: Adding symbols from an archive.
  10384. (line 15)
  10385. * _bfd_generic_link_add_one_symbol: Adding symbols from an object file.
  10386. (line 19)
  10387. * _bfd_generic_link_check_relocs: Writing the symbol table.
  10388. (line 144)
  10389. * _bfd_generic_link_hide_symbol: Writing the symbol table.
  10390. (line 83)
  10391. * _bfd_generic_make_empty_symbol: symbol handling functions.
  10392. (line 96)
  10393. * _bfd_generic_set_reloc: howto manager. (line 3529)
  10394. * _bfd_generic_verify_endian_match: Writing the symbol table.
  10395. (line 172)
  10396. * _bfd_link_add_symbols in target vector: Adding Symbols to the Hash Table.
  10397. (line 6)
  10398. * _bfd_link_final_link in target vector: Performing the Final Link.
  10399. (line 6)
  10400. * _bfd_link_hash_table_create in target vector: Creating a Linker Hash Table.
  10401. (line 6)
  10402. * _bfd_relocate_contents: Relocating the section contents.
  10403. (line 22)
  10404. * _bfd_unrecognized_reloc: howto manager. (line 3541)
  10405. * aout_SIZE_machine_type: aout. (line 145)
  10406. * aout_SIZE_mkobject: aout. (line 137)
  10407. * aout_SIZE_new_section_hook: aout. (line 175)
  10408. * aout_SIZE_set_arch_mach: aout. (line 162)
  10409. * aout_SIZE_some_aout_object_p: aout. (line 123)
  10410. * aout_SIZE_swap_exec_header_in: aout. (line 99)
  10411. * aout_SIZE_swap_exec_header_out: aout. (line 111)
  10412. * arelent_chain: typedef arelent. (line 315)
  10413. * BFD: Overview. (line 6)
  10414. * BFD canonical format: Canonical format. (line 11)
  10415. * bfd_alloc: Opening and Closing.
  10416. (line 239)
  10417. * bfd_alt_mach_code: Miscellaneous. (line 292)
  10418. * bfd_arch_bits_per_address: Architectures. (line 667)
  10419. * bfd_arch_bits_per_byte: Architectures. (line 659)
  10420. * bfd_arch_default_fill: Architectures. (line 749)
  10421. * bfd_arch_get_compatible: Architectures. (line 602)
  10422. * bfd_arch_list: Architectures. (line 593)
  10423. * bfd_arch_mach_octets_per_byte: Architectures. (line 737)
  10424. * BFD_ARELOC_BFIN_ADD: howto manager. (line 1144)
  10425. * BFD_ARELOC_BFIN_ADDR: howto manager. (line 1178)
  10426. * BFD_ARELOC_BFIN_AND: howto manager. (line 1158)
  10427. * BFD_ARELOC_BFIN_COMP: howto manager. (line 1172)
  10428. * BFD_ARELOC_BFIN_CONST: howto manager. (line 1142)
  10429. * BFD_ARELOC_BFIN_DIV: howto manager. (line 1150)
  10430. * BFD_ARELOC_BFIN_HWPAGE: howto manager. (line 1176)
  10431. * BFD_ARELOC_BFIN_LAND: howto manager. (line 1164)
  10432. * BFD_ARELOC_BFIN_LEN: howto manager. (line 1168)
  10433. * BFD_ARELOC_BFIN_LOR: howto manager. (line 1166)
  10434. * BFD_ARELOC_BFIN_LSHIFT: howto manager. (line 1154)
  10435. * BFD_ARELOC_BFIN_MOD: howto manager. (line 1152)
  10436. * BFD_ARELOC_BFIN_MULT: howto manager. (line 1148)
  10437. * BFD_ARELOC_BFIN_NEG: howto manager. (line 1170)
  10438. * BFD_ARELOC_BFIN_OR: howto manager. (line 1160)
  10439. * BFD_ARELOC_BFIN_PAGE: howto manager. (line 1174)
  10440. * BFD_ARELOC_BFIN_PUSH: howto manager. (line 1140)
  10441. * BFD_ARELOC_BFIN_RSHIFT: howto manager. (line 1156)
  10442. * BFD_ARELOC_BFIN_SUB: howto manager. (line 1146)
  10443. * BFD_ARELOC_BFIN_XOR: howto manager. (line 1162)
  10444. * bfd_cache_close: File Caching. (line 25)
  10445. * bfd_cache_close_all: File Caching. (line 38)
  10446. * bfd_cache_init: File Caching. (line 17)
  10447. * bfd_calc_gnu_debuglink_crc32: Opening and Closing.
  10448. (line 257)
  10449. * bfd_canonicalize_reloc: Miscellaneous. (line 18)
  10450. * bfd_canonicalize_symtab: symbol handling functions.
  10451. (line 52)
  10452. * bfd_check_compression_header: Miscellaneous. (line 364)
  10453. * bfd_check_format: Formats. (line 20)
  10454. * bfd_check_format_matches: Formats. (line 51)
  10455. * bfd_check_overflow: typedef arelent. (line 328)
  10456. * bfd_close: Opening and Closing.
  10457. (line 161)
  10458. * bfd_close_all_done: Opening and Closing.
  10459. (line 179)
  10460. * bfd_coff_backend_data: coff. (line 296)
  10461. * bfd_convert_section_contents: Miscellaneous. (line 402)
  10462. * bfd_convert_section_size: Miscellaneous. (line 392)
  10463. * bfd_copy_private_bfd_data: Miscellaneous. (line 159)
  10464. * bfd_copy_private_header_data: Miscellaneous. (line 142)
  10465. * bfd_copy_private_section_data: section prototypes. (line 279)
  10466. * bfd_copy_private_symbol_data: symbol handling functions.
  10467. (line 145)
  10468. * bfd_core_file_failing_command: Core Files. (line 11)
  10469. * bfd_core_file_failing_signal: Core Files. (line 20)
  10470. * bfd_core_file_pid: Core Files. (line 29)
  10471. * bfd_create: Opening and Closing.
  10472. (line 198)
  10473. * bfd_create_gnu_debuglink_section: Opening and Closing.
  10474. (line 413)
  10475. * bfd_decode_symclass: symbol handling functions.
  10476. (line 116)
  10477. * bfd_default_arch_struct: Architectures. (line 614)
  10478. * bfd_default_compatible: Architectures. (line 676)
  10479. * bfd_default_reloc_type_lookup: howto manager. (line 3453)
  10480. * bfd_default_scan: Architectures. (line 685)
  10481. * bfd_default_set_arch_mach: Architectures. (line 632)
  10482. * bfd_demangle: Miscellaneous. (line 343)
  10483. * bfd_emul_get_commonpagesize: Miscellaneous. (line 323)
  10484. * bfd_emul_get_maxpagesize: Miscellaneous. (line 303)
  10485. * bfd_emul_set_commonpagesize: Miscellaneous. (line 334)
  10486. * bfd_emul_set_maxpagesize: Miscellaneous. (line 314)
  10487. * bfd_errmsg: Error reporting. (line 79)
  10488. * bfd_fdopenr: Opening and Closing.
  10489. (line 56)
  10490. * bfd_fill_in_gnu_debuglink_section: Opening and Closing.
  10491. (line 427)
  10492. * bfd_find_target: bfd_target. (line 570)
  10493. * bfd_find_version_for_sym: Writing the symbol table.
  10494. (line 111)
  10495. * bfd_flavour_name: bfd_target. (line 633)
  10496. * bfd_follow_build_id_debuglink: Opening and Closing.
  10497. (line 487)
  10498. * bfd_follow_gnu_debugaltlink: Opening and Closing.
  10499. (line 393)
  10500. * bfd_follow_gnu_debuglink: Opening and Closing.
  10501. (line 372)
  10502. * bfd_fopen: Opening and Closing.
  10503. (line 11)
  10504. * bfd_format_string: Formats. (line 78)
  10505. * bfd_generic_define_common_symbol: Writing the symbol table.
  10506. (line 69)
  10507. * bfd_generic_define_start_stop: Writing the symbol table.
  10508. (line 97)
  10509. * bfd_generic_discard_group: section prototypes. (line 312)
  10510. * bfd_generic_gc_sections: howto manager. (line 3484)
  10511. * bfd_generic_get_relocated_section_contents: howto manager. (line 3514)
  10512. * bfd_generic_group_name: section prototypes. (line 304)
  10513. * bfd_generic_is_group_section: section prototypes. (line 296)
  10514. * bfd_generic_lookup_section_flags: howto manager. (line 3494)
  10515. * bfd_generic_merge_sections: howto manager. (line 3504)
  10516. * bfd_generic_relax_section: howto manager. (line 3471)
  10517. * bfd_get_alt_debug_link_info: Opening and Closing.
  10518. (line 311)
  10519. * bfd_get_arch: Architectures. (line 643)
  10520. * bfd_get_arch_info: Architectures. (line 695)
  10521. * bfd_get_arch_size: Miscellaneous. (line 63)
  10522. * bfd_get_compression_header_size: Miscellaneous. (line 381)
  10523. * bfd_get_debug_link_info: Opening and Closing.
  10524. (line 293)
  10525. * bfd_get_debug_link_info_1: Opening and Closing.
  10526. (line 271)
  10527. * bfd_get_error: Error reporting. (line 49)
  10528. * bfd_get_file_size: Miscellaneous. (line 493)
  10529. * bfd_get_gp_size: Miscellaneous. (line 106)
  10530. * bfd_get_linker_section: section prototypes. (line 37)
  10531. * bfd_get_mach: Architectures. (line 651)
  10532. * bfd_get_mtime: Miscellaneous. (line 454)
  10533. * bfd_get_next_mapent: Archives. (line 57)
  10534. * bfd_get_next_section_by_name: section prototypes. (line 25)
  10535. * bfd_get_reloc_code_name: howto manager. (line 3462)
  10536. * bfd_get_reloc_size: typedef arelent. (line 306)
  10537. * bfd_get_reloc_upper_bound: Miscellaneous. (line 8)
  10538. * bfd_get_section_by_name: section prototypes. (line 16)
  10539. * bfd_get_section_by_name_if: section prototypes. (line 46)
  10540. * bfd_get_section_contents: section prototypes. (line 252)
  10541. * bfd_get_sign_extend_vma: Miscellaneous. (line 78)
  10542. * bfd_get_size: Miscellaneous. (line 463)
  10543. * bfd_get_size <1>: Internal. (line 24)
  10544. * bfd_get_symtab_upper_bound: symbol handling functions.
  10545. (line 5)
  10546. * bfd_get_target_info: bfd_target. (line 586)
  10547. * bfd_get_unique_section_name: section prototypes. (line 65)
  10548. * bfd_hash_allocate: Creating and Freeing a Hash Table.
  10549. (line 17)
  10550. * bfd_hash_lookup: Looking Up or Entering a String.
  10551. (line 6)
  10552. * bfd_hash_newfunc: Creating and Freeing a Hash Table.
  10553. (line 12)
  10554. * bfd_hash_set_default_size: Creating and Freeing a Hash Table.
  10555. (line 25)
  10556. * bfd_hash_table_free: Creating and Freeing a Hash Table.
  10557. (line 21)
  10558. * bfd_hash_table_init: Creating and Freeing a Hash Table.
  10559. (line 6)
  10560. * bfd_hash_table_init_n: Creating and Freeing a Hash Table.
  10561. (line 6)
  10562. * bfd_hash_traverse: Traversing a Hash Table.
  10563. (line 6)
  10564. * bfd_hide_sym_by_version: Writing the symbol table.
  10565. (line 123)
  10566. * bfd_h_put_size: Internal. (line 111)
  10567. * bfd_init: Initialization. (line 10)
  10568. * bfd_install_relocation: typedef arelent. (line 382)
  10569. * bfd_is_local_label: symbol handling functions.
  10570. (line 17)
  10571. * bfd_is_local_label_name: symbol handling functions.
  10572. (line 26)
  10573. * bfd_is_target_special_symbol: symbol handling functions.
  10574. (line 39)
  10575. * bfd_is_undefined_symclass: symbol handling functions.
  10576. (line 125)
  10577. * bfd_iterate_over_targets: bfd_target. (line 621)
  10578. * bfd_link_check_relocs: Writing the symbol table.
  10579. (line 133)
  10580. * bfd_link_split_section: Writing the symbol table.
  10581. (line 43)
  10582. * bfd_log2: Internal. (line 180)
  10583. * bfd_lookup_arch: Architectures. (line 703)
  10584. * bfd_make_debug_symbol: symbol handling functions.
  10585. (line 106)
  10586. * bfd_make_empty_symbol: symbol handling functions.
  10587. (line 81)
  10588. * bfd_make_readable: Opening and Closing.
  10589. (line 225)
  10590. * bfd_make_section: section prototypes. (line 143)
  10591. * bfd_make_section_anyway: section prototypes. (line 115)
  10592. * bfd_make_section_anyway_with_flags: section prototypes. (line 97)
  10593. * bfd_make_section_old_way: section prototypes. (line 77)
  10594. * bfd_make_section_with_flags: section prototypes. (line 131)
  10595. * bfd_make_writable: Opening and Closing.
  10596. (line 211)
  10597. * bfd_malloc_and_get_section: section prototypes. (line 269)
  10598. * bfd_map_over_sections: section prototypes. (line 176)
  10599. * bfd_merge_private_bfd_data: Writing the symbol table.
  10600. (line 155)
  10601. * bfd_mmap: Miscellaneous. (line 502)
  10602. * bfd_octets_per_byte: Architectures. (line 726)
  10603. * bfd_openr: Opening and Closing.
  10604. (line 37)
  10605. * bfd_openr_iovec: Opening and Closing.
  10606. (line 95)
  10607. * bfd_openr_next_archived_file: Archives. (line 83)
  10608. * bfd_openstreamr: Opening and Closing.
  10609. (line 82)
  10610. * bfd_openw: Opening and Closing.
  10611. (line 146)
  10612. * bfd_open_file: File Caching. (line 51)
  10613. * bfd_perform_relocation: typedef arelent. (line 357)
  10614. * bfd_perror: Error reporting. (line 88)
  10615. * bfd_printable_arch_mach: Architectures. (line 714)
  10616. * bfd_printable_name: Architectures. (line 574)
  10617. * bfd_print_symbol_vandf: symbol handling functions.
  10618. (line 73)
  10619. * bfd_put_size: Internal. (line 21)
  10620. * BFD_RELOC_12_PCREL: howto manager. (line 37)
  10621. * BFD_RELOC_14: howto manager. (line 30)
  10622. * BFD_RELOC_16: howto manager. (line 29)
  10623. * BFD_RELOC_16_BASEREL: howto manager. (line 90)
  10624. * BFD_RELOC_16_GOTOFF: howto manager. (line 49)
  10625. * BFD_RELOC_16_GOT_PCREL: howto manager. (line 46)
  10626. * BFD_RELOC_16_PCREL: howto manager. (line 36)
  10627. * BFD_RELOC_16_PCREL_S2: howto manager. (line 100)
  10628. * BFD_RELOC_16_PLTOFF: howto manager. (line 61)
  10629. * BFD_RELOC_16_PLT_PCREL: howto manager. (line 57)
  10630. * BFD_RELOC_23_PCREL_S2: howto manager. (line 101)
  10631. * BFD_RELOC_24: howto manager. (line 28)
  10632. * BFD_RELOC_24_PCREL: howto manager. (line 35)
  10633. * BFD_RELOC_24_PLT_PCREL: howto manager. (line 56)
  10634. * BFD_RELOC_26: howto manager. (line 27)
  10635. * BFD_RELOC_32: howto manager. (line 26)
  10636. * BFD_RELOC_32_BASEREL: howto manager. (line 89)
  10637. * BFD_RELOC_32_GOTOFF: howto manager. (line 48)
  10638. * BFD_RELOC_32_GOT_PCREL: howto manager. (line 45)
  10639. * BFD_RELOC_32_PCREL: howto manager. (line 34)
  10640. * BFD_RELOC_32_PCREL_S2: howto manager. (line 99)
  10641. * BFD_RELOC_32_PLTOFF: howto manager. (line 60)
  10642. * BFD_RELOC_32_PLT_PCREL: howto manager. (line 55)
  10643. * BFD_RELOC_32_SECREL: howto manager. (line 43)
  10644. * BFD_RELOC_386_COPY: howto manager. (line 523)
  10645. * BFD_RELOC_386_GLOB_DAT: howto manager. (line 524)
  10646. * BFD_RELOC_386_GOT32: howto manager. (line 521)
  10647. * BFD_RELOC_386_GOT32X: howto manager. (line 545)
  10648. * BFD_RELOC_386_GOTOFF: howto manager. (line 527)
  10649. * BFD_RELOC_386_GOTPC: howto manager. (line 528)
  10650. * BFD_RELOC_386_IRELATIVE: howto manager. (line 544)
  10651. * BFD_RELOC_386_JUMP_SLOT: howto manager. (line 525)
  10652. * BFD_RELOC_386_PLT32: howto manager. (line 522)
  10653. * BFD_RELOC_386_RELATIVE: howto manager. (line 526)
  10654. * BFD_RELOC_386_TLS_DESC: howto manager. (line 543)
  10655. * BFD_RELOC_386_TLS_DESC_CALL: howto manager. (line 542)
  10656. * BFD_RELOC_386_TLS_DTPMOD32: howto manager. (line 538)
  10657. * BFD_RELOC_386_TLS_DTPOFF32: howto manager. (line 539)
  10658. * BFD_RELOC_386_TLS_GD: howto manager. (line 533)
  10659. * BFD_RELOC_386_TLS_GOTDESC: howto manager. (line 541)
  10660. * BFD_RELOC_386_TLS_GOTIE: howto manager. (line 531)
  10661. * BFD_RELOC_386_TLS_IE: howto manager. (line 530)
  10662. * BFD_RELOC_386_TLS_IE_32: howto manager. (line 536)
  10663. * BFD_RELOC_386_TLS_LDM: howto manager. (line 534)
  10664. * BFD_RELOC_386_TLS_LDO_32: howto manager. (line 535)
  10665. * BFD_RELOC_386_TLS_LE: howto manager. (line 532)
  10666. * BFD_RELOC_386_TLS_LE_32: howto manager. (line 537)
  10667. * BFD_RELOC_386_TLS_TPOFF: howto manager. (line 529)
  10668. * BFD_RELOC_386_TLS_TPOFF32: howto manager. (line 540)
  10669. * BFD_RELOC_390_12: howto manager. (line 1950)
  10670. * BFD_RELOC_390_20: howto manager. (line 2031)
  10671. * BFD_RELOC_390_COPY: howto manager. (line 1956)
  10672. * BFD_RELOC_390_GLOB_DAT: howto manager. (line 1958)
  10673. * BFD_RELOC_390_GOT12: howto manager. (line 1952)
  10674. * BFD_RELOC_390_GOT16: howto manager. (line 1966)
  10675. * BFD_RELOC_390_GOT20: howto manager. (line 2032)
  10676. * BFD_RELOC_390_GOT64: howto manager. (line 1986)
  10677. * BFD_RELOC_390_GOTENT: howto manager. (line 1990)
  10678. * BFD_RELOC_390_GOTOFF64: howto manager. (line 1992)
  10679. * BFD_RELOC_390_GOTPC: howto manager. (line 1964)
  10680. * BFD_RELOC_390_GOTPCDBL: howto manager. (line 1984)
  10681. * BFD_RELOC_390_GOTPLT12: howto manager. (line 1994)
  10682. * BFD_RELOC_390_GOTPLT16: howto manager. (line 1996)
  10683. * BFD_RELOC_390_GOTPLT20: howto manager. (line 2033)
  10684. * BFD_RELOC_390_GOTPLT32: howto manager. (line 1998)
  10685. * BFD_RELOC_390_GOTPLT64: howto manager. (line 2000)
  10686. * BFD_RELOC_390_GOTPLTENT: howto manager. (line 2002)
  10687. * BFD_RELOC_390_IRELATIVE: howto manager. (line 2036)
  10688. * BFD_RELOC_390_JMP_SLOT: howto manager. (line 1960)
  10689. * BFD_RELOC_390_PC12DBL: howto manager. (line 1968)
  10690. * BFD_RELOC_390_PC16DBL: howto manager. (line 1972)
  10691. * BFD_RELOC_390_PC24DBL: howto manager. (line 1976)
  10692. * BFD_RELOC_390_PC32DBL: howto manager. (line 1980)
  10693. * BFD_RELOC_390_PLT12DBL: howto manager. (line 1970)
  10694. * BFD_RELOC_390_PLT16DBL: howto manager. (line 1974)
  10695. * BFD_RELOC_390_PLT24DBL: howto manager. (line 1978)
  10696. * BFD_RELOC_390_PLT32: howto manager. (line 1954)
  10697. * BFD_RELOC_390_PLT32DBL: howto manager. (line 1982)
  10698. * BFD_RELOC_390_PLT64: howto manager. (line 1988)
  10699. * BFD_RELOC_390_PLTOFF16: howto manager. (line 2004)
  10700. * BFD_RELOC_390_PLTOFF32: howto manager. (line 2006)
  10701. * BFD_RELOC_390_PLTOFF64: howto manager. (line 2008)
  10702. * BFD_RELOC_390_RELATIVE: howto manager. (line 1962)
  10703. * BFD_RELOC_390_TLS_DTPMOD: howto manager. (line 2027)
  10704. * BFD_RELOC_390_TLS_DTPOFF: howto manager. (line 2028)
  10705. * BFD_RELOC_390_TLS_GD32: howto manager. (line 2013)
  10706. * BFD_RELOC_390_TLS_GD64: howto manager. (line 2014)
  10707. * BFD_RELOC_390_TLS_GDCALL: howto manager. (line 2011)
  10708. * BFD_RELOC_390_TLS_GOTIE12: howto manager. (line 2015)
  10709. * BFD_RELOC_390_TLS_GOTIE20: howto manager. (line 2034)
  10710. * BFD_RELOC_390_TLS_GOTIE32: howto manager. (line 2016)
  10711. * BFD_RELOC_390_TLS_GOTIE64: howto manager. (line 2017)
  10712. * BFD_RELOC_390_TLS_IE32: howto manager. (line 2020)
  10713. * BFD_RELOC_390_TLS_IE64: howto manager. (line 2021)
  10714. * BFD_RELOC_390_TLS_IEENT: howto manager. (line 2022)
  10715. * BFD_RELOC_390_TLS_LDCALL: howto manager. (line 2012)
  10716. * BFD_RELOC_390_TLS_LDM32: howto manager. (line 2018)
  10717. * BFD_RELOC_390_TLS_LDM64: howto manager. (line 2019)
  10718. * BFD_RELOC_390_TLS_LDO32: howto manager. (line 2025)
  10719. * BFD_RELOC_390_TLS_LDO64: howto manager. (line 2026)
  10720. * BFD_RELOC_390_TLS_LE32: howto manager. (line 2023)
  10721. * BFD_RELOC_390_TLS_LE64: howto manager. (line 2024)
  10722. * BFD_RELOC_390_TLS_LOAD: howto manager. (line 2010)
  10723. * BFD_RELOC_390_TLS_TPOFF: howto manager. (line 2029)
  10724. * BFD_RELOC_64: howto manager. (line 25)
  10725. * BFD_RELOC_64_PCREL: howto manager. (line 33)
  10726. * BFD_RELOC_64_PLTOFF: howto manager. (line 59)
  10727. * BFD_RELOC_64_PLT_PCREL: howto manager. (line 54)
  10728. * BFD_RELOC_68K_GLOB_DAT: howto manager. (line 70)
  10729. * BFD_RELOC_68K_JMP_SLOT: howto manager. (line 71)
  10730. * BFD_RELOC_68K_RELATIVE: howto manager. (line 72)
  10731. * BFD_RELOC_68K_TLS_GD16: howto manager. (line 74)
  10732. * BFD_RELOC_68K_TLS_GD32: howto manager. (line 73)
  10733. * BFD_RELOC_68K_TLS_GD8: howto manager. (line 75)
  10734. * BFD_RELOC_68K_TLS_IE16: howto manager. (line 83)
  10735. * BFD_RELOC_68K_TLS_IE32: howto manager. (line 82)
  10736. * BFD_RELOC_68K_TLS_IE8: howto manager. (line 84)
  10737. * BFD_RELOC_68K_TLS_LDM16: howto manager. (line 77)
  10738. * BFD_RELOC_68K_TLS_LDM32: howto manager. (line 76)
  10739. * BFD_RELOC_68K_TLS_LDM8: howto manager. (line 78)
  10740. * BFD_RELOC_68K_TLS_LDO16: howto manager. (line 80)
  10741. * BFD_RELOC_68K_TLS_LDO32: howto manager. (line 79)
  10742. * BFD_RELOC_68K_TLS_LDO8: howto manager. (line 81)
  10743. * BFD_RELOC_68K_TLS_LE16: howto manager. (line 86)
  10744. * BFD_RELOC_68K_TLS_LE32: howto manager. (line 85)
  10745. * BFD_RELOC_68K_TLS_LE8: howto manager. (line 87)
  10746. * BFD_RELOC_8: howto manager. (line 31)
  10747. * BFD_RELOC_8_BASEREL: howto manager. (line 94)
  10748. * BFD_RELOC_8_FFnn: howto manager. (line 97)
  10749. * BFD_RELOC_8_GOTOFF: howto manager. (line 53)
  10750. * BFD_RELOC_8_GOT_PCREL: howto manager. (line 47)
  10751. * BFD_RELOC_8_PCREL: howto manager. (line 38)
  10752. * BFD_RELOC_8_PLTOFF: howto manager. (line 65)
  10753. * BFD_RELOC_8_PLT_PCREL: howto manager. (line 58)
  10754. * BFD_RELOC_AARCH64_16: howto manager. (line 2794)
  10755. * BFD_RELOC_AARCH64_16_PCREL: howto manager. (line 2800)
  10756. * BFD_RELOC_AARCH64_32: howto manager. (line 2793)
  10757. * BFD_RELOC_AARCH64_32_PCREL: howto manager. (line 2799)
  10758. * BFD_RELOC_AARCH64_64: howto manager. (line 2792)
  10759. * BFD_RELOC_AARCH64_64_PCREL: howto manager. (line 2798)
  10760. * BFD_RELOC_AARCH64_ADD_LO12: howto manager. (line 2873)
  10761. * BFD_RELOC_AARCH64_ADR_GOT_PAGE: howto manager. (line 2919)
  10762. * BFD_RELOC_AARCH64_ADR_HI21_NC_PCREL: howto manager. (line 2869)
  10763. * BFD_RELOC_AARCH64_ADR_HI21_PCREL: howto manager. (line 2866)
  10764. * BFD_RELOC_AARCH64_ADR_LO21_PCREL: howto manager. (line 2863)
  10765. * BFD_RELOC_AARCH64_BRANCH19: howto manager. (line 2885)
  10766. * BFD_RELOC_AARCH64_CALL26: howto manager. (line 2893)
  10767. * BFD_RELOC_AARCH64_COPY: howto manager. (line 3086)
  10768. * BFD_RELOC_AARCH64_GAS_INTERNAL_FIXUP: howto manager. (line 3110)
  10769. * BFD_RELOC_AARCH64_GLOB_DAT: howto manager. (line 3088)
  10770. * BFD_RELOC_AARCH64_GOT_LD_PREL19: howto manager. (line 2913)
  10771. * BFD_RELOC_AARCH64_IRELATIVE: howto manager. (line 3102)
  10772. * BFD_RELOC_AARCH64_JUMP26: howto manager. (line 2889)
  10773. * BFD_RELOC_AARCH64_JUMP_SLOT: howto manager. (line 3090)
  10774. * BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14: howto manager. (line 2940)
  10775. * BFD_RELOC_AARCH64_LD32_GOT_LO12_NC: howto manager. (line 2927)
  10776. * BFD_RELOC_AARCH64_LD64_GOTOFF_LO15: howto manager. (line 2937)
  10777. * BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15: howto manager. (line 2943)
  10778. * BFD_RELOC_AARCH64_LD64_GOT_LO12_NC: howto manager. (line 2923)
  10779. * BFD_RELOC_AARCH64_LDST128_LO12: howto manager. (line 2909)
  10780. * BFD_RELOC_AARCH64_LDST16_LO12: howto manager. (line 2897)
  10781. * BFD_RELOC_AARCH64_LDST32_LO12: howto manager. (line 2901)
  10782. * BFD_RELOC_AARCH64_LDST64_LO12: howto manager. (line 2905)
  10783. * BFD_RELOC_AARCH64_LDST8_LO12: howto manager. (line 2877)
  10784. * BFD_RELOC_AARCH64_LDST_LO12: howto manager. (line 3113)
  10785. * BFD_RELOC_AARCH64_LD_GOT_LO12_NC: howto manager. (line 3131)
  10786. * BFD_RELOC_AARCH64_LD_LO19_PCREL: howto manager. (line 2859)
  10787. * BFD_RELOC_AARCH64_MOVW_G0: howto manager. (line 2803)
  10788. * BFD_RELOC_AARCH64_MOVW_G0_NC: howto manager. (line 2806)
  10789. * BFD_RELOC_AARCH64_MOVW_G0_S: howto manager. (line 2824)
  10790. * BFD_RELOC_AARCH64_MOVW_G1: howto manager. (line 2809)
  10791. * BFD_RELOC_AARCH64_MOVW_G1_NC: howto manager. (line 2812)
  10792. * BFD_RELOC_AARCH64_MOVW_G1_S: howto manager. (line 2828)
  10793. * BFD_RELOC_AARCH64_MOVW_G2: howto manager. (line 2815)
  10794. * BFD_RELOC_AARCH64_MOVW_G2_NC: howto manager. (line 2818)
  10795. * BFD_RELOC_AARCH64_MOVW_G2_S: howto manager. (line 2832)
  10796. * BFD_RELOC_AARCH64_MOVW_G3: howto manager. (line 2821)
  10797. * BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC: howto manager. (line 2931)
  10798. * BFD_RELOC_AARCH64_MOVW_GOTOFF_G1: howto manager. (line 2934)
  10799. * BFD_RELOC_AARCH64_MOVW_PREL_G0: howto manager. (line 2836)
  10800. * BFD_RELOC_AARCH64_MOVW_PREL_G0_NC: howto manager. (line 2840)
  10801. * BFD_RELOC_AARCH64_MOVW_PREL_G1: howto manager. (line 2844)
  10802. * BFD_RELOC_AARCH64_MOVW_PREL_G1_NC: howto manager. (line 2847)
  10803. * BFD_RELOC_AARCH64_MOVW_PREL_G2: howto manager. (line 2850)
  10804. * BFD_RELOC_AARCH64_MOVW_PREL_G2_NC: howto manager. (line 2853)
  10805. * BFD_RELOC_AARCH64_MOVW_PREL_G3: howto manager. (line 2856)
  10806. * BFD_RELOC_AARCH64_NONE: howto manager. (line 2790)
  10807. * BFD_RELOC_AARCH64_NULL: howto manager. (line 2788)
  10808. * BFD_RELOC_AARCH64_RELATIVE: howto manager. (line 3092)
  10809. * BFD_RELOC_AARCH64_RELOC_END: howto manager. (line 3104)
  10810. * BFD_RELOC_AARCH64_RELOC_START: howto manager. (line 2783)
  10811. * BFD_RELOC_AARCH64_TLSDESC: howto manager. (line 3100)
  10812. * BFD_RELOC_AARCH64_TLSDESC_ADD: howto manager. (line 3082)
  10813. * BFD_RELOC_AARCH64_TLSDESC_ADD_LO12: howto manager. (line 3074)
  10814. * BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE21: howto manager. (line 3068)
  10815. * BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21: howto manager. (line 3066)
  10816. * BFD_RELOC_AARCH64_TLSDESC_CALL: howto manager. (line 3084)
  10817. * BFD_RELOC_AARCH64_TLSDESC_LD32_LO12_NC: howto manager. (line 3072)
  10818. * BFD_RELOC_AARCH64_TLSDESC_LD64_LO12: howto manager. (line 3070)
  10819. * BFD_RELOC_AARCH64_TLSDESC_LDR: howto manager. (line 3080)
  10820. * BFD_RELOC_AARCH64_TLSDESC_LD_LO12_NC: howto manager. (line 3137)
  10821. * BFD_RELOC_AARCH64_TLSDESC_LD_PREL19: howto manager. (line 3064)
  10822. * BFD_RELOC_AARCH64_TLSDESC_OFF_G0_NC: howto manager. (line 3078)
  10823. * BFD_RELOC_AARCH64_TLSDESC_OFF_G1: howto manager. (line 3076)
  10824. * BFD_RELOC_AARCH64_TLSGD_ADD_LO12_NC: howto manager. (line 2953)
  10825. * BFD_RELOC_AARCH64_TLSGD_ADR_PAGE21: howto manager. (line 2946)
  10826. * BFD_RELOC_AARCH64_TLSGD_ADR_PREL21: howto manager. (line 2951)
  10827. * BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC: howto manager. (line 2957)
  10828. * BFD_RELOC_AARCH64_TLSGD_MOVW_G1: howto manager. (line 2959)
  10829. * BFD_RELOC_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21: howto manager.
  10830. (line 2961)
  10831. * BFD_RELOC_AARCH64_TLSIE_LD32_GOTTPREL_LO12_NC: howto manager.
  10832. (line 2965)
  10833. * BFD_RELOC_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC: howto manager.
  10834. (line 2963)
  10835. * BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_LO12_NC: howto manager.
  10836. (line 3134)
  10837. * BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19: howto manager. (line 2967)
  10838. * BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC: howto manager.
  10839. (line 2969)
  10840. * BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G1: howto manager. (line 2971)
  10841. * BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_HI12: howto manager. (line 2973)
  10842. * BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12: howto manager. (line 2975)
  10843. * BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC: howto manager. (line 2977)
  10844. * BFD_RELOC_AARCH64_TLSLD_ADD_LO12_NC: howto manager. (line 2980)
  10845. * BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21: howto manager. (line 2984)
  10846. * BFD_RELOC_AARCH64_TLSLD_ADR_PREL21: howto manager. (line 2987)
  10847. * BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12: howto manager. (line 2990)
  10848. * BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC: howto manager.
  10849. (line 2993)
  10850. * BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12: howto manager. (line 2996)
  10851. * BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC: howto manager.
  10852. (line 2999)
  10853. * BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12: howto manager. (line 3002)
  10854. * BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC: howto manager.
  10855. (line 3005)
  10856. * BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12: howto manager. (line 3008)
  10857. * BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC: howto manager.
  10858. (line 3011)
  10859. * BFD_RELOC_AARCH64_TLSLD_LDST_DTPREL_LO12: howto manager. (line 3117)
  10860. * BFD_RELOC_AARCH64_TLSLD_LDST_DTPREL_LO12_NC: howto manager.
  10861. (line 3121)
  10862. * BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0: howto manager. (line 3014)
  10863. * BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0_NC: howto manager. (line 3016)
  10864. * BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1: howto manager. (line 3018)
  10865. * BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1_NC: howto manager. (line 3020)
  10866. * BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G2: howto manager. (line 3022)
  10867. * BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_HI12: howto manager. (line 3034)
  10868. * BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12: howto manager. (line 3036)
  10869. * BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12_NC: howto manager. (line 3038)
  10870. * BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12: howto manager. (line 3040)
  10871. * BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC: howto manager.
  10872. (line 3043)
  10873. * BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12: howto manager. (line 3046)
  10874. * BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC: howto manager.
  10875. (line 3049)
  10876. * BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12: howto manager. (line 3052)
  10877. * BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC: howto manager.
  10878. (line 3055)
  10879. * BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12: howto manager. (line 3058)
  10880. * BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC: howto manager.
  10881. (line 3061)
  10882. * BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12: howto manager. (line 3124)
  10883. * BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC: howto manager. (line 3128)
  10884. * BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0: howto manager. (line 3030)
  10885. * BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0_NC: howto manager. (line 3032)
  10886. * BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1: howto manager. (line 3026)
  10887. * BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1_NC: howto manager. (line 3028)
  10888. * BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G2: howto manager. (line 3024)
  10889. * BFD_RELOC_AARCH64_TLS_DTPMOD: howto manager. (line 3094)
  10890. * BFD_RELOC_AARCH64_TLS_DTPREL: howto manager. (line 3096)
  10891. * BFD_RELOC_AARCH64_TLS_TPREL: howto manager. (line 3098)
  10892. * BFD_RELOC_AARCH64_TSTBR14: howto manager. (line 2881)
  10893. * BFD_RELOC_AC_SECTOFF_S9: howto manager. (line 1062)
  10894. * BFD_RELOC_AC_SECTOFF_S9_1: howto manager. (line 1063)
  10895. * BFD_RELOC_AC_SECTOFF_S9_2: howto manager. (line 1064)
  10896. * BFD_RELOC_AC_SECTOFF_U8: howto manager. (line 1059)
  10897. * BFD_RELOC_AC_SECTOFF_U8_1: howto manager. (line 1060)
  10898. * BFD_RELOC_AC_SECTOFF_U8_2: howto manager. (line 1061)
  10899. * BFD_RELOC_ALPHA_BOH: howto manager. (line 288)
  10900. * BFD_RELOC_ALPHA_BRSGP: howto manager. (line 275)
  10901. * BFD_RELOC_ALPHA_BSR: howto manager. (line 282)
  10902. * BFD_RELOC_ALPHA_CODEADDR: howto manager. (line 268)
  10903. * BFD_RELOC_ALPHA_DTPMOD64: howto manager. (line 293)
  10904. * BFD_RELOC_ALPHA_DTPREL16: howto manager. (line 298)
  10905. * BFD_RELOC_ALPHA_DTPREL64: howto manager. (line 295)
  10906. * BFD_RELOC_ALPHA_DTPREL_HI16: howto manager. (line 296)
  10907. * BFD_RELOC_ALPHA_DTPREL_LO16: howto manager. (line 297)
  10908. * BFD_RELOC_ALPHA_ELF_LITERAL: howto manager. (line 236)
  10909. * BFD_RELOC_ALPHA_GOTDTPREL16: howto manager. (line 294)
  10910. * BFD_RELOC_ALPHA_GOTTPREL16: howto manager. (line 299)
  10911. * BFD_RELOC_ALPHA_GPDISP: howto manager. (line 231)
  10912. * BFD_RELOC_ALPHA_GPDISP_HI16: howto manager. (line 219)
  10913. * BFD_RELOC_ALPHA_GPDISP_LO16: howto manager. (line 226)
  10914. * BFD_RELOC_ALPHA_GPREL_HI16: howto manager. (line 271)
  10915. * BFD_RELOC_ALPHA_GPREL_LO16: howto manager. (line 272)
  10916. * BFD_RELOC_ALPHA_HINT: howto manager. (line 261)
  10917. * BFD_RELOC_ALPHA_LDA: howto manager. (line 285)
  10918. * BFD_RELOC_ALPHA_LINKAGE: howto manager. (line 265)
  10919. * BFD_RELOC_ALPHA_LITERAL: howto manager. (line 235)
  10920. * BFD_RELOC_ALPHA_LITUSE: howto manager. (line 237)
  10921. * BFD_RELOC_ALPHA_NOP: howto manager. (line 279)
  10922. * BFD_RELOC_ALPHA_TLSGD: howto manager. (line 291)
  10923. * BFD_RELOC_ALPHA_TLSLDM: howto manager. (line 292)
  10924. * BFD_RELOC_ALPHA_TPREL16: howto manager. (line 303)
  10925. * BFD_RELOC_ALPHA_TPREL64: howto manager. (line 300)
  10926. * BFD_RELOC_ALPHA_TPREL_HI16: howto manager. (line 301)
  10927. * BFD_RELOC_ALPHA_TPREL_LO16: howto manager. (line 302)
  10928. * BFD_RELOC_ARC_16: howto manager. (line 1031)
  10929. * BFD_RELOC_ARC_24: howto manager. (line 1032)
  10930. * BFD_RELOC_ARC_32: howto manager. (line 1033)
  10931. * BFD_RELOC_ARC_32_ME: howto manager. (line 1053)
  10932. * BFD_RELOC_ARC_32_ME_S: howto manager. (line 1054)
  10933. * BFD_RELOC_ARC_32_PCREL: howto manager. (line 1071)
  10934. * BFD_RELOC_ARC_8: howto manager. (line 1030)
  10935. * BFD_RELOC_ARC_COPY: howto manager. (line 1076)
  10936. * BFD_RELOC_ARC_GLOB_DAT: howto manager. (line 1077)
  10937. * BFD_RELOC_ARC_GOT32: howto manager. (line 1073)
  10938. * BFD_RELOC_ARC_GOTOFF: howto manager. (line 1080)
  10939. * BFD_RELOC_ARC_GOTPC: howto manager. (line 1081)
  10940. * BFD_RELOC_ARC_GOTPC32: howto manager. (line 1074)
  10941. * BFD_RELOC_ARC_JLI_SECTOFF: howto manager. (line 1097)
  10942. * BFD_RELOC_ARC_JMP_SLOT: howto manager. (line 1078)
  10943. * BFD_RELOC_ARC_N16: howto manager. (line 1035)
  10944. * BFD_RELOC_ARC_N24: howto manager. (line 1036)
  10945. * BFD_RELOC_ARC_N32: howto manager. (line 1037)
  10946. * BFD_RELOC_ARC_N32_ME: howto manager. (line 1055)
  10947. * BFD_RELOC_ARC_N8: howto manager. (line 1034)
  10948. * BFD_RELOC_ARC_NONE: howto manager. (line 1029)
  10949. * BFD_RELOC_ARC_NPS_CMEM16: howto manager. (line 1096)
  10950. * BFD_RELOC_ARC_PC32: howto manager. (line 1072)
  10951. * BFD_RELOC_ARC_PLT32: howto manager. (line 1075)
  10952. * BFD_RELOC_ARC_RELATIVE: howto manager. (line 1079)
  10953. * BFD_RELOC_ARC_S13_PCREL: howto manager. (line 1051)
  10954. * BFD_RELOC_ARC_S21H_PCREL: howto manager. (line 1040)
  10955. * BFD_RELOC_ARC_S21H_PCREL_PLT: howto manager. (line 1095)
  10956. * BFD_RELOC_ARC_S21W_PCREL: howto manager. (line 1041)
  10957. * BFD_RELOC_ARC_S21W_PCREL_PLT: howto manager. (line 1082)
  10958. * BFD_RELOC_ARC_S25H_PCREL: howto manager. (line 1042)
  10959. * BFD_RELOC_ARC_S25H_PCREL_PLT: howto manager. (line 1083)
  10960. * BFD_RELOC_ARC_S25W_PCREL: howto manager. (line 1043)
  10961. * BFD_RELOC_ARC_S25W_PCREL_PLT: howto manager. (line 1094)
  10962. * BFD_RELOC_ARC_SDA: howto manager. (line 1038)
  10963. * BFD_RELOC_ARC_SDA16_LD: howto manager. (line 1048)
  10964. * BFD_RELOC_ARC_SDA16_LD1: howto manager. (line 1049)
  10965. * BFD_RELOC_ARC_SDA16_LD2: howto manager. (line 1050)
  10966. * BFD_RELOC_ARC_SDA16_ST2: howto manager. (line 1070)
  10967. * BFD_RELOC_ARC_SDA32: howto manager. (line 1044)
  10968. * BFD_RELOC_ARC_SDA32_ME: howto manager. (line 1057)
  10969. * BFD_RELOC_ARC_SDA_12: howto manager. (line 1069)
  10970. * BFD_RELOC_ARC_SDA_LDST: howto manager. (line 1045)
  10971. * BFD_RELOC_ARC_SDA_LDST1: howto manager. (line 1046)
  10972. * BFD_RELOC_ARC_SDA_LDST2: howto manager. (line 1047)
  10973. * BFD_RELOC_ARC_SECTOFF: howto manager. (line 1039)
  10974. * BFD_RELOC_ARC_SECTOFF_1: howto manager. (line 1067)
  10975. * BFD_RELOC_ARC_SECTOFF_2: howto manager. (line 1068)
  10976. * BFD_RELOC_ARC_SECTOFF_ME: howto manager. (line 1056)
  10977. * BFD_RELOC_ARC_SECTOFF_ME_1: howto manager. (line 1065)
  10978. * BFD_RELOC_ARC_SECTOFF_ME_2: howto manager. (line 1066)
  10979. * BFD_RELOC_ARC_TLS_DTPMOD: howto manager. (line 1084)
  10980. * BFD_RELOC_ARC_TLS_DTPOFF: howto manager. (line 1090)
  10981. * BFD_RELOC_ARC_TLS_DTPOFF_S9: howto manager. (line 1091)
  10982. * BFD_RELOC_ARC_TLS_GD_CALL: howto manager. (line 1088)
  10983. * BFD_RELOC_ARC_TLS_GD_GOT: howto manager. (line 1086)
  10984. * BFD_RELOC_ARC_TLS_GD_LD: howto manager. (line 1087)
  10985. * BFD_RELOC_ARC_TLS_IE_GOT: howto manager. (line 1089)
  10986. * BFD_RELOC_ARC_TLS_LE_32: howto manager. (line 1093)
  10987. * BFD_RELOC_ARC_TLS_LE_S9: howto manager. (line 1092)
  10988. * BFD_RELOC_ARC_TLS_TPOFF: howto manager. (line 1085)
  10989. * BFD_RELOC_ARC_W: howto manager. (line 1052)
  10990. * BFD_RELOC_ARC_W_ME: howto manager. (line 1058)
  10991. * BFD_RELOC_ARM_ADRL_IMMEDIATE: howto manager. (line 902)
  10992. * BFD_RELOC_ARM_ADR_IMM: howto manager. (line 917)
  10993. * BFD_RELOC_ARM_ALU_PC_G0: howto manager. (line 864)
  10994. * BFD_RELOC_ARM_ALU_PC_G0_NC: howto manager. (line 863)
  10995. * BFD_RELOC_ARM_ALU_PC_G1: howto manager. (line 866)
  10996. * BFD_RELOC_ARM_ALU_PC_G1_NC: howto manager. (line 865)
  10997. * BFD_RELOC_ARM_ALU_PC_G2: howto manager. (line 867)
  10998. * BFD_RELOC_ARM_ALU_SB_G0: howto manager. (line 878)
  10999. * BFD_RELOC_ARM_ALU_SB_G0_NC: howto manager. (line 877)
  11000. * BFD_RELOC_ARM_ALU_SB_G1: howto manager. (line 880)
  11001. * BFD_RELOC_ARM_ALU_SB_G1_NC: howto manager. (line 879)
  11002. * BFD_RELOC_ARM_ALU_SB_G2: howto manager. (line 881)
  11003. * BFD_RELOC_ARM_CP_OFF_IMM: howto manager. (line 912)
  11004. * BFD_RELOC_ARM_CP_OFF_IMM_S2: howto manager. (line 913)
  11005. * BFD_RELOC_ARM_FUNCDESC: howto manager. (line 833)
  11006. * BFD_RELOC_ARM_FUNCDESC_VALUE: howto manager. (line 834)
  11007. * BFD_RELOC_ARM_GLOB_DAT: howto manager. (line 840)
  11008. * BFD_RELOC_ARM_GOT32: howto manager. (line 841)
  11009. * BFD_RELOC_ARM_GOTFUNCDESC: howto manager. (line 831)
  11010. * BFD_RELOC_ARM_GOTOFF: howto manager. (line 844)
  11011. * BFD_RELOC_ARM_GOTOFFFUNCDESC: howto manager. (line 832)
  11012. * BFD_RELOC_ARM_GOTPC: howto manager. (line 845)
  11013. * BFD_RELOC_ARM_GOT_PREL: howto manager. (line 846)
  11014. * BFD_RELOC_ARM_HVC: howto manager. (line 909)
  11015. * BFD_RELOC_ARM_HWLITERAL: howto manager. (line 924)
  11016. * BFD_RELOC_ARM_IMMEDIATE: howto manager. (line 901)
  11017. * BFD_RELOC_ARM_IN_POOL: howto manager. (line 920)
  11018. * BFD_RELOC_ARM_IRELATIVE: howto manager. (line 894)
  11019. * BFD_RELOC_ARM_JUMP_SLOT: howto manager. (line 839)
  11020. * BFD_RELOC_ARM_LDC_PC_G0: howto manager. (line 874)
  11021. * BFD_RELOC_ARM_LDC_PC_G1: howto manager. (line 875)
  11022. * BFD_RELOC_ARM_LDC_PC_G2: howto manager. (line 876)
  11023. * BFD_RELOC_ARM_LDC_SB_G0: howto manager. (line 888)
  11024. * BFD_RELOC_ARM_LDC_SB_G1: howto manager. (line 889)
  11025. * BFD_RELOC_ARM_LDC_SB_G2: howto manager. (line 890)
  11026. * BFD_RELOC_ARM_LDRS_PC_G0: howto manager. (line 871)
  11027. * BFD_RELOC_ARM_LDRS_PC_G1: howto manager. (line 872)
  11028. * BFD_RELOC_ARM_LDRS_PC_G2: howto manager. (line 873)
  11029. * BFD_RELOC_ARM_LDRS_SB_G0: howto manager. (line 885)
  11030. * BFD_RELOC_ARM_LDRS_SB_G1: howto manager. (line 886)
  11031. * BFD_RELOC_ARM_LDRS_SB_G2: howto manager. (line 887)
  11032. * BFD_RELOC_ARM_LDR_IMM: howto manager. (line 918)
  11033. * BFD_RELOC_ARM_LDR_PC_G0: howto manager. (line 868)
  11034. * BFD_RELOC_ARM_LDR_PC_G1: howto manager. (line 869)
  11035. * BFD_RELOC_ARM_LDR_PC_G2: howto manager. (line 870)
  11036. * BFD_RELOC_ARM_LDR_SB_G0: howto manager. (line 882)
  11037. * BFD_RELOC_ARM_LDR_SB_G1: howto manager. (line 883)
  11038. * BFD_RELOC_ARM_LDR_SB_G2: howto manager. (line 884)
  11039. * BFD_RELOC_ARM_LITERAL: howto manager. (line 919)
  11040. * BFD_RELOC_ARM_MOVT: howto manager. (line 823)
  11041. * BFD_RELOC_ARM_MOVT_PCREL: howto manager. (line 825)
  11042. * BFD_RELOC_ARM_MOVW: howto manager. (line 822)
  11043. * BFD_RELOC_ARM_MOVW_PCREL: howto manager. (line 824)
  11044. * BFD_RELOC_ARM_MULTI: howto manager. (line 911)
  11045. * BFD_RELOC_ARM_OFFSET_IMM: howto manager. (line 803)
  11046. * BFD_RELOC_ARM_OFFSET_IMM8: howto manager. (line 921)
  11047. * BFD_RELOC_ARM_PCREL_BLX: howto manager. (line 767)
  11048. * BFD_RELOC_ARM_PCREL_BRANCH: howto manager. (line 764)
  11049. * BFD_RELOC_ARM_PCREL_CALL: howto manager. (line 775)
  11050. * BFD_RELOC_ARM_PCREL_JUMP: howto manager. (line 778)
  11051. * BFD_RELOC_ARM_PLT32: howto manager. (line 842)
  11052. * BFD_RELOC_ARM_PREL31: howto manager. (line 820)
  11053. * BFD_RELOC_ARM_RELATIVE: howto manager. (line 843)
  11054. * BFD_RELOC_ARM_ROSEGREL32: howto manager. (line 812)
  11055. * BFD_RELOC_ARM_SBREL32: howto manager. (line 814)
  11056. * BFD_RELOC_ARM_SHIFT_IMM: howto manager. (line 907)
  11057. * BFD_RELOC_ARM_SMC: howto manager. (line 908)
  11058. * BFD_RELOC_ARM_SWI: howto manager. (line 910)
  11059. * BFD_RELOC_ARM_T32_ADD_IMM: howto manager. (line 904)
  11060. * BFD_RELOC_ARM_T32_ADD_PC12: howto manager. (line 906)
  11061. * BFD_RELOC_ARM_T32_CP_OFF_IMM: howto manager. (line 914)
  11062. * BFD_RELOC_ARM_T32_CP_OFF_IMM_S2: howto manager. (line 915)
  11063. * BFD_RELOC_ARM_T32_IMM12: howto manager. (line 905)
  11064. * BFD_RELOC_ARM_T32_IMMEDIATE: howto manager. (line 903)
  11065. * BFD_RELOC_ARM_T32_OFFSET_IMM: howto manager. (line 923)
  11066. * BFD_RELOC_ARM_T32_OFFSET_U8: howto manager. (line 922)
  11067. * BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM: howto manager. (line 916)
  11068. * BFD_RELOC_ARM_TARGET1: howto manager. (line 809)
  11069. * BFD_RELOC_ARM_TARGET2: howto manager. (line 816)
  11070. * BFD_RELOC_ARM_THM_TLS_CALL: howto manager. (line 858)
  11071. * BFD_RELOC_ARM_THM_TLS_DESCSEQ: howto manager. (line 860)
  11072. * BFD_RELOC_ARM_THUMB_ADD: howto manager. (line 925)
  11073. * BFD_RELOC_ARM_THUMB_ALU_ABS_G0_NC: howto manager. (line 896)
  11074. * BFD_RELOC_ARM_THUMB_ALU_ABS_G1_NC: howto manager. (line 897)
  11075. * BFD_RELOC_ARM_THUMB_ALU_ABS_G2_NC: howto manager. (line 898)
  11076. * BFD_RELOC_ARM_THUMB_ALU_ABS_G3_NC: howto manager. (line 899)
  11077. * BFD_RELOC_ARM_THUMB_BF13: howto manager. (line 786)
  11078. * BFD_RELOC_ARM_THUMB_BF17: howto manager. (line 784)
  11079. * BFD_RELOC_ARM_THUMB_BF19: howto manager. (line 788)
  11080. * BFD_RELOC_ARM_THUMB_IMM: howto manager. (line 926)
  11081. * BFD_RELOC_ARM_THUMB_LOOP12: howto manager. (line 790)
  11082. * BFD_RELOC_ARM_THUMB_MOVT: howto manager. (line 827)
  11083. * BFD_RELOC_ARM_THUMB_MOVT_PCREL: howto manager. (line 829)
  11084. * BFD_RELOC_ARM_THUMB_MOVW: howto manager. (line 826)
  11085. * BFD_RELOC_ARM_THUMB_MOVW_PCREL: howto manager. (line 828)
  11086. * BFD_RELOC_ARM_THUMB_OFFSET: howto manager. (line 806)
  11087. * BFD_RELOC_ARM_THUMB_SHIFT: howto manager. (line 927)
  11088. * BFD_RELOC_ARM_TLS_CALL: howto manager. (line 857)
  11089. * BFD_RELOC_ARM_TLS_DESC: howto manager. (line 861)
  11090. * BFD_RELOC_ARM_TLS_DESCSEQ: howto manager. (line 859)
  11091. * BFD_RELOC_ARM_TLS_DTPMOD32: howto manager. (line 852)
  11092. * BFD_RELOC_ARM_TLS_DTPOFF32: howto manager. (line 851)
  11093. * BFD_RELOC_ARM_TLS_GD32: howto manager. (line 848)
  11094. * BFD_RELOC_ARM_TLS_GD32_FDPIC: howto manager. (line 835)
  11095. * BFD_RELOC_ARM_TLS_GOTDESC: howto manager. (line 856)
  11096. * BFD_RELOC_ARM_TLS_IE32: howto manager. (line 854)
  11097. * BFD_RELOC_ARM_TLS_IE32_FDPIC: howto manager. (line 837)
  11098. * BFD_RELOC_ARM_TLS_LDM32: howto manager. (line 850)
  11099. * BFD_RELOC_ARM_TLS_LDM32_FDPIC: howto manager. (line 836)
  11100. * BFD_RELOC_ARM_TLS_LDO32: howto manager. (line 849)
  11101. * BFD_RELOC_ARM_TLS_LE32: howto manager. (line 855)
  11102. * BFD_RELOC_ARM_TLS_TPOFF32: howto manager. (line 853)
  11103. * BFD_RELOC_ARM_V4BX: howto manager. (line 892)
  11104. * BFD_RELOC_AVR_13_PCREL: howto manager. (line 1734)
  11105. * BFD_RELOC_AVR_16_PM: howto manager. (line 1737)
  11106. * BFD_RELOC_AVR_6: howto manager. (line 1805)
  11107. * BFD_RELOC_AVR_6_ADIW: howto manager. (line 1808)
  11108. * BFD_RELOC_AVR_7_PCREL: howto manager. (line 1731)
  11109. * BFD_RELOC_AVR_8_HI: howto manager. (line 1814)
  11110. * BFD_RELOC_AVR_8_HLO: howto manager. (line 1817)
  11111. * BFD_RELOC_AVR_8_LO: howto manager. (line 1811)
  11112. * BFD_RELOC_AVR_CALL: howto manager. (line 1799)
  11113. * BFD_RELOC_AVR_DIFF16: howto manager. (line 1821)
  11114. * BFD_RELOC_AVR_DIFF32: howto manager. (line 1822)
  11115. * BFD_RELOC_AVR_DIFF8: howto manager. (line 1820)
  11116. * BFD_RELOC_AVR_HH8_LDI: howto manager. (line 1746)
  11117. * BFD_RELOC_AVR_HH8_LDI_NEG: howto manager. (line 1761)
  11118. * BFD_RELOC_AVR_HH8_LDI_PM: howto manager. (line 1784)
  11119. * BFD_RELOC_AVR_HH8_LDI_PM_NEG: howto manager. (line 1795)
  11120. * BFD_RELOC_AVR_HI8_LDI: howto manager. (line 1743)
  11121. * BFD_RELOC_AVR_HI8_LDI_GS: howto manager. (line 1779)
  11122. * BFD_RELOC_AVR_HI8_LDI_NEG: howto manager. (line 1757)
  11123. * BFD_RELOC_AVR_HI8_LDI_PM: howto manager. (line 1776)
  11124. * BFD_RELOC_AVR_HI8_LDI_PM_NEG: howto manager. (line 1791)
  11125. * BFD_RELOC_AVR_LDI: howto manager. (line 1802)
  11126. * BFD_RELOC_AVR_LDS_STS_16: howto manager. (line 1829)
  11127. * BFD_RELOC_AVR_LO8_LDI: howto manager. (line 1740)
  11128. * BFD_RELOC_AVR_LO8_LDI_GS: howto manager. (line 1771)
  11129. * BFD_RELOC_AVR_LO8_LDI_NEG: howto manager. (line 1753)
  11130. * BFD_RELOC_AVR_LO8_LDI_PM: howto manager. (line 1768)
  11131. * BFD_RELOC_AVR_LO8_LDI_PM_NEG: howto manager. (line 1788)
  11132. * BFD_RELOC_AVR_MS8_LDI: howto manager. (line 1750)
  11133. * BFD_RELOC_AVR_MS8_LDI_NEG: howto manager. (line 1765)
  11134. * BFD_RELOC_AVR_PORT5: howto manager. (line 1835)
  11135. * BFD_RELOC_AVR_PORT6: howto manager. (line 1832)
  11136. * BFD_RELOC_BFIN_10_PCREL: howto manager. (line 1109)
  11137. * BFD_RELOC_BFIN_11_PCREL: howto manager. (line 1111)
  11138. * BFD_RELOC_BFIN_12_PCREL_JUMP: howto manager. (line 1113)
  11139. * BFD_RELOC_BFIN_12_PCREL_JUMP_S: howto manager. (line 1115)
  11140. * BFD_RELOC_BFIN_16_HIGH: howto manager. (line 1101)
  11141. * BFD_RELOC_BFIN_16_IMM: howto manager. (line 1099)
  11142. * BFD_RELOC_BFIN_16_LOW: howto manager. (line 1107)
  11143. * BFD_RELOC_BFIN_24_PCREL_CALL_X: howto manager. (line 1117)
  11144. * BFD_RELOC_BFIN_24_PCREL_JUMP_L: howto manager. (line 1119)
  11145. * BFD_RELOC_BFIN_4_PCREL: howto manager. (line 1103)
  11146. * BFD_RELOC_BFIN_5_PCREL: howto manager. (line 1105)
  11147. * BFD_RELOC_BFIN_FUNCDESC: howto manager. (line 1124)
  11148. * BFD_RELOC_BFIN_FUNCDESC_GOT17M4: howto manager. (line 1125)
  11149. * BFD_RELOC_BFIN_FUNCDESC_GOTHI: howto manager. (line 1126)
  11150. * BFD_RELOC_BFIN_FUNCDESC_GOTLO: howto manager. (line 1127)
  11151. * BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4: howto manager. (line 1129)
  11152. * BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI: howto manager. (line 1130)
  11153. * BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO: howto manager. (line 1131)
  11154. * BFD_RELOC_BFIN_FUNCDESC_VALUE: howto manager. (line 1128)
  11155. * BFD_RELOC_BFIN_GOT: howto manager. (line 1136)
  11156. * BFD_RELOC_BFIN_GOT17M4: howto manager. (line 1121)
  11157. * BFD_RELOC_BFIN_GOTHI: howto manager. (line 1122)
  11158. * BFD_RELOC_BFIN_GOTLO: howto manager. (line 1123)
  11159. * BFD_RELOC_BFIN_GOTOFF17M4: howto manager. (line 1132)
  11160. * BFD_RELOC_BFIN_GOTOFFHI: howto manager. (line 1133)
  11161. * BFD_RELOC_BFIN_GOTOFFLO: howto manager. (line 1134)
  11162. * BFD_RELOC_BFIN_PLTPC: howto manager. (line 1138)
  11163. * BFD_RELOC_BPF_16: howto manager. (line 3332)
  11164. * BFD_RELOC_BPF_32: howto manager. (line 3331)
  11165. * BFD_RELOC_BPF_64: howto manager. (line 3330)
  11166. * BFD_RELOC_BPF_DISP16: howto manager. (line 3333)
  11167. * BFD_RELOC_BPF_DISP32: howto manager. (line 3334)
  11168. * BFD_RELOC_C6000_ABS_H16: howto manager. (line 1576)
  11169. * BFD_RELOC_C6000_ABS_L16: howto manager. (line 1575)
  11170. * BFD_RELOC_C6000_ABS_S16: howto manager. (line 1574)
  11171. * BFD_RELOC_C6000_ALIGN: howto manager. (line 1597)
  11172. * BFD_RELOC_C6000_COPY: howto manager. (line 1592)
  11173. * BFD_RELOC_C6000_DSBT_INDEX: howto manager. (line 1590)
  11174. * BFD_RELOC_C6000_EHTYPE: howto manager. (line 1594)
  11175. * BFD_RELOC_C6000_FPHEAD: howto manager. (line 1598)
  11176. * BFD_RELOC_C6000_JUMP_SLOT: howto manager. (line 1593)
  11177. * BFD_RELOC_C6000_NOCMP: howto manager. (line 1599)
  11178. * BFD_RELOC_C6000_PCR_H16: howto manager. (line 1595)
  11179. * BFD_RELOC_C6000_PCR_L16: howto manager. (line 1596)
  11180. * BFD_RELOC_C6000_PCR_S10: howto manager. (line 1572)
  11181. * BFD_RELOC_C6000_PCR_S12: howto manager. (line 1571)
  11182. * BFD_RELOC_C6000_PCR_S21: howto manager. (line 1570)
  11183. * BFD_RELOC_C6000_PCR_S7: howto manager. (line 1573)
  11184. * BFD_RELOC_C6000_PREL31: howto manager. (line 1591)
  11185. * BFD_RELOC_C6000_SBR_GOT_H16_W: howto manager. (line 1589)
  11186. * BFD_RELOC_C6000_SBR_GOT_L16_W: howto manager. (line 1588)
  11187. * BFD_RELOC_C6000_SBR_GOT_U15_W: howto manager. (line 1587)
  11188. * BFD_RELOC_C6000_SBR_H16_B: howto manager. (line 1584)
  11189. * BFD_RELOC_C6000_SBR_H16_H: howto manager. (line 1585)
  11190. * BFD_RELOC_C6000_SBR_H16_W: howto manager. (line 1586)
  11191. * BFD_RELOC_C6000_SBR_L16_B: howto manager. (line 1581)
  11192. * BFD_RELOC_C6000_SBR_L16_H: howto manager. (line 1582)
  11193. * BFD_RELOC_C6000_SBR_L16_W: howto manager. (line 1583)
  11194. * BFD_RELOC_C6000_SBR_S16: howto manager. (line 1580)
  11195. * BFD_RELOC_C6000_SBR_U15_B: howto manager. (line 1577)
  11196. * BFD_RELOC_C6000_SBR_U15_H: howto manager. (line 1578)
  11197. * BFD_RELOC_C6000_SBR_U15_W: howto manager. (line 1579)
  11198. * BFD_RELOC_CKCORE_ADDR32: howto manager. (line 3371)
  11199. * BFD_RELOC_CKCORE_ADDRGOT: howto manager. (line 3387)
  11200. * BFD_RELOC_CKCORE_ADDRGOT_HI16: howto manager. (line 3406)
  11201. * BFD_RELOC_CKCORE_ADDRGOT_LO16: howto manager. (line 3407)
  11202. * BFD_RELOC_CKCORE_ADDRPLT: howto manager. (line 3388)
  11203. * BFD_RELOC_CKCORE_ADDRPLT_HI16: howto manager. (line 3408)
  11204. * BFD_RELOC_CKCORE_ADDRPLT_LO16: howto manager. (line 3409)
  11205. * BFD_RELOC_CKCORE_ADDR_HI16: howto manager. (line 3394)
  11206. * BFD_RELOC_CKCORE_ADDR_LO16: howto manager. (line 3395)
  11207. * BFD_RELOC_CKCORE_CALLGRAPH: howto manager. (line 3431)
  11208. * BFD_RELOC_CKCORE_COPY: howto manager. (line 3380)
  11209. * BFD_RELOC_CKCORE_DOFFSET_IMM18: howto manager. (line 3414)
  11210. * BFD_RELOC_CKCORE_DOFFSET_IMM18BY2: howto manager. (line 3415)
  11211. * BFD_RELOC_CKCORE_DOFFSET_IMM18BY4: howto manager. (line 3416)
  11212. * BFD_RELOC_CKCORE_DOFFSET_LO16: howto manager. (line 3412)
  11213. * BFD_RELOC_CKCORE_GLOB_DAT: howto manager. (line 3381)
  11214. * BFD_RELOC_CKCORE_GNU_VTENTRY: howto manager. (line 3378)
  11215. * BFD_RELOC_CKCORE_GNU_VTINHERIT: howto manager. (line 3377)
  11216. * BFD_RELOC_CKCORE_GOT12: howto manager. (line 3400)
  11217. * BFD_RELOC_CKCORE_GOT32: howto manager. (line 3385)
  11218. * BFD_RELOC_CKCORE_GOTOFF: howto manager. (line 3383)
  11219. * BFD_RELOC_CKCORE_GOTOFF_HI16: howto manager. (line 3398)
  11220. * BFD_RELOC_CKCORE_GOTOFF_IMM18: howto manager. (line 3417)
  11221. * BFD_RELOC_CKCORE_GOTOFF_LO16: howto manager. (line 3399)
  11222. * BFD_RELOC_CKCORE_GOTPC: howto manager. (line 3384)
  11223. * BFD_RELOC_CKCORE_GOTPC_HI16: howto manager. (line 3396)
  11224. * BFD_RELOC_CKCORE_GOTPC_LO16: howto manager. (line 3397)
  11225. * BFD_RELOC_CKCORE_GOT_HI16: howto manager. (line 3401)
  11226. * BFD_RELOC_CKCORE_GOT_IMM18BY4: howto manager. (line 3418)
  11227. * BFD_RELOC_CKCORE_GOT_LO16: howto manager. (line 3402)
  11228. * BFD_RELOC_CKCORE_IRELATIVE: howto manager. (line 3432)
  11229. * BFD_RELOC_CKCORE_JUMP_SLOT: howto manager. (line 3382)
  11230. * BFD_RELOC_CKCORE_NOJSRI: howto manager. (line 3430)
  11231. * BFD_RELOC_CKCORE_NONE: howto manager. (line 3370)
  11232. * BFD_RELOC_CKCORE_PCREL32: howto manager. (line 3375)
  11233. * BFD_RELOC_CKCORE_PCREL_BLOOP_IMM12BY4: howto manager. (line 3434)
  11234. * BFD_RELOC_CKCORE_PCREL_BLOOP_IMM4BY4: howto manager. (line 3433)
  11235. * BFD_RELOC_CKCORE_PCREL_FLRW_IMM8BY4: howto manager. (line 3429)
  11236. * BFD_RELOC_CKCORE_PCREL_IMM10BY2: howto manager. (line 3392)
  11237. * BFD_RELOC_CKCORE_PCREL_IMM10BY4: howto manager. (line 3393)
  11238. * BFD_RELOC_CKCORE_PCREL_IMM11BY2: howto manager. (line 3373)
  11239. * BFD_RELOC_CKCORE_PCREL_IMM16BY2: howto manager. (line 3390)
  11240. * BFD_RELOC_CKCORE_PCREL_IMM16BY4: howto manager. (line 3391)
  11241. * BFD_RELOC_CKCORE_PCREL_IMM18BY2: howto manager. (line 3413)
  11242. * BFD_RELOC_CKCORE_PCREL_IMM26BY2: howto manager. (line 3389)
  11243. * BFD_RELOC_CKCORE_PCREL_IMM4BY2: howto manager. (line 3374)
  11244. * BFD_RELOC_CKCORE_PCREL_IMM7BY4: howto manager. (line 3420)
  11245. * BFD_RELOC_CKCORE_PCREL_IMM8BY4: howto manager. (line 3372)
  11246. * BFD_RELOC_CKCORE_PCREL_JSR_IMM11BY2: howto manager. (line 3376)
  11247. * BFD_RELOC_CKCORE_PCREL_JSR_IMM26BY2: howto manager. (line 3410)
  11248. * BFD_RELOC_CKCORE_PLT12: howto manager. (line 3403)
  11249. * BFD_RELOC_CKCORE_PLT32: howto manager. (line 3386)
  11250. * BFD_RELOC_CKCORE_PLT_HI16: howto manager. (line 3404)
  11251. * BFD_RELOC_CKCORE_PLT_IMM18BY4: howto manager. (line 3419)
  11252. * BFD_RELOC_CKCORE_PLT_LO16: howto manager. (line 3405)
  11253. * BFD_RELOC_CKCORE_RELATIVE: howto manager. (line 3379)
  11254. * BFD_RELOC_CKCORE_TLS_DTPMOD32: howto manager. (line 3426)
  11255. * BFD_RELOC_CKCORE_TLS_DTPOFF32: howto manager. (line 3427)
  11256. * BFD_RELOC_CKCORE_TLS_GD32: howto manager. (line 3423)
  11257. * BFD_RELOC_CKCORE_TLS_IE32: howto manager. (line 3422)
  11258. * BFD_RELOC_CKCORE_TLS_LDM32: howto manager. (line 3424)
  11259. * BFD_RELOC_CKCORE_TLS_LDO32: howto manager. (line 3425)
  11260. * BFD_RELOC_CKCORE_TLS_LE32: howto manager. (line 3421)
  11261. * BFD_RELOC_CKCORE_TLS_TPOFF32: howto manager. (line 3428)
  11262. * BFD_RELOC_CKCORE_TOFFSET_LO16: howto manager. (line 3411)
  11263. * bfd_reloc_code_type: howto manager. (line 9)
  11264. * BFD_RELOC_CR16_ABS20: howto manager. (line 2276)
  11265. * BFD_RELOC_CR16_ABS24: howto manager. (line 2277)
  11266. * BFD_RELOC_CR16_DISP16: howto manager. (line 2287)
  11267. * BFD_RELOC_CR16_DISP20: howto manager. (line 2288)
  11268. * BFD_RELOC_CR16_DISP24: howto manager. (line 2289)
  11269. * BFD_RELOC_CR16_DISP24a: howto manager. (line 2290)
  11270. * BFD_RELOC_CR16_DISP4: howto manager. (line 2285)
  11271. * BFD_RELOC_CR16_DISP8: howto manager. (line 2286)
  11272. * BFD_RELOC_CR16_GLOB_DAT: howto manager. (line 2296)
  11273. * BFD_RELOC_CR16_GOTC_REGREL20: howto manager. (line 2295)
  11274. * BFD_RELOC_CR16_GOT_REGREL20: howto manager. (line 2294)
  11275. * BFD_RELOC_CR16_IMM16: howto manager. (line 2280)
  11276. * BFD_RELOC_CR16_IMM20: howto manager. (line 2281)
  11277. * BFD_RELOC_CR16_IMM24: howto manager. (line 2282)
  11278. * BFD_RELOC_CR16_IMM32: howto manager. (line 2283)
  11279. * BFD_RELOC_CR16_IMM32a: howto manager. (line 2284)
  11280. * BFD_RELOC_CR16_IMM4: howto manager. (line 2278)
  11281. * BFD_RELOC_CR16_IMM8: howto manager. (line 2279)
  11282. * BFD_RELOC_CR16_NUM16: howto manager. (line 2265)
  11283. * BFD_RELOC_CR16_NUM32: howto manager. (line 2266)
  11284. * BFD_RELOC_CR16_NUM32a: howto manager. (line 2267)
  11285. * BFD_RELOC_CR16_NUM8: howto manager. (line 2264)
  11286. * BFD_RELOC_CR16_REGREL0: howto manager. (line 2268)
  11287. * BFD_RELOC_CR16_REGREL14: howto manager. (line 2271)
  11288. * BFD_RELOC_CR16_REGREL14a: howto manager. (line 2272)
  11289. * BFD_RELOC_CR16_REGREL16: howto manager. (line 2273)
  11290. * BFD_RELOC_CR16_REGREL20: howto manager. (line 2274)
  11291. * BFD_RELOC_CR16_REGREL20a: howto manager. (line 2275)
  11292. * BFD_RELOC_CR16_REGREL4: howto manager. (line 2269)
  11293. * BFD_RELOC_CR16_REGREL4a: howto manager. (line 2270)
  11294. * BFD_RELOC_CR16_SWITCH16: howto manager. (line 2292)
  11295. * BFD_RELOC_CR16_SWITCH32: howto manager. (line 2293)
  11296. * BFD_RELOC_CR16_SWITCH8: howto manager. (line 2291)
  11297. * BFD_RELOC_CRIS_16_DTPREL: howto manager. (line 2356)
  11298. * BFD_RELOC_CRIS_16_GOT: howto manager. (line 2338)
  11299. * BFD_RELOC_CRIS_16_GOTPLT: howto manager. (line 2342)
  11300. * BFD_RELOC_CRIS_16_GOT_GD: howto manager. (line 2352)
  11301. * BFD_RELOC_CRIS_16_GOT_TPREL: howto manager. (line 2358)
  11302. * BFD_RELOC_CRIS_16_TPREL: howto manager. (line 2360)
  11303. * BFD_RELOC_CRIS_32_DTPREL: howto manager. (line 2355)
  11304. * BFD_RELOC_CRIS_32_GD: howto manager. (line 2353)
  11305. * BFD_RELOC_CRIS_32_GOT: howto manager. (line 2336)
  11306. * BFD_RELOC_CRIS_32_GOTPLT: howto manager. (line 2340)
  11307. * BFD_RELOC_CRIS_32_GOTREL: howto manager. (line 2344)
  11308. * BFD_RELOC_CRIS_32_GOT_GD: howto manager. (line 2351)
  11309. * BFD_RELOC_CRIS_32_GOT_TPREL: howto manager. (line 2357)
  11310. * BFD_RELOC_CRIS_32_IE: howto manager. (line 2362)
  11311. * BFD_RELOC_CRIS_32_PLT_GOTREL: howto manager. (line 2346)
  11312. * BFD_RELOC_CRIS_32_PLT_PCREL: howto manager. (line 2348)
  11313. * BFD_RELOC_CRIS_32_TPREL: howto manager. (line 2359)
  11314. * BFD_RELOC_CRIS_BDISP8: howto manager. (line 2319)
  11315. * BFD_RELOC_CRIS_COPY: howto manager. (line 2331)
  11316. * BFD_RELOC_CRIS_DTP: howto manager. (line 2354)
  11317. * BFD_RELOC_CRIS_DTPMOD: howto manager. (line 2361)
  11318. * BFD_RELOC_CRIS_GLOB_DAT: howto manager. (line 2332)
  11319. * BFD_RELOC_CRIS_JUMP_SLOT: howto manager. (line 2333)
  11320. * BFD_RELOC_CRIS_LAPCQ_OFFSET: howto manager. (line 2327)
  11321. * BFD_RELOC_CRIS_RELATIVE: howto manager. (line 2334)
  11322. * BFD_RELOC_CRIS_SIGNED_16: howto manager. (line 2325)
  11323. * BFD_RELOC_CRIS_SIGNED_6: howto manager. (line 2321)
  11324. * BFD_RELOC_CRIS_SIGNED_8: howto manager. (line 2323)
  11325. * BFD_RELOC_CRIS_UNSIGNED_16: howto manager. (line 2326)
  11326. * BFD_RELOC_CRIS_UNSIGNED_4: howto manager. (line 2328)
  11327. * BFD_RELOC_CRIS_UNSIGNED_5: howto manager. (line 2320)
  11328. * BFD_RELOC_CRIS_UNSIGNED_6: howto manager. (line 2322)
  11329. * BFD_RELOC_CRIS_UNSIGNED_8: howto manager. (line 2324)
  11330. * BFD_RELOC_CRX_ABS16: howto manager. (line 2308)
  11331. * BFD_RELOC_CRX_ABS32: howto manager. (line 2309)
  11332. * BFD_RELOC_CRX_IMM16: howto manager. (line 2313)
  11333. * BFD_RELOC_CRX_IMM32: howto manager. (line 2314)
  11334. * BFD_RELOC_CRX_NUM16: howto manager. (line 2311)
  11335. * BFD_RELOC_CRX_NUM32: howto manager. (line 2312)
  11336. * BFD_RELOC_CRX_NUM8: howto manager. (line 2310)
  11337. * BFD_RELOC_CRX_REGREL12: howto manager. (line 2304)
  11338. * BFD_RELOC_CRX_REGREL22: howto manager. (line 2305)
  11339. * BFD_RELOC_CRX_REGREL28: howto manager. (line 2306)
  11340. * BFD_RELOC_CRX_REGREL32: howto manager. (line 2307)
  11341. * BFD_RELOC_CRX_REL16: howto manager. (line 2301)
  11342. * BFD_RELOC_CRX_REL24: howto manager. (line 2302)
  11343. * BFD_RELOC_CRX_REL32: howto manager. (line 2303)
  11344. * BFD_RELOC_CRX_REL4: howto manager. (line 2298)
  11345. * BFD_RELOC_CRX_REL8: howto manager. (line 2299)
  11346. * BFD_RELOC_CRX_REL8_CMP: howto manager. (line 2300)
  11347. * BFD_RELOC_CRX_SWITCH16: howto manager. (line 2316)
  11348. * BFD_RELOC_CRX_SWITCH32: howto manager. (line 2317)
  11349. * BFD_RELOC_CRX_SWITCH8: howto manager. (line 2315)
  11350. * BFD_RELOC_CTOR: howto manager. (line 759)
  11351. * BFD_RELOC_D10V_10_PCREL_L: howto manager. (line 1183)
  11352. * BFD_RELOC_D10V_10_PCREL_R: howto manager. (line 1180)
  11353. * BFD_RELOC_D10V_18: howto manager. (line 1187)
  11354. * BFD_RELOC_D10V_18_PCREL: howto manager. (line 1189)
  11355. * BFD_RELOC_D30V_15: howto manager. (line 1200)
  11356. * BFD_RELOC_D30V_15_PCREL: howto manager. (line 1203)
  11357. * BFD_RELOC_D30V_15_PCREL_R: howto manager. (line 1206)
  11358. * BFD_RELOC_D30V_21: howto manager. (line 1210)
  11359. * BFD_RELOC_D30V_21_PCREL: howto manager. (line 1213)
  11360. * BFD_RELOC_D30V_21_PCREL_R: howto manager. (line 1216)
  11361. * BFD_RELOC_D30V_32: howto manager. (line 1220)
  11362. * BFD_RELOC_D30V_32_PCREL: howto manager. (line 1222)
  11363. * BFD_RELOC_D30V_6: howto manager. (line 1191)
  11364. * BFD_RELOC_D30V_9_PCREL: howto manager. (line 1193)
  11365. * BFD_RELOC_D30V_9_PCREL_R: howto manager. (line 1196)
  11366. * BFD_RELOC_DLX_HI16_S: howto manager. (line 1224)
  11367. * BFD_RELOC_DLX_JMP26: howto manager. (line 1228)
  11368. * BFD_RELOC_DLX_LO16: howto manager. (line 1226)
  11369. * BFD_RELOC_EPIPHANY_HIGH: howto manager. (line 3340)
  11370. * BFD_RELOC_EPIPHANY_IMM11: howto manager. (line 3346)
  11371. * BFD_RELOC_EPIPHANY_IMM8: howto manager. (line 3349)
  11372. * BFD_RELOC_EPIPHANY_LOW: howto manager. (line 3342)
  11373. * BFD_RELOC_EPIPHANY_SIMM11: howto manager. (line 3344)
  11374. * BFD_RELOC_EPIPHANY_SIMM24: howto manager. (line 3338)
  11375. * BFD_RELOC_EPIPHANY_SIMM8: howto manager. (line 3336)
  11376. * BFD_RELOC_FR30_10_IN_8: howto manager. (line 1615)
  11377. * BFD_RELOC_FR30_12_PCREL: howto manager. (line 1621)
  11378. * BFD_RELOC_FR30_20: howto manager. (line 1603)
  11379. * BFD_RELOC_FR30_48: howto manager. (line 1601)
  11380. * BFD_RELOC_FR30_6_IN_4: howto manager. (line 1606)
  11381. * BFD_RELOC_FR30_8_IN_8: howto manager. (line 1609)
  11382. * BFD_RELOC_FR30_9_IN_8: howto manager. (line 1612)
  11383. * BFD_RELOC_FR30_9_PCREL: howto manager. (line 1618)
  11384. * BFD_RELOC_FRV_FUNCDESC: howto manager. (line 451)
  11385. * BFD_RELOC_FRV_FUNCDESC_GOT12: howto manager. (line 452)
  11386. * BFD_RELOC_FRV_FUNCDESC_GOTHI: howto manager. (line 453)
  11387. * BFD_RELOC_FRV_FUNCDESC_GOTLO: howto manager. (line 454)
  11388. * BFD_RELOC_FRV_FUNCDESC_GOTOFF12: howto manager. (line 456)
  11389. * BFD_RELOC_FRV_FUNCDESC_GOTOFFHI: howto manager. (line 457)
  11390. * BFD_RELOC_FRV_FUNCDESC_GOTOFFLO: howto manager. (line 458)
  11391. * BFD_RELOC_FRV_FUNCDESC_VALUE: howto manager. (line 455)
  11392. * BFD_RELOC_FRV_GETTLSOFF: howto manager. (line 462)
  11393. * BFD_RELOC_FRV_GETTLSOFF_RELAX: howto manager. (line 475)
  11394. * BFD_RELOC_FRV_GOT12: howto manager. (line 448)
  11395. * BFD_RELOC_FRV_GOTHI: howto manager. (line 449)
  11396. * BFD_RELOC_FRV_GOTLO: howto manager. (line 450)
  11397. * BFD_RELOC_FRV_GOTOFF12: howto manager. (line 459)
  11398. * BFD_RELOC_FRV_GOTOFFHI: howto manager. (line 460)
  11399. * BFD_RELOC_FRV_GOTOFFLO: howto manager. (line 461)
  11400. * BFD_RELOC_FRV_GOTTLSDESC12: howto manager. (line 464)
  11401. * BFD_RELOC_FRV_GOTTLSDESCHI: howto manager. (line 465)
  11402. * BFD_RELOC_FRV_GOTTLSDESCLO: howto manager. (line 466)
  11403. * BFD_RELOC_FRV_GOTTLSOFF12: howto manager. (line 470)
  11404. * BFD_RELOC_FRV_GOTTLSOFFHI: howto manager. (line 471)
  11405. * BFD_RELOC_FRV_GOTTLSOFFLO: howto manager. (line 472)
  11406. * BFD_RELOC_FRV_GPREL12: howto manager. (line 443)
  11407. * BFD_RELOC_FRV_GPREL32: howto manager. (line 445)
  11408. * BFD_RELOC_FRV_GPRELHI: howto manager. (line 446)
  11409. * BFD_RELOC_FRV_GPRELLO: howto manager. (line 447)
  11410. * BFD_RELOC_FRV_GPRELU12: howto manager. (line 444)
  11411. * BFD_RELOC_FRV_HI16: howto manager. (line 442)
  11412. * BFD_RELOC_FRV_LABEL16: howto manager. (line 439)
  11413. * BFD_RELOC_FRV_LABEL24: howto manager. (line 440)
  11414. * BFD_RELOC_FRV_LO16: howto manager. (line 441)
  11415. * BFD_RELOC_FRV_TLSDESC_RELAX: howto manager. (line 474)
  11416. * BFD_RELOC_FRV_TLSDESC_VALUE: howto manager. (line 463)
  11417. * BFD_RELOC_FRV_TLSMOFF: howto manager. (line 477)
  11418. * BFD_RELOC_FRV_TLSMOFF12: howto manager. (line 467)
  11419. * BFD_RELOC_FRV_TLSMOFFHI: howto manager. (line 468)
  11420. * BFD_RELOC_FRV_TLSMOFFLO: howto manager. (line 469)
  11421. * BFD_RELOC_FRV_TLSOFF: howto manager. (line 473)
  11422. * BFD_RELOC_FRV_TLSOFF_RELAX: howto manager. (line 476)
  11423. * BFD_RELOC_FT32_10: howto manager. (line 429)
  11424. * BFD_RELOC_FT32_15: howto manager. (line 436)
  11425. * BFD_RELOC_FT32_17: howto manager. (line 431)
  11426. * BFD_RELOC_FT32_18: howto manager. (line 432)
  11427. * BFD_RELOC_FT32_20: howto manager. (line 430)
  11428. * BFD_RELOC_FT32_DIFF32: howto manager. (line 437)
  11429. * BFD_RELOC_FT32_RELAX: howto manager. (line 433)
  11430. * BFD_RELOC_FT32_SC0: howto manager. (line 434)
  11431. * BFD_RELOC_FT32_SC1: howto manager. (line 435)
  11432. * BFD_RELOC_GPREL16: howto manager. (line 112)
  11433. * BFD_RELOC_GPREL32: howto manager. (line 113)
  11434. * BFD_RELOC_H8_DIR16A8: howto manager. (line 2404)
  11435. * BFD_RELOC_H8_DIR16R8: howto manager. (line 2405)
  11436. * BFD_RELOC_H8_DIR24A8: howto manager. (line 2406)
  11437. * BFD_RELOC_H8_DIR24R8: howto manager. (line 2407)
  11438. * BFD_RELOC_H8_DIR32A16: howto manager. (line 2408)
  11439. * BFD_RELOC_H8_DISP32A16: howto manager. (line 2409)
  11440. * BFD_RELOC_HI16: howto manager. (line 312)
  11441. * BFD_RELOC_HI16_BASEREL: howto manager. (line 92)
  11442. * BFD_RELOC_HI16_GOTOFF: howto manager. (line 51)
  11443. * BFD_RELOC_HI16_PCREL: howto manager. (line 321)
  11444. * BFD_RELOC_HI16_PLTOFF: howto manager. (line 63)
  11445. * BFD_RELOC_HI16_S: howto manager. (line 314)
  11446. * BFD_RELOC_HI16_S_BASEREL: howto manager. (line 93)
  11447. * BFD_RELOC_HI16_S_GOTOFF: howto manager. (line 52)
  11448. * BFD_RELOC_HI16_S_PCREL: howto manager. (line 323)
  11449. * BFD_RELOC_HI16_S_PLTOFF: howto manager. (line 64)
  11450. * BFD_RELOC_HI22: howto manager. (line 108)
  11451. * BFD_RELOC_I370_D12: howto manager. (line 757)
  11452. * BFD_RELOC_IA64_COPY: howto manager. (line 2162)
  11453. * BFD_RELOC_IA64_DIR32LSB: howto manager. (line 2107)
  11454. * BFD_RELOC_IA64_DIR32MSB: howto manager. (line 2106)
  11455. * BFD_RELOC_IA64_DIR64LSB: howto manager. (line 2109)
  11456. * BFD_RELOC_IA64_DIR64MSB: howto manager. (line 2108)
  11457. * BFD_RELOC_IA64_DTPMOD64LSB: howto manager. (line 2172)
  11458. * BFD_RELOC_IA64_DTPMOD64MSB: howto manager. (line 2171)
  11459. * BFD_RELOC_IA64_DTPREL14: howto manager. (line 2174)
  11460. * BFD_RELOC_IA64_DTPREL22: howto manager. (line 2175)
  11461. * BFD_RELOC_IA64_DTPREL32LSB: howto manager. (line 2178)
  11462. * BFD_RELOC_IA64_DTPREL32MSB: howto manager. (line 2177)
  11463. * BFD_RELOC_IA64_DTPREL64I: howto manager. (line 2176)
  11464. * BFD_RELOC_IA64_DTPREL64LSB: howto manager. (line 2180)
  11465. * BFD_RELOC_IA64_DTPREL64MSB: howto manager. (line 2179)
  11466. * BFD_RELOC_IA64_FPTR32LSB: howto manager. (line 2124)
  11467. * BFD_RELOC_IA64_FPTR32MSB: howto manager. (line 2123)
  11468. * BFD_RELOC_IA64_FPTR64I: howto manager. (line 2122)
  11469. * BFD_RELOC_IA64_FPTR64LSB: howto manager. (line 2126)
  11470. * BFD_RELOC_IA64_FPTR64MSB: howto manager. (line 2125)
  11471. * BFD_RELOC_IA64_GPREL22: howto manager. (line 2110)
  11472. * BFD_RELOC_IA64_GPREL32LSB: howto manager. (line 2113)
  11473. * BFD_RELOC_IA64_GPREL32MSB: howto manager. (line 2112)
  11474. * BFD_RELOC_IA64_GPREL64I: howto manager. (line 2111)
  11475. * BFD_RELOC_IA64_GPREL64LSB: howto manager. (line 2115)
  11476. * BFD_RELOC_IA64_GPREL64MSB: howto manager. (line 2114)
  11477. * BFD_RELOC_IA64_IMM14: howto manager. (line 2103)
  11478. * BFD_RELOC_IA64_IMM22: howto manager. (line 2104)
  11479. * BFD_RELOC_IA64_IMM64: howto manager. (line 2105)
  11480. * BFD_RELOC_IA64_IPLTLSB: howto manager. (line 2161)
  11481. * BFD_RELOC_IA64_IPLTMSB: howto manager. (line 2160)
  11482. * BFD_RELOC_IA64_LDXMOV: howto manager. (line 2164)
  11483. * BFD_RELOC_IA64_LTOFF22: howto manager. (line 2116)
  11484. * BFD_RELOC_IA64_LTOFF22X: howto manager. (line 2163)
  11485. * BFD_RELOC_IA64_LTOFF64I: howto manager. (line 2117)
  11486. * BFD_RELOC_IA64_LTOFF_DTPMOD22: howto manager. (line 2173)
  11487. * BFD_RELOC_IA64_LTOFF_DTPREL22: howto manager. (line 2181)
  11488. * BFD_RELOC_IA64_LTOFF_FPTR22: howto manager. (line 2138)
  11489. * BFD_RELOC_IA64_LTOFF_FPTR32LSB: howto manager. (line 2141)
  11490. * BFD_RELOC_IA64_LTOFF_FPTR32MSB: howto manager. (line 2140)
  11491. * BFD_RELOC_IA64_LTOFF_FPTR64I: howto manager. (line 2139)
  11492. * BFD_RELOC_IA64_LTOFF_FPTR64LSB: howto manager. (line 2143)
  11493. * BFD_RELOC_IA64_LTOFF_FPTR64MSB: howto manager. (line 2142)
  11494. * BFD_RELOC_IA64_LTOFF_TPREL22: howto manager. (line 2170)
  11495. * BFD_RELOC_IA64_LTV32LSB: howto manager. (line 2157)
  11496. * BFD_RELOC_IA64_LTV32MSB: howto manager. (line 2156)
  11497. * BFD_RELOC_IA64_LTV64LSB: howto manager. (line 2159)
  11498. * BFD_RELOC_IA64_LTV64MSB: howto manager. (line 2158)
  11499. * BFD_RELOC_IA64_PCREL21B: howto manager. (line 2127)
  11500. * BFD_RELOC_IA64_PCREL21BI: howto manager. (line 2128)
  11501. * BFD_RELOC_IA64_PCREL21F: howto manager. (line 2130)
  11502. * BFD_RELOC_IA64_PCREL21M: howto manager. (line 2129)
  11503. * BFD_RELOC_IA64_PCREL22: howto manager. (line 2131)
  11504. * BFD_RELOC_IA64_PCREL32LSB: howto manager. (line 2135)
  11505. * BFD_RELOC_IA64_PCREL32MSB: howto manager. (line 2134)
  11506. * BFD_RELOC_IA64_PCREL60B: howto manager. (line 2132)
  11507. * BFD_RELOC_IA64_PCREL64I: howto manager. (line 2133)
  11508. * BFD_RELOC_IA64_PCREL64LSB: howto manager. (line 2137)
  11509. * BFD_RELOC_IA64_PCREL64MSB: howto manager. (line 2136)
  11510. * BFD_RELOC_IA64_PLTOFF22: howto manager. (line 2118)
  11511. * BFD_RELOC_IA64_PLTOFF64I: howto manager. (line 2119)
  11512. * BFD_RELOC_IA64_PLTOFF64LSB: howto manager. (line 2121)
  11513. * BFD_RELOC_IA64_PLTOFF64MSB: howto manager. (line 2120)
  11514. * BFD_RELOC_IA64_REL32LSB: howto manager. (line 2153)
  11515. * BFD_RELOC_IA64_REL32MSB: howto manager. (line 2152)
  11516. * BFD_RELOC_IA64_REL64LSB: howto manager. (line 2155)
  11517. * BFD_RELOC_IA64_REL64MSB: howto manager. (line 2154)
  11518. * BFD_RELOC_IA64_SECREL32LSB: howto manager. (line 2149)
  11519. * BFD_RELOC_IA64_SECREL32MSB: howto manager. (line 2148)
  11520. * BFD_RELOC_IA64_SECREL64LSB: howto manager. (line 2151)
  11521. * BFD_RELOC_IA64_SECREL64MSB: howto manager. (line 2150)
  11522. * BFD_RELOC_IA64_SEGREL32LSB: howto manager. (line 2145)
  11523. * BFD_RELOC_IA64_SEGREL32MSB: howto manager. (line 2144)
  11524. * BFD_RELOC_IA64_SEGREL64LSB: howto manager. (line 2147)
  11525. * BFD_RELOC_IA64_SEGREL64MSB: howto manager. (line 2146)
  11526. * BFD_RELOC_IA64_TPREL14: howto manager. (line 2165)
  11527. * BFD_RELOC_IA64_TPREL22: howto manager. (line 2166)
  11528. * BFD_RELOC_IA64_TPREL64I: howto manager. (line 2167)
  11529. * BFD_RELOC_IA64_TPREL64LSB: howto manager. (line 2169)
  11530. * BFD_RELOC_IA64_TPREL64MSB: howto manager. (line 2168)
  11531. * BFD_RELOC_IP2K_ADDR16CJP: howto manager. (line 2064)
  11532. * BFD_RELOC_IP2K_BANK: howto manager. (line 2062)
  11533. * BFD_RELOC_IP2K_EX8DATA: howto manager. (line 2070)
  11534. * BFD_RELOC_IP2K_FR9: howto manager. (line 2060)
  11535. * BFD_RELOC_IP2K_FR_OFFSET: howto manager. (line 2079)
  11536. * BFD_RELOC_IP2K_HI8DATA: howto manager. (line 2069)
  11537. * BFD_RELOC_IP2K_HI8INSN: howto manager. (line 2073)
  11538. * BFD_RELOC_IP2K_LO8DATA: howto manager. (line 2068)
  11539. * BFD_RELOC_IP2K_LO8INSN: howto manager. (line 2072)
  11540. * BFD_RELOC_IP2K_PAGE3: howto manager. (line 2066)
  11541. * BFD_RELOC_IP2K_PC_SKIP: howto manager. (line 2075)
  11542. * BFD_RELOC_IP2K_TEXT: howto manager. (line 2077)
  11543. * BFD_RELOC_IQ2000_OFFSET_16: howto manager. (line 2545)
  11544. * BFD_RELOC_IQ2000_OFFSET_21: howto manager. (line 2546)
  11545. * BFD_RELOC_IQ2000_UHI16: howto manager. (line 2547)
  11546. * BFD_RELOC_LM32_16_GOT: howto manager. (line 2668)
  11547. * BFD_RELOC_LM32_BRANCH: howto manager. (line 2667)
  11548. * BFD_RELOC_LM32_CALL: howto manager. (line 2666)
  11549. * BFD_RELOC_LM32_COPY: howto manager. (line 2671)
  11550. * BFD_RELOC_LM32_GLOB_DAT: howto manager. (line 2672)
  11551. * BFD_RELOC_LM32_GOTOFF_HI16: howto manager. (line 2669)
  11552. * BFD_RELOC_LM32_GOTOFF_LO16: howto manager. (line 2670)
  11553. * BFD_RELOC_LM32_JMP_SLOT: howto manager. (line 2673)
  11554. * BFD_RELOC_LM32_RELATIVE: howto manager. (line 2674)
  11555. * BFD_RELOC_LO10: howto manager. (line 109)
  11556. * BFD_RELOC_LO16: howto manager. (line 319)
  11557. * BFD_RELOC_LO16_BASEREL: howto manager. (line 91)
  11558. * BFD_RELOC_LO16_GOTOFF: howto manager. (line 50)
  11559. * BFD_RELOC_LO16_PCREL: howto manager. (line 325)
  11560. * BFD_RELOC_LO16_PLTOFF: howto manager. (line 62)
  11561. * BFD_RELOC_M32C_HI8: howto manager. (line 1230)
  11562. * BFD_RELOC_M32C_RL_1ADDR: howto manager. (line 1232)
  11563. * BFD_RELOC_M32C_RL_2ADDR: howto manager. (line 1233)
  11564. * BFD_RELOC_M32C_RL_JUMP: howto manager. (line 1231)
  11565. * BFD_RELOC_M32R_10_PCREL: howto manager. (line 1238)
  11566. * BFD_RELOC_M32R_18_PCREL: howto manager. (line 1241)
  11567. * BFD_RELOC_M32R_24: howto manager. (line 1235)
  11568. * BFD_RELOC_M32R_26_PCREL: howto manager. (line 1243)
  11569. * BFD_RELOC_M32R_26_PLTREL: howto manager. (line 1257)
  11570. * BFD_RELOC_M32R_COPY: howto manager. (line 1258)
  11571. * BFD_RELOC_M32R_GLOB_DAT: howto manager. (line 1259)
  11572. * BFD_RELOC_M32R_GOT16_HI_SLO: howto manager. (line 1268)
  11573. * BFD_RELOC_M32R_GOT16_HI_ULO: howto manager. (line 1267)
  11574. * BFD_RELOC_M32R_GOT16_LO: howto manager. (line 1269)
  11575. * BFD_RELOC_M32R_GOT24: howto manager. (line 1256)
  11576. * BFD_RELOC_M32R_GOTOFF: howto manager. (line 1262)
  11577. * BFD_RELOC_M32R_GOTOFF_HI_SLO: howto manager. (line 1264)
  11578. * BFD_RELOC_M32R_GOTOFF_HI_ULO: howto manager. (line 1263)
  11579. * BFD_RELOC_M32R_GOTOFF_LO: howto manager. (line 1265)
  11580. * BFD_RELOC_M32R_GOTPC24: howto manager. (line 1266)
  11581. * BFD_RELOC_M32R_GOTPC_HI_SLO: howto manager. (line 1271)
  11582. * BFD_RELOC_M32R_GOTPC_HI_ULO: howto manager. (line 1270)
  11583. * BFD_RELOC_M32R_GOTPC_LO: howto manager. (line 1272)
  11584. * BFD_RELOC_M32R_HI16_SLO: howto manager. (line 1248)
  11585. * BFD_RELOC_M32R_HI16_ULO: howto manager. (line 1245)
  11586. * BFD_RELOC_M32R_JMP_SLOT: howto manager. (line 1260)
  11587. * BFD_RELOC_M32R_LO16: howto manager. (line 1251)
  11588. * BFD_RELOC_M32R_RELATIVE: howto manager. (line 1261)
  11589. * BFD_RELOC_M32R_SDA16: howto manager. (line 1253)
  11590. * BFD_RELOC_M68HC11_24: howto manager. (line 2209)
  11591. * BFD_RELOC_M68HC11_3B: howto manager. (line 2189)
  11592. * BFD_RELOC_M68HC11_HI8: howto manager. (line 2183)
  11593. * BFD_RELOC_M68HC11_LO16: howto manager. (line 2200)
  11594. * BFD_RELOC_M68HC11_LO8: howto manager. (line 2186)
  11595. * BFD_RELOC_M68HC11_PAGE: howto manager. (line 2205)
  11596. * BFD_RELOC_M68HC11_RL_GROUP: howto manager. (line 2196)
  11597. * BFD_RELOC_M68HC11_RL_JUMP: howto manager. (line 2191)
  11598. * BFD_RELOC_M68HC12_10_PCREL: howto manager. (line 2252)
  11599. * BFD_RELOC_M68HC12_16B: howto manager. (line 2248)
  11600. * BFD_RELOC_M68HC12_5B: howto manager. (line 2214)
  11601. * BFD_RELOC_M68HC12_9B: howto manager. (line 2246)
  11602. * BFD_RELOC_M68HC12_9_PCREL: howto manager. (line 2250)
  11603. * BFD_RELOC_M68HC12_HI8XG: howto manager. (line 2257)
  11604. * BFD_RELOC_M68HC12_LO8XG: howto manager. (line 2254)
  11605. * BFD_RELOC_MACH_O_ARM64_ADDEND: howto manager. (line 2704)
  11606. * BFD_RELOC_MACH_O_ARM64_GOT_LOAD_PAGE21: howto manager. (line 2706)
  11607. * BFD_RELOC_MACH_O_ARM64_GOT_LOAD_PAGEOFF12: howto manager. (line 2708)
  11608. * BFD_RELOC_MACH_O_ARM64_POINTER_TO_GOT: howto manager. (line 2710)
  11609. * BFD_RELOC_MACH_O_LOCAL_SECTDIFF: howto manager. (line 2679)
  11610. * BFD_RELOC_MACH_O_PAIR: howto manager. (line 2681)
  11611. * BFD_RELOC_MACH_O_SECTDIFF: howto manager. (line 2676)
  11612. * BFD_RELOC_MACH_O_SUBTRACTOR32: howto manager. (line 2683)
  11613. * BFD_RELOC_MACH_O_SUBTRACTOR64: howto manager. (line 2685)
  11614. * BFD_RELOC_MACH_O_X86_64_BRANCH32: howto manager. (line 2687)
  11615. * BFD_RELOC_MACH_O_X86_64_BRANCH8: howto manager. (line 2688)
  11616. * BFD_RELOC_MACH_O_X86_64_GOT: howto manager. (line 2691)
  11617. * BFD_RELOC_MACH_O_X86_64_GOT_LOAD: howto manager. (line 2693)
  11618. * BFD_RELOC_MACH_O_X86_64_PCREL32_1: howto manager. (line 2696)
  11619. * BFD_RELOC_MACH_O_X86_64_PCREL32_2: howto manager. (line 2698)
  11620. * BFD_RELOC_MACH_O_X86_64_PCREL32_4: howto manager. (line 2700)
  11621. * BFD_RELOC_MACH_O_X86_64_TLV: howto manager. (line 2702)
  11622. * BFD_RELOC_MCORE_PCREL_32: howto manager. (line 1627)
  11623. * BFD_RELOC_MCORE_PCREL_IMM11BY2: howto manager. (line 1625)
  11624. * BFD_RELOC_MCORE_PCREL_IMM4BY2: howto manager. (line 1626)
  11625. * BFD_RELOC_MCORE_PCREL_IMM8BY4: howto manager. (line 1624)
  11626. * BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2: howto manager. (line 1628)
  11627. * BFD_RELOC_MCORE_RVA: howto manager. (line 1629)
  11628. * BFD_RELOC_MEP_16: howto manager. (line 1632)
  11629. * BFD_RELOC_MEP_32: howto manager. (line 1633)
  11630. * BFD_RELOC_MEP_8: howto manager. (line 1631)
  11631. * BFD_RELOC_MEP_ADDR24A4: howto manager. (line 1648)
  11632. * BFD_RELOC_MEP_GNU_VTENTRY: howto manager. (line 1650)
  11633. * BFD_RELOC_MEP_GNU_VTINHERIT: howto manager. (line 1649)
  11634. * BFD_RELOC_MEP_GPREL: howto manager. (line 1642)
  11635. * BFD_RELOC_MEP_HI16S: howto manager. (line 1641)
  11636. * BFD_RELOC_MEP_HI16U: howto manager. (line 1640)
  11637. * BFD_RELOC_MEP_LOW16: howto manager. (line 1639)
  11638. * BFD_RELOC_MEP_PCABS24A2: howto manager. (line 1638)
  11639. * BFD_RELOC_MEP_PCREL12A2: howto manager. (line 1635)
  11640. * BFD_RELOC_MEP_PCREL17A2: howto manager. (line 1636)
  11641. * BFD_RELOC_MEP_PCREL24A2: howto manager. (line 1637)
  11642. * BFD_RELOC_MEP_PCREL8A2: howto manager. (line 1634)
  11643. * BFD_RELOC_MEP_TPREL: howto manager. (line 1643)
  11644. * BFD_RELOC_MEP_TPREL7: howto manager. (line 1644)
  11645. * BFD_RELOC_MEP_TPREL7A2: howto manager. (line 1645)
  11646. * BFD_RELOC_MEP_TPREL7A4: howto manager. (line 1646)
  11647. * BFD_RELOC_MEP_UIMM24: howto manager. (line 1647)
  11648. * BFD_RELOC_METAG_COPY: howto manager. (line 1671)
  11649. * BFD_RELOC_METAG_GETSETOFF: howto manager. (line 1655)
  11650. * BFD_RELOC_METAG_GETSET_GOT: howto manager. (line 1663)
  11651. * BFD_RELOC_METAG_GETSET_GOTOFF: howto manager. (line 1662)
  11652. * BFD_RELOC_METAG_GLOB_DAT: howto manager. (line 1674)
  11653. * BFD_RELOC_METAG_GOTOFF: howto manager. (line 1669)
  11654. * BFD_RELOC_METAG_HI16_GOTOFF: howto manager. (line 1660)
  11655. * BFD_RELOC_METAG_HI16_GOTPC: howto manager. (line 1664)
  11656. * BFD_RELOC_METAG_HI16_PLT: howto manager. (line 1666)
  11657. * BFD_RELOC_METAG_HIADDR16: howto manager. (line 1652)
  11658. * BFD_RELOC_METAG_HIOG: howto manager. (line 1656)
  11659. * BFD_RELOC_METAG_JMP_SLOT: howto manager. (line 1672)
  11660. * BFD_RELOC_METAG_LO16_GOTOFF: howto manager. (line 1661)
  11661. * BFD_RELOC_METAG_LO16_GOTPC: howto manager. (line 1665)
  11662. * BFD_RELOC_METAG_LO16_PLT: howto manager. (line 1667)
  11663. * BFD_RELOC_METAG_LOADDR16: howto manager. (line 1653)
  11664. * BFD_RELOC_METAG_LOOG: howto manager. (line 1657)
  11665. * BFD_RELOC_METAG_PLT: howto manager. (line 1670)
  11666. * BFD_RELOC_METAG_REL16: howto manager. (line 1659)
  11667. * BFD_RELOC_METAG_REL8: howto manager. (line 1658)
  11668. * BFD_RELOC_METAG_RELATIVE: howto manager. (line 1673)
  11669. * BFD_RELOC_METAG_RELBRANCH: howto manager. (line 1654)
  11670. * BFD_RELOC_METAG_RELBRANCH_PLT: howto manager. (line 1668)
  11671. * BFD_RELOC_METAG_TLS_DTPMOD: howto manager. (line 1685)
  11672. * BFD_RELOC_METAG_TLS_DTPOFF: howto manager. (line 1686)
  11673. * BFD_RELOC_METAG_TLS_GD: howto manager. (line 1675)
  11674. * BFD_RELOC_METAG_TLS_IE: howto manager. (line 1680)
  11675. * BFD_RELOC_METAG_TLS_IENONPIC: howto manager. (line 1681)
  11676. * BFD_RELOC_METAG_TLS_IENONPIC_HI16: howto manager. (line 1682)
  11677. * BFD_RELOC_METAG_TLS_IENONPIC_LO16: howto manager. (line 1683)
  11678. * BFD_RELOC_METAG_TLS_LDM: howto manager. (line 1676)
  11679. * BFD_RELOC_METAG_TLS_LDO: howto manager. (line 1679)
  11680. * BFD_RELOC_METAG_TLS_LDO_HI16: howto manager. (line 1677)
  11681. * BFD_RELOC_METAG_TLS_LDO_LO16: howto manager. (line 1678)
  11682. * BFD_RELOC_METAG_TLS_LE: howto manager. (line 1687)
  11683. * BFD_RELOC_METAG_TLS_LE_HI16: howto manager. (line 1688)
  11684. * BFD_RELOC_METAG_TLS_LE_LO16: howto manager. (line 1689)
  11685. * BFD_RELOC_METAG_TLS_TPOFF: howto manager. (line 1684)
  11686. * BFD_RELOC_MICROBLAZE_32_GOTOFF: howto manager. (line 2746)
  11687. * BFD_RELOC_MICROBLAZE_32_LO: howto manager. (line 2712)
  11688. * BFD_RELOC_MICROBLAZE_32_LO_PCREL: howto manager. (line 2715)
  11689. * BFD_RELOC_MICROBLAZE_32_ROSDA: howto manager. (line 2718)
  11690. * BFD_RELOC_MICROBLAZE_32_RWSDA: howto manager. (line 2721)
  11691. * BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM: howto manager. (line 2724)
  11692. * BFD_RELOC_MICROBLAZE_32_TLSDTPMOD: howto manager. (line 2762)
  11693. * BFD_RELOC_MICROBLAZE_32_TLSDTPREL: howto manager. (line 2764)
  11694. * BFD_RELOC_MICROBLAZE_64_GOT: howto manager. (line 2735)
  11695. * BFD_RELOC_MICROBLAZE_64_GOTOFF: howto manager. (line 2742)
  11696. * BFD_RELOC_MICROBLAZE_64_GOTPC: howto manager. (line 2731)
  11697. * BFD_RELOC_MICROBLAZE_64_NONE: howto manager. (line 2727)
  11698. * BFD_RELOC_MICROBLAZE_64_PLT: howto manager. (line 2738)
  11699. * BFD_RELOC_MICROBLAZE_64_TEXTPCREL: howto manager. (line 2775)
  11700. * BFD_RELOC_MICROBLAZE_64_TEXTREL: howto manager. (line 2779)
  11701. * BFD_RELOC_MICROBLAZE_64_TLS: howto manager. (line 2752)
  11702. * BFD_RELOC_MICROBLAZE_64_TLSDTPREL: howto manager. (line 2766)
  11703. * BFD_RELOC_MICROBLAZE_64_TLSGD: howto manager. (line 2754)
  11704. * BFD_RELOC_MICROBLAZE_64_TLSGOTTPREL: howto manager. (line 2769)
  11705. * BFD_RELOC_MICROBLAZE_64_TLSLD: howto manager. (line 2758)
  11706. * BFD_RELOC_MICROBLAZE_64_TLSTPREL: howto manager. (line 2772)
  11707. * BFD_RELOC_MICROBLAZE_COPY: howto manager. (line 2749)
  11708. * BFD_RELOC_MICROMIPS_10_PCREL_S1: howto manager. (line 352)
  11709. * BFD_RELOC_MICROMIPS_16_PCREL_S1: howto manager. (line 353)
  11710. * BFD_RELOC_MICROMIPS_7_PCREL_S1: howto manager. (line 351)
  11711. * BFD_RELOC_MICROMIPS_CALL16: howto manager. (line 370)
  11712. * BFD_RELOC_MICROMIPS_CALL_HI16: howto manager. (line 376)
  11713. * BFD_RELOC_MICROMIPS_CALL_LO16: howto manager. (line 378)
  11714. * BFD_RELOC_MICROMIPS_GOT16: howto manager. (line 368)
  11715. * BFD_RELOC_MICROMIPS_GOT_DISP: howto manager. (line 386)
  11716. * BFD_RELOC_MICROMIPS_GOT_HI16: howto manager. (line 372)
  11717. * BFD_RELOC_MICROMIPS_GOT_LO16: howto manager. (line 374)
  11718. * BFD_RELOC_MICROMIPS_GOT_OFST: howto manager. (line 384)
  11719. * BFD_RELOC_MICROMIPS_GOT_PAGE: howto manager. (line 382)
  11720. * BFD_RELOC_MICROMIPS_GPREL16: howto manager. (line 362)
  11721. * BFD_RELOC_MICROMIPS_HI16: howto manager. (line 363)
  11722. * BFD_RELOC_MICROMIPS_HI16_S: howto manager. (line 364)
  11723. * BFD_RELOC_MICROMIPS_HIGHER: howto manager. (line 395)
  11724. * BFD_RELOC_MICROMIPS_HIGHEST: howto manager. (line 393)
  11725. * BFD_RELOC_MICROMIPS_JALR: howto manager. (line 401)
  11726. * BFD_RELOC_MICROMIPS_JMP: howto manager. (line 306)
  11727. * BFD_RELOC_MICROMIPS_LITERAL: howto manager. (line 349)
  11728. * BFD_RELOC_MICROMIPS_LO16: howto manager. (line 365)
  11729. * BFD_RELOC_MICROMIPS_SCN_DISP: howto manager. (line 397)
  11730. * BFD_RELOC_MICROMIPS_SUB: howto manager. (line 380)
  11731. * BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16: howto manager. (line 411)
  11732. * BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16: howto manager. (line 413)
  11733. * BFD_RELOC_MICROMIPS_TLS_GD: howto manager. (line 407)
  11734. * BFD_RELOC_MICROMIPS_TLS_GOTTPREL: howto manager. (line 415)
  11735. * BFD_RELOC_MICROMIPS_TLS_LDM: howto manager. (line 409)
  11736. * BFD_RELOC_MICROMIPS_TLS_TPREL_HI16: howto manager. (line 419)
  11737. * BFD_RELOC_MICROMIPS_TLS_TPREL_LO16: howto manager. (line 421)
  11738. * BFD_RELOC_MIPS16_16_PCREL_S1: howto manager. (line 355)
  11739. * BFD_RELOC_MIPS16_CALL16: howto manager. (line 328)
  11740. * BFD_RELOC_MIPS16_GOT16: howto manager. (line 327)
  11741. * BFD_RELOC_MIPS16_GPREL: howto manager. (line 310)
  11742. * BFD_RELOC_MIPS16_HI16: howto manager. (line 331)
  11743. * BFD_RELOC_MIPS16_HI16_S: howto manager. (line 333)
  11744. * BFD_RELOC_MIPS16_JMP: howto manager. (line 308)
  11745. * BFD_RELOC_MIPS16_LO16: howto manager. (line 338)
  11746. * BFD_RELOC_MIPS16_TLS_DTPREL_HI16: howto manager. (line 342)
  11747. * BFD_RELOC_MIPS16_TLS_DTPREL_LO16: howto manager. (line 343)
  11748. * BFD_RELOC_MIPS16_TLS_GD: howto manager. (line 340)
  11749. * BFD_RELOC_MIPS16_TLS_GOTTPREL: howto manager. (line 344)
  11750. * BFD_RELOC_MIPS16_TLS_LDM: howto manager. (line 341)
  11751. * BFD_RELOC_MIPS16_TLS_TPREL_HI16: howto manager. (line 345)
  11752. * BFD_RELOC_MIPS16_TLS_TPREL_LO16: howto manager. (line 346)
  11753. * BFD_RELOC_MIPS_18_PCREL_S3: howto manager. (line 359)
  11754. * BFD_RELOC_MIPS_19_PCREL_S2: howto manager. (line 360)
  11755. * BFD_RELOC_MIPS_21_PCREL_S2: howto manager. (line 357)
  11756. * BFD_RELOC_MIPS_26_PCREL_S2: howto manager. (line 358)
  11757. * BFD_RELOC_MIPS_CALL16: howto manager. (line 369)
  11758. * BFD_RELOC_MIPS_CALL_HI16: howto manager. (line 375)
  11759. * BFD_RELOC_MIPS_CALL_LO16: howto manager. (line 377)
  11760. * BFD_RELOC_MIPS_COPY: howto manager. (line 424)
  11761. * BFD_RELOC_MIPS_DELETE: howto manager. (line 391)
  11762. * BFD_RELOC_MIPS_EH: howto manager. (line 422)
  11763. * BFD_RELOC_MIPS_GOT16: howto manager. (line 367)
  11764. * BFD_RELOC_MIPS_GOT_DISP: howto manager. (line 385)
  11765. * BFD_RELOC_MIPS_GOT_HI16: howto manager. (line 371)
  11766. * BFD_RELOC_MIPS_GOT_LO16: howto manager. (line 373)
  11767. * BFD_RELOC_MIPS_GOT_OFST: howto manager. (line 383)
  11768. * BFD_RELOC_MIPS_GOT_PAGE: howto manager. (line 381)
  11769. * BFD_RELOC_MIPS_HIGHER: howto manager. (line 394)
  11770. * BFD_RELOC_MIPS_HIGHEST: howto manager. (line 392)
  11771. * BFD_RELOC_MIPS_INSERT_A: howto manager. (line 389)
  11772. * BFD_RELOC_MIPS_INSERT_B: howto manager. (line 390)
  11773. * BFD_RELOC_MIPS_JALR: howto manager. (line 400)
  11774. * BFD_RELOC_MIPS_JMP: howto manager. (line 305)
  11775. * BFD_RELOC_MIPS_JUMP_SLOT: howto manager. (line 425)
  11776. * BFD_RELOC_MIPS_LITERAL: howto manager. (line 348)
  11777. * BFD_RELOC_MIPS_REL16: howto manager. (line 398)
  11778. * BFD_RELOC_MIPS_RELGOT: howto manager. (line 399)
  11779. * BFD_RELOC_MIPS_SCN_DISP: howto manager. (line 396)
  11780. * BFD_RELOC_MIPS_SHIFT5: howto manager. (line 387)
  11781. * BFD_RELOC_MIPS_SHIFT6: howto manager. (line 388)
  11782. * BFD_RELOC_MIPS_SUB: howto manager. (line 379)
  11783. * BFD_RELOC_MIPS_TLS_DTPMOD32: howto manager. (line 402)
  11784. * BFD_RELOC_MIPS_TLS_DTPMOD64: howto manager. (line 404)
  11785. * BFD_RELOC_MIPS_TLS_DTPREL32: howto manager. (line 403)
  11786. * BFD_RELOC_MIPS_TLS_DTPREL64: howto manager. (line 405)
  11787. * BFD_RELOC_MIPS_TLS_DTPREL_HI16: howto manager. (line 410)
  11788. * BFD_RELOC_MIPS_TLS_DTPREL_LO16: howto manager. (line 412)
  11789. * BFD_RELOC_MIPS_TLS_GD: howto manager. (line 406)
  11790. * BFD_RELOC_MIPS_TLS_GOTTPREL: howto manager. (line 414)
  11791. * BFD_RELOC_MIPS_TLS_LDM: howto manager. (line 408)
  11792. * BFD_RELOC_MIPS_TLS_TPREL32: howto manager. (line 416)
  11793. * BFD_RELOC_MIPS_TLS_TPREL64: howto manager. (line 417)
  11794. * BFD_RELOC_MIPS_TLS_TPREL_HI16: howto manager. (line 418)
  11795. * BFD_RELOC_MIPS_TLS_TPREL_LO16: howto manager. (line 420)
  11796. * BFD_RELOC_MMIX_ADDR19: howto manager. (line 1713)
  11797. * BFD_RELOC_MMIX_ADDR27: howto manager. (line 1716)
  11798. * BFD_RELOC_MMIX_BASE_PLUS_OFFSET: howto manager. (line 1725)
  11799. * BFD_RELOC_MMIX_CBRANCH: howto manager. (line 1696)
  11800. * BFD_RELOC_MMIX_CBRANCH_1: howto manager. (line 1698)
  11801. * BFD_RELOC_MMIX_CBRANCH_2: howto manager. (line 1699)
  11802. * BFD_RELOC_MMIX_CBRANCH_3: howto manager. (line 1700)
  11803. * BFD_RELOC_MMIX_CBRANCH_J: howto manager. (line 1697)
  11804. * BFD_RELOC_MMIX_GETA: howto manager. (line 1691)
  11805. * BFD_RELOC_MMIX_GETA_1: howto manager. (line 1692)
  11806. * BFD_RELOC_MMIX_GETA_2: howto manager. (line 1693)
  11807. * BFD_RELOC_MMIX_GETA_3: howto manager. (line 1694)
  11808. * BFD_RELOC_MMIX_JMP: howto manager. (line 1708)
  11809. * BFD_RELOC_MMIX_JMP_1: howto manager. (line 1709)
  11810. * BFD_RELOC_MMIX_JMP_2: howto manager. (line 1710)
  11811. * BFD_RELOC_MMIX_JMP_3: howto manager. (line 1711)
  11812. * BFD_RELOC_MMIX_LOCAL: howto manager. (line 1728)
  11813. * BFD_RELOC_MMIX_PUSHJ: howto manager. (line 1702)
  11814. * BFD_RELOC_MMIX_PUSHJ_1: howto manager. (line 1703)
  11815. * BFD_RELOC_MMIX_PUSHJ_2: howto manager. (line 1704)
  11816. * BFD_RELOC_MMIX_PUSHJ_3: howto manager. (line 1705)
  11817. * BFD_RELOC_MMIX_PUSHJ_STUBBABLE: howto manager. (line 1706)
  11818. * BFD_RELOC_MMIX_REG: howto manager. (line 1722)
  11819. * BFD_RELOC_MMIX_REG_OR_BYTE: howto manager. (line 1719)
  11820. * BFD_RELOC_MN10300_16_PCREL: howto manager. (line 518)
  11821. * BFD_RELOC_MN10300_32_PCREL: howto manager. (line 515)
  11822. * BFD_RELOC_MN10300_ALIGN: howto manager. (line 502)
  11823. * BFD_RELOC_MN10300_COPY: howto manager. (line 490)
  11824. * BFD_RELOC_MN10300_GLOB_DAT: howto manager. (line 492)
  11825. * BFD_RELOC_MN10300_GOT16: howto manager. (line 487)
  11826. * BFD_RELOC_MN10300_GOT24: howto manager. (line 484)
  11827. * BFD_RELOC_MN10300_GOT32: howto manager. (line 481)
  11828. * BFD_RELOC_MN10300_GOTOFF24: howto manager. (line 479)
  11829. * BFD_RELOC_MN10300_JMP_SLOT: howto manager. (line 494)
  11830. * BFD_RELOC_MN10300_RELATIVE: howto manager. (line 496)
  11831. * BFD_RELOC_MN10300_SYM_DIFF: howto manager. (line 498)
  11832. * BFD_RELOC_MN10300_TLS_DTPMOD: howto manager. (line 511)
  11833. * BFD_RELOC_MN10300_TLS_DTPOFF: howto manager. (line 512)
  11834. * BFD_RELOC_MN10300_TLS_GD: howto manager. (line 505)
  11835. * BFD_RELOC_MN10300_TLS_GOTIE: howto manager. (line 508)
  11836. * BFD_RELOC_MN10300_TLS_IE: howto manager. (line 509)
  11837. * BFD_RELOC_MN10300_TLS_LD: howto manager. (line 506)
  11838. * BFD_RELOC_MN10300_TLS_LDO: howto manager. (line 507)
  11839. * BFD_RELOC_MN10300_TLS_LE: howto manager. (line 510)
  11840. * BFD_RELOC_MN10300_TLS_TPOFF: howto manager. (line 513)
  11841. * BFD_RELOC_MOXIE_10_PCREL: howto manager. (line 427)
  11842. * BFD_RELOC_MSP430X_ABS16: howto manager. (line 2457)
  11843. * BFD_RELOC_MSP430X_ABS20_ADR_DST: howto manager. (line 2454)
  11844. * BFD_RELOC_MSP430X_ABS20_ADR_SRC: howto manager. (line 2453)
  11845. * BFD_RELOC_MSP430X_ABS20_EXT_DST: howto manager. (line 2451)
  11846. * BFD_RELOC_MSP430X_ABS20_EXT_ODST: howto manager. (line 2452)
  11847. * BFD_RELOC_MSP430X_ABS20_EXT_SRC: howto manager. (line 2450)
  11848. * BFD_RELOC_MSP430X_PCR16: howto manager. (line 2455)
  11849. * BFD_RELOC_MSP430X_PCR20_CALL: howto manager. (line 2456)
  11850. * BFD_RELOC_MSP430X_PCR20_EXT_DST: howto manager. (line 2448)
  11851. * BFD_RELOC_MSP430X_PCR20_EXT_ODST: howto manager. (line 2449)
  11852. * BFD_RELOC_MSP430X_PCR20_EXT_SRC: howto manager. (line 2447)
  11853. * BFD_RELOC_MSP430_10_PCREL: howto manager. (line 2439)
  11854. * BFD_RELOC_MSP430_16: howto manager. (line 2441)
  11855. * BFD_RELOC_MSP430_16_BYTE: howto manager. (line 2443)
  11856. * BFD_RELOC_MSP430_16_PCREL: howto manager. (line 2440)
  11857. * BFD_RELOC_MSP430_16_PCREL_BYTE: howto manager. (line 2442)
  11858. * BFD_RELOC_MSP430_2X_PCREL: howto manager. (line 2444)
  11859. * BFD_RELOC_MSP430_ABS8: howto manager. (line 2446)
  11860. * BFD_RELOC_MSP430_ABS_HI16: howto manager. (line 2458)
  11861. * BFD_RELOC_MSP430_PREL31: howto manager. (line 2459)
  11862. * BFD_RELOC_MSP430_RL_PCREL: howto manager. (line 2445)
  11863. * BFD_RELOC_MSP430_SET_ULEB128: howto manager. (line 2461)
  11864. * BFD_RELOC_MSP430_SUB_ULEB128: howto manager. (line 2462)
  11865. * BFD_RELOC_MSP430_SYM_DIFF: howto manager. (line 2460)
  11866. * BFD_RELOC_MT_GNU_VTENTRY: howto manager. (line 2435)
  11867. * BFD_RELOC_MT_GNU_VTINHERIT: howto manager. (line 2433)
  11868. * BFD_RELOC_MT_HI16: howto manager. (line 2429)
  11869. * BFD_RELOC_MT_LO16: howto manager. (line 2431)
  11870. * BFD_RELOC_MT_PC16: howto manager. (line 2427)
  11871. * BFD_RELOC_MT_PCINSN8: howto manager. (line 2437)
  11872. * BFD_RELOC_NDS32_10IFCU_PCREL: howto manager. (line 1424)
  11873. * BFD_RELOC_NDS32_10_UPCREL: howto manager. (line 1395)
  11874. * BFD_RELOC_NDS32_15_FIXED: howto manager. (line 1356)
  11875. * BFD_RELOC_NDS32_15_PCREL: howto manager. (line 1282)
  11876. * BFD_RELOC_NDS32_17IFC_PCREL: howto manager. (line 1423)
  11877. * BFD_RELOC_NDS32_17_FIXED: howto manager. (line 1357)
  11878. * BFD_RELOC_NDS32_17_PCREL: howto manager. (line 1284)
  11879. * BFD_RELOC_NDS32_20: howto manager. (line 1274)
  11880. * BFD_RELOC_NDS32_25_ABS: howto manager. (line 1419)
  11881. * BFD_RELOC_NDS32_25_FIXED: howto manager. (line 1358)
  11882. * BFD_RELOC_NDS32_25_PCREL: howto manager. (line 1286)
  11883. * BFD_RELOC_NDS32_25_PLTREL: howto manager. (line 1332)
  11884. * BFD_RELOC_NDS32_5: howto manager. (line 1393)
  11885. * BFD_RELOC_NDS32_9_FIXED: howto manager. (line 1355)
  11886. * BFD_RELOC_NDS32_9_PCREL: howto manager. (line 1276)
  11887. * BFD_RELOC_NDS32_9_PLTREL: howto manager. (line 1331)
  11888. * BFD_RELOC_NDS32_COPY: howto manager. (line 1333)
  11889. * BFD_RELOC_NDS32_DATA: howto manager. (line 1421)
  11890. * BFD_RELOC_NDS32_DIFF16: howto manager. (line 1414)
  11891. * BFD_RELOC_NDS32_DIFF32: howto manager. (line 1415)
  11892. * BFD_RELOC_NDS32_DIFF8: howto manager. (line 1413)
  11893. * BFD_RELOC_NDS32_DIFF_ULEB128: howto manager. (line 1416)
  11894. * BFD_RELOC_NDS32_DWARF2_LEB: howto manager. (line 1379)
  11895. * BFD_RELOC_NDS32_DWARF2_OP1: howto manager. (line 1377)
  11896. * BFD_RELOC_NDS32_DWARF2_OP2: howto manager. (line 1378)
  11897. * BFD_RELOC_NDS32_EMPTY: howto manager. (line 1417)
  11898. * BFD_RELOC_NDS32_GLOB_DAT: howto manager. (line 1334)
  11899. * BFD_RELOC_NDS32_GOT15S2: howto manager. (line 1390)
  11900. * BFD_RELOC_NDS32_GOT17S2: howto manager. (line 1391)
  11901. * BFD_RELOC_NDS32_GOT20: howto manager. (line 1330)
  11902. * BFD_RELOC_NDS32_GOTOFF: howto manager. (line 1337)
  11903. * BFD_RELOC_NDS32_GOTOFF_HI20: howto manager. (line 1338)
  11904. * BFD_RELOC_NDS32_GOTOFF_LO12: howto manager. (line 1339)
  11905. * BFD_RELOC_NDS32_GOTOFF_LO15: howto manager. (line 1388)
  11906. * BFD_RELOC_NDS32_GOTOFF_LO19: howto manager. (line 1389)
  11907. * BFD_RELOC_NDS32_GOTOFF_SUFF: howto manager. (line 1402)
  11908. * BFD_RELOC_NDS32_GOTPC20: howto manager. (line 1340)
  11909. * BFD_RELOC_NDS32_GOTPC_HI20: howto manager. (line 1343)
  11910. * BFD_RELOC_NDS32_GOTPC_LO12: howto manager. (line 1344)
  11911. * BFD_RELOC_NDS32_GOTTPOFF: howto manager. (line 1427)
  11912. * BFD_RELOC_NDS32_GOT_HI20: howto manager. (line 1341)
  11913. * BFD_RELOC_NDS32_GOT_LO12: howto manager. (line 1342)
  11914. * BFD_RELOC_NDS32_GOT_LO15: howto manager. (line 1386)
  11915. * BFD_RELOC_NDS32_GOT_LO19: howto manager. (line 1387)
  11916. * BFD_RELOC_NDS32_GOT_SUFF: howto manager. (line 1401)
  11917. * BFD_RELOC_NDS32_GROUP: howto manager. (line 1453)
  11918. * BFD_RELOC_NDS32_HI20: howto manager. (line 1288)
  11919. * BFD_RELOC_NDS32_INSN16: howto manager. (line 1346)
  11920. * BFD_RELOC_NDS32_JMP_SLOT: howto manager. (line 1335)
  11921. * BFD_RELOC_NDS32_LABEL: howto manager. (line 1347)
  11922. * BFD_RELOC_NDS32_LO12S0: howto manager. (line 1300)
  11923. * BFD_RELOC_NDS32_LO12S0_ORI: howto manager. (line 1303)
  11924. * BFD_RELOC_NDS32_LO12S1: howto manager. (line 1297)
  11925. * BFD_RELOC_NDS32_LO12S2: howto manager. (line 1294)
  11926. * BFD_RELOC_NDS32_LO12S2_DP: howto manager. (line 1374)
  11927. * BFD_RELOC_NDS32_LO12S2_SP: howto manager. (line 1375)
  11928. * BFD_RELOC_NDS32_LO12S3: howto manager. (line 1291)
  11929. * BFD_RELOC_NDS32_LOADSTORE: howto manager. (line 1354)
  11930. * BFD_RELOC_NDS32_LONGCALL1: howto manager. (line 1348)
  11931. * BFD_RELOC_NDS32_LONGCALL2: howto manager. (line 1349)
  11932. * BFD_RELOC_NDS32_LONGCALL3: howto manager. (line 1350)
  11933. * BFD_RELOC_NDS32_LONGCALL4: howto manager. (line 1359)
  11934. * BFD_RELOC_NDS32_LONGCALL5: howto manager. (line 1360)
  11935. * BFD_RELOC_NDS32_LONGCALL6: howto manager. (line 1361)
  11936. * BFD_RELOC_NDS32_LONGJUMP1: howto manager. (line 1351)
  11937. * BFD_RELOC_NDS32_LONGJUMP2: howto manager. (line 1352)
  11938. * BFD_RELOC_NDS32_LONGJUMP3: howto manager. (line 1353)
  11939. * BFD_RELOC_NDS32_LONGJUMP4: howto manager. (line 1362)
  11940. * BFD_RELOC_NDS32_LONGJUMP5: howto manager. (line 1363)
  11941. * BFD_RELOC_NDS32_LONGJUMP6: howto manager. (line 1364)
  11942. * BFD_RELOC_NDS32_LONGJUMP7: howto manager. (line 1365)
  11943. * BFD_RELOC_NDS32_LSI: howto manager. (line 1455)
  11944. * BFD_RELOC_NDS32_MINUEND: howto manager. (line 1411)
  11945. * BFD_RELOC_NDS32_MULCALL_SUFF: howto manager. (line 1404)
  11946. * BFD_RELOC_NDS32_PLTBLOCK: howto manager. (line 1408)
  11947. * BFD_RELOC_NDS32_PLTREL_HI20: howto manager. (line 1367)
  11948. * BFD_RELOC_NDS32_PLTREL_LO12: howto manager. (line 1368)
  11949. * BFD_RELOC_NDS32_PLT_GOTREL_HI20: howto manager. (line 1369)
  11950. * BFD_RELOC_NDS32_PLT_GOTREL_LO12: howto manager. (line 1370)
  11951. * BFD_RELOC_NDS32_PLT_GOTREL_LO15: howto manager. (line 1384)
  11952. * BFD_RELOC_NDS32_PLT_GOTREL_LO19: howto manager. (line 1385)
  11953. * BFD_RELOC_NDS32_PLT_GOTREL_LO20: howto manager. (line 1383)
  11954. * BFD_RELOC_NDS32_PLT_GOT_SUFF: howto manager. (line 1403)
  11955. * BFD_RELOC_NDS32_PTR: howto manager. (line 1405)
  11956. * BFD_RELOC_NDS32_PTR_COUNT: howto manager. (line 1406)
  11957. * BFD_RELOC_NDS32_PTR_RESOLVED: howto manager. (line 1407)
  11958. * BFD_RELOC_NDS32_RELATIVE: howto manager. (line 1336)
  11959. * BFD_RELOC_NDS32_RELAX_ENTRY: howto manager. (line 1400)
  11960. * BFD_RELOC_NDS32_RELAX_REGION_BEGIN: howto manager. (line 1409)
  11961. * BFD_RELOC_NDS32_RELAX_REGION_END: howto manager. (line 1410)
  11962. * BFD_RELOC_NDS32_REMOVE: howto manager. (line 1452)
  11963. * BFD_RELOC_NDS32_SDA12S2_DP: howto manager. (line 1372)
  11964. * BFD_RELOC_NDS32_SDA12S2_SP: howto manager. (line 1373)
  11965. * BFD_RELOC_NDS32_SDA15S0: howto manager. (line 1315)
  11966. * BFD_RELOC_NDS32_SDA15S1: howto manager. (line 1312)
  11967. * BFD_RELOC_NDS32_SDA15S2: howto manager. (line 1309)
  11968. * BFD_RELOC_NDS32_SDA15S3: howto manager. (line 1306)
  11969. * BFD_RELOC_NDS32_SDA16S3: howto manager. (line 1318)
  11970. * BFD_RELOC_NDS32_SDA17S2: howto manager. (line 1321)
  11971. * BFD_RELOC_NDS32_SDA18S1: howto manager. (line 1324)
  11972. * BFD_RELOC_NDS32_SDA19S0: howto manager. (line 1327)
  11973. * BFD_RELOC_NDS32_SDA_FP7U2_RELA: howto manager. (line 1398)
  11974. * BFD_RELOC_NDS32_SUBTRAHEND: howto manager. (line 1412)
  11975. * BFD_RELOC_NDS32_TLS_DESC: howto manager. (line 1443)
  11976. * BFD_RELOC_NDS32_TLS_DESC_20: howto manager. (line 1446)
  11977. * BFD_RELOC_NDS32_TLS_DESC_ADD: howto manager. (line 1448)
  11978. * BFD_RELOC_NDS32_TLS_DESC_CALL: howto manager. (line 1450)
  11979. * BFD_RELOC_NDS32_TLS_DESC_FUNC: howto manager. (line 1449)
  11980. * BFD_RELOC_NDS32_TLS_DESC_HI20: howto manager. (line 1444)
  11981. * BFD_RELOC_NDS32_TLS_DESC_LO12: howto manager. (line 1445)
  11982. * BFD_RELOC_NDS32_TLS_DESC_MEM: howto manager. (line 1451)
  11983. * BFD_RELOC_NDS32_TLS_DESC_SDA17S2: howto manager. (line 1447)
  11984. * BFD_RELOC_NDS32_TLS_IEGP_HI20: howto manager. (line 1439)
  11985. * BFD_RELOC_NDS32_TLS_IEGP_LO12: howto manager. (line 1440)
  11986. * BFD_RELOC_NDS32_TLS_IEGP_LO12S2: howto manager. (line 1441)
  11987. * BFD_RELOC_NDS32_TLS_IEGP_LW: howto manager. (line 1442)
  11988. * BFD_RELOC_NDS32_TLS_IE_HI20: howto manager. (line 1436)
  11989. * BFD_RELOC_NDS32_TLS_IE_LO12: howto manager. (line 1437)
  11990. * BFD_RELOC_NDS32_TLS_IE_LO12S2: howto manager. (line 1438)
  11991. * BFD_RELOC_NDS32_TLS_LE_15S0: howto manager. (line 1431)
  11992. * BFD_RELOC_NDS32_TLS_LE_15S1: howto manager. (line 1432)
  11993. * BFD_RELOC_NDS32_TLS_LE_15S2: howto manager. (line 1433)
  11994. * BFD_RELOC_NDS32_TLS_LE_20: howto manager. (line 1430)
  11995. * BFD_RELOC_NDS32_TLS_LE_ADD: howto manager. (line 1434)
  11996. * BFD_RELOC_NDS32_TLS_LE_HI20: howto manager. (line 1428)
  11997. * BFD_RELOC_NDS32_TLS_LE_LO12: howto manager. (line 1429)
  11998. * BFD_RELOC_NDS32_TLS_LE_LS: howto manager. (line 1435)
  11999. * BFD_RELOC_NDS32_TPOFF: howto manager. (line 1426)
  12000. * BFD_RELOC_NDS32_TRAN: howto manager. (line 1422)
  12001. * BFD_RELOC_NDS32_UPDATE_TA: howto manager. (line 1381)
  12002. * BFD_RELOC_NDS32_WORD_9_PCREL: howto manager. (line 1279)
  12003. * BFD_RELOC_NIOS2_ALIGN: howto manager. (line 2478)
  12004. * BFD_RELOC_NIOS2_CACHE_OPX: howto manager. (line 2468)
  12005. * BFD_RELOC_NIOS2_CALL16: howto manager. (line 2480)
  12006. * BFD_RELOC_NIOS2_CALL26: howto manager. (line 2466)
  12007. * BFD_RELOC_NIOS2_CALL26_NOAT: howto manager. (line 2498)
  12008. * BFD_RELOC_NIOS2_CALLR: howto manager. (line 2477)
  12009. * BFD_RELOC_NIOS2_CALL_HA: howto manager. (line 2502)
  12010. * BFD_RELOC_NIOS2_CALL_LO: howto manager. (line 2501)
  12011. * BFD_RELOC_NIOS2_CJMP: howto manager. (line 2476)
  12012. * BFD_RELOC_NIOS2_COPY: howto manager. (line 2493)
  12013. * BFD_RELOC_NIOS2_GLOB_DAT: howto manager. (line 2494)
  12014. * BFD_RELOC_NIOS2_GOT16: howto manager. (line 2479)
  12015. * BFD_RELOC_NIOS2_GOTOFF: howto manager. (line 2497)
  12016. * BFD_RELOC_NIOS2_GOTOFF_HA: howto manager. (line 2482)
  12017. * BFD_RELOC_NIOS2_GOTOFF_LO: howto manager. (line 2481)
  12018. * BFD_RELOC_NIOS2_GOT_HA: howto manager. (line 2500)
  12019. * BFD_RELOC_NIOS2_GOT_LO: howto manager. (line 2499)
  12020. * BFD_RELOC_NIOS2_GPREL: howto manager. (line 2474)
  12021. * BFD_RELOC_NIOS2_HI16: howto manager. (line 2471)
  12022. * BFD_RELOC_NIOS2_HIADJ16: howto manager. (line 2473)
  12023. * BFD_RELOC_NIOS2_IMM5: howto manager. (line 2467)
  12024. * BFD_RELOC_NIOS2_IMM6: howto manager. (line 2469)
  12025. * BFD_RELOC_NIOS2_IMM8: howto manager. (line 2470)
  12026. * BFD_RELOC_NIOS2_JUMP_SLOT: howto manager. (line 2495)
  12027. * BFD_RELOC_NIOS2_LO16: howto manager. (line 2472)
  12028. * BFD_RELOC_NIOS2_PCREL_HA: howto manager. (line 2484)
  12029. * BFD_RELOC_NIOS2_PCREL_LO: howto manager. (line 2483)
  12030. * BFD_RELOC_NIOS2_R2_F1I5_2: howto manager. (line 2512)
  12031. * BFD_RELOC_NIOS2_R2_I10_1_PCREL: howto manager. (line 2504)
  12032. * BFD_RELOC_NIOS2_R2_L5I4X1: howto manager. (line 2513)
  12033. * BFD_RELOC_NIOS2_R2_S12: howto manager. (line 2503)
  12034. * BFD_RELOC_NIOS2_R2_T1I7_1_PCREL: howto manager. (line 2505)
  12035. * BFD_RELOC_NIOS2_R2_T1I7_2: howto manager. (line 2506)
  12036. * BFD_RELOC_NIOS2_R2_T1X1I6: howto manager. (line 2514)
  12037. * BFD_RELOC_NIOS2_R2_T1X1I6_2: howto manager. (line 2515)
  12038. * BFD_RELOC_NIOS2_R2_T2I4: howto manager. (line 2507)
  12039. * BFD_RELOC_NIOS2_R2_T2I4_1: howto manager. (line 2508)
  12040. * BFD_RELOC_NIOS2_R2_T2I4_2: howto manager. (line 2509)
  12041. * BFD_RELOC_NIOS2_R2_X1I7_2: howto manager. (line 2510)
  12042. * BFD_RELOC_NIOS2_R2_X2L5: howto manager. (line 2511)
  12043. * BFD_RELOC_NIOS2_RELATIVE: howto manager. (line 2496)
  12044. * BFD_RELOC_NIOS2_S16: howto manager. (line 2464)
  12045. * BFD_RELOC_NIOS2_TLS_DTPMOD: howto manager. (line 2490)
  12046. * BFD_RELOC_NIOS2_TLS_DTPREL: howto manager. (line 2491)
  12047. * BFD_RELOC_NIOS2_TLS_GD16: howto manager. (line 2485)
  12048. * BFD_RELOC_NIOS2_TLS_IE16: howto manager. (line 2488)
  12049. * BFD_RELOC_NIOS2_TLS_LDM16: howto manager. (line 2486)
  12050. * BFD_RELOC_NIOS2_TLS_LDO16: howto manager. (line 2487)
  12051. * BFD_RELOC_NIOS2_TLS_LE16: howto manager. (line 2489)
  12052. * BFD_RELOC_NIOS2_TLS_TPREL: howto manager. (line 2492)
  12053. * BFD_RELOC_NIOS2_U16: howto manager. (line 2465)
  12054. * BFD_RELOC_NIOS2_UJMP: howto manager. (line 2475)
  12055. * BFD_RELOC_NONE: howto manager. (line 118)
  12056. * BFD_RELOC_NS32K_DISP_16: howto manager. (line 586)
  12057. * BFD_RELOC_NS32K_DISP_16_PCREL: howto manager. (line 589)
  12058. * BFD_RELOC_NS32K_DISP_32: howto manager. (line 587)
  12059. * BFD_RELOC_NS32K_DISP_32_PCREL: howto manager. (line 590)
  12060. * BFD_RELOC_NS32K_DISP_8: howto manager. (line 585)
  12061. * BFD_RELOC_NS32K_DISP_8_PCREL: howto manager. (line 588)
  12062. * BFD_RELOC_NS32K_IMM_16: howto manager. (line 580)
  12063. * BFD_RELOC_NS32K_IMM_16_PCREL: howto manager. (line 583)
  12064. * BFD_RELOC_NS32K_IMM_32: howto manager. (line 581)
  12065. * BFD_RELOC_NS32K_IMM_32_PCREL: howto manager. (line 584)
  12066. * BFD_RELOC_NS32K_IMM_8: howto manager. (line 579)
  12067. * BFD_RELOC_NS32K_IMM_8_PCREL: howto manager. (line 582)
  12068. * bfd_reloc_offset_in_range: typedef arelent. (line 344)
  12069. * BFD_RELOC_OR1K_COPY: howto manager. (line 2377)
  12070. * BFD_RELOC_OR1K_GLOB_DAT: howto manager. (line 2378)
  12071. * BFD_RELOC_OR1K_GOT16: howto manager. (line 2371)
  12072. * BFD_RELOC_OR1K_GOTOFF_SLO16: howto manager. (line 2376)
  12073. * BFD_RELOC_OR1K_GOTPC_HI16: howto manager. (line 2369)
  12074. * BFD_RELOC_OR1K_GOTPC_LO16: howto manager. (line 2370)
  12075. * BFD_RELOC_OR1K_GOT_LO13: howto manager. (line 2373)
  12076. * BFD_RELOC_OR1K_GOT_PG21: howto manager. (line 2372)
  12077. * BFD_RELOC_OR1K_JMP_SLOT: howto manager. (line 2379)
  12078. * BFD_RELOC_OR1K_LO13: howto manager. (line 2367)
  12079. * BFD_RELOC_OR1K_PCREL_PG21: howto manager. (line 2366)
  12080. * BFD_RELOC_OR1K_PLT26: howto manager. (line 2374)
  12081. * BFD_RELOC_OR1K_PLTA26: howto manager. (line 2375)
  12082. * BFD_RELOC_OR1K_RELATIVE: howto manager. (line 2380)
  12083. * BFD_RELOC_OR1K_REL_26: howto manager. (line 2364)
  12084. * BFD_RELOC_OR1K_SLO13: howto manager. (line 2368)
  12085. * BFD_RELOC_OR1K_SLO16: howto manager. (line 2365)
  12086. * BFD_RELOC_OR1K_TLS_DTPMOD: howto manager. (line 2402)
  12087. * BFD_RELOC_OR1K_TLS_DTPOFF: howto manager. (line 2401)
  12088. * BFD_RELOC_OR1K_TLS_GD_HI16: howto manager. (line 2381)
  12089. * BFD_RELOC_OR1K_TLS_GD_LO13: howto manager. (line 2384)
  12090. * BFD_RELOC_OR1K_TLS_GD_LO16: howto manager. (line 2382)
  12091. * BFD_RELOC_OR1K_TLS_GD_PG21: howto manager. (line 2383)
  12092. * BFD_RELOC_OR1K_TLS_IE_AHI16: howto manager. (line 2392)
  12093. * BFD_RELOC_OR1K_TLS_IE_HI16: howto manager. (line 2391)
  12094. * BFD_RELOC_OR1K_TLS_IE_LO13: howto manager. (line 2395)
  12095. * BFD_RELOC_OR1K_TLS_IE_LO16: howto manager. (line 2393)
  12096. * BFD_RELOC_OR1K_TLS_IE_PG21: howto manager. (line 2394)
  12097. * BFD_RELOC_OR1K_TLS_LDM_HI16: howto manager. (line 2385)
  12098. * BFD_RELOC_OR1K_TLS_LDM_LO13: howto manager. (line 2388)
  12099. * BFD_RELOC_OR1K_TLS_LDM_LO16: howto manager. (line 2386)
  12100. * BFD_RELOC_OR1K_TLS_LDM_PG21: howto manager. (line 2387)
  12101. * BFD_RELOC_OR1K_TLS_LDO_HI16: howto manager. (line 2389)
  12102. * BFD_RELOC_OR1K_TLS_LDO_LO16: howto manager. (line 2390)
  12103. * BFD_RELOC_OR1K_TLS_LE_AHI16: howto manager. (line 2397)
  12104. * BFD_RELOC_OR1K_TLS_LE_HI16: howto manager. (line 2396)
  12105. * BFD_RELOC_OR1K_TLS_LE_LO16: howto manager. (line 2398)
  12106. * BFD_RELOC_OR1K_TLS_LE_SLO16: howto manager. (line 2399)
  12107. * BFD_RELOC_OR1K_TLS_TPOFF: howto manager. (line 2400)
  12108. * BFD_RELOC_PDP11_DISP_6_PCREL: howto manager. (line 593)
  12109. * BFD_RELOC_PDP11_DISP_8_PCREL: howto manager. (line 592)
  12110. * BFD_RELOC_PJ_CODE_DIR16: howto manager. (line 597)
  12111. * BFD_RELOC_PJ_CODE_DIR32: howto manager. (line 598)
  12112. * BFD_RELOC_PJ_CODE_HI16: howto manager. (line 595)
  12113. * BFD_RELOC_PJ_CODE_LO16: howto manager. (line 596)
  12114. * BFD_RELOC_PJ_CODE_REL16: howto manager. (line 599)
  12115. * BFD_RELOC_PJ_CODE_REL32: howto manager. (line 600)
  12116. * BFD_RELOC_PPC64_ADDR16_DS: howto manager. (line 663)
  12117. * BFD_RELOC_PPC64_ADDR16_HIGH: howto manager. (line 674)
  12118. * BFD_RELOC_PPC64_ADDR16_HIGHA: howto manager. (line 675)
  12119. * BFD_RELOC_PPC64_ADDR16_HIGHER34: howto manager. (line 692)
  12120. * BFD_RELOC_PPC64_ADDR16_HIGHERA34: howto manager. (line 693)
  12121. * BFD_RELOC_PPC64_ADDR16_HIGHEST34: howto manager. (line 694)
  12122. * BFD_RELOC_PPC64_ADDR16_HIGHESTA34: howto manager. (line 695)
  12123. * BFD_RELOC_PPC64_ADDR16_LO_DS: howto manager. (line 664)
  12124. * BFD_RELOC_PPC64_ADDR64_LOCAL: howto manager. (line 682)
  12125. * BFD_RELOC_PPC64_D28: howto manager. (line 700)
  12126. * BFD_RELOC_PPC64_D34: howto manager. (line 685)
  12127. * BFD_RELOC_PPC64_D34_HA30: howto manager. (line 688)
  12128. * BFD_RELOC_PPC64_D34_HI30: howto manager. (line 687)
  12129. * BFD_RELOC_PPC64_D34_LO: howto manager. (line 686)
  12130. * BFD_RELOC_PPC64_DTPREL16_DS: howto manager. (line 741)
  12131. * BFD_RELOC_PPC64_DTPREL16_HIGH: howto manager. (line 743)
  12132. * BFD_RELOC_PPC64_DTPREL16_HIGHA: howto manager. (line 744)
  12133. * BFD_RELOC_PPC64_DTPREL16_HIGHER: howto manager. (line 745)
  12134. * BFD_RELOC_PPC64_DTPREL16_HIGHERA: howto manager. (line 746)
  12135. * BFD_RELOC_PPC64_DTPREL16_HIGHEST: howto manager. (line 747)
  12136. * BFD_RELOC_PPC64_DTPREL16_HIGHESTA: howto manager. (line 748)
  12137. * BFD_RELOC_PPC64_DTPREL16_LO_DS: howto manager. (line 742)
  12138. * BFD_RELOC_PPC64_DTPREL34: howto manager. (line 750)
  12139. * BFD_RELOC_PPC64_ENTRY: howto manager. (line 683)
  12140. * BFD_RELOC_PPC64_GOT16_DS: howto manager. (line 665)
  12141. * BFD_RELOC_PPC64_GOT16_LO_DS: howto manager. (line 666)
  12142. * BFD_RELOC_PPC64_GOT_DTPREL_PCREL34: howto manager. (line 754)
  12143. * BFD_RELOC_PPC64_GOT_PCREL34: howto manager. (line 690)
  12144. * BFD_RELOC_PPC64_GOT_TLSGD_PCREL34: howto manager. (line 751)
  12145. * BFD_RELOC_PPC64_GOT_TLSLD_PCREL34: howto manager. (line 752)
  12146. * BFD_RELOC_PPC64_GOT_TPREL_PCREL34: howto manager. (line 753)
  12147. * BFD_RELOC_PPC64_HIGHER: howto manager. (line 651)
  12148. * BFD_RELOC_PPC64_HIGHER_S: howto manager. (line 652)
  12149. * BFD_RELOC_PPC64_HIGHEST: howto manager. (line 653)
  12150. * BFD_RELOC_PPC64_HIGHEST_S: howto manager. (line 654)
  12151. * BFD_RELOC_PPC64_PCREL28: howto manager. (line 701)
  12152. * BFD_RELOC_PPC64_PCREL34: howto manager. (line 689)
  12153. * BFD_RELOC_PPC64_PLT16_LO_DS: howto manager. (line 667)
  12154. * BFD_RELOC_PPC64_PLTGOT16: howto manager. (line 659)
  12155. * BFD_RELOC_PPC64_PLTGOT16_DS: howto manager. (line 672)
  12156. * BFD_RELOC_PPC64_PLTGOT16_HA: howto manager. (line 662)
  12157. * BFD_RELOC_PPC64_PLTGOT16_HI: howto manager. (line 661)
  12158. * BFD_RELOC_PPC64_PLTGOT16_LO: howto manager. (line 660)
  12159. * BFD_RELOC_PPC64_PLTGOT16_LO_DS: howto manager. (line 673)
  12160. * BFD_RELOC_PPC64_PLT_PCREL34: howto manager. (line 691)
  12161. * BFD_RELOC_PPC64_REL16_HIGH: howto manager. (line 676)
  12162. * BFD_RELOC_PPC64_REL16_HIGHA: howto manager. (line 677)
  12163. * BFD_RELOC_PPC64_REL16_HIGHER: howto manager. (line 678)
  12164. * BFD_RELOC_PPC64_REL16_HIGHER34: howto manager. (line 696)
  12165. * BFD_RELOC_PPC64_REL16_HIGHERA: howto manager. (line 679)
  12166. * BFD_RELOC_PPC64_REL16_HIGHERA34: howto manager. (line 697)
  12167. * BFD_RELOC_PPC64_REL16_HIGHEST: howto manager. (line 680)
  12168. * BFD_RELOC_PPC64_REL16_HIGHEST34: howto manager. (line 698)
  12169. * BFD_RELOC_PPC64_REL16_HIGHESTA: howto manager. (line 681)
  12170. * BFD_RELOC_PPC64_REL16_HIGHESTA34: howto manager. (line 699)
  12171. * BFD_RELOC_PPC64_REL24_NOTOC: howto manager. (line 684)
  12172. * BFD_RELOC_PPC64_SECTOFF_DS: howto manager. (line 668)
  12173. * BFD_RELOC_PPC64_SECTOFF_LO_DS: howto manager. (line 669)
  12174. * BFD_RELOC_PPC64_TLS_PCREL: howto manager. (line 755)
  12175. * BFD_RELOC_PPC64_TOC: howto manager. (line 658)
  12176. * BFD_RELOC_PPC64_TOC16_DS: howto manager. (line 670)
  12177. * BFD_RELOC_PPC64_TOC16_HA: howto manager. (line 657)
  12178. * BFD_RELOC_PPC64_TOC16_HI: howto manager. (line 656)
  12179. * BFD_RELOC_PPC64_TOC16_LO: howto manager. (line 655)
  12180. * BFD_RELOC_PPC64_TOC16_LO_DS: howto manager. (line 671)
  12181. * BFD_RELOC_PPC64_TPREL16_DS: howto manager. (line 733)
  12182. * BFD_RELOC_PPC64_TPREL16_HIGH: howto manager. (line 735)
  12183. * BFD_RELOC_PPC64_TPREL16_HIGHA: howto manager. (line 736)
  12184. * BFD_RELOC_PPC64_TPREL16_HIGHER: howto manager. (line 737)
  12185. * BFD_RELOC_PPC64_TPREL16_HIGHERA: howto manager. (line 738)
  12186. * BFD_RELOC_PPC64_TPREL16_HIGHEST: howto manager. (line 739)
  12187. * BFD_RELOC_PPC64_TPREL16_HIGHESTA: howto manager. (line 740)
  12188. * BFD_RELOC_PPC64_TPREL16_LO_DS: howto manager. (line 734)
  12189. * BFD_RELOC_PPC64_TPREL34: howto manager. (line 749)
  12190. * BFD_RELOC_PPC_16DX_HA: howto manager. (line 649)
  12191. * BFD_RELOC_PPC_B16: howto manager. (line 605)
  12192. * BFD_RELOC_PPC_B16_BRNTAKEN: howto manager. (line 607)
  12193. * BFD_RELOC_PPC_B16_BRTAKEN: howto manager. (line 606)
  12194. * BFD_RELOC_PPC_B26: howto manager. (line 602)
  12195. * BFD_RELOC_PPC_BA16: howto manager. (line 608)
  12196. * BFD_RELOC_PPC_BA16_BRNTAKEN: howto manager. (line 610)
  12197. * BFD_RELOC_PPC_BA16_BRTAKEN: howto manager. (line 609)
  12198. * BFD_RELOC_PPC_BA26: howto manager. (line 603)
  12199. * BFD_RELOC_PPC_COPY: howto manager. (line 611)
  12200. * BFD_RELOC_PPC_DTPMOD: howto manager. (line 706)
  12201. * BFD_RELOC_PPC_DTPREL: howto manager. (line 716)
  12202. * BFD_RELOC_PPC_DTPREL16: howto manager. (line 712)
  12203. * BFD_RELOC_PPC_DTPREL16_HA: howto manager. (line 715)
  12204. * BFD_RELOC_PPC_DTPREL16_HI: howto manager. (line 714)
  12205. * BFD_RELOC_PPC_DTPREL16_LO: howto manager. (line 713)
  12206. * BFD_RELOC_PPC_EMB_BIT_FLD: howto manager. (line 630)
  12207. * BFD_RELOC_PPC_EMB_MRKREF: howto manager. (line 625)
  12208. * BFD_RELOC_PPC_EMB_NADDR16: howto manager. (line 617)
  12209. * BFD_RELOC_PPC_EMB_NADDR16_HA: howto manager. (line 620)
  12210. * BFD_RELOC_PPC_EMB_NADDR16_HI: howto manager. (line 619)
  12211. * BFD_RELOC_PPC_EMB_NADDR16_LO: howto manager. (line 618)
  12212. * BFD_RELOC_PPC_EMB_NADDR32: howto manager. (line 616)
  12213. * BFD_RELOC_PPC_EMB_RELSDA: howto manager. (line 631)
  12214. * BFD_RELOC_PPC_EMB_RELSEC16: howto manager. (line 626)
  12215. * BFD_RELOC_PPC_EMB_RELST_HA: howto manager. (line 629)
  12216. * BFD_RELOC_PPC_EMB_RELST_HI: howto manager. (line 628)
  12217. * BFD_RELOC_PPC_EMB_RELST_LO: howto manager. (line 627)
  12218. * BFD_RELOC_PPC_EMB_SDA21: howto manager. (line 624)
  12219. * BFD_RELOC_PPC_EMB_SDA2I16: howto manager. (line 622)
  12220. * BFD_RELOC_PPC_EMB_SDA2REL: howto manager. (line 623)
  12221. * BFD_RELOC_PPC_EMB_SDAI16: howto manager. (line 621)
  12222. * BFD_RELOC_PPC_GLOB_DAT: howto manager. (line 612)
  12223. * BFD_RELOC_PPC_GOT_DTPREL16: howto manager. (line 729)
  12224. * BFD_RELOC_PPC_GOT_DTPREL16_HA: howto manager. (line 732)
  12225. * BFD_RELOC_PPC_GOT_DTPREL16_HI: howto manager. (line 731)
  12226. * BFD_RELOC_PPC_GOT_DTPREL16_LO: howto manager. (line 730)
  12227. * BFD_RELOC_PPC_GOT_TLSGD16: howto manager. (line 717)
  12228. * BFD_RELOC_PPC_GOT_TLSGD16_HA: howto manager. (line 720)
  12229. * BFD_RELOC_PPC_GOT_TLSGD16_HI: howto manager. (line 719)
  12230. * BFD_RELOC_PPC_GOT_TLSGD16_LO: howto manager. (line 718)
  12231. * BFD_RELOC_PPC_GOT_TLSLD16: howto manager. (line 721)
  12232. * BFD_RELOC_PPC_GOT_TLSLD16_HA: howto manager. (line 724)
  12233. * BFD_RELOC_PPC_GOT_TLSLD16_HI: howto manager. (line 723)
  12234. * BFD_RELOC_PPC_GOT_TLSLD16_LO: howto manager. (line 722)
  12235. * BFD_RELOC_PPC_GOT_TPREL16: howto manager. (line 725)
  12236. * BFD_RELOC_PPC_GOT_TPREL16_HA: howto manager. (line 728)
  12237. * BFD_RELOC_PPC_GOT_TPREL16_HI: howto manager. (line 727)
  12238. * BFD_RELOC_PPC_GOT_TPREL16_LO: howto manager. (line 726)
  12239. * BFD_RELOC_PPC_JMP_SLOT: howto manager. (line 613)
  12240. * BFD_RELOC_PPC_LOCAL24PC: howto manager. (line 615)
  12241. * BFD_RELOC_PPC_REL16DX_HA: howto manager. (line 650)
  12242. * BFD_RELOC_PPC_RELATIVE: howto manager. (line 614)
  12243. * BFD_RELOC_PPC_TLS: howto manager. (line 703)
  12244. * BFD_RELOC_PPC_TLSGD: howto manager. (line 704)
  12245. * BFD_RELOC_PPC_TLSLD: howto manager. (line 705)
  12246. * BFD_RELOC_PPC_TOC16: howto manager. (line 604)
  12247. * BFD_RELOC_PPC_TPREL: howto manager. (line 711)
  12248. * BFD_RELOC_PPC_TPREL16: howto manager. (line 707)
  12249. * BFD_RELOC_PPC_TPREL16_HA: howto manager. (line 710)
  12250. * BFD_RELOC_PPC_TPREL16_HI: howto manager. (line 709)
  12251. * BFD_RELOC_PPC_TPREL16_LO: howto manager. (line 708)
  12252. * BFD_RELOC_PPC_VLE_HA16A: howto manager. (line 639)
  12253. * BFD_RELOC_PPC_VLE_HA16D: howto manager. (line 640)
  12254. * BFD_RELOC_PPC_VLE_HI16A: howto manager. (line 637)
  12255. * BFD_RELOC_PPC_VLE_HI16D: howto manager. (line 638)
  12256. * BFD_RELOC_PPC_VLE_LO16A: howto manager. (line 635)
  12257. * BFD_RELOC_PPC_VLE_LO16D: howto manager. (line 636)
  12258. * BFD_RELOC_PPC_VLE_REL15: howto manager. (line 633)
  12259. * BFD_RELOC_PPC_VLE_REL24: howto manager. (line 634)
  12260. * BFD_RELOC_PPC_VLE_REL8: howto manager. (line 632)
  12261. * BFD_RELOC_PPC_VLE_SDA21: howto manager. (line 641)
  12262. * BFD_RELOC_PPC_VLE_SDA21_LO: howto manager. (line 642)
  12263. * BFD_RELOC_PPC_VLE_SDAREL_HA16A: howto manager. (line 647)
  12264. * BFD_RELOC_PPC_VLE_SDAREL_HA16D: howto manager. (line 648)
  12265. * BFD_RELOC_PPC_VLE_SDAREL_HI16A: howto manager. (line 645)
  12266. * BFD_RELOC_PPC_VLE_SDAREL_HI16D: howto manager. (line 646)
  12267. * BFD_RELOC_PPC_VLE_SDAREL_LO16A: howto manager. (line 643)
  12268. * BFD_RELOC_PPC_VLE_SDAREL_LO16D: howto manager. (line 644)
  12269. * BFD_RELOC_PRU_16_PMEM: howto manager. (line 2530)
  12270. * BFD_RELOC_PRU_32_PMEM: howto manager. (line 2529)
  12271. * BFD_RELOC_PRU_GNU_DIFF16: howto manager. (line 2534)
  12272. * BFD_RELOC_PRU_GNU_DIFF16_PMEM: howto manager. (line 2536)
  12273. * BFD_RELOC_PRU_GNU_DIFF32: howto manager. (line 2535)
  12274. * BFD_RELOC_PRU_GNU_DIFF32_PMEM: howto manager. (line 2537)
  12275. * BFD_RELOC_PRU_GNU_DIFF8: howto manager. (line 2533)
  12276. * BFD_RELOC_PRU_LDI32: howto manager. (line 2521)
  12277. * BFD_RELOC_PRU_S10_PCREL: howto manager. (line 2525)
  12278. * BFD_RELOC_PRU_U16: howto manager. (line 2517)
  12279. * BFD_RELOC_PRU_U16_PMEMIMM: howto manager. (line 2519)
  12280. * BFD_RELOC_PRU_U8_PCREL: howto manager. (line 2527)
  12281. * BFD_RELOC_RELC: howto manager. (line 2416)
  12282. * BFD_RELOC_RISCV_32_PCREL: howto manager. (line 1885)
  12283. * BFD_RELOC_RISCV_ADD16: howto manager. (line 1853)
  12284. * BFD_RELOC_RISCV_ADD32: howto manager. (line 1854)
  12285. * BFD_RELOC_RISCV_ADD64: howto manager. (line 1855)
  12286. * BFD_RELOC_RISCV_ADD8: howto manager. (line 1852)
  12287. * BFD_RELOC_RISCV_ALIGN: howto manager. (line 1870)
  12288. * BFD_RELOC_RISCV_CALL: howto manager. (line 1850)
  12289. * BFD_RELOC_RISCV_CALL_PLT: howto manager. (line 1851)
  12290. * BFD_RELOC_RISCV_CFA: howto manager. (line 1879)
  12291. * BFD_RELOC_RISCV_GOT_HI20: howto manager. (line 1860)
  12292. * BFD_RELOC_RISCV_GPREL12_I: howto manager. (line 1844)
  12293. * BFD_RELOC_RISCV_GPREL12_S: howto manager. (line 1845)
  12294. * BFD_RELOC_RISCV_GPREL_I: howto manager. (line 1874)
  12295. * BFD_RELOC_RISCV_GPREL_S: howto manager. (line 1875)
  12296. * BFD_RELOC_RISCV_HI20: howto manager. (line 1838)
  12297. * BFD_RELOC_RISCV_JMP: howto manager. (line 1863)
  12298. * BFD_RELOC_RISCV_LO12_I: howto manager. (line 1842)
  12299. * BFD_RELOC_RISCV_LO12_S: howto manager. (line 1843)
  12300. * BFD_RELOC_RISCV_PCREL_HI20: howto manager. (line 1839)
  12301. * BFD_RELOC_RISCV_PCREL_LO12_I: howto manager. (line 1840)
  12302. * BFD_RELOC_RISCV_PCREL_LO12_S: howto manager. (line 1841)
  12303. * BFD_RELOC_RISCV_RELAX: howto manager. (line 1878)
  12304. * BFD_RELOC_RISCV_RVC_BRANCH: howto manager. (line 1871)
  12305. * BFD_RELOC_RISCV_RVC_JUMP: howto manager. (line 1872)
  12306. * BFD_RELOC_RISCV_RVC_LUI: howto manager. (line 1873)
  12307. * BFD_RELOC_RISCV_SET16: howto manager. (line 1883)
  12308. * BFD_RELOC_RISCV_SET32: howto manager. (line 1884)
  12309. * BFD_RELOC_RISCV_SET6: howto manager. (line 1881)
  12310. * BFD_RELOC_RISCV_SET8: howto manager. (line 1882)
  12311. * BFD_RELOC_RISCV_SUB16: howto manager. (line 1857)
  12312. * BFD_RELOC_RISCV_SUB32: howto manager. (line 1858)
  12313. * BFD_RELOC_RISCV_SUB6: howto manager. (line 1880)
  12314. * BFD_RELOC_RISCV_SUB64: howto manager. (line 1859)
  12315. * BFD_RELOC_RISCV_SUB8: howto manager. (line 1856)
  12316. * BFD_RELOC_RISCV_TLS_DTPMOD32: howto manager. (line 1864)
  12317. * BFD_RELOC_RISCV_TLS_DTPMOD64: howto manager. (line 1866)
  12318. * BFD_RELOC_RISCV_TLS_DTPREL32: howto manager. (line 1865)
  12319. * BFD_RELOC_RISCV_TLS_DTPREL64: howto manager. (line 1867)
  12320. * BFD_RELOC_RISCV_TLS_GD_HI20: howto manager. (line 1862)
  12321. * BFD_RELOC_RISCV_TLS_GOT_HI20: howto manager. (line 1861)
  12322. * BFD_RELOC_RISCV_TLS_TPREL32: howto manager. (line 1868)
  12323. * BFD_RELOC_RISCV_TLS_TPREL64: howto manager. (line 1869)
  12324. * BFD_RELOC_RISCV_TPREL_ADD: howto manager. (line 1849)
  12325. * BFD_RELOC_RISCV_TPREL_HI20: howto manager. (line 1846)
  12326. * BFD_RELOC_RISCV_TPREL_I: howto manager. (line 1876)
  12327. * BFD_RELOC_RISCV_TPREL_LO12_I: howto manager. (line 1847)
  12328. * BFD_RELOC_RISCV_TPREL_LO12_S: howto manager. (line 1848)
  12329. * BFD_RELOC_RISCV_TPREL_S: howto manager. (line 1877)
  12330. * BFD_RELOC_RL78_16U: howto manager. (line 1895)
  12331. * BFD_RELOC_RL78_16_OP: howto manager. (line 1891)
  12332. * BFD_RELOC_RL78_24U: howto manager. (line 1896)
  12333. * BFD_RELOC_RL78_24_OP: howto manager. (line 1892)
  12334. * BFD_RELOC_RL78_32_OP: howto manager. (line 1893)
  12335. * BFD_RELOC_RL78_8U: howto manager. (line 1894)
  12336. * BFD_RELOC_RL78_ABS16: howto manager. (line 1908)
  12337. * BFD_RELOC_RL78_ABS16U: howto manager. (line 1912)
  12338. * BFD_RELOC_RL78_ABS16UL: howto manager. (line 1914)
  12339. * BFD_RELOC_RL78_ABS16UW: howto manager. (line 1913)
  12340. * BFD_RELOC_RL78_ABS16_REV: howto manager. (line 1909)
  12341. * BFD_RELOC_RL78_ABS32: howto manager. (line 1910)
  12342. * BFD_RELOC_RL78_ABS32_REV: howto manager. (line 1911)
  12343. * BFD_RELOC_RL78_ABS8: howto manager. (line 1907)
  12344. * BFD_RELOC_RL78_CODE: howto manager. (line 1919)
  12345. * BFD_RELOC_RL78_DIFF: howto manager. (line 1898)
  12346. * BFD_RELOC_RL78_DIR3U_PCREL: howto manager. (line 1897)
  12347. * BFD_RELOC_RL78_GPRELB: howto manager. (line 1899)
  12348. * BFD_RELOC_RL78_GPRELL: howto manager. (line 1901)
  12349. * BFD_RELOC_RL78_GPRELW: howto manager. (line 1900)
  12350. * BFD_RELOC_RL78_HI16: howto manager. (line 1916)
  12351. * BFD_RELOC_RL78_HI8: howto manager. (line 1917)
  12352. * BFD_RELOC_RL78_LO16: howto manager. (line 1918)
  12353. * BFD_RELOC_RL78_NEG16: howto manager. (line 1888)
  12354. * BFD_RELOC_RL78_NEG24: howto manager. (line 1889)
  12355. * BFD_RELOC_RL78_NEG32: howto manager. (line 1890)
  12356. * BFD_RELOC_RL78_NEG8: howto manager. (line 1887)
  12357. * BFD_RELOC_RL78_OP_AND: howto manager. (line 1905)
  12358. * BFD_RELOC_RL78_OP_NEG: howto manager. (line 1904)
  12359. * BFD_RELOC_RL78_OP_SHRA: howto manager. (line 1906)
  12360. * BFD_RELOC_RL78_OP_SUBTRACT: howto manager. (line 1903)
  12361. * BFD_RELOC_RL78_RELAX: howto manager. (line 1915)
  12362. * BFD_RELOC_RL78_SADDR: howto manager. (line 1920)
  12363. * BFD_RELOC_RL78_SYM: howto manager. (line 1902)
  12364. * BFD_RELOC_RVA: howto manager. (line 95)
  12365. * BFD_RELOC_RX_16U: howto manager. (line 1930)
  12366. * BFD_RELOC_RX_16_OP: howto manager. (line 1926)
  12367. * BFD_RELOC_RX_24U: howto manager. (line 1931)
  12368. * BFD_RELOC_RX_24_OP: howto manager. (line 1927)
  12369. * BFD_RELOC_RX_32_OP: howto manager. (line 1928)
  12370. * BFD_RELOC_RX_8U: howto manager. (line 1929)
  12371. * BFD_RELOC_RX_ABS16: howto manager. (line 1941)
  12372. * BFD_RELOC_RX_ABS16U: howto manager. (line 1945)
  12373. * BFD_RELOC_RX_ABS16UL: howto manager. (line 1947)
  12374. * BFD_RELOC_RX_ABS16UW: howto manager. (line 1946)
  12375. * BFD_RELOC_RX_ABS16_REV: howto manager. (line 1942)
  12376. * BFD_RELOC_RX_ABS32: howto manager. (line 1943)
  12377. * BFD_RELOC_RX_ABS32_REV: howto manager. (line 1944)
  12378. * BFD_RELOC_RX_ABS8: howto manager. (line 1940)
  12379. * BFD_RELOC_RX_DIFF: howto manager. (line 1933)
  12380. * BFD_RELOC_RX_DIR3U_PCREL: howto manager. (line 1932)
  12381. * BFD_RELOC_RX_GPRELB: howto manager. (line 1934)
  12382. * BFD_RELOC_RX_GPRELL: howto manager. (line 1936)
  12383. * BFD_RELOC_RX_GPRELW: howto manager. (line 1935)
  12384. * BFD_RELOC_RX_NEG16: howto manager. (line 1923)
  12385. * BFD_RELOC_RX_NEG24: howto manager. (line 1924)
  12386. * BFD_RELOC_RX_NEG32: howto manager. (line 1925)
  12387. * BFD_RELOC_RX_NEG8: howto manager. (line 1922)
  12388. * BFD_RELOC_RX_OP_NEG: howto manager. (line 1939)
  12389. * BFD_RELOC_RX_OP_SUBTRACT: howto manager. (line 1938)
  12390. * BFD_RELOC_RX_RELAX: howto manager. (line 1948)
  12391. * BFD_RELOC_RX_SYM: howto manager. (line 1937)
  12392. * BFD_RELOC_S12Z_15_PCREL: howto manager. (line 2260)
  12393. * BFD_RELOC_S12Z_OPR: howto manager. (line 3436)
  12394. * BFD_RELOC_SCORE16_BRANCH: howto manager. (line 2051)
  12395. * BFD_RELOC_SCORE16_JMP: howto manager. (line 2049)
  12396. * BFD_RELOC_SCORE_BCMP: howto manager. (line 2053)
  12397. * BFD_RELOC_SCORE_BRANCH: howto manager. (line 2043)
  12398. * BFD_RELOC_SCORE_CALL15: howto manager. (line 2057)
  12399. * BFD_RELOC_SCORE_DUMMY2: howto manager. (line 2040)
  12400. * BFD_RELOC_SCORE_DUMMY_HI16: howto manager. (line 2058)
  12401. * BFD_RELOC_SCORE_GOT15: howto manager. (line 2055)
  12402. * BFD_RELOC_SCORE_GOT_LO16: howto manager. (line 2056)
  12403. * BFD_RELOC_SCORE_GPREL15: howto manager. (line 2038)
  12404. * BFD_RELOC_SCORE_IMM30: howto manager. (line 2045)
  12405. * BFD_RELOC_SCORE_IMM32: howto manager. (line 2047)
  12406. * BFD_RELOC_SCORE_JMP: howto manager. (line 2041)
  12407. * BFD_RELOC_SH_ALIGN: howto manager. (line 952)
  12408. * BFD_RELOC_SH_CODE: howto manager. (line 953)
  12409. * BFD_RELOC_SH_COPY: howto manager. (line 958)
  12410. * BFD_RELOC_SH_COPY64: howto manager. (line 983)
  12411. * BFD_RELOC_SH_COUNT: howto manager. (line 951)
  12412. * BFD_RELOC_SH_DATA: howto manager. (line 954)
  12413. * BFD_RELOC_SH_DISP12: howto manager. (line 934)
  12414. * BFD_RELOC_SH_DISP12BY2: howto manager. (line 935)
  12415. * BFD_RELOC_SH_DISP12BY4: howto manager. (line 936)
  12416. * BFD_RELOC_SH_DISP12BY8: howto manager. (line 937)
  12417. * BFD_RELOC_SH_DISP20: howto manager. (line 938)
  12418. * BFD_RELOC_SH_DISP20BY8: howto manager. (line 939)
  12419. * BFD_RELOC_SH_FUNCDESC: howto manager. (line 1026)
  12420. * BFD_RELOC_SH_GLOB_DAT: howto manager. (line 959)
  12421. * BFD_RELOC_SH_GLOB_DAT64: howto manager. (line 984)
  12422. * BFD_RELOC_SH_GOT10BY4: howto manager. (line 987)
  12423. * BFD_RELOC_SH_GOT10BY8: howto manager. (line 988)
  12424. * BFD_RELOC_SH_GOT20: howto manager. (line 1020)
  12425. * BFD_RELOC_SH_GOTFUNCDESC: howto manager. (line 1022)
  12426. * BFD_RELOC_SH_GOTFUNCDESC20: howto manager. (line 1023)
  12427. * BFD_RELOC_SH_GOTOFF20: howto manager. (line 1021)
  12428. * BFD_RELOC_SH_GOTOFFFUNCDESC: howto manager. (line 1024)
  12429. * BFD_RELOC_SH_GOTOFFFUNCDESC20: howto manager. (line 1025)
  12430. * BFD_RELOC_SH_GOTOFF_HI16: howto manager. (line 978)
  12431. * BFD_RELOC_SH_GOTOFF_LOW16: howto manager. (line 975)
  12432. * BFD_RELOC_SH_GOTOFF_MEDHI16: howto manager. (line 977)
  12433. * BFD_RELOC_SH_GOTOFF_MEDLOW16: howto manager. (line 976)
  12434. * BFD_RELOC_SH_GOTPC: howto manager. (line 962)
  12435. * BFD_RELOC_SH_GOTPC_HI16: howto manager. (line 982)
  12436. * BFD_RELOC_SH_GOTPC_LOW16: howto manager. (line 979)
  12437. * BFD_RELOC_SH_GOTPC_MEDHI16: howto manager. (line 981)
  12438. * BFD_RELOC_SH_GOTPC_MEDLOW16: howto manager. (line 980)
  12439. * BFD_RELOC_SH_GOTPLT10BY4: howto manager. (line 989)
  12440. * BFD_RELOC_SH_GOTPLT10BY8: howto manager. (line 990)
  12441. * BFD_RELOC_SH_GOTPLT32: howto manager. (line 991)
  12442. * BFD_RELOC_SH_GOTPLT_HI16: howto manager. (line 970)
  12443. * BFD_RELOC_SH_GOTPLT_LOW16: howto manager. (line 967)
  12444. * BFD_RELOC_SH_GOTPLT_MEDHI16: howto manager. (line 969)
  12445. * BFD_RELOC_SH_GOTPLT_MEDLOW16: howto manager. (line 968)
  12446. * BFD_RELOC_SH_GOT_HI16: howto manager. (line 966)
  12447. * BFD_RELOC_SH_GOT_LOW16: howto manager. (line 963)
  12448. * BFD_RELOC_SH_GOT_MEDHI16: howto manager. (line 965)
  12449. * BFD_RELOC_SH_GOT_MEDLOW16: howto manager. (line 964)
  12450. * BFD_RELOC_SH_IMM3: howto manager. (line 932)
  12451. * BFD_RELOC_SH_IMM3U: howto manager. (line 933)
  12452. * BFD_RELOC_SH_IMM4: howto manager. (line 940)
  12453. * BFD_RELOC_SH_IMM4BY2: howto manager. (line 941)
  12454. * BFD_RELOC_SH_IMM4BY4: howto manager. (line 942)
  12455. * BFD_RELOC_SH_IMM8: howto manager. (line 943)
  12456. * BFD_RELOC_SH_IMM8BY2: howto manager. (line 944)
  12457. * BFD_RELOC_SH_IMM8BY4: howto manager. (line 945)
  12458. * BFD_RELOC_SH_IMMS10: howto manager. (line 997)
  12459. * BFD_RELOC_SH_IMMS10BY2: howto manager. (line 998)
  12460. * BFD_RELOC_SH_IMMS10BY4: howto manager. (line 999)
  12461. * BFD_RELOC_SH_IMMS10BY8: howto manager. (line 1000)
  12462. * BFD_RELOC_SH_IMMS16: howto manager. (line 1001)
  12463. * BFD_RELOC_SH_IMMS6: howto manager. (line 994)
  12464. * BFD_RELOC_SH_IMMS6BY32: howto manager. (line 995)
  12465. * BFD_RELOC_SH_IMMU16: howto manager. (line 1002)
  12466. * BFD_RELOC_SH_IMMU5: howto manager. (line 993)
  12467. * BFD_RELOC_SH_IMMU6: howto manager. (line 996)
  12468. * BFD_RELOC_SH_IMM_HI16: howto manager. (line 1009)
  12469. * BFD_RELOC_SH_IMM_HI16_PCREL: howto manager. (line 1010)
  12470. * BFD_RELOC_SH_IMM_LOW16: howto manager. (line 1003)
  12471. * BFD_RELOC_SH_IMM_LOW16_PCREL: howto manager. (line 1004)
  12472. * BFD_RELOC_SH_IMM_MEDHI16: howto manager. (line 1007)
  12473. * BFD_RELOC_SH_IMM_MEDHI16_PCREL: howto manager. (line 1008)
  12474. * BFD_RELOC_SH_IMM_MEDLOW16: howto manager. (line 1005)
  12475. * BFD_RELOC_SH_IMM_MEDLOW16_PCREL: howto manager. (line 1006)
  12476. * BFD_RELOC_SH_JMP_SLOT: howto manager. (line 960)
  12477. * BFD_RELOC_SH_JMP_SLOT64: howto manager. (line 985)
  12478. * BFD_RELOC_SH_LABEL: howto manager. (line 955)
  12479. * BFD_RELOC_SH_LOOP_END: howto manager. (line 957)
  12480. * BFD_RELOC_SH_LOOP_START: howto manager. (line 956)
  12481. * BFD_RELOC_SH_PCDISP12BY2: howto manager. (line 931)
  12482. * BFD_RELOC_SH_PCDISP8BY2: howto manager. (line 930)
  12483. * BFD_RELOC_SH_PCRELIMM8BY2: howto manager. (line 946)
  12484. * BFD_RELOC_SH_PCRELIMM8BY4: howto manager. (line 947)
  12485. * BFD_RELOC_SH_PLT_HI16: howto manager. (line 974)
  12486. * BFD_RELOC_SH_PLT_LOW16: howto manager. (line 971)
  12487. * BFD_RELOC_SH_PLT_MEDHI16: howto manager. (line 973)
  12488. * BFD_RELOC_SH_PLT_MEDLOW16: howto manager. (line 972)
  12489. * BFD_RELOC_SH_PT_16: howto manager. (line 1011)
  12490. * BFD_RELOC_SH_RELATIVE: howto manager. (line 961)
  12491. * BFD_RELOC_SH_RELATIVE64: howto manager. (line 986)
  12492. * BFD_RELOC_SH_SHMEDIA_CODE: howto manager. (line 992)
  12493. * BFD_RELOC_SH_SWITCH16: howto manager. (line 948)
  12494. * BFD_RELOC_SH_SWITCH32: howto manager. (line 949)
  12495. * BFD_RELOC_SH_TLS_DTPMOD32: howto manager. (line 1017)
  12496. * BFD_RELOC_SH_TLS_DTPOFF32: howto manager. (line 1018)
  12497. * BFD_RELOC_SH_TLS_GD_32: howto manager. (line 1012)
  12498. * BFD_RELOC_SH_TLS_IE_32: howto manager. (line 1015)
  12499. * BFD_RELOC_SH_TLS_LDO_32: howto manager. (line 1014)
  12500. * BFD_RELOC_SH_TLS_LD_32: howto manager. (line 1013)
  12501. * BFD_RELOC_SH_TLS_LE_32: howto manager. (line 1016)
  12502. * BFD_RELOC_SH_TLS_TPOFF32: howto manager. (line 1019)
  12503. * BFD_RELOC_SH_USES: howto manager. (line 950)
  12504. * BFD_RELOC_SIZE32: howto manager. (line 67)
  12505. * BFD_RELOC_SIZE64: howto manager. (line 68)
  12506. * BFD_RELOC_SPARC13: howto manager. (line 121)
  12507. * BFD_RELOC_SPARC22: howto manager. (line 120)
  12508. * BFD_RELOC_SPARC_10: howto manager. (line 148)
  12509. * BFD_RELOC_SPARC_11: howto manager. (line 149)
  12510. * BFD_RELOC_SPARC_5: howto manager. (line 161)
  12511. * BFD_RELOC_SPARC_6: howto manager. (line 160)
  12512. * BFD_RELOC_SPARC_64: howto manager. (line 147)
  12513. * BFD_RELOC_SPARC_7: howto manager. (line 159)
  12514. * BFD_RELOC_SPARC_BASE13: howto manager. (line 144)
  12515. * BFD_RELOC_SPARC_BASE22: howto manager. (line 145)
  12516. * BFD_RELOC_SPARC_COPY: howto manager. (line 128)
  12517. * BFD_RELOC_SPARC_DISP64: howto manager. (line 162)
  12518. * BFD_RELOC_SPARC_GLOB_DAT: howto manager. (line 129)
  12519. * BFD_RELOC_SPARC_GOT10: howto manager. (line 122)
  12520. * BFD_RELOC_SPARC_GOT13: howto manager. (line 123)
  12521. * BFD_RELOC_SPARC_GOT22: howto manager. (line 124)
  12522. * BFD_RELOC_SPARC_GOTDATA_HIX22: howto manager. (line 135)
  12523. * BFD_RELOC_SPARC_GOTDATA_LOX10: howto manager. (line 136)
  12524. * BFD_RELOC_SPARC_GOTDATA_OP: howto manager. (line 139)
  12525. * BFD_RELOC_SPARC_GOTDATA_OP_HIX22: howto manager. (line 137)
  12526. * BFD_RELOC_SPARC_GOTDATA_OP_LOX10: howto manager. (line 138)
  12527. * BFD_RELOC_SPARC_H34: howto manager. (line 171)
  12528. * BFD_RELOC_SPARC_H44: howto manager. (line 167)
  12529. * BFD_RELOC_SPARC_HH22: howto manager. (line 151)
  12530. * BFD_RELOC_SPARC_HIX22: howto manager. (line 165)
  12531. * BFD_RELOC_SPARC_HM10: howto manager. (line 152)
  12532. * BFD_RELOC_SPARC_IRELATIVE: howto manager. (line 141)
  12533. * BFD_RELOC_SPARC_JMP_IREL: howto manager. (line 140)
  12534. * BFD_RELOC_SPARC_JMP_SLOT: howto manager. (line 130)
  12535. * BFD_RELOC_SPARC_L44: howto manager. (line 169)
  12536. * BFD_RELOC_SPARC_LM22: howto manager. (line 153)
  12537. * BFD_RELOC_SPARC_LOX10: howto manager. (line 166)
  12538. * BFD_RELOC_SPARC_M44: howto manager. (line 168)
  12539. * BFD_RELOC_SPARC_OLO10: howto manager. (line 150)
  12540. * BFD_RELOC_SPARC_PC10: howto manager. (line 125)
  12541. * BFD_RELOC_SPARC_PC22: howto manager. (line 126)
  12542. * BFD_RELOC_SPARC_PC_HH22: howto manager. (line 154)
  12543. * BFD_RELOC_SPARC_PC_HM10: howto manager. (line 155)
  12544. * BFD_RELOC_SPARC_PC_LM22: howto manager. (line 156)
  12545. * BFD_RELOC_SPARC_PLT32: howto manager. (line 163)
  12546. * BFD_RELOC_SPARC_PLT64: howto manager. (line 164)
  12547. * BFD_RELOC_SPARC_REGISTER: howto manager. (line 170)
  12548. * BFD_RELOC_SPARC_RELATIVE: howto manager. (line 131)
  12549. * BFD_RELOC_SPARC_REV32: howto manager. (line 176)
  12550. * BFD_RELOC_SPARC_SIZE32: howto manager. (line 172)
  12551. * BFD_RELOC_SPARC_SIZE64: howto manager. (line 173)
  12552. * BFD_RELOC_SPARC_TLS_DTPMOD32: howto manager. (line 196)
  12553. * BFD_RELOC_SPARC_TLS_DTPMOD64: howto manager. (line 197)
  12554. * BFD_RELOC_SPARC_TLS_DTPOFF32: howto manager. (line 198)
  12555. * BFD_RELOC_SPARC_TLS_DTPOFF64: howto manager. (line 199)
  12556. * BFD_RELOC_SPARC_TLS_GD_ADD: howto manager. (line 180)
  12557. * BFD_RELOC_SPARC_TLS_GD_CALL: howto manager. (line 181)
  12558. * BFD_RELOC_SPARC_TLS_GD_HI22: howto manager. (line 178)
  12559. * BFD_RELOC_SPARC_TLS_GD_LO10: howto manager. (line 179)
  12560. * BFD_RELOC_SPARC_TLS_IE_ADD: howto manager. (line 193)
  12561. * BFD_RELOC_SPARC_TLS_IE_HI22: howto manager. (line 189)
  12562. * BFD_RELOC_SPARC_TLS_IE_LD: howto manager. (line 191)
  12563. * BFD_RELOC_SPARC_TLS_IE_LDX: howto manager. (line 192)
  12564. * BFD_RELOC_SPARC_TLS_IE_LO10: howto manager. (line 190)
  12565. * BFD_RELOC_SPARC_TLS_LDM_ADD: howto manager. (line 184)
  12566. * BFD_RELOC_SPARC_TLS_LDM_CALL: howto manager. (line 185)
  12567. * BFD_RELOC_SPARC_TLS_LDM_HI22: howto manager. (line 182)
  12568. * BFD_RELOC_SPARC_TLS_LDM_LO10: howto manager. (line 183)
  12569. * BFD_RELOC_SPARC_TLS_LDO_ADD: howto manager. (line 188)
  12570. * BFD_RELOC_SPARC_TLS_LDO_HIX22: howto manager. (line 186)
  12571. * BFD_RELOC_SPARC_TLS_LDO_LOX10: howto manager. (line 187)
  12572. * BFD_RELOC_SPARC_TLS_LE_HIX22: howto manager. (line 194)
  12573. * BFD_RELOC_SPARC_TLS_LE_LOX10: howto manager. (line 195)
  12574. * BFD_RELOC_SPARC_TLS_TPOFF32: howto manager. (line 200)
  12575. * BFD_RELOC_SPARC_TLS_TPOFF64: howto manager. (line 201)
  12576. * BFD_RELOC_SPARC_UA16: howto manager. (line 132)
  12577. * BFD_RELOC_SPARC_UA32: howto manager. (line 133)
  12578. * BFD_RELOC_SPARC_UA64: howto manager. (line 134)
  12579. * BFD_RELOC_SPARC_WDISP10: howto manager. (line 174)
  12580. * BFD_RELOC_SPARC_WDISP16: howto manager. (line 157)
  12581. * BFD_RELOC_SPARC_WDISP19: howto manager. (line 158)
  12582. * BFD_RELOC_SPARC_WDISP22: howto manager. (line 119)
  12583. * BFD_RELOC_SPARC_WPLT30: howto manager. (line 127)
  12584. * BFD_RELOC_SPU_ADD_PIC: howto manager. (line 217)
  12585. * BFD_RELOC_SPU_HI16: howto manager. (line 214)
  12586. * BFD_RELOC_SPU_IMM10: howto manager. (line 205)
  12587. * BFD_RELOC_SPU_IMM10W: howto manager. (line 206)
  12588. * BFD_RELOC_SPU_IMM16: howto manager. (line 207)
  12589. * BFD_RELOC_SPU_IMM16W: howto manager. (line 208)
  12590. * BFD_RELOC_SPU_IMM18: howto manager. (line 209)
  12591. * BFD_RELOC_SPU_IMM7: howto manager. (line 203)
  12592. * BFD_RELOC_SPU_IMM8: howto manager. (line 204)
  12593. * BFD_RELOC_SPU_LO16: howto manager. (line 213)
  12594. * BFD_RELOC_SPU_PCREL16: howto manager. (line 212)
  12595. * BFD_RELOC_SPU_PCREL9a: howto manager. (line 210)
  12596. * BFD_RELOC_SPU_PCREL9b: howto manager. (line 211)
  12597. * BFD_RELOC_SPU_PPU32: howto manager. (line 215)
  12598. * BFD_RELOC_SPU_PPU64: howto manager. (line 216)
  12599. * BFD_RELOC_THUMB_PCREL_BFCSEL: howto manager. (line 782)
  12600. * BFD_RELOC_THUMB_PCREL_BLX: howto manager. (line 771)
  12601. * BFD_RELOC_THUMB_PCREL_BRANCH12: howto manager. (line 794)
  12602. * BFD_RELOC_THUMB_PCREL_BRANCH20: howto manager. (line 795)
  12603. * BFD_RELOC_THUMB_PCREL_BRANCH23: howto manager. (line 796)
  12604. * BFD_RELOC_THUMB_PCREL_BRANCH25: howto manager. (line 797)
  12605. * BFD_RELOC_THUMB_PCREL_BRANCH5: howto manager. (line 780)
  12606. * BFD_RELOC_THUMB_PCREL_BRANCH7: howto manager. (line 792)
  12607. * BFD_RELOC_THUMB_PCREL_BRANCH9: howto manager. (line 793)
  12608. * BFD_RELOC_TIC30_LDP: howto manager. (line 1549)
  12609. * BFD_RELOC_TIC54X_16_OF_23: howto manager. (line 1563)
  12610. * BFD_RELOC_TIC54X_23: howto manager. (line 1561)
  12611. * BFD_RELOC_TIC54X_MS7_OF_23: howto manager. (line 1567)
  12612. * BFD_RELOC_TIC54X_PARTLS7: howto manager. (line 1553)
  12613. * BFD_RELOC_TIC54X_PARTMS9: howto manager. (line 1557)
  12614. * BFD_RELOC_TILEGX_BROFF_X1: howto manager. (line 3231)
  12615. * BFD_RELOC_TILEGX_COPY: howto manager. (line 3227)
  12616. * BFD_RELOC_TILEGX_DEST_IMM8_X1: howto manager. (line 3238)
  12617. * BFD_RELOC_TILEGX_GLOB_DAT: howto manager. (line 3228)
  12618. * BFD_RELOC_TILEGX_HW0: howto manager. (line 3220)
  12619. * BFD_RELOC_TILEGX_HW0_LAST: howto manager. (line 3224)
  12620. * BFD_RELOC_TILEGX_HW1: howto manager. (line 3221)
  12621. * BFD_RELOC_TILEGX_HW1_LAST: howto manager. (line 3225)
  12622. * BFD_RELOC_TILEGX_HW2: howto manager. (line 3222)
  12623. * BFD_RELOC_TILEGX_HW2_LAST: howto manager. (line 3226)
  12624. * BFD_RELOC_TILEGX_HW3: howto manager. (line 3223)
  12625. * BFD_RELOC_TILEGX_IMM16_X0_HW0: howto manager. (line 3247)
  12626. * BFD_RELOC_TILEGX_IMM16_X0_HW0_GOT: howto manager. (line 3275)
  12627. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST: howto manager. (line 3255)
  12628. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_GOT: howto manager. (line 3283)
  12629. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PCREL: howto manager. (line 3269)
  12630. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL: howto manager.
  12631. (line 3303)
  12632. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_GD: howto manager. (line 3297)
  12633. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_IE: howto manager. (line 3309)
  12634. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE: howto manager. (line 3293)
  12635. * BFD_RELOC_TILEGX_IMM16_X0_HW0_PCREL: howto manager. (line 3261)
  12636. * BFD_RELOC_TILEGX_IMM16_X0_HW0_PLT_PCREL: howto manager. (line 3277)
  12637. * BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_GD: howto manager. (line 3289)
  12638. * BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_IE: howto manager. (line 3301)
  12639. * BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE: howto manager. (line 3291)
  12640. * BFD_RELOC_TILEGX_IMM16_X0_HW1: howto manager. (line 3249)
  12641. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST: howto manager. (line 3257)
  12642. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_GOT: howto manager. (line 3285)
  12643. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PCREL: howto manager. (line 3271)
  12644. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL: howto manager.
  12645. (line 3305)
  12646. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_GD: howto manager. (line 3299)
  12647. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_IE: howto manager. (line 3311)
  12648. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE: howto manager. (line 3295)
  12649. * BFD_RELOC_TILEGX_IMM16_X0_HW1_PCREL: howto manager. (line 3263)
  12650. * BFD_RELOC_TILEGX_IMM16_X0_HW1_PLT_PCREL: howto manager. (line 3279)
  12651. * BFD_RELOC_TILEGX_IMM16_X0_HW2: howto manager. (line 3251)
  12652. * BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST: howto manager. (line 3259)
  12653. * BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PCREL: howto manager. (line 3273)
  12654. * BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL: howto manager.
  12655. (line 3307)
  12656. * BFD_RELOC_TILEGX_IMM16_X0_HW2_PCREL: howto manager. (line 3265)
  12657. * BFD_RELOC_TILEGX_IMM16_X0_HW2_PLT_PCREL: howto manager. (line 3281)
  12658. * BFD_RELOC_TILEGX_IMM16_X0_HW3: howto manager. (line 3253)
  12659. * BFD_RELOC_TILEGX_IMM16_X0_HW3_PCREL: howto manager. (line 3267)
  12660. * BFD_RELOC_TILEGX_IMM16_X0_HW3_PLT_PCREL: howto manager. (line 3287)
  12661. * BFD_RELOC_TILEGX_IMM16_X1_HW0: howto manager. (line 3248)
  12662. * BFD_RELOC_TILEGX_IMM16_X1_HW0_GOT: howto manager. (line 3276)
  12663. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST: howto manager. (line 3256)
  12664. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_GOT: howto manager. (line 3284)
  12665. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PCREL: howto manager. (line 3270)
  12666. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL: howto manager.
  12667. (line 3304)
  12668. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_GD: howto manager. (line 3298)
  12669. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_IE: howto manager. (line 3310)
  12670. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE: howto manager. (line 3294)
  12671. * BFD_RELOC_TILEGX_IMM16_X1_HW0_PCREL: howto manager. (line 3262)
  12672. * BFD_RELOC_TILEGX_IMM16_X1_HW0_PLT_PCREL: howto manager. (line 3278)
  12673. * BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_GD: howto manager. (line 3290)
  12674. * BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_IE: howto manager. (line 3302)
  12675. * BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE: howto manager. (line 3292)
  12676. * BFD_RELOC_TILEGX_IMM16_X1_HW1: howto manager. (line 3250)
  12677. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST: howto manager. (line 3258)
  12678. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_GOT: howto manager. (line 3286)
  12679. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PCREL: howto manager. (line 3272)
  12680. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL: howto manager.
  12681. (line 3306)
  12682. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_GD: howto manager. (line 3300)
  12683. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_IE: howto manager. (line 3312)
  12684. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE: howto manager. (line 3296)
  12685. * BFD_RELOC_TILEGX_IMM16_X1_HW1_PCREL: howto manager. (line 3264)
  12686. * BFD_RELOC_TILEGX_IMM16_X1_HW1_PLT_PCREL: howto manager. (line 3280)
  12687. * BFD_RELOC_TILEGX_IMM16_X1_HW2: howto manager. (line 3252)
  12688. * BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST: howto manager. (line 3260)
  12689. * BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PCREL: howto manager. (line 3274)
  12690. * BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL: howto manager.
  12691. (line 3308)
  12692. * BFD_RELOC_TILEGX_IMM16_X1_HW2_PCREL: howto manager. (line 3266)
  12693. * BFD_RELOC_TILEGX_IMM16_X1_HW2_PLT_PCREL: howto manager. (line 3282)
  12694. * BFD_RELOC_TILEGX_IMM16_X1_HW3: howto manager. (line 3254)
  12695. * BFD_RELOC_TILEGX_IMM16_X1_HW3_PCREL: howto manager. (line 3268)
  12696. * BFD_RELOC_TILEGX_IMM16_X1_HW3_PLT_PCREL: howto manager. (line 3288)
  12697. * BFD_RELOC_TILEGX_IMM8_X0: howto manager. (line 3234)
  12698. * BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD: howto manager. (line 3325)
  12699. * BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD: howto manager. (line 3320)
  12700. * BFD_RELOC_TILEGX_IMM8_X1: howto manager. (line 3236)
  12701. * BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD: howto manager. (line 3326)
  12702. * BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD: howto manager. (line 3321)
  12703. * BFD_RELOC_TILEGX_IMM8_Y0: howto manager. (line 3235)
  12704. * BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD: howto manager. (line 3327)
  12705. * BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD: howto manager. (line 3322)
  12706. * BFD_RELOC_TILEGX_IMM8_Y1: howto manager. (line 3237)
  12707. * BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD: howto manager. (line 3328)
  12708. * BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD: howto manager. (line 3323)
  12709. * BFD_RELOC_TILEGX_JMP_SLOT: howto manager. (line 3229)
  12710. * BFD_RELOC_TILEGX_JUMPOFF_X1: howto manager. (line 3232)
  12711. * BFD_RELOC_TILEGX_JUMPOFF_X1_PLT: howto manager. (line 3233)
  12712. * BFD_RELOC_TILEGX_MF_IMM14_X1: howto manager. (line 3240)
  12713. * BFD_RELOC_TILEGX_MMEND_X0: howto manager. (line 3242)
  12714. * BFD_RELOC_TILEGX_MMSTART_X0: howto manager. (line 3241)
  12715. * BFD_RELOC_TILEGX_MT_IMM14_X1: howto manager. (line 3239)
  12716. * BFD_RELOC_TILEGX_RELATIVE: howto manager. (line 3230)
  12717. * BFD_RELOC_TILEGX_SHAMT_X0: howto manager. (line 3243)
  12718. * BFD_RELOC_TILEGX_SHAMT_X1: howto manager. (line 3244)
  12719. * BFD_RELOC_TILEGX_SHAMT_Y0: howto manager. (line 3245)
  12720. * BFD_RELOC_TILEGX_SHAMT_Y1: howto manager. (line 3246)
  12721. * BFD_RELOC_TILEGX_TLS_DTPMOD32: howto manager. (line 3316)
  12722. * BFD_RELOC_TILEGX_TLS_DTPMOD64: howto manager. (line 3313)
  12723. * BFD_RELOC_TILEGX_TLS_DTPOFF32: howto manager. (line 3317)
  12724. * BFD_RELOC_TILEGX_TLS_DTPOFF64: howto manager. (line 3314)
  12725. * BFD_RELOC_TILEGX_TLS_GD_CALL: howto manager. (line 3319)
  12726. * BFD_RELOC_TILEGX_TLS_IE_LOAD: howto manager. (line 3324)
  12727. * BFD_RELOC_TILEGX_TLS_TPOFF32: howto manager. (line 3318)
  12728. * BFD_RELOC_TILEGX_TLS_TPOFF64: howto manager. (line 3315)
  12729. * BFD_RELOC_TILEPRO_BROFF_X1: howto manager. (line 3144)
  12730. * BFD_RELOC_TILEPRO_COPY: howto manager. (line 3140)
  12731. * BFD_RELOC_TILEPRO_DEST_IMM8_X1: howto manager. (line 3151)
  12732. * BFD_RELOC_TILEPRO_GLOB_DAT: howto manager. (line 3141)
  12733. * BFD_RELOC_TILEPRO_IMM16_X0: howto manager. (line 3154)
  12734. * BFD_RELOC_TILEPRO_IMM16_X0_GOT: howto manager. (line 3170)
  12735. * BFD_RELOC_TILEPRO_IMM16_X0_GOT_HA: howto manager. (line 3176)
  12736. * BFD_RELOC_TILEPRO_IMM16_X0_GOT_HI: howto manager. (line 3174)
  12737. * BFD_RELOC_TILEPRO_IMM16_X0_GOT_LO: howto manager. (line 3172)
  12738. * BFD_RELOC_TILEPRO_IMM16_X0_HA: howto manager. (line 3160)
  12739. * BFD_RELOC_TILEPRO_IMM16_X0_HA_PCREL: howto manager. (line 3168)
  12740. * BFD_RELOC_TILEPRO_IMM16_X0_HI: howto manager. (line 3158)
  12741. * BFD_RELOC_TILEPRO_IMM16_X0_HI_PCREL: howto manager. (line 3166)
  12742. * BFD_RELOC_TILEPRO_IMM16_X0_LO: howto manager. (line 3156)
  12743. * BFD_RELOC_TILEPRO_IMM16_X0_LO_PCREL: howto manager. (line 3164)
  12744. * BFD_RELOC_TILEPRO_IMM16_X0_PCREL: howto manager. (line 3162)
  12745. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD: howto manager. (line 3192)
  12746. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HA: howto manager. (line 3198)
  12747. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HI: howto manager. (line 3196)
  12748. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_LO: howto manager. (line 3194)
  12749. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE: howto manager. (line 3200)
  12750. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HA: howto manager. (line 3206)
  12751. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HI: howto manager. (line 3204)
  12752. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_LO: howto manager. (line 3202)
  12753. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE: howto manager. (line 3211)
  12754. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA: howto manager. (line 3217)
  12755. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI: howto manager. (line 3215)
  12756. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO: howto manager. (line 3213)
  12757. * BFD_RELOC_TILEPRO_IMM16_X1: howto manager. (line 3155)
  12758. * BFD_RELOC_TILEPRO_IMM16_X1_GOT: howto manager. (line 3171)
  12759. * BFD_RELOC_TILEPRO_IMM16_X1_GOT_HA: howto manager. (line 3177)
  12760. * BFD_RELOC_TILEPRO_IMM16_X1_GOT_HI: howto manager. (line 3175)
  12761. * BFD_RELOC_TILEPRO_IMM16_X1_GOT_LO: howto manager. (line 3173)
  12762. * BFD_RELOC_TILEPRO_IMM16_X1_HA: howto manager. (line 3161)
  12763. * BFD_RELOC_TILEPRO_IMM16_X1_HA_PCREL: howto manager. (line 3169)
  12764. * BFD_RELOC_TILEPRO_IMM16_X1_HI: howto manager. (line 3159)
  12765. * BFD_RELOC_TILEPRO_IMM16_X1_HI_PCREL: howto manager. (line 3167)
  12766. * BFD_RELOC_TILEPRO_IMM16_X1_LO: howto manager. (line 3157)
  12767. * BFD_RELOC_TILEPRO_IMM16_X1_LO_PCREL: howto manager. (line 3165)
  12768. * BFD_RELOC_TILEPRO_IMM16_X1_PCREL: howto manager. (line 3163)
  12769. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD: howto manager. (line 3193)
  12770. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HA: howto manager. (line 3199)
  12771. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HI: howto manager. (line 3197)
  12772. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_LO: howto manager. (line 3195)
  12773. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE: howto manager. (line 3201)
  12774. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HA: howto manager. (line 3207)
  12775. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HI: howto manager. (line 3205)
  12776. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_LO: howto manager. (line 3203)
  12777. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE: howto manager. (line 3212)
  12778. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA: howto manager. (line 3218)
  12779. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI: howto manager. (line 3216)
  12780. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO: howto manager. (line 3214)
  12781. * BFD_RELOC_TILEPRO_IMM8_X0: howto manager. (line 3147)
  12782. * BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD: howto manager. (line 3187)
  12783. * BFD_RELOC_TILEPRO_IMM8_X1: howto manager. (line 3149)
  12784. * BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD: howto manager. (line 3188)
  12785. * BFD_RELOC_TILEPRO_IMM8_Y0: howto manager. (line 3148)
  12786. * BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD: howto manager. (line 3189)
  12787. * BFD_RELOC_TILEPRO_IMM8_Y1: howto manager. (line 3150)
  12788. * BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD: howto manager. (line 3190)
  12789. * BFD_RELOC_TILEPRO_JMP_SLOT: howto manager. (line 3142)
  12790. * BFD_RELOC_TILEPRO_JOFFLONG_X1: howto manager. (line 3145)
  12791. * BFD_RELOC_TILEPRO_JOFFLONG_X1_PLT: howto manager. (line 3146)
  12792. * BFD_RELOC_TILEPRO_MF_IMM15_X1: howto manager. (line 3153)
  12793. * BFD_RELOC_TILEPRO_MMEND_X0: howto manager. (line 3179)
  12794. * BFD_RELOC_TILEPRO_MMEND_X1: howto manager. (line 3181)
  12795. * BFD_RELOC_TILEPRO_MMSTART_X0: howto manager. (line 3178)
  12796. * BFD_RELOC_TILEPRO_MMSTART_X1: howto manager. (line 3180)
  12797. * BFD_RELOC_TILEPRO_MT_IMM15_X1: howto manager. (line 3152)
  12798. * BFD_RELOC_TILEPRO_RELATIVE: howto manager. (line 3143)
  12799. * BFD_RELOC_TILEPRO_SHAMT_X0: howto manager. (line 3182)
  12800. * BFD_RELOC_TILEPRO_SHAMT_X1: howto manager. (line 3183)
  12801. * BFD_RELOC_TILEPRO_SHAMT_Y0: howto manager. (line 3184)
  12802. * BFD_RELOC_TILEPRO_SHAMT_Y1: howto manager. (line 3185)
  12803. * BFD_RELOC_TILEPRO_TLS_DTPMOD32: howto manager. (line 3208)
  12804. * BFD_RELOC_TILEPRO_TLS_DTPOFF32: howto manager. (line 3209)
  12805. * BFD_RELOC_TILEPRO_TLS_GD_CALL: howto manager. (line 3186)
  12806. * BFD_RELOC_TILEPRO_TLS_IE_LOAD: howto manager. (line 3191)
  12807. * BFD_RELOC_TILEPRO_TLS_TPOFF32: howto manager. (line 3210)
  12808. * bfd_reloc_type_lookup: howto manager. (line 3440)
  12809. * BFD_RELOC_V850_16_GOT: howto manager. (line 1525)
  12810. * BFD_RELOC_V850_16_GOTOFF: howto manager. (line 1541)
  12811. * BFD_RELOC_V850_16_PCREL: howto manager. (line 1505)
  12812. * BFD_RELOC_V850_16_S1: howto manager. (line 1517)
  12813. * BFD_RELOC_V850_16_SPLIT_OFFSET: howto manager. (line 1515)
  12814. * BFD_RELOC_V850_17_PCREL: howto manager. (line 1507)
  12815. * BFD_RELOC_V850_22_PCREL: howto manager. (line 1459)
  12816. * BFD_RELOC_V850_22_PLT_PCREL: howto manager. (line 1529)
  12817. * BFD_RELOC_V850_23: howto manager. (line 1509)
  12818. * BFD_RELOC_V850_32_ABS: howto manager. (line 1513)
  12819. * BFD_RELOC_V850_32_GOT: howto manager. (line 1527)
  12820. * BFD_RELOC_V850_32_GOTOFF: howto manager. (line 1543)
  12821. * BFD_RELOC_V850_32_GOTPCREL: howto manager. (line 1523)
  12822. * BFD_RELOC_V850_32_PCREL: howto manager. (line 1511)
  12823. * BFD_RELOC_V850_32_PLT_PCREL: howto manager. (line 1531)
  12824. * BFD_RELOC_V850_9_PCREL: howto manager. (line 1457)
  12825. * BFD_RELOC_V850_ALIGN: howto manager. (line 1500)
  12826. * BFD_RELOC_V850_CALLT_15_16_OFFSET: howto manager. (line 1521)
  12827. * BFD_RELOC_V850_CALLT_16_16_OFFSET: howto manager. (line 1494)
  12828. * BFD_RELOC_V850_CALLT_6_7_OFFSET: howto manager. (line 1492)
  12829. * BFD_RELOC_V850_CODE: howto manager. (line 1545)
  12830. * BFD_RELOC_V850_COPY: howto manager. (line 1533)
  12831. * BFD_RELOC_V850_DATA: howto manager. (line 1547)
  12832. * BFD_RELOC_V850_GLOB_DAT: howto manager. (line 1535)
  12833. * BFD_RELOC_V850_JMP_SLOT: howto manager. (line 1537)
  12834. * BFD_RELOC_V850_LO16_S1: howto manager. (line 1519)
  12835. * BFD_RELOC_V850_LO16_SPLIT_OFFSET: howto manager. (line 1502)
  12836. * BFD_RELOC_V850_LONGCALL: howto manager. (line 1496)
  12837. * BFD_RELOC_V850_LONGJUMP: howto manager. (line 1498)
  12838. * BFD_RELOC_V850_RELATIVE: howto manager. (line 1539)
  12839. * BFD_RELOC_V850_SDA_15_16_OFFSET: howto manager. (line 1463)
  12840. * BFD_RELOC_V850_SDA_16_16_OFFSET: howto manager. (line 1461)
  12841. * BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET: howto manager. (line 1486)
  12842. * BFD_RELOC_V850_TDA_16_16_OFFSET: howto manager. (line 1479)
  12843. * BFD_RELOC_V850_TDA_4_4_OFFSET: howto manager. (line 1484)
  12844. * BFD_RELOC_V850_TDA_4_5_OFFSET: howto manager. (line 1481)
  12845. * BFD_RELOC_V850_TDA_6_8_OFFSET: howto manager. (line 1471)
  12846. * BFD_RELOC_V850_TDA_7_7_OFFSET: howto manager. (line 1477)
  12847. * BFD_RELOC_V850_TDA_7_8_OFFSET: howto manager. (line 1474)
  12848. * BFD_RELOC_V850_ZDA_15_16_OFFSET: howto manager. (line 1468)
  12849. * BFD_RELOC_V850_ZDA_16_16_OFFSET: howto manager. (line 1466)
  12850. * BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET: howto manager. (line 1489)
  12851. * BFD_RELOC_VAX_GLOB_DAT: howto manager. (line 2423)
  12852. * BFD_RELOC_VAX_JMP_SLOT: howto manager. (line 2424)
  12853. * BFD_RELOC_VAX_RELATIVE: howto manager. (line 2425)
  12854. * BFD_RELOC_VISIUM_HI16: howto manager. (line 3351)
  12855. * BFD_RELOC_VISIUM_HI16_PCREL: howto manager. (line 3355)
  12856. * BFD_RELOC_VISIUM_IM16: howto manager. (line 3353)
  12857. * BFD_RELOC_VISIUM_IM16_PCREL: howto manager. (line 3357)
  12858. * BFD_RELOC_VISIUM_LO16: howto manager. (line 3352)
  12859. * BFD_RELOC_VISIUM_LO16_PCREL: howto manager. (line 3356)
  12860. * BFD_RELOC_VISIUM_REL16: howto manager. (line 3354)
  12861. * BFD_RELOC_VPE4KMATH_DATA: howto manager. (line 2081)
  12862. * BFD_RELOC_VPE4KMATH_INSN: howto manager. (line 2082)
  12863. * BFD_RELOC_VTABLE_ENTRY: howto manager. (line 2085)
  12864. * BFD_RELOC_VTABLE_INHERIT: howto manager. (line 2084)
  12865. * BFD_RELOC_WASM32_ABS32_CODE: howto manager. (line 3364)
  12866. * BFD_RELOC_WASM32_CODE_POINTER: howto manager. (line 3366)
  12867. * BFD_RELOC_WASM32_COPY: howto manager. (line 3365)
  12868. * BFD_RELOC_WASM32_INDEX: howto manager. (line 3367)
  12869. * BFD_RELOC_WASM32_LEB128: howto manager. (line 3359)
  12870. * BFD_RELOC_WASM32_LEB128_GOT: howto manager. (line 3360)
  12871. * BFD_RELOC_WASM32_LEB128_GOT_CODE: howto manager. (line 3361)
  12872. * BFD_RELOC_WASM32_LEB128_PLT: howto manager. (line 3362)
  12873. * BFD_RELOC_WASM32_PLT_INDEX: howto manager. (line 3363)
  12874. * BFD_RELOC_WASM32_PLT_SIG: howto manager. (line 3368)
  12875. * BFD_RELOC_X86_64_32S: howto manager. (line 554)
  12876. * BFD_RELOC_X86_64_COPY: howto manager. (line 549)
  12877. * BFD_RELOC_X86_64_DTPMOD64: howto manager. (line 555)
  12878. * BFD_RELOC_X86_64_DTPOFF32: howto manager. (line 560)
  12879. * BFD_RELOC_X86_64_DTPOFF64: howto manager. (line 556)
  12880. * BFD_RELOC_X86_64_GLOB_DAT: howto manager. (line 550)
  12881. * BFD_RELOC_X86_64_GOT32: howto manager. (line 547)
  12882. * BFD_RELOC_X86_64_GOT64: howto manager. (line 565)
  12883. * BFD_RELOC_X86_64_GOTOFF64: howto manager. (line 563)
  12884. * BFD_RELOC_X86_64_GOTPC32: howto manager. (line 564)
  12885. * BFD_RELOC_X86_64_GOTPC32_TLSDESC: howto manager. (line 570)
  12886. * BFD_RELOC_X86_64_GOTPC64: howto manager. (line 567)
  12887. * BFD_RELOC_X86_64_GOTPCREL: howto manager. (line 553)
  12888. * BFD_RELOC_X86_64_GOTPCREL64: howto manager. (line 566)
  12889. * BFD_RELOC_X86_64_GOTPCRELX: howto manager. (line 576)
  12890. * BFD_RELOC_X86_64_GOTPLT64: howto manager. (line 568)
  12891. * BFD_RELOC_X86_64_GOTTPOFF: howto manager. (line 561)
  12892. * BFD_RELOC_X86_64_IRELATIVE: howto manager. (line 573)
  12893. * BFD_RELOC_X86_64_JUMP_SLOT: howto manager. (line 551)
  12894. * BFD_RELOC_X86_64_PC32_BND: howto manager. (line 574)
  12895. * BFD_RELOC_X86_64_PLT32: howto manager. (line 548)
  12896. * BFD_RELOC_X86_64_PLT32_BND: howto manager. (line 575)
  12897. * BFD_RELOC_X86_64_PLTOFF64: howto manager. (line 569)
  12898. * BFD_RELOC_X86_64_RELATIVE: howto manager. (line 552)
  12899. * BFD_RELOC_X86_64_REX_GOTPCRELX: howto manager. (line 577)
  12900. * BFD_RELOC_X86_64_TLSDESC: howto manager. (line 572)
  12901. * BFD_RELOC_X86_64_TLSDESC_CALL: howto manager. (line 571)
  12902. * BFD_RELOC_X86_64_TLSGD: howto manager. (line 558)
  12903. * BFD_RELOC_X86_64_TLSLD: howto manager. (line 559)
  12904. * BFD_RELOC_X86_64_TPOFF32: howto manager. (line 562)
  12905. * BFD_RELOC_X86_64_TPOFF64: howto manager. (line 557)
  12906. * BFD_RELOC_XC16X_PAG: howto manager. (line 2418)
  12907. * BFD_RELOC_XC16X_POF: howto manager. (line 2419)
  12908. * BFD_RELOC_XC16X_SEG: howto manager. (line 2420)
  12909. * BFD_RELOC_XC16X_SOF: howto manager. (line 2421)
  12910. * BFD_RELOC_XGATE_24: howto manager. (line 2228)
  12911. * BFD_RELOC_XGATE_GPAGE: howto manager. (line 2226)
  12912. * BFD_RELOC_XGATE_IMM3: howto manager. (line 2240)
  12913. * BFD_RELOC_XGATE_IMM4: howto manager. (line 2242)
  12914. * BFD_RELOC_XGATE_IMM5: howto manager. (line 2244)
  12915. * BFD_RELOC_XGATE_IMM8_HI: howto manager. (line 2237)
  12916. * BFD_RELOC_XGATE_IMM8_LO: howto manager. (line 2234)
  12917. * BFD_RELOC_XGATE_LO16: howto manager. (line 2223)
  12918. * BFD_RELOC_XGATE_PCREL_10: howto manager. (line 2232)
  12919. * BFD_RELOC_XGATE_PCREL_9: howto manager. (line 2230)
  12920. * BFD_RELOC_XGATE_RL_GROUP: howto manager. (line 2219)
  12921. * BFD_RELOC_XGATE_RL_JUMP: howto manager. (line 2216)
  12922. * BFD_RELOC_XSTORMY16_12: howto manager. (line 2412)
  12923. * BFD_RELOC_XSTORMY16_24: howto manager. (line 2413)
  12924. * BFD_RELOC_XSTORMY16_FPTR16: howto manager. (line 2414)
  12925. * BFD_RELOC_XSTORMY16_REL_12: howto manager. (line 2411)
  12926. * BFD_RELOC_XTENSA_ASM_EXPAND: howto manager. (line 2613)
  12927. * BFD_RELOC_XTENSA_ASM_SIMPLIFY: howto manager. (line 2617)
  12928. * BFD_RELOC_XTENSA_DIFF16: howto manager. (line 2562)
  12929. * BFD_RELOC_XTENSA_DIFF32: howto manager. (line 2563)
  12930. * BFD_RELOC_XTENSA_DIFF8: howto manager. (line 2561)
  12931. * BFD_RELOC_XTENSA_GLOB_DAT: howto manager. (line 2553)
  12932. * BFD_RELOC_XTENSA_JMP_SLOT: howto manager. (line 2554)
  12933. * BFD_RELOC_XTENSA_NDIFF16: howto manager. (line 2633)
  12934. * BFD_RELOC_XTENSA_NDIFF32: howto manager. (line 2634)
  12935. * BFD_RELOC_XTENSA_NDIFF8: howto manager. (line 2632)
  12936. * BFD_RELOC_XTENSA_OP0: howto manager. (line 2608)
  12937. * BFD_RELOC_XTENSA_OP1: howto manager. (line 2609)
  12938. * BFD_RELOC_XTENSA_OP2: howto manager. (line 2610)
  12939. * BFD_RELOC_XTENSA_PDIFF16: howto manager. (line 2630)
  12940. * BFD_RELOC_XTENSA_PDIFF32: howto manager. (line 2631)
  12941. * BFD_RELOC_XTENSA_PDIFF8: howto manager. (line 2629)
  12942. * BFD_RELOC_XTENSA_PLT: howto manager. (line 2557)
  12943. * BFD_RELOC_XTENSA_RELATIVE: howto manager. (line 2555)
  12944. * BFD_RELOC_XTENSA_RTLD: howto manager. (line 2549)
  12945. * BFD_RELOC_XTENSA_SLOT0_ALT: howto manager. (line 2591)
  12946. * BFD_RELOC_XTENSA_SLOT0_OP: howto manager. (line 2572)
  12947. * BFD_RELOC_XTENSA_SLOT10_ALT: howto manager. (line 2601)
  12948. * BFD_RELOC_XTENSA_SLOT10_OP: howto manager. (line 2582)
  12949. * BFD_RELOC_XTENSA_SLOT11_ALT: howto manager. (line 2602)
  12950. * BFD_RELOC_XTENSA_SLOT11_OP: howto manager. (line 2583)
  12951. * BFD_RELOC_XTENSA_SLOT12_ALT: howto manager. (line 2603)
  12952. * BFD_RELOC_XTENSA_SLOT12_OP: howto manager. (line 2584)
  12953. * BFD_RELOC_XTENSA_SLOT13_ALT: howto manager. (line 2604)
  12954. * BFD_RELOC_XTENSA_SLOT13_OP: howto manager. (line 2585)
  12955. * BFD_RELOC_XTENSA_SLOT14_ALT: howto manager. (line 2605)
  12956. * BFD_RELOC_XTENSA_SLOT14_OP: howto manager. (line 2586)
  12957. * BFD_RELOC_XTENSA_SLOT1_ALT: howto manager. (line 2592)
  12958. * BFD_RELOC_XTENSA_SLOT1_OP: howto manager. (line 2573)
  12959. * BFD_RELOC_XTENSA_SLOT2_ALT: howto manager. (line 2593)
  12960. * BFD_RELOC_XTENSA_SLOT2_OP: howto manager. (line 2574)
  12961. * BFD_RELOC_XTENSA_SLOT3_ALT: howto manager. (line 2594)
  12962. * BFD_RELOC_XTENSA_SLOT3_OP: howto manager. (line 2575)
  12963. * BFD_RELOC_XTENSA_SLOT4_ALT: howto manager. (line 2595)
  12964. * BFD_RELOC_XTENSA_SLOT4_OP: howto manager. (line 2576)
  12965. * BFD_RELOC_XTENSA_SLOT5_ALT: howto manager. (line 2596)
  12966. * BFD_RELOC_XTENSA_SLOT5_OP: howto manager. (line 2577)
  12967. * BFD_RELOC_XTENSA_SLOT6_ALT: howto manager. (line 2597)
  12968. * BFD_RELOC_XTENSA_SLOT6_OP: howto manager. (line 2578)
  12969. * BFD_RELOC_XTENSA_SLOT7_ALT: howto manager. (line 2598)
  12970. * BFD_RELOC_XTENSA_SLOT7_OP: howto manager. (line 2579)
  12971. * BFD_RELOC_XTENSA_SLOT8_ALT: howto manager. (line 2599)
  12972. * BFD_RELOC_XTENSA_SLOT8_OP: howto manager. (line 2580)
  12973. * BFD_RELOC_XTENSA_SLOT9_ALT: howto manager. (line 2600)
  12974. * BFD_RELOC_XTENSA_SLOT9_OP: howto manager. (line 2581)
  12975. * BFD_RELOC_XTENSA_TLSDESC_ARG: howto manager. (line 2622)
  12976. * BFD_RELOC_XTENSA_TLSDESC_FN: howto manager. (line 2621)
  12977. * BFD_RELOC_XTENSA_TLS_ARG: howto manager. (line 2626)
  12978. * BFD_RELOC_XTENSA_TLS_CALL: howto manager. (line 2627)
  12979. * BFD_RELOC_XTENSA_TLS_DTPOFF: howto manager. (line 2623)
  12980. * BFD_RELOC_XTENSA_TLS_FUNC: howto manager. (line 2625)
  12981. * BFD_RELOC_XTENSA_TLS_TPOFF: howto manager. (line 2624)
  12982. * BFD_RELOC_Z80_16_BE: howto manager. (line 2658)
  12983. * BFD_RELOC_Z80_BYTE0: howto manager. (line 2646)
  12984. * BFD_RELOC_Z80_BYTE1: howto manager. (line 2648)
  12985. * BFD_RELOC_Z80_BYTE2: howto manager. (line 2650)
  12986. * BFD_RELOC_Z80_BYTE3: howto manager. (line 2652)
  12987. * BFD_RELOC_Z80_DISP8: howto manager. (line 2644)
  12988. * BFD_RELOC_Z80_WORD0: howto manager. (line 2654)
  12989. * BFD_RELOC_Z80_WORD1: howto manager. (line 2656)
  12990. * BFD_RELOC_Z8K_CALLR: howto manager. (line 2662)
  12991. * BFD_RELOC_Z8K_DISP7: howto manager. (line 2660)
  12992. * BFD_RELOC_Z8K_IMM4L: howto manager. (line 2664)
  12993. * bfd_rename_section: section prototypes. (line 167)
  12994. * bfd_scan_arch: Architectures. (line 583)
  12995. * bfd_scan_vma: Miscellaneous. (line 126)
  12996. * bfd_sections_find_if: section prototypes. (line 197)
  12997. * bfd_section_already_linked: Writing the symbol table.
  12998. (line 55)
  12999. * bfd_section_list_clear: section prototypes. (line 7)
  13000. * bfd_set_archive_head: Archives. (line 74)
  13001. * bfd_set_arch_info: Architectures. (line 624)
  13002. * bfd_set_assert_handler: Error reporting. (line 162)
  13003. * bfd_set_default_target: bfd_target. (line 560)
  13004. * bfd_set_error: Error reporting. (line 58)
  13005. * bfd_set_error_handler: Error reporting. (line 128)
  13006. * bfd_set_error_program_name: Error reporting. (line 136)
  13007. * bfd_set_filename: Opening and Closing.
  13008. (line 511)
  13009. * bfd_set_file_flags: Miscellaneous. (line 45)
  13010. * bfd_set_format: Formats. (line 67)
  13011. * bfd_set_gp_size: Miscellaneous. (line 116)
  13012. * bfd_set_input_error: Error reporting. (line 69)
  13013. * bfd_set_private_flags: Miscellaneous. (line 174)
  13014. * bfd_set_reloc: Miscellaneous. (line 33)
  13015. * bfd_set_section_contents: section prototypes. (line 228)
  13016. * bfd_set_section_flags: section prototypes. (line 154)
  13017. * bfd_set_section_size: section prototypes. (line 214)
  13018. * bfd_set_start_address: Miscellaneous. (line 95)
  13019. * bfd_set_symtab: symbol handling functions.
  13020. (line 63)
  13021. * bfd_symbol_info: symbol handling functions.
  13022. (line 135)
  13023. * bfd_target_list: bfd_target. (line 612)
  13024. * bfd_update_compression_header: Miscellaneous. (line 354)
  13025. * bfd_write_bigendian_4byte_int: Internal. (line 12)
  13026. * bfd_zalloc: Opening and Closing.
  13027. (line 248)
  13028. * check_build_id_file: Opening and Closing.
  13029. (line 473)
  13030. * coff_symbol_type: coff. (line 233)
  13031. * core_file_matches_executable_p: Core Files. (line 38)
  13032. * find_separate_debug_file: Opening and Closing.
  13033. (line 347)
  13034. * generic_core_file_matches_executable_p: Core Files. (line 48)
  13035. * get_build_id: Opening and Closing.
  13036. (line 442)
  13037. * get_build_id_name: Opening and Closing.
  13038. (line 456)
  13039. * Hash tables: Hash Tables. (line 6)
  13040. * internal object-file format: Canonical format. (line 11)
  13041. * Linker: Linker Functions. (line 6)
  13042. * Other functions: Miscellaneous. (line 188)
  13043. * separate_alt_debug_file_exists: Opening and Closing.
  13044. (line 338)
  13045. * separate_debug_file_exists: Opening and Closing.
  13046. (line 325)
  13047. * struct bfd_iovec: Miscellaneous. (line 415)
  13048. * target vector (_bfd_final_link): Performing the Final Link.
  13049. (line 6)
  13050. * target vector (_bfd_link_add_symbols): Adding Symbols to the Hash Table.
  13051. (line 6)
  13052. * target vector (_bfd_link_hash_table_create): Creating a Linker Hash Table.
  13053. (line 6)
  13054. * The HOWTO Macro: typedef arelent. (line 287)
  13055. * what is it?: Overview. (line 6)
  13056. 
  13057. Tag Table:
  13058. Node: Top1051
  13059. Node: Overview1387
  13060. Node: History2445
  13061. Node: How It Works3390
  13062. Node: What BFD Version 2 Can Do4927
  13063. Node: BFD information loss6244
  13064. Node: Canonical format8785
  13065. Node: BFD front end13128
  13066. Node: typedef bfd13552
  13067. Node: Error reporting31354
  13068. Node: Miscellaneous36605
  13069. Node: Memory Usage55845
  13070. Node: Initialization57076
  13071. Node: Sections57752
  13072. Node: Section Input58235
  13073. Node: Section Output59429
  13074. Node: typedef asection61916
  13075. Node: section prototypes86834
  13076. Node: Symbols97578
  13077. Node: Reading Symbols99181
  13078. Node: Writing Symbols100289
  13079. Node: Mini Symbols102033
  13080. Node: typedef asymbol103007
  13081. Node: symbol handling functions109092
  13082. Node: Archives114467
  13083. Node: Formats118604
  13084. Node: Relocations121555
  13085. Node: typedef arelent122282
  13086. Node: howto manager137200
  13087. Node: Core Files270842
  13088. Node: Targets272880
  13089. Node: bfd_target274855
  13090. Node: Architectures302302
  13091. Node: Opening and Closing334074
  13092. Node: Internal352043
  13093. Node: File Caching358875
  13094. Node: Linker Functions360793
  13095. Node: Creating a Linker Hash Table362467
  13096. Node: Adding Symbols to the Hash Table364206
  13097. Node: Differing file formats365106
  13098. Node: Adding symbols from an object file366831
  13099. Node: Adding symbols from an archive368981
  13100. Node: Performing the Final Link371327
  13101. Node: Information provided by the linker372568
  13102. Node: Relocating the section contents373722
  13103. Node: Writing the symbol table375474
  13104. Node: Hash Tables382628
  13105. Node: Creating and Freeing a Hash Table383826
  13106. Node: Looking Up or Entering a String385076
  13107. Node: Traversing a Hash Table386329
  13108. Node: Deriving a New Hash Table Type387118
  13109. Node: Define the Derived Structures388184
  13110. Node: Write the Derived Creation Routine389265
  13111. Node: Write Other Derived Routines391890
  13112. Node: BFD back ends393205
  13113. Node: What to Put Where393475
  13114. Node: aout393655
  13115. Node: coff399937
  13116. Node: elf428088
  13117. Node: mmo428489
  13118. Node: File layout429359
  13119. Node: Symbol-table435272
  13120. Node: mmo section mapping439035
  13121. Node: GNU Free Documentation License442689
  13122. Node: BFD Index467753
  13123. 
  13124. End Tag Table