diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/Makefile.am binutils/bfd/Makefile.am --- binutils-2.16.1/bfd/Makefile.am 2005-06-12 20:58:52.000000000 +0200 +++ binutils/bfd/Makefile.am 2006-03-30 01:23:21.000000000 +0200 @@ -58,6 +58,7 @@ cpu-arc.lo \ cpu-arm.lo \ cpu-avr.lo \ + cpu-spu.lo \ cpu-cr16c.lo \ cpu-cris.lo \ cpu-crx.lo \ @@ -116,6 +117,7 @@ cpu-arc.c \ cpu-arm.c \ cpu-avr.c \ + cpu-spu.c \ cpu-cris.c \ cpu-cr16c.c \ cpu-crx.c \ @@ -262,6 +264,7 @@ elf32-sh64.lo \ elf32-sh64-com.lo \ elf32-sparc.lo \ + elf32-spu.lo \ elf32-v850.lo \ elf32-vax.lo \ elf32-xstormy16.lo \ @@ -430,6 +433,7 @@ elf32-sh.c \ elf32-sh-symbian.c \ elf32-sparc.c \ + elf32-spu.c \ elf32-v850.c \ elf32-vax.c \ elf32-xstormy16.c \ @@ -944,6 +948,7 @@ cpu-arc.lo: cpu-arc.c $(INCDIR)/filenames.h cpu-arm.lo: cpu-arm.c $(INCDIR)/filenames.h $(INCDIR)/libiberty.h cpu-avr.lo: cpu-avr.c $(INCDIR)/filenames.h +cpu-spu.lo: cpu-spu.c $(INCDIR)/filenames.h cpu-cris.lo: cpu-cris.c $(INCDIR)/filenames.h cpu-cr16c.lo: cpu-cr16c.c $(INCDIR)/filenames.h cpu-crx.lo: cpu-crx.c $(INCDIR)/filenames.h @@ -1336,6 +1341,10 @@ $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/elf/sparc.h \ $(INCDIR)/elf/reloc-macros.h $(INCDIR)/opcode/sparc.h \ elf32-target.h +elf32-spu.lo: elf32-spu.c $(INCDIR)/filenames.h elf-bfd.h \ + $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ + $(INCDIR)/bfdlink.h $(INCDIR)/elf/spu.h $(INCDIR)/elf/reloc-macros.h \ + elf32-target.h elf32-v850.lo: elf32-v850.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \ elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \ $(INCDIR)/elf/external.h $(INCDIR)/elf/v850.h $(INCDIR)/elf/reloc-macros.h \ diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/archures.c binutils/bfd/archures.c --- binutils-2.16.1/bfd/archures.c 2005-01-17 15:08:03.000000000 +0100 +++ binutils/bfd/archures.c 2006-03-30 01:23:21.000000000 +0200 @@ -204,11 +204,14 @@ .#define bfd_mach_ppc_rs64iii 643 .#define bfd_mach_ppc_7400 7400 .#define bfd_mach_ppc_e500 500 +.#define bfd_mach_cell_ppu 501 . bfd_arch_rs6000, {* IBM RS/6000 *} .#define bfd_mach_rs6k 6000 .#define bfd_mach_rs6k_rs1 6001 .#define bfd_mach_rs6k_rsc 6003 .#define bfd_mach_rs6k_rs2 6002 +. bfd_arch_spu, {* PowerPC SPU *} +.#define bfd_mach_spu 256 . bfd_arch_hppa, {* HP PA RISC *} .#define bfd_mach_hppa10 10 .#define bfd_mach_hppa11 11 @@ -442,6 +445,7 @@ extern const bfd_arch_info_type bfd_s390_arch; extern const bfd_arch_info_type bfd_sh_arch; extern const bfd_arch_info_type bfd_sparc_arch; +extern const bfd_arch_info_type bfd_spu_arch; extern const bfd_arch_info_type bfd_tic30_arch; extern const bfd_arch_info_type bfd_tic4x_arch; extern const bfd_arch_info_type bfd_tic54x_arch; @@ -503,6 +507,7 @@ &bfd_s390_arch, &bfd_sh_arch, &bfd_sparc_arch, + &bfd_spu_arch, &bfd_tic30_arch, &bfd_tic4x_arch, &bfd_tic54x_arch, diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/bfd-in2.h binutils/bfd/bfd-in2.h --- binutils-2.16.1/bfd/bfd-in2.h 2005-03-02 22:23:20.000000000 +0100 +++ binutils/bfd/bfd-in2.h 2006-03-30 01:23:21.000000000 +0200 @@ -921,6 +921,8 @@ bfd_boolean bfd_fill_in_gnu_debuglink_section (bfd *abfd, struct bfd_section *sect, const char *filename); +void bfd_set_direction(bfd *abfd, int fdflags); + /* Extracted from libbfd.c. */ /* Byte swapping macros for user section data. */ @@ -1649,11 +1651,15 @@ #define bfd_mach_ppc_rs64iii 643 #define bfd_mach_ppc_7400 7400 #define bfd_mach_ppc_e500 500 +#define bfd_mach_cell_ppu 501 +#define bfd_mach_cell_ppu_mambo 502 bfd_arch_rs6000, /* IBM RS/6000 */ #define bfd_mach_rs6k 6000 #define bfd_mach_rs6k_rs1 6001 #define bfd_mach_rs6k_rsc 6003 #define bfd_mach_rs6k_rs2 6002 + bfd_arch_spu, /* PowerPC SPU */ +#define bfd_mach_spu 256 bfd_arch_hppa, /* HP PA RISC */ #define bfd_mach_hppa10 10 #define bfd_mach_hppa11 11 @@ -3638,6 +3644,20 @@ BFD_RELOC_860_HIGOT, BFD_RELOC_860_HIGOTOFF, +/* SPU Relocations. */ + BFD_RELOC_SPU_IMM7, + BFD_RELOC_SPU_IMM8, + BFD_RELOC_SPU_IMM10, + BFD_RELOC_SPU_IMM10W, + BFD_RELOC_SPU_IMM16, + BFD_RELOC_SPU_IMM16W, + BFD_RELOC_SPU_IMM18, + BFD_RELOC_SPU_PCREL9a, + BFD_RELOC_SPU_PCREL9b, + BFD_RELOC_SPU_PCREL16, + BFD_RELOC_SPU_LO16, + BFD_RELOC_SPU_HI16, + /* OpenRISC Relocations. */ BFD_RELOC_OPENRISC_ABS_26, BFD_RELOC_OPENRISC_REL_26, diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/coffcode.h binutils/bfd/coffcode.h --- binutils-2.16.1/bfd/coffcode.h 2005-02-24 21:16:55.000000000 +0100 +++ binutils/bfd/coffcode.h 2006-03-30 01:23:21.000000000 +0200 @@ -303,6 +303,7 @@ #ifdef COFF_WITH_PE #include "peicode.h" +#include "libiberty.h" #else #include "coffswap.h" #endif @@ -3415,6 +3416,12 @@ unsigned int computed; unsigned int checksum = 0; + /* If output to 'nul.*', just pretend we've succeeded. */ +#ifdef HAVE_DOS_BASED_FILE_SYSTEM + if (strncasecmp ("nul.",lbasename(abfd->filename),4) == 0) + return TRUE; +#endif + if (bfd_seek (abfd, 0x3c, SEEK_SET) != 0) return FALSE; diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/config.bfd binutils/bfd/config.bfd --- binutils-2.16.1/bfd/config.bfd 2005-01-31 18:18:47.000000000 +0100 +++ binutils/bfd/config.bfd 2006-03-30 01:23:21.000000000 +0200 @@ -77,10 +77,12 @@ pdp11*) targ_archs=bfd_pdp11_arch ;; pj*) targ_archs="bfd_pj_arch bfd_i386_arch";; powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;; +ppu*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;; rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;; s390*) targ_archs=bfd_s390_arch ;; sh*) targ_archs=bfd_sh_arch ;; sparc*) targ_archs=bfd_sparc_arch ;; +spu*) targ_archs=bfd_spu_arch ;; strongarm*) targ_archs=bfd_arm_arch ;; thumb*) targ_archs=bfd_arm_arch ;; v850*) targ_archs=bfd_v850_arch ;; @@ -1053,6 +1055,12 @@ targ_selvecs="bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec" ;; + ppu-*-lv2) + targ_defvec=bfd_elf64_powerpc_vec + targ_selvecs="bfd_elf32_spu_vec" + want64=true + ;; + s390-*-linux*) targ_defvec=bfd_elf32_s390_vec targ64_selvecs=bfd_elf64_s390_vec @@ -1286,6 +1294,16 @@ targ_underscore=yes ;; + spu-*-lv2) + targ_defvec=bfd_elf32_spu_vec + targ_selvecs="bfd_elf64_powerpc_vec" + ;; + + spu-*-elf) + targ_defvec=bfd_elf32_spu_vec + targ_selvecs="bfd_elf32_powerpc_vec bfd_elf64_powerpc_vec" + ;; + #if HAVE_host_aout_vec tahoe-*-*) targ_defvec=host_aout_vec diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/configure binutils/bfd/configure --- binutils-2.16.1/bfd/configure 2005-06-12 20:58:46.000000000 +0200 +++ binutils/bfd/configure 2006-03-30 01:23:21.000000000 +0200 @@ -11612,6 +11612,7 @@ bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;; + bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;; bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/configure.in binutils/bfd/configure.in --- binutils-2.16.1/bfd/configure.in 2005-06-12 20:58:40.000000000 +0200 +++ binutils/bfd/configure.in 2006-03-30 01:23:21.000000000 +0200 @@ -659,6 +659,7 @@ bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;; + bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;; bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/cpu-powerpc.c binutils/bfd/cpu-powerpc.c --- binutils-2.16.1/bfd/cpu-powerpc.c 2005-03-03 12:40:58.000000000 +0100 +++ binutils/bfd/cpu-powerpc.c 2006-03-30 01:23:21.000000000 +0200 @@ -295,6 +295,34 @@ FALSE, /* not the default */ powerpc_compatible, bfd_default_scan, - 0 + &bfd_powerpc_archs[15], + }, + { + 64, /* 64 bits in a word */ + 64, /* 64 bits in an address */ + 8, /* 8 bits in a byte */ + bfd_arch_powerpc, + bfd_mach_cell_ppu, + "powerpc", + "Cell:PPU", + 3, + FALSE, + powerpc_compatible, + bfd_default_scan, + &bfd_powerpc_archs[16], + }, + { + 64, /* 64 bits in a word */ + 64, /* 64 bits in an address */ + 8, /* 8 bits in a byte */ + bfd_arch_powerpc, + bfd_mach_cell_ppu_mambo, + "powerpc", + "Cell:Mambo", + 3, + FALSE, + powerpc_compatible, + bfd_default_scan, + 0 /* pointer to next bfd_arch_info_type objenct */ } }; diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/cpu-spu.c binutils/bfd/cpu-spu.c --- binutils-2.16.1/bfd/cpu-spu.c 1970-01-01 01:00:00.000000000 +0100 +++ binutils/bfd/cpu-spu.c 2006-03-30 01:23:21.000000000 +0200 @@ -0,0 +1,63 @@ + +/* (C) Copyright + Sony Computer Entertainment, Inc., + Toshiba Corporation, + International Business Machines Corporation, + 2001,2002,2003,2004,2005. + + This file is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + This file is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with this file; see the file COPYING. If not, write to the Free + Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ + +#include "bfd.h" +#include "sysdep.h" +#include "libbfd.h" + + +static const bfd_arch_info_type *spu_compatible + PARAMS ((const bfd_arch_info_type *, const bfd_arch_info_type *)); + +static const bfd_arch_info_type * +spu_compatible (a,b) + const bfd_arch_info_type *a; + const bfd_arch_info_type *b; +{ + BFD_ASSERT (a->arch == bfd_arch_spu); + switch (b->arch) + { + default: + return NULL; + case bfd_arch_spu: + return bfd_default_compatible (a, b); + } + /*NOTREACHED*/ +} + +const bfd_arch_info_type bfd_spu_arch[] = +{ + { + 32, /* 32 bits in a word */ + 32, /* 32 bits in an address */ + 8, /* 8 bits in a byte */ + bfd_arch_spu, /* architecture */ + bfd_mach_spu, /* machine */ + "spu", /* architecture name */ + "spu:256K", /* printable name */ + 3, /* aligned power */ + TRUE, /* the default machine for the architecture */ + spu_compatible, /* the spu is only compatible with itself, see above */ + bfd_default_scan, + 0, /* next -- there are none! */ + } +}; diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/doc/bfd.info binutils/bfd/doc/bfd.info --- binutils-2.16.1/bfd/doc/bfd.info 2005-06-12 21:32:58.000000000 +0200 +++ binutils/bfd/doc/bfd.info 2006-03-30 01:23:21.000000000 +0200 @@ -1,5 +1,5 @@ -This is ../.././bfd/doc/bfd.info, produced by makeinfo version 4.7 from -../.././bfd/doc/bfd.texinfo. +This is /vobs/toolchain/binutils/bfd/doc/bfd.info, produced by makeinfo +version 4.5 from /vobs/toolchain/binutils/bfd/doc/bfd.texinfo. START-INFO-DIR-ENTRY * Bfd: (bfd). The Binary File Descriptor library. @@ -18,72 +18,71 @@  Indirect: -bfd.info-1: 724 -bfd.info-2: 298309 +bfd.info-1: 758  Tag Table: (Indirect) -Node: Top724 -Node: Overview1056 -Node: History2107 -Node: How It Works3053 -Node: What BFD Version 2 Can Do4595 -Node: BFD information loss5910 -Node: Canonical format8442 -Node: BFD front end12814 -Node: Memory Usage38041 -Node: Initialization39269 -Node: Sections39665 -Node: Section Input40148 -Node: Section Output41513 -Node: typedef asection43999 -Node: section prototypes61598 -Node: Symbols70581 -Node: Reading Symbols72176 -Node: Writing Symbols73283 -Node: Mini Symbols74992 -Node: typedef asymbol75966 -Node: symbol handling functions80884 -Node: Archives86226 -Node: Formats89903 -Node: Relocations92794 -Node: typedef arelent93521 -Node: howto manager109239 -Node: Core Files165412 -Node: Targets166491 -Node: bfd_target168461 -Node: Architectures187781 -Node: Opening and Closing208078 -Node: Internal217791 -Node: File Caching224063 -Node: Linker Functions227370 -Node: Creating a Linker Hash Table229043 -Node: Adding Symbols to the Hash Table230781 -Node: Differing file formats231681 -Node: Adding symbols from an object file233429 -Node: Adding symbols from an archive235580 -Node: Performing the Final Link237994 -Node: Information provided by the linker239236 -Node: Relocating the section contents240386 -Node: Writing the symbol table242137 -Node: Hash Tables245130 -Node: Creating and Freeing a Hash Table246328 -Node: Looking Up or Entering a String247578 -Node: Traversing a Hash Table248831 -Node: Deriving a New Hash Table Type249620 -Node: Define the Derived Structures250686 -Node: Write the Derived Creation Routine251767 -Node: Write Other Derived Routines254461 -Node: BFD back ends255776 -Node: What to Put Where256046 -Node: aout256184 -Node: coff262435 -Node: elf287111 -Node: mmo287965 -Node: File layout288893 -Node: Symbol-table294540 -Node: mmo section mapping298309 -Node: GNU Free Documentation License301961 -Node: Index321681 +Node: Top758 +Node: Overview1090 +Node: History2140 +Node: How It Works3081 +Node: What BFD Version 2 Can Do4621 +Node: BFD information loss5931 +Node: Canonical format8454 +Node: BFD front end12815 +Node: Memory Usage37874 +Node: Initialization39097 +Node: Sections39475 +Node: Section Input39953 +Node: Section Output41309 +Node: typedef asection43777 +Node: section prototypes61797 +Node: Symbols70519 +Node: Reading Symbols72109 +Node: Writing Symbols73237 +Node: Mini Symbols74957 +Node: typedef asymbol75922 +Node: symbol handling functions80966 +Node: Archives86095 +Node: Formats89728 +Node: Relocations92562 +Node: typedef arelent93282 +Node: howto manager109026 +Node: Core Files164414 +Node: Targets165441 +Node: bfd_target167404 +Node: Architectures186908 +Node: Opening and Closing207039 +Node: Internal216437 +Node: File Caching222684 +Node: Linker Functions225864 +Node: Creating a Linker Hash Table227530 +Node: Adding Symbols to the Hash Table229257 +Node: Differing file formats230147 +Node: Adding symbols from an object file231880 +Node: Adding symbols from an archive234016 +Node: Performing the Final Link236415 +Node: Information provided by the linker237646 +Node: Relocating the section contents238781 +Node: Writing the symbol table240517 +Node: Hash Tables243465 +Node: Creating and Freeing a Hash Table244656 +Node: Looking Up or Entering a String245895 +Node: Traversing a Hash Table247137 +Node: Deriving a New Hash Table Type247915 +Node: Define the Derived Structures248970 +Node: Write the Derived Creation Routine250036 +Node: Write Other Derived Routines252735 +Node: BFD back ends254035 +Node: What to Put Where254301 +Node: aout254439 +Node: coff260576 +Node: elf285497 +Node: mmo286334 +Node: File layout287257 +Node: Symbol-table292895 +Node: mmo section mapping296690 +Node: GNU Free Documentation License300333 +Node: Index320038  End Tag Table diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/doc/bfd.info-1 binutils/bfd/doc/bfd.info-1 --- binutils-2.16.1/bfd/doc/bfd.info-1 2005-06-12 21:32:58.000000000 +0200 +++ binutils/bfd/doc/bfd.info-1 2006-03-30 01:23:21.000000000 +0200 @@ -1,5 +1,5 @@ -This is ../.././bfd/doc/bfd.info, produced by makeinfo version 4.7 from -../.././bfd/doc/bfd.texinfo. +This is /vobs/toolchain/binutils/bfd/doc/bfd.info, produced by makeinfo +version 4.5 from /vobs/toolchain/binutils/bfd/doc/bfd.texinfo. START-INFO-DIR-ENTRY * Bfd: (bfd). The Binary File Descriptor library. @@ -32,13 +32,13 @@  File: bfd.info, Node: Overview, Next: BFD front end, Prev: Top, Up: Top -1 Introduction -************** +Introduction +************ -BFD is a package which allows applications to use the same routines to -operate on object files whatever the object file format. A new object -file format can be supported simply by creating a new BFD back end and -adding it to the library. + BFD is a package which allows applications to use the same routines +to operate on object files whatever the object file format. A new +object file format can be supported simply by creating a new BFD back +end and adding it to the library. BFD is split into two parts: the front end, and the back ends (one for each object file format). @@ -60,11 +60,11 @@  File: bfd.info, Node: History, Next: How It Works, Prev: Overview, Up: Overview -1.1 History -=========== +History +======= -One spur behind BFD was the desire, on the part of the GNU 960 team at -Intel Oregon, for interoperability of applications on their COFF and + One spur behind BFD was the desire, on the part of the GNU 960 team +at Intel Oregon, for interoperability of applications on their COFF and b.out file formats. Cygnus was providing GNU support for the team, and was contracted to provide the required functionality. @@ -84,10 +84,10 @@  File: bfd.info, Node: How It Works, Next: What BFD Version 2 Can Do, Prev: History, Up: Overview -1.2 How To Use BFD -================== +How To Use BFD +============== -To use the library, include `bfd.h' and link with `libbfd.a'. + To use the library, include `bfd.h' and link with `libbfd.a'. BFD provides a common interface to the parts of an object file for a calling application. @@ -106,7 +106,7 @@ `abfd'. #include "bfd.h" - + unsigned int number_of_sections (abfd) bfd *abfd; { @@ -122,21 +122,22 @@ * a set of relocations (*note Relocations::), and * some symbol information (*note Symbols::). - Also, BFDs opened for archives have the additional attribute of an -index and contain subordinate BFDs. This approach is fine for a.out and -coff, but loses efficiency when applied to formats such as S-records and + +Also, BFDs opened for archives have the additional attribute of an index +and contain subordinate BFDs. This approach is fine for a.out and coff, +but loses efficiency when applied to formats such as S-records and IEEE-695.  File: bfd.info, Node: What BFD Version 2 Can Do, Prev: How It Works, Up: Overview -1.3 What BFD Version 2 Can Do -============================= +What BFD Version 2 Can Do +========================= -When an object file is opened, BFD subroutines automatically determine -the format of the input object file. They then build a descriptor in -memory with pointers to routines that will be used to access elements of -the object file's data structures. + When an object file is opened, BFD subroutines automatically +determine the format of the input object file. They then build a +descriptor in memory with pointers to routines that will be used to +access elements of the object file's data structures. As different information from the object files is required, BFD reads from different sections of the file and processes them. For @@ -159,14 +160,14 @@  File: bfd.info, Node: BFD information loss, Next: Canonical format, Up: What BFD Version 2 Can Do -1.3.1 Information Loss ----------------------- +Information Loss +---------------- -_Information can be lost during output._ The output formats supported -by BFD do not provide identical facilities, and information which can -be described in one form has nowhere to go in another format. One -example of this is alignment information in `b.out'. There is nowhere -in an `a.out' format file to store alignment information on the + _Information can be lost during output._ The output formats +supported by BFD do not provide identical facilities, and information +which can be described in one form has nowhere to go in another format. +One example of this is alignment information in `b.out'. There is +nowhere in an `a.out' format file to store alignment information on the contained data, so when a file is linked from `b.out' and an `a.out' image is produced, alignment information will not propagate to the output file. (The linker will still use the alignment information @@ -205,15 +206,15 @@  File: bfd.info, Node: Canonical format, Prev: BFD information loss, Up: What BFD Version 2 Can Do -1.3.2 The BFD canonical object-file format ------------------------------------------- +The BFD canonical object-file format +------------------------------------ -The greatest potential for loss of information occurs when there is the -least overlap between the information provided by the source format, -that stored by the canonical format, and that needed by the destination -format. A brief description of the canonical form may help you -understand which kinds of data you can count on preserving across -conversions. + The greatest potential for loss of information occurs when there is +the least overlap between the information provided by the source +format, that stored by the canonical format, and that needed by the +destination format. A brief description of the canonical form may help +you understand which kinds of data you can count on preserving across +conversions. _files_ Information stored on a per-file basis includes target machine @@ -287,15 +288,15 @@  File: bfd.info, Node: BFD front end, Next: BFD back ends, Prev: Overview, Up: Top -2 BFD Front End -*************** +BFD Front End +************* -2.1 `typedef bfd' -================= +`typedef bfd' +============= -A BFD has type `bfd'; objects of this type are the cornerstone of any -application using BFD. Using BFD consists of making references though -the BFD and to data in the BFD. + A BFD has type `bfd'; objects of this type are the cornerstone of +any application using BFD. Using BFD consists of making references +though the BFD and to data in the BFD. Here is the structure that defines the type `bfd'. It contains the major data about the file and pointers to the rest of the data. @@ -305,51 +306,51 @@ { /* A unique identifier of the BFD */ unsigned int id; - + /* The filename the application opened the BFD with. */ const char *filename; - + /* A pointer to the target jump table. */ const struct bfd_target *xvec; - + /* The IOSTREAM, and corresponding IO vector that provide access to the file backing the BFD. */ void *iostream; const struct bfd_iovec *iovec; - + /* Is the file descriptor being cached? That is, can it be closed as needed, and re-opened when accessed later? */ bfd_boolean cacheable; - + /* Marks whether there was a default target specified when the BFD was opened. This is used to select which matching algorithm to use to choose the back end. */ bfd_boolean target_defaulted; - + /* The caching routines use these to maintain a least-recently-used list of BFDs. */ struct bfd *lru_prev, *lru_next; - + /* When a file is closed by the caching routines, BFD retains state information on the file here... */ ufile_ptr where; - + /* ... and here: (``once'' means at least once). */ bfd_boolean opened_once; - + /* Set if we have a locally maintained mtime value, rather than getting it from the file each time. */ bfd_boolean mtime_set; - + /* File modified time, if mtime_set is TRUE. */ long mtime; - + /* Reserved for an unimplemented file locking extension. */ int ifd; - + /* The format which belongs to the BFD. (object, core, etc.) */ bfd_format format; - + /* The direction with which the BFD was opened. */ enum bfd_direction { @@ -359,64 +360,64 @@ both_direction = 3 } direction; - + /* Format_specific flags. */ flagword flags; - + /* Currently my_archive is tested before adding origin to anything. I believe that this can become always an add of origin, with origin set to 0 for non archive files. */ ufile_ptr origin; - + /* Remember when output has begun, to stop strange things from happening. */ bfd_boolean output_has_begun; - + /* A hash table for section names. */ struct bfd_hash_table section_htab; - + /* Pointer to linked list of sections. */ struct bfd_section *sections; - + /* The place where we add to the section list. */ struct bfd_section **section_tail; - + /* The number of sections. */ unsigned int section_count; - + /* Stuff only useful for object files: The start address. */ bfd_vma start_address; - + /* Used for input and output. */ unsigned int symcount; - + /* Symbol table for output BFD (with symcount entries). */ struct bfd_symbol **outsymbols; - + /* Used for slurped dynamic symbol tables. */ unsigned int dynsymcount; - + /* Pointer to structure which contains architecture information. */ const struct bfd_arch_info *arch_info; - + /* Flag set if symbols from this BFD should not be exported. */ bfd_boolean no_export; - + /* Stuff only useful for archives. */ void *arelt_data; struct bfd *my_archive; /* The containing archive BFD. */ struct bfd *next; /* The next BFD in the archive. */ struct bfd *archive_head; /* The first BFD in the archive. */ bfd_boolean has_armap; - + /* A chain of BFD structures involved in a link. */ struct bfd *link_next; - + /* A field used by _bfd_generic_link_add_archive_symbols. This will be used only for archive elements. */ int archive_pass; - + /* Used by the back end to hold private data. */ union { @@ -457,20 +458,20 @@ void *any; } tdata; - + /* Used by the application to hold private data. */ void *usrdata; - + /* Where all the allocated stuff under this BFD goes. This is a struct objalloc *, but we use void * to avoid requiring the inclusion of objalloc.h. */ void *memory; }; -2.2 Error reporting -=================== +Error reporting +=============== -Most BFD functions return nonzero on success (check their individual + Most BFD functions return nonzero on success (check their individual documentation for precise semantics). On an error, they call `bfd_set_error' to set an error condition that callers can check by calling `bfd_get_error'. If that returns `bfd_error_system_call', then @@ -479,10 +480,10 @@ The easiest way to report a BFD error to the user is to use `bfd_perror'. -2.2.1 Type `bfd_error_type' ---------------------------- +Type `bfd_error_type' +--------------------- -The values returned by `bfd_get_error' are defined by the enumerated + The values returned by `bfd_get_error' are defined by the enumerated type `bfd_error_type'. @@ -510,36 +511,36 @@ bfd_error_invalid_error_code } bfd_error_type; - -2.2.1.1 `bfd_get_error' -....................... -*Synopsis* +`bfd_get_error' +............... + + *Synopsis* bfd_error_type bfd_get_error (void); *Description* Return the current BFD error condition. -2.2.1.2 `bfd_set_error' -....................... +`bfd_set_error' +............... -*Synopsis* + *Synopsis* void bfd_set_error (bfd_error_type error_tag); *Description* Set the BFD error condition to be ERROR_TAG. -2.2.1.3 `bfd_errmsg' -.................... +`bfd_errmsg' +............ -*Synopsis* + *Synopsis* const char *bfd_errmsg (bfd_error_type error_tag); *Description* Return a string describing the error ERROR_TAG, or the system error if ERROR_TAG is `bfd_error_system_call'. -2.2.1.4 `bfd_perror' -.................... +`bfd_perror' +............ -*Synopsis* + *Synopsis* void bfd_perror (const char *message); *Description* Print to the standard error stream a string describing the last BFD @@ -548,61 +549,61 @@ string printed is preceded by MESSAGE, a colon, and a space. It is followed by a newline. -2.2.2 BFD error handler ------------------------ +BFD error handler +----------------- -Some BFD functions want to print messages describing the problem. They -call a BFD error handler function. This function may be overridden by -the program. + Some BFD functions want to print messages describing the problem. +They call a BFD error handler function. This function may be +overridden by the program. The BFD error handler acts like printf. typedef void (*bfd_error_handler_type) (const char *, ...); - -2.2.2.1 `bfd_set_error_handler' -............................... -*Synopsis* +`bfd_set_error_handler' +....................... + + *Synopsis* bfd_error_handler_type bfd_set_error_handler (bfd_error_handler_type); *Description* Set the BFD error handler function. Returns the previous function. -2.2.2.2 `bfd_set_error_program_name' -.................................... +`bfd_set_error_program_name' +............................ -*Synopsis* + *Synopsis* void bfd_set_error_program_name (const char *); *Description* Set the program name to use when printing a BFD error. This is printed before the error message followed by a colon and space. The string must not be changed after it is passed to this function. -2.2.2.3 `bfd_get_error_handler' -............................... +`bfd_get_error_handler' +....................... -*Synopsis* + *Synopsis* bfd_error_handler_type bfd_get_error_handler (void); *Description* Return the BFD error handler function. -2.3 Symbols -=========== +Symbols +======= -2.3.0.1 `bfd_get_reloc_upper_bound' -................................... +`bfd_get_reloc_upper_bound' +........................... -*Synopsis* + *Synopsis* long bfd_get_reloc_upper_bound (bfd *abfd, asection *sect); *Description* Return the number of bytes required to store the relocation information associated with section SECT attached to bfd ABFD. If an error occurs, return -1. -2.3.0.2 `bfd_canonicalize_reloc' -................................ +`bfd_canonicalize_reloc' +........................ -*Synopsis* + *Synopsis* long bfd_canonicalize_reloc (bfd *abfd, asection *sec, arelent **loc, asymbol **syms); *Description* @@ -614,20 +615,20 @@ The SYMS table is also needed for horrible internal magic reasons. -2.3.0.3 `bfd_set_reloc' -....................... +`bfd_set_reloc' +............... -*Synopsis* + *Synopsis* void bfd_set_reloc (bfd *abfd, asection *sec, arelent **rel, unsigned int count); *Description* Set the relocation pointer and count within section SEC to the values REL and COUNT. The argument ABFD is ignored. -2.3.0.4 `bfd_set_file_flags' -............................ +`bfd_set_file_flags' +.................... -*Synopsis* + *Synopsis* bfd_boolean bfd_set_file_flags (bfd *abfd, flagword flags); *Description* Set the flag word in the BFD ABFD to the value FLAGS. @@ -643,10 +644,10 @@ was made to set the `D_PAGED' bit on a BFD format which does not support demand paging. -2.3.0.5 `bfd_get_arch_size' -........................... +`bfd_get_arch_size' +................... -*Synopsis* + *Synopsis* int bfd_get_arch_size (bfd *abfd); *Description* Returns the architecture address size, in bits, as determined by the @@ -656,10 +657,10 @@ *Returns* Returns the arch size in bits if known, `-1' otherwise. -2.3.0.6 `bfd_get_sign_extend_vma' -................................. +`bfd_get_sign_extend_vma' +......................... -*Synopsis* + *Synopsis* int bfd_get_sign_extend_vma (bfd *abfd); *Description* Indicates if the target architecture "naturally" sign extends an @@ -673,10 +674,10 @@ addresses, `0' if the target architecture is known to not sign extend addresses, and `-1' otherwise. -2.3.0.7 `bfd_set_start_address' -............................... +`bfd_set_start_address' +....................... -*Synopsis* + *Synopsis* bfd_boolean bfd_set_start_address (bfd *abfd, bfd_vma vma); *Description* Make VMA the entry point of output BFD ABFD. @@ -684,30 +685,30 @@ *Returns* Returns `TRUE' on success, `FALSE' otherwise. -2.3.0.8 `bfd_get_gp_size' -......................... +`bfd_get_gp_size' +................. -*Synopsis* + *Synopsis* unsigned int bfd_get_gp_size (bfd *abfd); *Description* Return the maximum size of objects to be optimized using the GP register under MIPS ECOFF. This is typically set by the `-G' argument to the compiler, assembler or linker. -2.3.0.9 `bfd_set_gp_size' -......................... +`bfd_set_gp_size' +................. -*Synopsis* + *Synopsis* void bfd_set_gp_size (bfd *abfd, unsigned int i); *Description* Set the maximum size of objects to be optimized using the GP register under ECOFF or MIPS ELF. This is typically set by the `-G' argument to the compiler, assembler or linker. -2.3.0.10 `bfd_scan_vma' -....................... +`bfd_scan_vma' +.............. -*Synopsis* + *Synopsis* bfd_vma bfd_scan_vma (const char *string, const char **end, int base); *Description* Convert, like `strtoul', a numerical expression STRING into a `bfd_vma' @@ -720,10 +721,10 @@ If the value would overflow, the maximum `bfd_vma' value is returned. -2.3.0.11 `bfd_copy_private_header_data' -....................................... +`bfd_copy_private_header_data' +.............................. -*Synopsis* + *Synopsis* bfd_boolean bfd_copy_private_header_data (bfd *ibfd, bfd *obfd); *Description* Copy private BFD header information from the BFD IBFD to the the BFD @@ -738,10 +739,10 @@ BFD_SEND (obfd, _bfd_copy_private_header_data, \ (ibfd, obfd)) -2.3.0.12 `bfd_copy_private_bfd_data' -.................................... +`bfd_copy_private_bfd_data' +........................... -*Synopsis* + *Synopsis* bfd_boolean bfd_copy_private_bfd_data (bfd *ibfd, bfd *obfd); *Description* Copy private BFD information from the BFD IBFD to the the BFD OBFD. @@ -754,10 +755,10 @@ BFD_SEND (obfd, _bfd_copy_private_bfd_data, \ (ibfd, obfd)) -2.3.0.13 `bfd_merge_private_bfd_data' -..................................... +`bfd_merge_private_bfd_data' +............................ -*Synopsis* + *Synopsis* bfd_boolean bfd_merge_private_bfd_data (bfd *ibfd, bfd *obfd); *Description* Merge private BFD information from the BFD IBFD to the the output file @@ -771,10 +772,10 @@ BFD_SEND (obfd, _bfd_merge_private_bfd_data, \ (ibfd, obfd)) -2.3.0.14 `bfd_set_private_flags' -................................ +`bfd_set_private_flags' +....................... -*Synopsis* + *Synopsis* bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags); *Description* Set private BFD flag information in the BFD ABFD. Return `TRUE' on @@ -786,96 +787,96 @@ #define bfd_set_private_flags(abfd, flags) \ BFD_SEND (abfd, _bfd_set_private_flags, (abfd, flags)) -2.3.0.15 `Other functions' -.......................... +`Other functions' +................. -*Description* + *Description* The following functions exist but have not yet been documented. #define bfd_sizeof_headers(abfd, reloc) \ BFD_SEND (abfd, _bfd_sizeof_headers, (abfd, reloc)) - + #define bfd_find_nearest_line(abfd, sec, syms, off, file, func, line) \ BFD_SEND (abfd, _bfd_find_nearest_line, \ (abfd, sec, syms, off, file, func, line)) - + #define bfd_debug_info_start(abfd) \ BFD_SEND (abfd, _bfd_debug_info_start, (abfd)) - + #define bfd_debug_info_end(abfd) \ BFD_SEND (abfd, _bfd_debug_info_end, (abfd)) - + #define bfd_debug_info_accumulate(abfd, section) \ BFD_SEND (abfd, _bfd_debug_info_accumulate, (abfd, section)) - + #define bfd_stat_arch_elt(abfd, stat) \ BFD_SEND (abfd, _bfd_stat_arch_elt,(abfd, stat)) - + #define bfd_update_armap_timestamp(abfd) \ BFD_SEND (abfd, _bfd_update_armap_timestamp, (abfd)) - + #define bfd_set_arch_mach(abfd, arch, mach)\ BFD_SEND ( abfd, _bfd_set_arch_mach, (abfd, arch, mach)) - + #define bfd_relax_section(abfd, section, link_info, again) \ BFD_SEND (abfd, _bfd_relax_section, (abfd, section, link_info, again)) - + #define bfd_gc_sections(abfd, link_info) \ BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info)) - + #define bfd_merge_sections(abfd, link_info) \ BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info)) - + #define bfd_is_group_section(abfd, sec) \ BFD_SEND (abfd, _bfd_is_group_section, (abfd, sec)) - + #define bfd_discard_group(abfd, sec) \ BFD_SEND (abfd, _bfd_discard_group, (abfd, sec)) - + #define bfd_link_hash_table_create(abfd) \ BFD_SEND (abfd, _bfd_link_hash_table_create, (abfd)) - + #define bfd_link_hash_table_free(abfd, hash) \ BFD_SEND (abfd, _bfd_link_hash_table_free, (hash)) - + #define bfd_link_add_symbols(abfd, info) \ BFD_SEND (abfd, _bfd_link_add_symbols, (abfd, info)) - + #define bfd_link_just_syms(abfd, sec, info) \ BFD_SEND (abfd, _bfd_link_just_syms, (sec, info)) - + #define bfd_final_link(abfd, info) \ BFD_SEND (abfd, _bfd_final_link, (abfd, info)) - + #define bfd_free_cached_info(abfd) \ BFD_SEND (abfd, _bfd_free_cached_info, (abfd)) - + #define bfd_get_dynamic_symtab_upper_bound(abfd) \ BFD_SEND (abfd, _bfd_get_dynamic_symtab_upper_bound, (abfd)) - + #define bfd_print_private_bfd_data(abfd, file)\ BFD_SEND (abfd, _bfd_print_private_bfd_data, (abfd, file)) - + #define bfd_canonicalize_dynamic_symtab(abfd, asymbols) \ BFD_SEND (abfd, _bfd_canonicalize_dynamic_symtab, (abfd, asymbols)) - + #define bfd_get_synthetic_symtab(abfd, count, syms, dyncount, dynsyms, ret) \ BFD_SEND (abfd, _bfd_get_synthetic_symtab, (abfd, count, syms, \ dyncount, dynsyms, ret)) - + #define bfd_get_dynamic_reloc_upper_bound(abfd) \ BFD_SEND (abfd, _bfd_get_dynamic_reloc_upper_bound, (abfd)) - + #define bfd_canonicalize_dynamic_reloc(abfd, arels, asyms) \ BFD_SEND (abfd, _bfd_canonicalize_dynamic_reloc, (abfd, arels, asyms)) - + extern bfd_byte *bfd_get_relocated_section_contents (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *, bfd_boolean, asymbol **); -2.3.0.16 `bfd_alt_mach_code' -............................ +`bfd_alt_mach_code' +................... -*Synopsis* + *Synopsis* bfd_boolean bfd_alt_mach_code (bfd *abfd, int alternative); *Description* When more than one machine code number is available for the same @@ -894,11 +895,11 @@ unsigned int section_count; struct bfd_hash_table section_htab; }; - -2.3.0.17 `bfd_preserve_save' -............................ -*Synopsis* +`bfd_preserve_save' +................... + + *Synopsis* bfd_boolean bfd_preserve_save (bfd *, struct bfd_preserve *); *Description* When testing an object for compatibility with a particular target @@ -910,30 +911,30 @@ state works in practice. This function stores the subset and reinitializes the bfd. -2.3.0.18 `bfd_preserve_restore' -............................... +`bfd_preserve_restore' +...................... -*Synopsis* + *Synopsis* void bfd_preserve_restore (bfd *, struct bfd_preserve *); *Description* This function restores bfd state saved by bfd_preserve_save. If MARKER is non-NULL in struct bfd_preserve then that block and all subsequently bfd_alloc'd memory is freed. -2.3.0.19 `bfd_preserve_finish' -.............................. +`bfd_preserve_finish' +..................... -*Synopsis* + *Synopsis* void bfd_preserve_finish (bfd *, struct bfd_preserve *); *Description* This function should be called when the bfd state saved by bfd_preserve_save is no longer needed. ie. when the back-end object_p function returns with success. -2.3.0.20 `struct bfd_iovec' -........................... +`struct bfd_iovec' +.................. -*Description* + *Description* The `struct bfd_iovec' contains the internal file I/O class. Each `BFD' has an instance of this class and all file I/O is routed through it (it is assumed that the instance implements all methods listed @@ -960,19 +961,19 @@ int (*bstat) (struct bfd *abfd, struct stat *sb); }; -2.3.0.21 `bfd_get_mtime' -........................ +`bfd_get_mtime' +............... -*Synopsis* + *Synopsis* long bfd_get_mtime (bfd *abfd); *Description* Return the file modification time (as read from the file system, or from the archive header for archive members). -2.3.0.22 `bfd_get_size' -....................... +`bfd_get_size' +.............. -*Synopsis* + *Synopsis* long bfd_get_size (bfd *abfd); *Description* Return the file size (as read from file system) for the file associated @@ -1019,10 +1020,10 @@  File: bfd.info, Node: Memory Usage, Next: Initialization, Prev: BFD front end, Up: BFD front end -2.4 Memory Usage -================ +Memory Usage +============ -BFD keeps all of its internal structures in obstacks. There is one + BFD keeps all of its internal structures in obstacks. There is one obstack per open BFD file, into which the current state is stored. When a BFD is closed, the obstack is deleted, and so everything which has been allocated by BFD for the closing file is thrown away. @@ -1045,15 +1046,15 @@  File: bfd.info, Node: Initialization, Next: Sections, Prev: Memory Usage, Up: BFD front end -2.5 Initialization -================== +Initialization +============== -These are the functions that handle initializing a BFD. + These are the functions that handle initializing a BFD. -2.5.0.1 `bfd_init' -.................. +`bfd_init' +.......... -*Synopsis* + *Synopsis* void bfd_init (void); *Description* This routine must be called before any other BFD function to initialize @@ -1062,13 +1063,13 @@  File: bfd.info, Node: Sections, Next: Symbols, Prev: Initialization, Up: BFD front end -2.6 Sections -============ +Sections +======== -The raw data contained within a BFD is maintained through the section -abstraction. A single BFD may have any number of sections. It keeps -hold of them by pointing to the first; each one points to the next in -the list. + The raw data contained within a BFD is maintained through the +section abstraction. A single BFD may have any number of sections. It +keeps hold of them by pointing to the first; each one points to the +next in the list. Sections are supported in BFD in `section.c'. @@ -1082,10 +1083,10 @@  File: bfd.info, Node: Section Input, Next: Section Output, Prev: Sections, Up: Sections -2.6.1 Section input -------------------- +Section input +------------- -When a BFD is opened for reading, the section structures are created + When a BFD is opened for reading, the section structures are created and attached to the BFD. Each section has a name which describes the section in the outside @@ -1114,10 +1115,10 @@  File: bfd.info, Node: Section Output, Next: typedef asection, Prev: Section Input, Up: Sections -2.6.2 Section output --------------------- +Section output +-------------- -To write a new object style BFD, the various sections to be written + To write a new object style BFD, the various sections to be written have to be created. They are attached to the BFD in the same way as input sections; data is written to the sections using `bfd_set_section_contents'. @@ -1151,12 +1152,12 @@ size 0x103 | output_section --------| -2.6.3 Link orders ------------------ +Link orders +----------- -The data within a section is stored in a "link_order". These are much -like the fixups in `gas'. The link_order abstraction allows a section -to grow and shrink within itself. + The data within a section is stored in a "link_order". These are +much like the fixups in `gas'. The link_order abstraction allows a +section to grow and shrink within itself. A link_order knows how big it is, and which is the next link_order and where the raw data for it is; it also points to a list of @@ -1172,10 +1173,10 @@  File: bfd.info, Node: typedef asection, Next: section prototypes, Prev: Section Output, Up: Sections -2.6.4 typedef asection ----------------------- +typedef asection +---------------- -Here is the section structure: + Here is the section structure: typedef struct bfd_section @@ -1183,47 +1184,47 @@ /* The name of the section; the name isn't a copy, the pointer is the same as that passed to bfd_make_section. */ const char *name; - + /* A unique sequence number. */ int id; - + /* Which section in the bfd; 0..n-1 as sections are created in a bfd. */ int index; - + /* The next section in the list belonging to the BFD, or NULL. */ struct bfd_section *next; - + /* The field flags contains attributes of the section. Some flags are read in from the object file, and some are synthesized from other information. */ flagword flags; - + #define SEC_NO_FLAGS 0x000 - + /* Tells the OS to allocate space for this section when loading. This is clear for a section containing debug information only. */ #define SEC_ALLOC 0x001 - + /* Tells the OS to load the section from the file when loading. This is clear for a .bss section. */ #define SEC_LOAD 0x002 - + /* The section contains data still to be relocated, so there is some relocation information too. */ #define SEC_RELOC 0x004 - + /* A signal to the OS that the section contains read only data. */ #define SEC_READONLY 0x008 - + /* The section contains code only. */ #define SEC_CODE 0x010 - + /* The section contains data only. */ #define SEC_DATA 0x020 - + /* The section will reside in ROM. */ #define SEC_ROM 0x040 - + /* The section contains constructor information. This section type is used by the linker to create lists of constructors and destructors used by `g++'. When a back end sees a symbol @@ -1235,19 +1236,19 @@ contained within - exactly the operations it would peform on standard data. */ #define SEC_CONSTRUCTOR 0x080 - + /* The section has contents - a data section could be `SEC_ALLOC' | `SEC_HAS_CONTENTS'; a debug section could be `SEC_HAS_CONTENTS' */ #define SEC_HAS_CONTENTS 0x100 - + /* An instruction to the linker to not output the section even if it has information which would normally be written. */ #define SEC_NEVER_LOAD 0x200 - + /* The section contains thread local data. */ #define SEC_THREAD_LOCAL 0x400 - + /* The section has GOT references. This flag is only for the linker, and is currently only used by the elf32-hppa back end. It will be set if global offset table references were detected @@ -1255,90 +1256,90 @@ contains PIC code, and must be handled specially when doing a static link. */ #define SEC_HAS_GOT_REF 0x800 - + /* The section contains common symbols (symbols may be defined multiple times, the value of a symbol is the amount of space it requires, and the largest symbol value is the one used). Most targets have exactly one of these (which we translate to bfd_com_section_ptr), but ECOFF has two. */ #define SEC_IS_COMMON 0x1000 - + /* The section contains only debugging information. For example, this is set for ELF .debug and .stab sections. strip tests this flag to see if a section can be discarded. */ #define SEC_DEBUGGING 0x2000 - + /* The contents of this section are held in memory pointed to by the contents field. This is checked by bfd_get_section_contents, and the data is retrieved from memory if appropriate. */ #define SEC_IN_MEMORY 0x4000 - + /* The contents of this section are to be excluded by the linker for executable and shared objects unless those objects are to be further relocated. */ #define SEC_EXCLUDE 0x8000 - + /* The contents of this section are to be sorted based on the sum of the symbol and addend values specified by the associated relocation entries. Entries without associated relocation entries will be appended to the end of the section in an unspecified order. */ #define SEC_SORT_ENTRIES 0x10000 - + /* When linking, duplicate sections of the same name should be discarded, rather than being combined into a single section as is usually done. This is similar to how common symbols are handled. See SEC_LINK_DUPLICATES below. */ #define SEC_LINK_ONCE 0x20000 - + /* If SEC_LINK_ONCE is set, this bitfield describes how the linker should handle duplicate sections. */ #define SEC_LINK_DUPLICATES 0x40000 - + /* This value for SEC_LINK_DUPLICATES means that duplicate sections with the same name should simply be discarded. */ #define SEC_LINK_DUPLICATES_DISCARD 0x0 - + /* This value for SEC_LINK_DUPLICATES means that the linker should warn if there are any duplicate sections, although it should still only link one copy. */ #define SEC_LINK_DUPLICATES_ONE_ONLY 0x80000 - + /* This value for SEC_LINK_DUPLICATES means that the linker should warn if any duplicate sections are a different size. */ #define SEC_LINK_DUPLICATES_SAME_SIZE 0x100000 - + /* This value for SEC_LINK_DUPLICATES means that the linker should warn if any duplicate sections contain different contents. */ #define SEC_LINK_DUPLICATES_SAME_CONTENTS \ (SEC_LINK_DUPLICATES_ONE_ONLY | SEC_LINK_DUPLICATES_SAME_SIZE) - + /* This section was created by the linker as part of dynamic relocation or other arcane processing. It is skipped when going through the first-pass output, trusting that someone else up the line will take care of it later. */ #define SEC_LINKER_CREATED 0x200000 - + /* This section should not be subject to garbage collection. */ #define SEC_KEEP 0x400000 - + /* This section contains "short" data, and should be placed "near" the GP. */ #define SEC_SMALL_DATA 0x800000 - + /* Attempt to merge identical entities in the section. Entity size is given in the entsize field. */ #define SEC_MERGE 0x1000000 - + /* If given with SEC_MERGE, entities to merge are zero terminated strings where entsize specifies character size instead of fixed size entries. */ #define SEC_STRINGS 0x2000000 - + /* This section contains data about section groups. */ #define SEC_GROUP 0x4000000 - + /* The section is a COFF shared library section. This flag is only for the linker. If this type of section appears in the input file, the linker must copy it to the output file @@ -1349,45 +1350,45 @@ allow the back end to control what the linker does with sections. */ #define SEC_COFF_SHARED_LIBRARY 0x10000000 - + /* This section contains data which may be shared with other executables or shared objects. This is for COFF only. */ #define SEC_COFF_SHARED 0x20000000 - + /* When a section with this flag is being linked, then if the size of the input section is less than a page, it should not cross a page boundary. If the size of the input section is one page or more, it should be aligned on a page boundary. This is for TI TMS320C54X only. */ #define SEC_TIC54X_BLOCK 0x40000000 - + /* Conditionally link this section; do not link if there are no references found to any symbol in the section. This is for TI TMS320C54X only. */ #define SEC_TIC54X_CLINK 0x80000000 - + /* End of section flags. */ - + /* Some internal packed boolean fields. */ - + /* See the vma field. */ unsigned int user_set_vma : 1; - + /* A mark flag used by some of the linker backends. */ unsigned int linker_mark : 1; - + /* Another mark flag used by some of the linker backends. Set for output sections that have an input section. */ unsigned int linker_has_input : 1; - + /* A mark flag used by some linker backends for garbage collection. */ unsigned int gc_mark : 1; - + /* The following flags are used by the ELF linker. */ - + /* Mark sections which have been allocated to segments. */ unsigned int segment_mark : 1; - + /* Type of sec_info information. */ unsigned int sec_info_type:3; #define ELF_INFO_TYPE_NONE 0 @@ -1395,27 +1396,27 @@ #define ELF_INFO_TYPE_MERGE 2 #define ELF_INFO_TYPE_EH_FRAME 3 #define ELF_INFO_TYPE_JUST_SYMS 4 - + /* Nonzero if this section uses RELA relocations, rather than REL. */ unsigned int use_rela_p:1; - + /* Bits used by various backends. The generic code doesn't touch these fields. */ - + /* Nonzero if this section has TLS related relocations. */ unsigned int has_tls_reloc:1; - + /* Nonzero if this section has a gp reloc. */ unsigned int has_gp_reloc:1; - + /* Nonzero if this section needs the relax finalize pass. */ unsigned int need_finalize_relax:1; - + /* Whether relocations have been processed. */ unsigned int reloc_done : 1; - + /* End of internal packed boolean fields. */ - + /* The virtual memory address of the section - where it will be at run time. The symbols are relocated against this. The user_set_vma flag is maintained by bfd; if it's not set, the @@ -1423,17 +1424,17 @@ the default address for `.data' is dependent on the specific target and various flags). */ bfd_vma vma; - + /* The load address of the section - where it would be in a rom image; really only used for writing section header information. */ bfd_vma lma; - + /* The size of the section in octets, as it will be output. Contains a value even if the section has no contents (e.g., the size of `.bss'). */ bfd_size_type size; - + /* For input sections, the original size on disk of the section, in octets. This field is used by the linker relaxation code. It is currently only set for sections where the linker relaxation scheme @@ -1443,7 +1444,7 @@ For output sections, rawsize holds the section size calculated on a previous linker relaxation pass. */ bfd_size_type rawsize; - + /* If this section is going to be output, then this value is the offset in *bytes* into the output section of the first byte in the input section (byte ==> smallest addressable unit on the @@ -1452,81 +1453,81 @@ would be 100. However, if the target byte size is 16 bits (bfd_octets_per_byte is "2"), this value would be 50. */ bfd_vma output_offset; - + /* The output section through which to map on output. */ struct bfd_section *output_section; - + /* The alignment requirement of the section, as an exponent of 2 - e.g., 3 aligns to 2^3 (or 8). */ unsigned int alignment_power; - + /* If an input section, a pointer to a vector of relocation records for the data in this section. */ struct reloc_cache_entry *relocation; - + /* If an output section, a pointer to a vector of pointers to relocation records for the data in this section. */ struct reloc_cache_entry **orelocation; - + /* The number of relocation records in one of the above. */ unsigned reloc_count; - + /* Information below is back end specific - and not always used or updated. */ - + /* File position of section data. */ file_ptr filepos; - + /* File position of relocation info. */ file_ptr rel_filepos; - + /* File position of line data. */ file_ptr line_filepos; - + /* Pointer to data for applications. */ void *userdata; - + /* If the SEC_IN_MEMORY flag is set, this points to the actual contents. */ unsigned char *contents; - + /* Attached line number information. */ alent *lineno; - + /* Number of line number records. */ unsigned int lineno_count; - + /* Entity size for merging purposes. */ unsigned int entsize; - + /* Points to the kept section if this section is a link-once section, and is discarded. */ struct bfd_section *kept_section; - + /* When a section is being output, this value changes as more linenumbers are written out. */ file_ptr moving_line_filepos; - + /* What the section number is in the target world. */ int target_index; - + void *used_by_bfd; - + /* If this is a constructor section then here is a list of the relocations created to relocate items within it. */ struct relent_chain *constructor_chain; - + /* The BFD which owns the section. */ bfd *owner; - + /* A symbol which points at this section only. */ struct bfd_symbol *symbol; struct bfd_symbol **symbol_ptr_ptr; - + struct bfd_link_order *link_order_head; struct bfd_link_order *link_order_tail; } asection; - + /* These sections are global, and are managed by BFD. The application and target back end are not permitted to change the values in these sections. New code should use the section_ptr macros rather @@ -1536,7 +1537,7 @@ #define BFD_UND_SECTION_NAME "*UND*" #define BFD_COM_SECTION_NAME "*COM*" #define BFD_IND_SECTION_NAME "*IND*" - + /* The absolute section. */ extern asection bfd_abs_section; #define bfd_abs_section_ptr ((asection *) &bfd_abs_section) @@ -1552,18 +1553,18 @@ extern asection bfd_ind_section; #define bfd_ind_section_ptr ((asection *) &bfd_ind_section) #define bfd_is_ind_section(sec) ((sec) == bfd_ind_section_ptr) - + #define bfd_is_const_section(SEC) \ ( ((SEC) == bfd_abs_section_ptr) \ || ((SEC) == bfd_und_section_ptr) \ || ((SEC) == bfd_com_section_ptr) \ || ((SEC) == bfd_ind_section_ptr)) - + extern const struct bfd_symbol * const bfd_abs_symbol; extern const struct bfd_symbol * const bfd_com_symbol; extern const struct bfd_symbol * const bfd_und_symbol; extern const struct bfd_symbol * const bfd_ind_symbol; - + /* Macros to handle insertion and deletion of a bfd's sections. These only handle the list pointers, ie. do not adjust section_count, target_index etc. */ @@ -1592,24 +1593,24 @@  File: bfd.info, Node: section prototypes, Prev: typedef asection, Up: Sections -2.6.5 Section prototypes ------------------------- +Section prototypes +------------------ -These are the functions exported by the section handling part of BFD. + These are the functions exported by the section handling part of BFD. -2.6.5.1 `bfd_section_list_clear' -................................ +`bfd_section_list_clear' +........................ -*Synopsis* + *Synopsis* void bfd_section_list_clear (bfd *); *Description* Clears the section list, and also resets the section count and hash table entries. -2.6.5.2 `bfd_get_section_by_name' -................................. +`bfd_get_section_by_name' +......................... -*Synopsis* + *Synopsis* asection *bfd_get_section_by_name (bfd *abfd, const char *name); *Description* Run through ABFD and return the one of the `asection's whose name @@ -1620,10 +1621,10 @@ `strcmp' on the name (or better yet, base it on the section flags or something else) for each section. -2.6.5.3 `bfd_get_section_by_name_if' -.................................... +`bfd_get_section_by_name_if' +............................ -*Synopsis* + *Synopsis* asection *bfd_get_section_by_name_if (bfd *abfd, const char *name, @@ -1639,10 +1640,10 @@ It returns the first section for which FUNC returns true, otherwise `NULL'. -2.6.5.4 `bfd_get_unique_section_name' -..................................... +`bfd_get_unique_section_name' +............................. -*Synopsis* + *Synopsis* char *bfd_get_unique_section_name (bfd *abfd, const char *templat, int *count); *Description* @@ -1651,10 +1652,10 @@ specifies the first number tried as a suffix to generate a unique name. The value pointed to by COUNT will be incremented in this case. -2.6.5.5 `bfd_make_section_old_way' -.................................. +`bfd_make_section_old_way' +.......................... -*Synopsis* + *Synopsis* asection *bfd_make_section_old_way (bfd *abfd, const char *name); *Description* Create a new empty section called NAME and attach it to the end of the @@ -1671,10 +1672,10 @@ * `bfd_error_no_memory' - If memory allocation fails. -2.6.5.6 `bfd_make_section_anyway' -................................. +`bfd_make_section_anyway' +......................... -*Synopsis* + *Synopsis* asection *bfd_make_section_anyway (bfd *abfd, const char *name); *Description* Create a new empty section called NAME and attach it to the end of the @@ -1687,10 +1688,10 @@ * `bfd_error_no_memory' - If memory allocation fails. -2.6.5.7 `bfd_make_section' -.......................... +`bfd_make_section' +.................. -*Synopsis* + *Synopsis* asection *bfd_make_section (bfd *, const char *name); *Description* Like `bfd_make_section_anyway', but return `NULL' (without calling @@ -1698,10 +1699,10 @@ already a section named NAME. If there is an error, return `NULL' and set `bfd_error'. -2.6.5.8 `bfd_set_section_flags' -............................... +`bfd_set_section_flags' +....................... -*Synopsis* + *Synopsis* bfd_boolean bfd_set_section_flags (bfd *abfd, asection *sec, flagword flags); *Description* @@ -1713,10 +1714,10 @@ more of the attributes requested. For example, a .bss section in `a.out' may not have the `SEC_HAS_CONTENTS' field set. -2.6.5.9 `bfd_map_over_sections' -............................... +`bfd_map_over_sections' +....................... -*Synopsis* + *Synopsis* void bfd_map_over_sections (bfd *abfd, void (*func) (bfd *abfd, asection *sect, void *obj), @@ -1734,10 +1735,10 @@ for (p = abfd->sections; p != NULL; p = p->next) func (abfd, p, ...) -2.6.5.10 `bfd_sections_find_if' -............................... +`bfd_sections_find_if' +...................... -*Synopsis* + *Synopsis* asection *bfd_sections_find_if (bfd *abfd, bfd_boolean (*operation) (bfd *abfd, asection *sect, void *obj), @@ -1751,10 +1752,10 @@ It returns the first section for which OPERATION returns true. -2.6.5.11 `bfd_set_section_size' -............................... +`bfd_set_section_size' +...................... -*Synopsis* + *Synopsis* bfd_boolean bfd_set_section_size (bfd *abfd, asection *sec, bfd_size_type val); *Description* @@ -1765,10 +1766,10 @@ * `bfd_error_invalid_operation' - Writing has started to the BFD, so setting the size is invalid. -2.6.5.12 `bfd_set_section_contents' -................................... +`bfd_set_section_contents' +.......................... -*Synopsis* + *Synopsis* bfd_boolean bfd_set_section_contents (bfd *abfd, asection *section, const void *data, file_ptr offset, bfd_size_type count); @@ -1786,10 +1787,10 @@ This routine is front end to the back end function `_bfd_set_section_contents'. -2.6.5.13 `bfd_get_section_contents' -................................... +`bfd_get_section_contents' +.......................... -*Synopsis* + *Synopsis* bfd_boolean bfd_get_section_contents (bfd *abfd, asection *section, void *location, file_ptr offset, bfd_size_type count); @@ -1803,20 +1804,20 @@ flag set, then the LOCATION is filled with zeroes. If no errors occur, `TRUE' is returned, else `FALSE'. -2.6.5.14 `bfd_malloc_and_get_section' -..................................... +`bfd_malloc_and_get_section' +............................ -*Synopsis* + *Synopsis* bfd_boolean bfd_malloc_and_get_section (bfd *abfd, asection *section, bfd_byte **buf); *Description* Read all data from SECTION in BFD ABFD into a buffer, *BUF, malloc'd by this function. -2.6.5.15 `bfd_copy_private_section_data' -........................................ +`bfd_copy_private_section_data' +............................... -*Synopsis* + *Synopsis* bfd_boolean bfd_copy_private_section_data (bfd *ibfd, asection *isec, bfd *obfd, asection *osec); *Description* @@ -1831,10 +1832,10 @@ BFD_SEND (obfd, _bfd_copy_private_section_data, \ (ibfd, isection, obfd, osection)) -2.6.5.16 `_bfd_strip_section_from_output' -......................................... +`_bfd_strip_section_from_output' +................................ -*Synopsis* + *Synopsis* void _bfd_strip_section_from_output (struct bfd_link_info *info, asection *section); *Description* @@ -1845,18 +1846,18 @@ called too late in the linking process, when it's not safe to remove sections. -2.6.5.17 `bfd_generic_is_group_section' -....................................... +`bfd_generic_is_group_section' +.............................. -*Synopsis* + *Synopsis* bfd_boolean bfd_generic_is_group_section (bfd *, const asection *sec); *Description* Returns TRUE if SEC is a member of a group. -2.6.5.18 `bfd_generic_discard_group' -.................................... +`bfd_generic_discard_group' +........................... -*Synopsis* + *Synopsis* bfd_boolean bfd_generic_discard_group (bfd *abfd, asection *group); *Description* Remove all members of GROUP from the output. @@ -1864,10 +1865,10 @@  File: bfd.info, Node: Symbols, Next: Archives, Prev: Sections, Up: BFD front end -2.7 Symbols -=========== +Symbols +======= -BFD tries to maintain as much symbol information as it can when it + BFD tries to maintain as much symbol information as it can when it moves information from file to file. BFD passes information to applications though the `asymbol' structure. When the application requests the symbol table, BFD reads the table in the native form and @@ -1899,34 +1900,34 @@  File: bfd.info, Node: Reading Symbols, Next: Writing Symbols, Prev: Symbols, Up: Symbols -2.7.1 Reading symbols ---------------------- +Reading symbols +--------------- -There are two stages to reading a symbol table from a BFD: allocating -storage, and the actual reading process. This is an excerpt from an -application which reads the symbol table: + There are two stages to reading a symbol table from a BFD: +allocating storage, and the actual reading process. This is an excerpt +from an application which reads the symbol table: long storage_needed; asymbol **symbol_table; long number_of_symbols; long i; - + storage_needed = bfd_get_symtab_upper_bound (abfd); - + if (storage_needed < 0) FAIL - + if (storage_needed == 0) return; - + symbol_table = xmalloc (storage_needed); ... number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table); - + if (number_of_symbols < 0) FAIL - + for (i = 0; i < number_of_symbols; i++) process_symbol (symbol_table[i]); @@ -1936,11 +1937,11 @@  File: bfd.info, Node: Writing Symbols, Next: Mini Symbols, Prev: Reading Symbols, Up: Symbols -2.7.2 Writing symbols ---------------------- +Writing symbols +--------------- -Writing of a symbol table is automatic when a BFD open for writing is -closed. The application attaches a vector of pointers to pointers to + Writing of a symbol table is automatic when a BFD open for writing +is closed. The application attaches a vector of pointers to pointers to symbols to the BFD being written, and fills in the symbol count. The close and cleanup code reads through the table provided and performs all the necessary operations. The BFD output code must always be @@ -1954,7 +1955,7 @@ bfd *abfd; asymbol *ptrs[2]; asymbol *new; - + abfd = bfd_openw ("foo","a.out-sunos-big"); bfd_set_format (abfd, bfd_object); new = bfd_make_empty_symbol (abfd); @@ -1962,15 +1963,15 @@ new->section = bfd_make_section_old_way (abfd, ".text"); new->flags = BSF_GLOBAL; new->value = 0x12345; - + ptrs[0] = new; ptrs[1] = 0; - + bfd_set_symtab (abfd, ptrs, 1); bfd_close (abfd); return 0; } - + ./makesym nm foo 00012345 A dummy_symbol @@ -1983,10 +1984,10 @@  File: bfd.info, Node: Mini Symbols, Next: typedef asymbol, Prev: Writing Symbols, Up: Symbols -2.7.3 Mini Symbols ------------------- +Mini Symbols +------------ -Mini symbols provide read-only access to the symbol table. They use + Mini symbols provide read-only access to the symbol table. They use less memory space, but require more time to access. They can be useful for tools like nm or objdump, which may have to handle symbol tables of extremely large executables. @@ -2006,10 +2007,10 @@  File: bfd.info, Node: typedef asymbol, Next: symbol handling functions, Prev: Mini Symbols, Up: Symbols -2.7.4 typedef asymbol ---------------------- +typedef asymbol +--------------- -An `asymbol' has the form: + An `asymbol' has the form: typedef struct bfd_symbol @@ -2018,114 +2019,114 @@ is necessary so that a back end can work out what additional information (invisible to the application writer) is carried with the symbol. - + This field is *almost* redundant, since you can use section->owner instead, except that some symbols point to the global sections bfd_{abs,com,und}_section. This could be fixed by making these globals be per-bfd (or per-target-flavor). FIXME. */ struct bfd *the_bfd; /* Use bfd_asymbol_bfd(sym) to access this field. */ - + /* The text of the symbol. The name is left alone, and not copied; the application may not alter it. */ const char *name; - + /* The value of the symbol. This really should be a union of a numeric value with a pointer, since some flags indicate that a pointer to another symbol is stored here. */ symvalue value; - + /* Attributes of a symbol. */ #define BSF_NO_FLAGS 0x00 - + /* The symbol has local scope; `static' in `C'. The value is the offset into the section of the data. */ #define BSF_LOCAL 0x01 - + /* The symbol has global scope; initialized data in `C'. The value is the offset into the section of the data. */ #define BSF_GLOBAL 0x02 - + /* The symbol has global scope and is exported. The value is the offset into the section of the data. */ #define BSF_EXPORT BSF_GLOBAL /* No real difference. */ - + /* A normal C symbol would be one of: `BSF_LOCAL', `BSF_FORT_COMM', `BSF_UNDEFINED' or `BSF_GLOBAL'. */ - + /* The symbol is a debugging record. The value has an arbitrary meaning, unless BSF_DEBUGGING_RELOC is also set. */ #define BSF_DEBUGGING 0x08 - + /* The symbol denotes a function entry point. Used in ELF, perhaps others someday. */ #define BSF_FUNCTION 0x10 - + /* Used by the linker. */ #define BSF_KEEP 0x20 #define BSF_KEEP_G 0x40 - + /* A weak global symbol, overridable without warnings by a regular global symbol of the same name. */ #define BSF_WEAK 0x80 - + /* This symbol was created to point to a section, e.g. ELF's STT_SECTION symbols. */ #define BSF_SECTION_SYM 0x100 - + /* The symbol used to be a common symbol, but now it is allocated. */ #define BSF_OLD_COMMON 0x200 - + /* The default value for common data. */ #define BFD_FORT_COMM_DEFAULT_VALUE 0 - + /* In some files the type of a symbol sometimes alters its location in an output file - ie in coff a `ISFCN' symbol which is also `C_EXT' symbol appears where it was declared and not at the end of a section. This bit is set by the target BFD part to convey this information. */ #define BSF_NOT_AT_END 0x400 - + /* Signal that the symbol is the label of constructor section. */ #define BSF_CONSTRUCTOR 0x800 - + /* Signal that the symbol is a warning symbol. The name is a warning. The name of the next symbol is the one to warn about; if a reference is made to a symbol with the same name as the next symbol, a warning is issued by the linker. */ #define BSF_WARNING 0x1000 - + /* Signal that the symbol is indirect. This symbol is an indirect pointer to the symbol with the same name as the next symbol. */ #define BSF_INDIRECT 0x2000 - + /* BSF_FILE marks symbols that contain a file name. This is used for ELF STT_FILE symbols. */ #define BSF_FILE 0x4000 - + /* Symbol is from dynamic linking information. */ #define BSF_DYNAMIC 0x8000 - + /* The symbol denotes a data object. Used in ELF, and perhaps others someday. */ #define BSF_OBJECT 0x10000 - + /* This symbol is a debugging symbol. The value is the offset into the section of the data. BSF_DEBUGGING should be set as well. */ #define BSF_DEBUGGING_RELOC 0x20000 - + /* This symbol is thread local. Used in ELF. */ #define BSF_THREAD_LOCAL 0x40000 - + flagword flags; - + /* A pointer to the section to which this symbol is relative. This will always be non NULL, there are special sections for undefined and absolute symbols. */ struct bfd_section *section; - + /* Back end special data. */ union { @@ -2139,13 +2140,13 @@  File: bfd.info, Node: symbol handling functions, Prev: typedef asymbol, Up: Symbols -2.7.5 Symbol handling functions -------------------------------- +Symbol handling functions +------------------------- -2.7.5.1 `bfd_get_symtab_upper_bound' -.................................... +`bfd_get_symtab_upper_bound' +............................ -*Description* + *Description* Return the number of bytes required to store a vector of pointers to `asymbols' for all the symbols in the BFD ABFD, including a terminal NULL pointer. If there are no symbols in the BFD, then return 0. If an @@ -2153,19 +2154,19 @@ #define bfd_get_symtab_upper_bound(abfd) \ BFD_SEND (abfd, _bfd_get_symtab_upper_bound, (abfd)) -2.7.5.2 `bfd_is_local_label' -............................ +`bfd_is_local_label' +.................... -*Synopsis* + *Synopsis* bfd_boolean bfd_is_local_label (bfd *abfd, asymbol *sym); *Description* Return TRUE if the given symbol SYM in the BFD ABFD is a compiler generated local label, else return FALSE. -2.7.5.3 `bfd_is_local_label_name' -................................. +`bfd_is_local_label_name' +......................... -*Synopsis* + *Synopsis* bfd_boolean bfd_is_local_label_name (bfd *abfd, const char *name); *Description* Return TRUE if a symbol with the name NAME in the BFD ABFD is a @@ -2174,10 +2175,10 @@ #define bfd_is_local_label_name(abfd, name) \ BFD_SEND (abfd, _bfd_is_local_label_name, (abfd, name)) -2.7.5.4 `bfd_is_target_special_symbol' -...................................... +`bfd_is_target_special_symbol' +.............................. -*Synopsis* + *Synopsis* bfd_boolean bfd_is_target_special_symbol (bfd *abfd, asymbol *sym); *Description* Return TRUE iff a symbol SYM in the BFD ABFD is something special to @@ -2186,38 +2187,38 @@ #define bfd_is_target_special_symbol(abfd, sym) \ BFD_SEND (abfd, _bfd_is_target_special_symbol, (abfd, sym)) -2.7.5.5 `bfd_canonicalize_symtab' -................................. +`bfd_canonicalize_symtab' +......................... -*Description* + *Description* Read the symbols from the BFD ABFD, and fills in the vector LOCATION with pointers to the symbols and a trailing NULL. Return the actual number of symbol pointers, not including the NULL. #define bfd_canonicalize_symtab(abfd, location) \ BFD_SEND (abfd, _bfd_canonicalize_symtab, (abfd, location)) -2.7.5.6 `bfd_set_symtab' -........................ +`bfd_set_symtab' +................ -*Synopsis* + *Synopsis* bfd_boolean bfd_set_symtab (bfd *abfd, asymbol **location, unsigned int count); *Description* Arrange that when the output BFD ABFD is closed, the table LOCATION of COUNT pointers to symbols will be written. -2.7.5.7 `bfd_print_symbol_vandf' -................................ +`bfd_print_symbol_vandf' +........................ -*Synopsis* + *Synopsis* void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol); *Description* Print the value and flags of the SYMBOL supplied to the stream FILE. -2.7.5.8 `bfd_make_empty_symbol' -............................... +`bfd_make_empty_symbol' +....................... -*Description* + *Description* Create a new `asymbol' structure for the BFD ABFD and return a pointer to it. @@ -2228,59 +2229,59 @@ #define bfd_make_empty_symbol(abfd) \ BFD_SEND (abfd, _bfd_make_empty_symbol, (abfd)) -2.7.5.9 `_bfd_generic_make_empty_symbol' -........................................ +`_bfd_generic_make_empty_symbol' +................................ -*Synopsis* + *Synopsis* asymbol *_bfd_generic_make_empty_symbol (bfd *); *Description* Create a new `asymbol' structure for the BFD ABFD and return a pointer to it. Used by core file routines, binary back-end and anywhere else where no private info is needed. -2.7.5.10 `bfd_make_debug_symbol' -................................ +`bfd_make_debug_symbol' +....................... -*Description* + *Description* Create a new `asymbol' structure for the BFD ABFD, to be used as a debugging symbol. Further details of its use have yet to be worked out. #define bfd_make_debug_symbol(abfd,ptr,size) \ BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size)) -2.7.5.11 `bfd_decode_symclass' -.............................. +`bfd_decode_symclass' +..................... -*Description* + *Description* Return a character corresponding to the symbol class of SYMBOL, or '?' for an unknown class. *Synopsis* int bfd_decode_symclass (asymbol *symbol); - -2.7.5.12 `bfd_is_undefined_symclass' -.................................... -*Description* +`bfd_is_undefined_symclass' +........................... + + *Description* Returns non-zero if the class symbol returned by bfd_decode_symclass represents an undefined symbol. Returns zero otherwise. *Synopsis* bfd_boolean bfd_is_undefined_symclass (int symclass); - -2.7.5.13 `bfd_symbol_info' -.......................... -*Description* +`bfd_symbol_info' +................. + + *Description* Fill in the basic info about symbol that nm needs. Additional info may be added by the back-ends after calling this function. *Synopsis* void bfd_symbol_info (asymbol *symbol, symbol_info *ret); - -2.7.5.14 `bfd_copy_private_symbol_data' -....................................... -*Synopsis* +`bfd_copy_private_symbol_data' +.............................. + + *Synopsis* bfd_boolean bfd_copy_private_symbol_data (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym); *Description* @@ -2298,10 +2299,10 @@  File: bfd.info, Node: Archives, Next: Formats, Prev: Symbols, Up: BFD front end -2.8 Archives -============ +Archives +======== -*Description* + *Description* An archive (or library) is just another BFD. It has a symbol table, although there's not much a user program will do with it. @@ -2344,10 +2345,10 @@ Archives are supported in BFD in `archive.c'. -2.8.0.1 `bfd_get_next_mapent' -............................. +`bfd_get_next_mapent' +..................... -*Synopsis* + *Synopsis* symindex bfd_get_next_mapent (bfd *abfd, symindex previous, carsym **sym); *Description* @@ -2361,19 +2362,19 @@ A `carsym' is a canonical archive symbol. The only user-visible element is its name, a null-terminated string. -2.8.0.2 `bfd_set_archive_head' -.............................. +`bfd_set_archive_head' +...................... -*Synopsis* + *Synopsis* bfd_boolean bfd_set_archive_head (bfd *output, bfd *new_head); *Description* Set the head of the chain of BFDs contained in the archive OUTPUT to NEW_HEAD. -2.8.0.3 `bfd_openr_next_archived_file' -...................................... +`bfd_openr_next_archived_file' +.............................. -*Synopsis* + *Synopsis* bfd *bfd_openr_next_archived_file (bfd *archive, bfd *previous); *Description* Provided a BFD, ARCHIVE, containing an archive and NULL, open an input @@ -2385,11 +2386,11 @@  File: bfd.info, Node: Formats, Next: Relocations, Prev: Archives, Up: BFD front end -2.9 File formats -================ +File formats +============ -A format is a BFD concept of high level file contents type. The formats -supported by BFD are: + A format is a BFD concept of high level file contents type. The +formats supported by BFD are: * `bfd_object' The BFD may contain data, symbols, relocations and debug info. @@ -2400,10 +2401,10 @@ * `bfd_core' The BFD contains the result of an executable core dump. -2.9.0.1 `bfd_check_format' -.......................... +`bfd_check_format' +.................. -*Synopsis* + *Synopsis* bfd_boolean bfd_check_format (bfd *abfd, bfd_format format); *Description* Verify if the file attached to the BFD ABFD is compatible with the @@ -2431,10 +2432,10 @@ * `bfd_error_file_ambiguously_recognized' - more than one backend recognised the file format. -2.9.0.2 `bfd_check_format_matches' -.................................. +`bfd_check_format_matches' +.......................... -*Synopsis* + *Synopsis* bfd_boolean bfd_check_format_matches (bfd *abfd, bfd_format format, char ***matching); *Description* @@ -2447,10 +2448,10 @@ When done with the list that MATCHING points to, the caller should free it. -2.9.0.3 `bfd_set_format' -........................ +`bfd_set_format' +................ -*Synopsis* + *Synopsis* bfd_boolean bfd_set_format (bfd *abfd, bfd_format format); *Description* This function sets the file format of the BFD ABFD to the format @@ -2458,10 +2459,10 @@ requested, the format is invalid, or the BFD is not open for writing, then an error occurs. -2.9.0.4 `bfd_format_string' -........................... +`bfd_format_string' +................... -*Synopsis* + *Synopsis* const char *bfd_format_string (bfd_format format); *Description* Return a pointer to a const string `invalid', `object', `archive', @@ -2470,10 +2471,10 @@  File: bfd.info, Node: Relocations, Next: Core Files, Prev: Formats, Up: BFD front end -2.10 Relocations -================ +Relocations +=========== -BFD maintains relocations in much the same way it maintains symbols: + BFD maintains relocations in much the same way it maintains symbols: they are left alone until required, then read in en-masse and translated into an internal form. A common routine `bfd_perform_relocation' acts upon the canonical form to do the fixup. @@ -2493,35 +2494,35 @@  File: bfd.info, Node: typedef arelent, Next: howto manager, Prev: Relocations, Up: Relocations -2.10.1 typedef arelent ----------------------- +typedef arelent +--------------- -This is the structure of a relocation entry: + This is the structure of a relocation entry: typedef enum bfd_reloc_status { /* No errors detected. */ bfd_reloc_ok, - + /* The relocation was performed, but there was an overflow. */ bfd_reloc_overflow, - + /* The address to relocate was not within the section supplied. */ bfd_reloc_outofrange, - + /* Used by special functions. */ bfd_reloc_continue, - + /* Unsupported relocation size requested. */ bfd_reloc_notsupported, - + /* Unused. */ bfd_reloc_other, - + /* The symbol to relocate against was undefined. */ bfd_reloc_undefined, - + /* The relocation was performed, but may not be ok - presently generated only when linking i960 coff files with i960 b.out symbols. If this type is returned, the error_message argument @@ -2529,22 +2530,22 @@ bfd_reloc_dangerous } bfd_reloc_status_type; - - + + typedef struct reloc_cache_entry { /* A pointer into the canonical table of pointers. */ struct bfd_symbol **sym_ptr_ptr; - + /* offset in section. */ bfd_size_type address; - + /* addend for relocation value. */ bfd_vma addend; - + /* Pointer to how to perform the required relocation. */ reloc_howto_type *howto; - + } arelent; *Description* @@ -2594,7 +2595,7 @@ RELOCATION RECORDS FOR [.text]: offset type value 00000006 32 _foo - + 00000000 4e56 fffc ; linkw fp,#-4 00000004 1039 1234 5678 ; moveb @#12345678,d0 0000000a 49c0 ; extbl d0 @@ -2616,7 +2617,7 @@ offset type value 00000002 HVRT16 _foo+0x12340000 00000006 LVRT16 _foo+0x12340000 - + 00000000 5da05678 ; or.u r13,r0,0x5678 00000004 1c4d5678 ; ld.b r2,r13,0x5678 00000008 f400c001 ; jmp r1 @@ -2645,7 +2646,7 @@ offset type value 00000004 HI22 _foo+0x12345678 00000008 LO10 _foo+0x12345678 - + 00000000 9de3bf90 ; save %sp,-112,%sp 00000004 05000000 ; sethi %hi(_foo+0),%g2 00000008 f048a000 ; ldsb [%g2+%lo(_foo+0)],%i0 @@ -2660,39 +2661,39 @@ relocations into pointers to the correct structure on input - but it would be possible to create each howto field on demand. -2.10.1.1 `enum complain_overflow' -................................. +`enum complain_overflow' +........................ -Indicates what sort of overflow checking should be done when performing -a relocation. + Indicates what sort of overflow checking should be done when +performing a relocation. enum complain_overflow { /* Do not complain on overflow. */ complain_overflow_dont, - + /* Complain if the bitfield overflows, whether it is considered as signed or unsigned. */ complain_overflow_bitfield, - + /* Complain if the value overflows when considered as signed number. */ complain_overflow_signed, - + /* Complain if the value overflows when considered as an unsigned number. */ complain_overflow_unsigned }; -2.10.1.2 `reloc_howto_type' -........................... +`reloc_howto_type' +.................. -The `reloc_howto_type' is a structure which contains all the + The `reloc_howto_type' is a structure which contains all the information that libbfd needs to know to tie up a back end's data. struct bfd_symbol; /* Forward declaration. */ - + struct reloc_howto_struct { /* The type field has mainly a documentary use - the back end can @@ -2702,34 +2703,34 @@ in a coff environment has the type 023 - because that's what the outside world calls a R_PCRWORD reloc. */ unsigned int type; - + /* The value the final relocation is shifted right by. This drops unwanted data from the relocation. */ unsigned int rightshift; - + /* The size of the item to be relocated. This is *not* a power-of-two measure. To get the number of bytes operated on by a type of relocation, use bfd_get_reloc_size. */ int size; - + /* The number of bits in the item to be relocated. This is used when doing overflow checking. */ unsigned int bitsize; - + /* Notes that the relocation is relative to the location in the data section of the addend. The relocation function will subtract from the relocation value the address of the location being relocated. */ bfd_boolean pc_relative; - + /* The bit position of the reloc value in the destination. The relocated value is left shifted by this amount. */ unsigned int bitpos; - + /* What type of overflow error should be checked for when relocating. */ enum complain_overflow complain_on_overflow; - + /* If this field is non null, then the supplied function is called rather than the normal function. This allows really strange relocation methods to be accommodated (e.g., i960 callj @@ -2737,10 +2738,10 @@ bfd_reloc_status_type (*special_function) (bfd *, arelent *, struct bfd_symbol *, void *, asection *, bfd *, char **); - + /* The textual name of the relocation type. */ char *name; - + /* Some formats record a relocation addend in the section contents rather than with the relocation. For ELF formats this is the distinction between USE_REL and USE_RELA (though the code checks @@ -2757,7 +2758,7 @@ to each particular target. For relocs that aren't used in partial links (e.g. GOT stuff) it doesn't matter what this is set to. */ bfd_boolean partial_inplace; - + /* src_mask selects the part of the instruction (or data) to be used in the relocation sum. If the target relocations don't have an addend in the reloc, eg. ELF USE_REL, src_mask will normally equal @@ -2767,11 +2768,11 @@ bogus as in those cases the value in the dst_mask part of the section contents should be treated as garbage. */ bfd_vma src_mask; - + /* dst_mask selects which parts of the instruction (or data) are replaced with a relocated value. */ bfd_vma dst_mask; - + /* When some formats create PC relative instructions, they leave the value of the pc of the place being relocated in the offset slot of the instruction, so that a PC relative relocation can @@ -2780,11 +2781,11 @@ empty (e.g., m88k bcs); this flag signals the fact. */ bfd_boolean pcrel_offset; }; - -2.10.1.3 `The HOWTO Macro' -.......................... -*Description* +`The HOWTO Macro' +................. + + *Description* The HOWTO define is horrible and will go away. #define HOWTO(C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC) \ { (unsigned) C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC } @@ -2819,19 +2820,19 @@ } \ } -2.10.1.4 `bfd_get_reloc_size' -............................. +`bfd_get_reloc_size' +.................... -*Synopsis* + *Synopsis* unsigned int bfd_get_reloc_size (reloc_howto_type *); *Description* For a reloc_howto_type that operates on a fixed number of bytes, this returns the number of bytes operated on. -2.10.1.5 `arelent_chain' -........................ +`arelent_chain' +............... -*Description* + *Description* How relocs are tied together in an `asection': typedef struct relent_chain { @@ -2840,10 +2841,10 @@ } arelent_chain; -2.10.1.6 `bfd_check_overflow' -............................. +`bfd_check_overflow' +.................... -*Synopsis* + *Synopsis* bfd_reloc_status_type bfd_check_overflow (enum complain_overflow how, unsigned int bitsize, @@ -2856,10 +2857,10 @@ addresses containing ADDRSIZE significant bits. The result is either of `bfd_reloc_ok' or `bfd_reloc_overflow'. -2.10.1.7 `bfd_perform_relocation' -................................. +`bfd_perform_relocation' +........................ -*Synopsis* + *Synopsis* bfd_reloc_status_type bfd_perform_relocation (bfd *abfd, arelent *reloc_entry, @@ -2881,10 +2882,10 @@ ERROR_MESSAGE argument is set to an error message if this return `bfd_reloc_dangerous'. -2.10.1.8 `bfd_install_relocation' -................................. +`bfd_install_relocation' +........................ -*Synopsis* + *Synopsis* bfd_reloc_status_type bfd_install_relocation (bfd *abfd, arelent *reloc_entry, @@ -2902,17 +2903,17 @@  File: bfd.info, Node: howto manager, Prev: typedef arelent, Up: Relocations -2.11 The howto manager -====================== +The howto manager +================= -When an application wants to create a relocation, but doesn't know what -the target machine might call it, it can find out by using this bit of -code. + When an application wants to create a relocation, but doesn't know +what the target machine might call it, it can find out by using this +bit of code. -2.11.0.1 `bfd_reloc_code_type' -.............................. +`bfd_reloc_code_type' +..................... -*Description* + *Description* The insides of a reloc code. The idea is that, eventually, there will be one enumerator for every type of relocation we ever do. Pass one of these values to `bfd_reloc_type_lookup', and it'll return a howto @@ -2924,21 +2925,21 @@ Here are the possible values for `enum bfd_reloc_code_real': - -- : BFD_RELOC_64 - -- : BFD_RELOC_32 - -- : BFD_RELOC_26 - -- : BFD_RELOC_24 - -- : BFD_RELOC_16 - -- : BFD_RELOC_14 - -- : BFD_RELOC_8 + - : BFD_RELOC_64 + - : BFD_RELOC_32 + - : BFD_RELOC_26 + - : BFD_RELOC_24 + - : BFD_RELOC_16 + - : BFD_RELOC_14 + - : BFD_RELOC_8 Basic absolute relocations of N bits. - -- : BFD_RELOC_64_PCREL - -- : BFD_RELOC_32_PCREL - -- : BFD_RELOC_24_PCREL - -- : BFD_RELOC_16_PCREL - -- : BFD_RELOC_12_PCREL - -- : BFD_RELOC_8_PCREL + - : BFD_RELOC_64_PCREL + - : BFD_RELOC_32_PCREL + - : BFD_RELOC_24_PCREL + - : BFD_RELOC_16_PCREL + - : BFD_RELOC_12_PCREL + - : BFD_RELOC_8_PCREL PC-relative relocations. Sometimes these are relative to the address of the relocation itself; sometimes they are relative to the start of the section containing the relocation. It depends on @@ -2946,52 +2947,52 @@ The 24-bit relocation is used in some Intel 960 configurations. - -- : BFD_RELOC_32_SECREL + - : BFD_RELOC_32_SECREL Section relative relocations. Some targets need this for DWARF2. - -- : BFD_RELOC_32_GOT_PCREL - -- : BFD_RELOC_16_GOT_PCREL - -- : BFD_RELOC_8_GOT_PCREL - -- : BFD_RELOC_32_GOTOFF - -- : BFD_RELOC_16_GOTOFF - -- : BFD_RELOC_LO16_GOTOFF - -- : BFD_RELOC_HI16_GOTOFF - -- : BFD_RELOC_HI16_S_GOTOFF - -- : BFD_RELOC_8_GOTOFF - -- : BFD_RELOC_64_PLT_PCREL - -- : BFD_RELOC_32_PLT_PCREL - -- : BFD_RELOC_24_PLT_PCREL - -- : BFD_RELOC_16_PLT_PCREL - -- : BFD_RELOC_8_PLT_PCREL - -- : BFD_RELOC_64_PLTOFF - -- : BFD_RELOC_32_PLTOFF - -- : BFD_RELOC_16_PLTOFF - -- : BFD_RELOC_LO16_PLTOFF - -- : BFD_RELOC_HI16_PLTOFF - -- : BFD_RELOC_HI16_S_PLTOFF - -- : BFD_RELOC_8_PLTOFF + - : BFD_RELOC_32_GOT_PCREL + - : BFD_RELOC_16_GOT_PCREL + - : BFD_RELOC_8_GOT_PCREL + - : BFD_RELOC_32_GOTOFF + - : BFD_RELOC_16_GOTOFF + - : BFD_RELOC_LO16_GOTOFF + - : BFD_RELOC_HI16_GOTOFF + - : BFD_RELOC_HI16_S_GOTOFF + - : BFD_RELOC_8_GOTOFF + - : BFD_RELOC_64_PLT_PCREL + - : BFD_RELOC_32_PLT_PCREL + - : BFD_RELOC_24_PLT_PCREL + - : BFD_RELOC_16_PLT_PCREL + - : BFD_RELOC_8_PLT_PCREL + - : BFD_RELOC_64_PLTOFF + - : BFD_RELOC_32_PLTOFF + - : BFD_RELOC_16_PLTOFF + - : BFD_RELOC_LO16_PLTOFF + - : BFD_RELOC_HI16_PLTOFF + - : BFD_RELOC_HI16_S_PLTOFF + - : BFD_RELOC_8_PLTOFF For ELF. - -- : BFD_RELOC_68K_GLOB_DAT - -- : BFD_RELOC_68K_JMP_SLOT - -- : BFD_RELOC_68K_RELATIVE + - : BFD_RELOC_68K_GLOB_DAT + - : BFD_RELOC_68K_JMP_SLOT + - : BFD_RELOC_68K_RELATIVE Relocations used by 68K ELF. - -- : BFD_RELOC_32_BASEREL - -- : BFD_RELOC_16_BASEREL - -- : BFD_RELOC_LO16_BASEREL - -- : BFD_RELOC_HI16_BASEREL - -- : BFD_RELOC_HI16_S_BASEREL - -- : BFD_RELOC_8_BASEREL - -- : BFD_RELOC_RVA + - : BFD_RELOC_32_BASEREL + - : BFD_RELOC_16_BASEREL + - : BFD_RELOC_LO16_BASEREL + - : BFD_RELOC_HI16_BASEREL + - : BFD_RELOC_HI16_S_BASEREL + - : BFD_RELOC_8_BASEREL + - : BFD_RELOC_RVA Linkage-table relative. - -- : BFD_RELOC_8_FFnn + - : BFD_RELOC_8_FFnn Absolute 8-bit relocation, but used to form an address like 0xFFnn. - -- : BFD_RELOC_32_PCREL_S2 - -- : BFD_RELOC_16_PCREL_S2 - -- : BFD_RELOC_23_PCREL_S2 + - : BFD_RELOC_32_PCREL_S2 + - : BFD_RELOC_16_PCREL_S2 + - : BFD_RELOC_23_PCREL_S2 These PC-relative relocations are stored as word displacements - i.e., byte displacements shifted right two bits. The 30-bit word displacement (<<32_PCREL_S2>> - 32 bits, shifted 2) is used on the @@ -2999,101 +3000,101 @@ signed 16-bit displacement is used on the MIPS, and the 23-bit displacement is used on the Alpha. - -- : BFD_RELOC_HI22 - -- : BFD_RELOC_LO10 + - : BFD_RELOC_HI22 + - : BFD_RELOC_LO10 High 22 bits and low 10 bits of 32-bit value, placed into lower bits of the target word. These are used on the SPARC. - -- : BFD_RELOC_GPREL16 - -- : BFD_RELOC_GPREL32 + - : BFD_RELOC_GPREL16 + - : BFD_RELOC_GPREL32 For systems that allocate a Global Pointer register, these are displacements off that register. These relocation types are handled specially, because the value the register will have is decided relatively late. - -- : BFD_RELOC_I960_CALLJ + - : BFD_RELOC_I960_CALLJ Reloc types used for i960/b.out. - -- : BFD_RELOC_NONE - -- : BFD_RELOC_SPARC_WDISP22 - -- : BFD_RELOC_SPARC22 - -- : BFD_RELOC_SPARC13 - -- : BFD_RELOC_SPARC_GOT10 - -- : BFD_RELOC_SPARC_GOT13 - -- : BFD_RELOC_SPARC_GOT22 - -- : BFD_RELOC_SPARC_PC10 - -- : BFD_RELOC_SPARC_PC22 - -- : BFD_RELOC_SPARC_WPLT30 - -- : BFD_RELOC_SPARC_COPY - -- : BFD_RELOC_SPARC_GLOB_DAT - -- : BFD_RELOC_SPARC_JMP_SLOT - -- : BFD_RELOC_SPARC_RELATIVE - -- : BFD_RELOC_SPARC_UA16 - -- : BFD_RELOC_SPARC_UA32 - -- : BFD_RELOC_SPARC_UA64 + - : BFD_RELOC_NONE + - : BFD_RELOC_SPARC_WDISP22 + - : BFD_RELOC_SPARC22 + - : BFD_RELOC_SPARC13 + - : BFD_RELOC_SPARC_GOT10 + - : BFD_RELOC_SPARC_GOT13 + - : BFD_RELOC_SPARC_GOT22 + - : BFD_RELOC_SPARC_PC10 + - : BFD_RELOC_SPARC_PC22 + - : BFD_RELOC_SPARC_WPLT30 + - : BFD_RELOC_SPARC_COPY + - : BFD_RELOC_SPARC_GLOB_DAT + - : BFD_RELOC_SPARC_JMP_SLOT + - : BFD_RELOC_SPARC_RELATIVE + - : BFD_RELOC_SPARC_UA16 + - : BFD_RELOC_SPARC_UA32 + - : BFD_RELOC_SPARC_UA64 SPARC ELF relocations. There is probably some overlap with other relocation types already defined. - -- : BFD_RELOC_SPARC_BASE13 - -- : BFD_RELOC_SPARC_BASE22 + - : BFD_RELOC_SPARC_BASE13 + - : BFD_RELOC_SPARC_BASE22 I think these are specific to SPARC a.out (e.g., Sun 4). - -- : BFD_RELOC_SPARC_64 - -- : BFD_RELOC_SPARC_10 - -- : BFD_RELOC_SPARC_11 - -- : BFD_RELOC_SPARC_OLO10 - -- : BFD_RELOC_SPARC_HH22 - -- : BFD_RELOC_SPARC_HM10 - -- : BFD_RELOC_SPARC_LM22 - -- : BFD_RELOC_SPARC_PC_HH22 - -- : BFD_RELOC_SPARC_PC_HM10 - -- : BFD_RELOC_SPARC_PC_LM22 - -- : BFD_RELOC_SPARC_WDISP16 - -- : BFD_RELOC_SPARC_WDISP19 - -- : BFD_RELOC_SPARC_7 - -- : BFD_RELOC_SPARC_6 - -- : BFD_RELOC_SPARC_5 - -- : BFD_RELOC_SPARC_DISP64 - -- : BFD_RELOC_SPARC_PLT32 - -- : BFD_RELOC_SPARC_PLT64 - -- : BFD_RELOC_SPARC_HIX22 - -- : BFD_RELOC_SPARC_LOX10 - -- : BFD_RELOC_SPARC_H44 - -- : BFD_RELOC_SPARC_M44 - -- : BFD_RELOC_SPARC_L44 - -- : BFD_RELOC_SPARC_REGISTER + - : BFD_RELOC_SPARC_64 + - : BFD_RELOC_SPARC_10 + - : BFD_RELOC_SPARC_11 + - : BFD_RELOC_SPARC_OLO10 + - : BFD_RELOC_SPARC_HH22 + - : BFD_RELOC_SPARC_HM10 + - : BFD_RELOC_SPARC_LM22 + - : BFD_RELOC_SPARC_PC_HH22 + - : BFD_RELOC_SPARC_PC_HM10 + - : BFD_RELOC_SPARC_PC_LM22 + - : BFD_RELOC_SPARC_WDISP16 + - : BFD_RELOC_SPARC_WDISP19 + - : BFD_RELOC_SPARC_7 + - : BFD_RELOC_SPARC_6 + - : BFD_RELOC_SPARC_5 + - : BFD_RELOC_SPARC_DISP64 + - : BFD_RELOC_SPARC_PLT32 + - : BFD_RELOC_SPARC_PLT64 + - : BFD_RELOC_SPARC_HIX22 + - : BFD_RELOC_SPARC_LOX10 + - : BFD_RELOC_SPARC_H44 + - : BFD_RELOC_SPARC_M44 + - : BFD_RELOC_SPARC_L44 + - : BFD_RELOC_SPARC_REGISTER SPARC64 relocations - -- : BFD_RELOC_SPARC_REV32 + - : BFD_RELOC_SPARC_REV32 SPARC little endian relocation - -- : BFD_RELOC_SPARC_TLS_GD_HI22 - -- : BFD_RELOC_SPARC_TLS_GD_LO10 - -- : BFD_RELOC_SPARC_TLS_GD_ADD - -- : BFD_RELOC_SPARC_TLS_GD_CALL - -- : BFD_RELOC_SPARC_TLS_LDM_HI22 - -- : BFD_RELOC_SPARC_TLS_LDM_LO10 - -- : BFD_RELOC_SPARC_TLS_LDM_ADD - -- : BFD_RELOC_SPARC_TLS_LDM_CALL - -- : BFD_RELOC_SPARC_TLS_LDO_HIX22 - -- : BFD_RELOC_SPARC_TLS_LDO_LOX10 - -- : BFD_RELOC_SPARC_TLS_LDO_ADD - -- : BFD_RELOC_SPARC_TLS_IE_HI22 - -- : BFD_RELOC_SPARC_TLS_IE_LO10 - -- : BFD_RELOC_SPARC_TLS_IE_LD - -- : BFD_RELOC_SPARC_TLS_IE_LDX - -- : BFD_RELOC_SPARC_TLS_IE_ADD - -- : BFD_RELOC_SPARC_TLS_LE_HIX22 - -- : BFD_RELOC_SPARC_TLS_LE_LOX10 - -- : BFD_RELOC_SPARC_TLS_DTPMOD32 - -- : BFD_RELOC_SPARC_TLS_DTPMOD64 - -- : BFD_RELOC_SPARC_TLS_DTPOFF32 - -- : BFD_RELOC_SPARC_TLS_DTPOFF64 - -- : BFD_RELOC_SPARC_TLS_TPOFF32 - -- : BFD_RELOC_SPARC_TLS_TPOFF64 + - : BFD_RELOC_SPARC_TLS_GD_HI22 + - : BFD_RELOC_SPARC_TLS_GD_LO10 + - : BFD_RELOC_SPARC_TLS_GD_ADD + - : BFD_RELOC_SPARC_TLS_GD_CALL + - : BFD_RELOC_SPARC_TLS_LDM_HI22 + - : BFD_RELOC_SPARC_TLS_LDM_LO10 + - : BFD_RELOC_SPARC_TLS_LDM_ADD + - : BFD_RELOC_SPARC_TLS_LDM_CALL + - : BFD_RELOC_SPARC_TLS_LDO_HIX22 + - : BFD_RELOC_SPARC_TLS_LDO_LOX10 + - : BFD_RELOC_SPARC_TLS_LDO_ADD + - : BFD_RELOC_SPARC_TLS_IE_HI22 + - : BFD_RELOC_SPARC_TLS_IE_LO10 + - : BFD_RELOC_SPARC_TLS_IE_LD + - : BFD_RELOC_SPARC_TLS_IE_LDX + - : BFD_RELOC_SPARC_TLS_IE_ADD + - : BFD_RELOC_SPARC_TLS_LE_HIX22 + - : BFD_RELOC_SPARC_TLS_LE_LOX10 + - : BFD_RELOC_SPARC_TLS_DTPMOD32 + - : BFD_RELOC_SPARC_TLS_DTPMOD64 + - : BFD_RELOC_SPARC_TLS_DTPOFF32 + - : BFD_RELOC_SPARC_TLS_DTPOFF64 + - : BFD_RELOC_SPARC_TLS_TPOFF32 + - : BFD_RELOC_SPARC_TLS_TPOFF64 SPARC TLS relocations - -- : BFD_RELOC_ALPHA_GPDISP_HI16 + - : BFD_RELOC_ALPHA_GPDISP_HI16 Alpha ECOFF and ELF relocations. Some of these treat the symbol or "addend" in some special way. For GPDISP_HI16 ("gpdisp") relocations, the symbol is ignored when writing; when reading, it @@ -3101,20 +3102,20 @@ displacement in bytes of the "lda" instruction from the "ldah" instruction (which is at the address of this reloc). - -- : BFD_RELOC_ALPHA_GPDISP_LO16 + - : BFD_RELOC_ALPHA_GPDISP_LO16 For GPDISP_LO16 ("ignore") relocations, the symbol is handled as with GPDISP_HI16 relocs. The addend is ignored when writing the relocations out, and is filled in with the file's GP value on reading, for convenience. - -- : BFD_RELOC_ALPHA_GPDISP + - : BFD_RELOC_ALPHA_GPDISP The ELF GPDISP relocation is exactly the same as the GPDISP_HI16 relocation except that there is no accompanying GPDISP_LO16 relocation. - -- : BFD_RELOC_ALPHA_LITERAL - -- : BFD_RELOC_ALPHA_ELF_LITERAL - -- : BFD_RELOC_ALPHA_LITUSE + - : BFD_RELOC_ALPHA_LITERAL + - : BFD_RELOC_ALPHA_ELF_LITERAL + - : BFD_RELOC_ALPHA_LITUSE The Alpha LITERAL/LITUSE relocs are produced by a symbol reference; the assembler turns it into a LDQ instruction to load the address of the symbol, and then fills in a register in the real @@ -3139,1062 +3140,1062 @@ fmt insn 2 - byte-manipulation (byte offset reg) 3 - jsr (target of branch) - -- : BFD_RELOC_ALPHA_HINT + - : BFD_RELOC_ALPHA_HINT The HINT relocation indicates a value that should be filled into the "hint" field of a jmp/jsr/ret instruction, for possible branch- prediction logic which may be provided on some processors. - -- : BFD_RELOC_ALPHA_LINKAGE + - : BFD_RELOC_ALPHA_LINKAGE The LINKAGE relocation outputs a linkage pair in the object file, which is filled by the linker. - -- : BFD_RELOC_ALPHA_CODEADDR + - : BFD_RELOC_ALPHA_CODEADDR The CODEADDR relocation outputs a STO_CA in the object file, which is filled by the linker. - -- : BFD_RELOC_ALPHA_GPREL_HI16 - -- : BFD_RELOC_ALPHA_GPREL_LO16 + - : BFD_RELOC_ALPHA_GPREL_HI16 + - : BFD_RELOC_ALPHA_GPREL_LO16 The GPREL_HI/LO relocations together form a 32-bit offset from the GP register. - -- : BFD_RELOC_ALPHA_BRSGP + - : BFD_RELOC_ALPHA_BRSGP Like BFD_RELOC_23_PCREL_S2, except that the source and target must share a common GP, and the target address is adjusted for STO_ALPHA_STD_GPLOAD. - -- : BFD_RELOC_ALPHA_TLSGD - -- : BFD_RELOC_ALPHA_TLSLDM - -- : BFD_RELOC_ALPHA_DTPMOD64 - -- : BFD_RELOC_ALPHA_GOTDTPREL16 - -- : BFD_RELOC_ALPHA_DTPREL64 - -- : BFD_RELOC_ALPHA_DTPREL_HI16 - -- : BFD_RELOC_ALPHA_DTPREL_LO16 - -- : BFD_RELOC_ALPHA_DTPREL16 - -- : BFD_RELOC_ALPHA_GOTTPREL16 - -- : BFD_RELOC_ALPHA_TPREL64 - -- : BFD_RELOC_ALPHA_TPREL_HI16 - -- : BFD_RELOC_ALPHA_TPREL_LO16 - -- : BFD_RELOC_ALPHA_TPREL16 + - : BFD_RELOC_ALPHA_TLSGD + - : BFD_RELOC_ALPHA_TLSLDM + - : BFD_RELOC_ALPHA_DTPMOD64 + - : BFD_RELOC_ALPHA_GOTDTPREL16 + - : BFD_RELOC_ALPHA_DTPREL64 + - : BFD_RELOC_ALPHA_DTPREL_HI16 + - : BFD_RELOC_ALPHA_DTPREL_LO16 + - : BFD_RELOC_ALPHA_DTPREL16 + - : BFD_RELOC_ALPHA_GOTTPREL16 + - : BFD_RELOC_ALPHA_TPREL64 + - : BFD_RELOC_ALPHA_TPREL_HI16 + - : BFD_RELOC_ALPHA_TPREL_LO16 + - : BFD_RELOC_ALPHA_TPREL16 Alpha thread-local storage relocations. - -- : BFD_RELOC_MIPS_JMP + - : BFD_RELOC_MIPS_JMP Bits 27..2 of the relocation address shifted right 2 bits; simple reloc otherwise. - -- : BFD_RELOC_MIPS16_JMP + - : BFD_RELOC_MIPS16_JMP The MIPS16 jump instruction. - -- : BFD_RELOC_MIPS16_GPREL + - : BFD_RELOC_MIPS16_GPREL MIPS16 GP relative reloc. - -- : BFD_RELOC_HI16 + - : BFD_RELOC_HI16 High 16 bits of 32-bit value; simple reloc. - -- : BFD_RELOC_HI16_S + - : BFD_RELOC_HI16_S High 16 bits of 32-bit value but the low 16 bits will be sign extended and added to form the final result. If the low 16 bits form a negative number, we need to add one to the high value to compensate for the borrow when the low bits are added. - -- : BFD_RELOC_LO16 + - : BFD_RELOC_LO16 Low 16 bits. - -- : BFD_RELOC_MIPS16_HI16 + - : BFD_RELOC_MIPS16_HI16 MIPS16 high 16 bits of 32-bit value. - -- : BFD_RELOC_MIPS16_HI16_S + - : BFD_RELOC_MIPS16_HI16_S MIPS16 high 16 bits of 32-bit value but the low 16 bits will be sign extended and added to form the final result. If the low 16 bits form a negative number, we need to add one to the high value to compensate for the borrow when the low bits are added. - -- : BFD_RELOC_MIPS16_LO16 + - : BFD_RELOC_MIPS16_LO16 MIPS16 low 16 bits. - -- : BFD_RELOC_MIPS_LITERAL + - : BFD_RELOC_MIPS_LITERAL Relocation against a MIPS literal section. - -- : BFD_RELOC_MIPS_GOT16 - -- : BFD_RELOC_MIPS_CALL16 - -- : BFD_RELOC_MIPS_GOT_HI16 - -- : BFD_RELOC_MIPS_GOT_LO16 - -- : BFD_RELOC_MIPS_CALL_HI16 - -- : BFD_RELOC_MIPS_CALL_LO16 - -- : BFD_RELOC_MIPS_SUB - -- : BFD_RELOC_MIPS_GOT_PAGE - -- : BFD_RELOC_MIPS_GOT_OFST - -- : BFD_RELOC_MIPS_GOT_DISP - -- : BFD_RELOC_MIPS_SHIFT5 - -- : BFD_RELOC_MIPS_SHIFT6 - -- : BFD_RELOC_MIPS_INSERT_A - -- : BFD_RELOC_MIPS_INSERT_B - -- : BFD_RELOC_MIPS_DELETE - -- : BFD_RELOC_MIPS_HIGHEST - -- : BFD_RELOC_MIPS_HIGHER - -- : BFD_RELOC_MIPS_SCN_DISP - -- : BFD_RELOC_MIPS_REL16 - -- : BFD_RELOC_MIPS_RELGOT - -- : BFD_RELOC_MIPS_JALR - -- : BFD_RELOC_MIPS_TLS_DTPMOD32 - -- : BFD_RELOC_MIPS_TLS_DTPREL32 - -- : BFD_RELOC_MIPS_TLS_DTPMOD64 - -- : BFD_RELOC_MIPS_TLS_DTPREL64 - -- : BFD_RELOC_MIPS_TLS_GD - -- : BFD_RELOC_MIPS_TLS_LDM - -- : BFD_RELOC_MIPS_TLS_DTPREL_HI16 - -- : BFD_RELOC_MIPS_TLS_DTPREL_LO16 - -- : BFD_RELOC_MIPS_TLS_GOTTPREL - -- : BFD_RELOC_MIPS_TLS_TPREL32 - -- : BFD_RELOC_MIPS_TLS_TPREL64 - -- : BFD_RELOC_MIPS_TLS_TPREL_HI16 - -- : BFD_RELOC_MIPS_TLS_TPREL_LO16 + - : BFD_RELOC_MIPS_GOT16 + - : BFD_RELOC_MIPS_CALL16 + - : BFD_RELOC_MIPS_GOT_HI16 + - : BFD_RELOC_MIPS_GOT_LO16 + - : BFD_RELOC_MIPS_CALL_HI16 + - : BFD_RELOC_MIPS_CALL_LO16 + - : BFD_RELOC_MIPS_SUB + - : BFD_RELOC_MIPS_GOT_PAGE + - : BFD_RELOC_MIPS_GOT_OFST + - : BFD_RELOC_MIPS_GOT_DISP + - : BFD_RELOC_MIPS_SHIFT5 + - : BFD_RELOC_MIPS_SHIFT6 + - : BFD_RELOC_MIPS_INSERT_A + - : BFD_RELOC_MIPS_INSERT_B + - : BFD_RELOC_MIPS_DELETE + - : BFD_RELOC_MIPS_HIGHEST + - : BFD_RELOC_MIPS_HIGHER + - : BFD_RELOC_MIPS_SCN_DISP + - : BFD_RELOC_MIPS_REL16 + - : BFD_RELOC_MIPS_RELGOT + - : BFD_RELOC_MIPS_JALR + - : BFD_RELOC_MIPS_TLS_DTPMOD32 + - : BFD_RELOC_MIPS_TLS_DTPREL32 + - : BFD_RELOC_MIPS_TLS_DTPMOD64 + - : BFD_RELOC_MIPS_TLS_DTPREL64 + - : BFD_RELOC_MIPS_TLS_GD + - : BFD_RELOC_MIPS_TLS_LDM + - : BFD_RELOC_MIPS_TLS_DTPREL_HI16 + - : BFD_RELOC_MIPS_TLS_DTPREL_LO16 + - : BFD_RELOC_MIPS_TLS_GOTTPREL + - : BFD_RELOC_MIPS_TLS_TPREL32 + - : BFD_RELOC_MIPS_TLS_TPREL64 + - : BFD_RELOC_MIPS_TLS_TPREL_HI16 + - : BFD_RELOC_MIPS_TLS_TPREL_LO16 MIPS ELF relocations. - -- : BFD_RELOC_FRV_LABEL16 - -- : BFD_RELOC_FRV_LABEL24 - -- : BFD_RELOC_FRV_LO16 - -- : BFD_RELOC_FRV_HI16 - -- : BFD_RELOC_FRV_GPREL12 - -- : BFD_RELOC_FRV_GPRELU12 - -- : BFD_RELOC_FRV_GPREL32 - -- : BFD_RELOC_FRV_GPRELHI - -- : BFD_RELOC_FRV_GPRELLO - -- : BFD_RELOC_FRV_GOT12 - -- : BFD_RELOC_FRV_GOTHI - -- : BFD_RELOC_FRV_GOTLO - -- : BFD_RELOC_FRV_FUNCDESC - -- : BFD_RELOC_FRV_FUNCDESC_GOT12 - -- : BFD_RELOC_FRV_FUNCDESC_GOTHI - -- : BFD_RELOC_FRV_FUNCDESC_GOTLO - -- : BFD_RELOC_FRV_FUNCDESC_VALUE - -- : BFD_RELOC_FRV_FUNCDESC_GOTOFF12 - -- : BFD_RELOC_FRV_FUNCDESC_GOTOFFHI - -- : BFD_RELOC_FRV_FUNCDESC_GOTOFFLO - -- : BFD_RELOC_FRV_GOTOFF12 - -- : BFD_RELOC_FRV_GOTOFFHI - -- : BFD_RELOC_FRV_GOTOFFLO - -- : BFD_RELOC_FRV_GETTLSOFF - -- : BFD_RELOC_FRV_TLSDESC_VALUE - -- : BFD_RELOC_FRV_GOTTLSDESC12 - -- : BFD_RELOC_FRV_GOTTLSDESCHI - -- : BFD_RELOC_FRV_GOTTLSDESCLO - -- : BFD_RELOC_FRV_TLSMOFF12 - -- : BFD_RELOC_FRV_TLSMOFFHI - -- : BFD_RELOC_FRV_TLSMOFFLO - -- : BFD_RELOC_FRV_GOTTLSOFF12 - -- : BFD_RELOC_FRV_GOTTLSOFFHI - -- : BFD_RELOC_FRV_GOTTLSOFFLO - -- : BFD_RELOC_FRV_TLSOFF - -- : BFD_RELOC_FRV_TLSDESC_RELAX - -- : BFD_RELOC_FRV_GETTLSOFF_RELAX - -- : BFD_RELOC_FRV_TLSOFF_RELAX - -- : BFD_RELOC_FRV_TLSMOFF + - : BFD_RELOC_FRV_LABEL16 + - : BFD_RELOC_FRV_LABEL24 + - : BFD_RELOC_FRV_LO16 + - : BFD_RELOC_FRV_HI16 + - : BFD_RELOC_FRV_GPREL12 + - : BFD_RELOC_FRV_GPRELU12 + - : BFD_RELOC_FRV_GPREL32 + - : BFD_RELOC_FRV_GPRELHI + - : BFD_RELOC_FRV_GPRELLO + - : BFD_RELOC_FRV_GOT12 + - : BFD_RELOC_FRV_GOTHI + - : BFD_RELOC_FRV_GOTLO + - : BFD_RELOC_FRV_FUNCDESC + - : BFD_RELOC_FRV_FUNCDESC_GOT12 + - : BFD_RELOC_FRV_FUNCDESC_GOTHI + - : BFD_RELOC_FRV_FUNCDESC_GOTLO + - : BFD_RELOC_FRV_FUNCDESC_VALUE + - : BFD_RELOC_FRV_FUNCDESC_GOTOFF12 + - : BFD_RELOC_FRV_FUNCDESC_GOTOFFHI + - : BFD_RELOC_FRV_FUNCDESC_GOTOFFLO + - : BFD_RELOC_FRV_GOTOFF12 + - : BFD_RELOC_FRV_GOTOFFHI + - : BFD_RELOC_FRV_GOTOFFLO + - : BFD_RELOC_FRV_GETTLSOFF + - : BFD_RELOC_FRV_TLSDESC_VALUE + - : BFD_RELOC_FRV_GOTTLSDESC12 + - : BFD_RELOC_FRV_GOTTLSDESCHI + - : BFD_RELOC_FRV_GOTTLSDESCLO + - : BFD_RELOC_FRV_TLSMOFF12 + - : BFD_RELOC_FRV_TLSMOFFHI + - : BFD_RELOC_FRV_TLSMOFFLO + - : BFD_RELOC_FRV_GOTTLSOFF12 + - : BFD_RELOC_FRV_GOTTLSOFFHI + - : BFD_RELOC_FRV_GOTTLSOFFLO + - : BFD_RELOC_FRV_TLSOFF + - : BFD_RELOC_FRV_TLSDESC_RELAX + - : BFD_RELOC_FRV_GETTLSOFF_RELAX + - : BFD_RELOC_FRV_TLSOFF_RELAX + - : BFD_RELOC_FRV_TLSMOFF Fujitsu Frv Relocations. - -- : BFD_RELOC_MN10300_GOTOFF24 + - : BFD_RELOC_MN10300_GOTOFF24 This is a 24bit GOT-relative reloc for the mn10300. - -- : BFD_RELOC_MN10300_GOT32 + - : BFD_RELOC_MN10300_GOT32 This is a 32bit GOT-relative reloc for the mn10300, offset by two bytes in the instruction. - -- : BFD_RELOC_MN10300_GOT24 + - : BFD_RELOC_MN10300_GOT24 This is a 24bit GOT-relative reloc for the mn10300, offset by two bytes in the instruction. - -- : BFD_RELOC_MN10300_GOT16 + - : BFD_RELOC_MN10300_GOT16 This is a 16bit GOT-relative reloc for the mn10300, offset by two bytes in the instruction. - -- : BFD_RELOC_MN10300_COPY + - : BFD_RELOC_MN10300_COPY Copy symbol at runtime. - -- : BFD_RELOC_MN10300_GLOB_DAT + - : BFD_RELOC_MN10300_GLOB_DAT Create GOT entry. - -- : BFD_RELOC_MN10300_JMP_SLOT + - : BFD_RELOC_MN10300_JMP_SLOT Create PLT entry. - -- : BFD_RELOC_MN10300_RELATIVE + - : BFD_RELOC_MN10300_RELATIVE Adjust by program base. - -- : BFD_RELOC_386_GOT32 - -- : BFD_RELOC_386_PLT32 - -- : BFD_RELOC_386_COPY - -- : BFD_RELOC_386_GLOB_DAT - -- : BFD_RELOC_386_JUMP_SLOT - -- : BFD_RELOC_386_RELATIVE - -- : BFD_RELOC_386_GOTOFF - -- : BFD_RELOC_386_GOTPC - -- : BFD_RELOC_386_TLS_TPOFF - -- : BFD_RELOC_386_TLS_IE - -- : BFD_RELOC_386_TLS_GOTIE - -- : BFD_RELOC_386_TLS_LE - -- : BFD_RELOC_386_TLS_GD - -- : BFD_RELOC_386_TLS_LDM - -- : BFD_RELOC_386_TLS_LDO_32 - -- : BFD_RELOC_386_TLS_IE_32 - -- : BFD_RELOC_386_TLS_LE_32 - -- : BFD_RELOC_386_TLS_DTPMOD32 - -- : BFD_RELOC_386_TLS_DTPOFF32 - -- : BFD_RELOC_386_TLS_TPOFF32 + - : BFD_RELOC_386_GOT32 + - : BFD_RELOC_386_PLT32 + - : BFD_RELOC_386_COPY + - : BFD_RELOC_386_GLOB_DAT + - : BFD_RELOC_386_JUMP_SLOT + - : BFD_RELOC_386_RELATIVE + - : BFD_RELOC_386_GOTOFF + - : BFD_RELOC_386_GOTPC + - : BFD_RELOC_386_TLS_TPOFF + - : BFD_RELOC_386_TLS_IE + - : BFD_RELOC_386_TLS_GOTIE + - : BFD_RELOC_386_TLS_LE + - : BFD_RELOC_386_TLS_GD + - : BFD_RELOC_386_TLS_LDM + - : BFD_RELOC_386_TLS_LDO_32 + - : BFD_RELOC_386_TLS_IE_32 + - : BFD_RELOC_386_TLS_LE_32 + - : BFD_RELOC_386_TLS_DTPMOD32 + - : BFD_RELOC_386_TLS_DTPOFF32 + - : BFD_RELOC_386_TLS_TPOFF32 i386/elf relocations - -- : BFD_RELOC_X86_64_GOT32 - -- : BFD_RELOC_X86_64_PLT32 - -- : BFD_RELOC_X86_64_COPY - -- : BFD_RELOC_X86_64_GLOB_DAT - -- : BFD_RELOC_X86_64_JUMP_SLOT - -- : BFD_RELOC_X86_64_RELATIVE - -- : BFD_RELOC_X86_64_GOTPCREL - -- : BFD_RELOC_X86_64_32S - -- : BFD_RELOC_X86_64_DTPMOD64 - -- : BFD_RELOC_X86_64_DTPOFF64 - -- : BFD_RELOC_X86_64_TPOFF64 - -- : BFD_RELOC_X86_64_TLSGD - -- : BFD_RELOC_X86_64_TLSLD - -- : BFD_RELOC_X86_64_DTPOFF32 - -- : BFD_RELOC_X86_64_GOTTPOFF - -- : BFD_RELOC_X86_64_TPOFF32 + - : BFD_RELOC_X86_64_GOT32 + - : BFD_RELOC_X86_64_PLT32 + - : BFD_RELOC_X86_64_COPY + - : BFD_RELOC_X86_64_GLOB_DAT + - : BFD_RELOC_X86_64_JUMP_SLOT + - : BFD_RELOC_X86_64_RELATIVE + - : BFD_RELOC_X86_64_GOTPCREL + - : BFD_RELOC_X86_64_32S + - : BFD_RELOC_X86_64_DTPMOD64 + - : BFD_RELOC_X86_64_DTPOFF64 + - : BFD_RELOC_X86_64_TPOFF64 + - : BFD_RELOC_X86_64_TLSGD + - : BFD_RELOC_X86_64_TLSLD + - : BFD_RELOC_X86_64_DTPOFF32 + - : BFD_RELOC_X86_64_GOTTPOFF + - : BFD_RELOC_X86_64_TPOFF32 x86-64/elf relocations - -- : BFD_RELOC_NS32K_IMM_8 - -- : BFD_RELOC_NS32K_IMM_16 - -- : BFD_RELOC_NS32K_IMM_32 - -- : BFD_RELOC_NS32K_IMM_8_PCREL - -- : BFD_RELOC_NS32K_IMM_16_PCREL - -- : BFD_RELOC_NS32K_IMM_32_PCREL - -- : BFD_RELOC_NS32K_DISP_8 - -- : BFD_RELOC_NS32K_DISP_16 - -- : BFD_RELOC_NS32K_DISP_32 - -- : BFD_RELOC_NS32K_DISP_8_PCREL - -- : BFD_RELOC_NS32K_DISP_16_PCREL - -- : BFD_RELOC_NS32K_DISP_32_PCREL + - : BFD_RELOC_NS32K_IMM_8 + - : BFD_RELOC_NS32K_IMM_16 + - : BFD_RELOC_NS32K_IMM_32 + - : BFD_RELOC_NS32K_IMM_8_PCREL + - : BFD_RELOC_NS32K_IMM_16_PCREL + - : BFD_RELOC_NS32K_IMM_32_PCREL + - : BFD_RELOC_NS32K_DISP_8 + - : BFD_RELOC_NS32K_DISP_16 + - : BFD_RELOC_NS32K_DISP_32 + - : BFD_RELOC_NS32K_DISP_8_PCREL + - : BFD_RELOC_NS32K_DISP_16_PCREL + - : BFD_RELOC_NS32K_DISP_32_PCREL ns32k relocations - -- : BFD_RELOC_PDP11_DISP_8_PCREL - -- : BFD_RELOC_PDP11_DISP_6_PCREL + - : BFD_RELOC_PDP11_DISP_8_PCREL + - : BFD_RELOC_PDP11_DISP_6_PCREL PDP11 relocations - -- : BFD_RELOC_PJ_CODE_HI16 - -- : BFD_RELOC_PJ_CODE_LO16 - -- : BFD_RELOC_PJ_CODE_DIR16 - -- : BFD_RELOC_PJ_CODE_DIR32 - -- : BFD_RELOC_PJ_CODE_REL16 - -- : BFD_RELOC_PJ_CODE_REL32 + - : BFD_RELOC_PJ_CODE_HI16 + - : BFD_RELOC_PJ_CODE_LO16 + - : BFD_RELOC_PJ_CODE_DIR16 + - : BFD_RELOC_PJ_CODE_DIR32 + - : BFD_RELOC_PJ_CODE_REL16 + - : BFD_RELOC_PJ_CODE_REL32 Picojava relocs. Not all of these appear in object files. - -- : BFD_RELOC_PPC_B26 - -- : BFD_RELOC_PPC_BA26 - -- : BFD_RELOC_PPC_TOC16 - -- : BFD_RELOC_PPC_B16 - -- : BFD_RELOC_PPC_B16_BRTAKEN - -- : BFD_RELOC_PPC_B16_BRNTAKEN - -- : BFD_RELOC_PPC_BA16 - -- : BFD_RELOC_PPC_BA16_BRTAKEN - -- : BFD_RELOC_PPC_BA16_BRNTAKEN - -- : BFD_RELOC_PPC_COPY - -- : BFD_RELOC_PPC_GLOB_DAT - -- : BFD_RELOC_PPC_JMP_SLOT - -- : BFD_RELOC_PPC_RELATIVE - -- : BFD_RELOC_PPC_LOCAL24PC - -- : BFD_RELOC_PPC_EMB_NADDR32 - -- : BFD_RELOC_PPC_EMB_NADDR16 - -- : BFD_RELOC_PPC_EMB_NADDR16_LO - -- : BFD_RELOC_PPC_EMB_NADDR16_HI - -- : BFD_RELOC_PPC_EMB_NADDR16_HA - -- : BFD_RELOC_PPC_EMB_SDAI16 - -- : BFD_RELOC_PPC_EMB_SDA2I16 - -- : BFD_RELOC_PPC_EMB_SDA2REL - -- : BFD_RELOC_PPC_EMB_SDA21 - -- : BFD_RELOC_PPC_EMB_MRKREF - -- : BFD_RELOC_PPC_EMB_RELSEC16 - -- : BFD_RELOC_PPC_EMB_RELST_LO - -- : BFD_RELOC_PPC_EMB_RELST_HI - -- : BFD_RELOC_PPC_EMB_RELST_HA - -- : BFD_RELOC_PPC_EMB_BIT_FLD - -- : BFD_RELOC_PPC_EMB_RELSDA - -- : BFD_RELOC_PPC64_HIGHER - -- : BFD_RELOC_PPC64_HIGHER_S - -- : BFD_RELOC_PPC64_HIGHEST - -- : BFD_RELOC_PPC64_HIGHEST_S - -- : BFD_RELOC_PPC64_TOC16_LO - -- : BFD_RELOC_PPC64_TOC16_HI - -- : BFD_RELOC_PPC64_TOC16_HA - -- : BFD_RELOC_PPC64_TOC - -- : BFD_RELOC_PPC64_PLTGOT16 - -- : BFD_RELOC_PPC64_PLTGOT16_LO - -- : BFD_RELOC_PPC64_PLTGOT16_HI - -- : BFD_RELOC_PPC64_PLTGOT16_HA - -- : BFD_RELOC_PPC64_ADDR16_DS - -- : BFD_RELOC_PPC64_ADDR16_LO_DS - -- : BFD_RELOC_PPC64_GOT16_DS - -- : BFD_RELOC_PPC64_GOT16_LO_DS - -- : BFD_RELOC_PPC64_PLT16_LO_DS - -- : BFD_RELOC_PPC64_SECTOFF_DS - -- : BFD_RELOC_PPC64_SECTOFF_LO_DS - -- : BFD_RELOC_PPC64_TOC16_DS - -- : BFD_RELOC_PPC64_TOC16_LO_DS - -- : BFD_RELOC_PPC64_PLTGOT16_DS - -- : BFD_RELOC_PPC64_PLTGOT16_LO_DS + - : BFD_RELOC_PPC_B26 + - : BFD_RELOC_PPC_BA26 + - : BFD_RELOC_PPC_TOC16 + - : BFD_RELOC_PPC_B16 + - : BFD_RELOC_PPC_B16_BRTAKEN + - : BFD_RELOC_PPC_B16_BRNTAKEN + - : BFD_RELOC_PPC_BA16 + - : BFD_RELOC_PPC_BA16_BRTAKEN + - : BFD_RELOC_PPC_BA16_BRNTAKEN + - : BFD_RELOC_PPC_COPY + - : BFD_RELOC_PPC_GLOB_DAT + - : BFD_RELOC_PPC_JMP_SLOT + - : BFD_RELOC_PPC_RELATIVE + - : BFD_RELOC_PPC_LOCAL24PC + - : BFD_RELOC_PPC_EMB_NADDR32 + - : BFD_RELOC_PPC_EMB_NADDR16 + - : BFD_RELOC_PPC_EMB_NADDR16_LO + - : BFD_RELOC_PPC_EMB_NADDR16_HI + - : BFD_RELOC_PPC_EMB_NADDR16_HA + - : BFD_RELOC_PPC_EMB_SDAI16 + - : BFD_RELOC_PPC_EMB_SDA2I16 + - : BFD_RELOC_PPC_EMB_SDA2REL + - : BFD_RELOC_PPC_EMB_SDA21 + - : BFD_RELOC_PPC_EMB_MRKREF + - : BFD_RELOC_PPC_EMB_RELSEC16 + - : BFD_RELOC_PPC_EMB_RELST_LO + - : BFD_RELOC_PPC_EMB_RELST_HI + - : BFD_RELOC_PPC_EMB_RELST_HA + - : BFD_RELOC_PPC_EMB_BIT_FLD + - : BFD_RELOC_PPC_EMB_RELSDA + - : BFD_RELOC_PPC64_HIGHER + - : BFD_RELOC_PPC64_HIGHER_S + - : BFD_RELOC_PPC64_HIGHEST + - : BFD_RELOC_PPC64_HIGHEST_S + - : BFD_RELOC_PPC64_TOC16_LO + - : BFD_RELOC_PPC64_TOC16_HI + - : BFD_RELOC_PPC64_TOC16_HA + - : BFD_RELOC_PPC64_TOC + - : BFD_RELOC_PPC64_PLTGOT16 + - : BFD_RELOC_PPC64_PLTGOT16_LO + - : BFD_RELOC_PPC64_PLTGOT16_HI + - : BFD_RELOC_PPC64_PLTGOT16_HA + - : BFD_RELOC_PPC64_ADDR16_DS + - : BFD_RELOC_PPC64_ADDR16_LO_DS + - : BFD_RELOC_PPC64_GOT16_DS + - : BFD_RELOC_PPC64_GOT16_LO_DS + - : BFD_RELOC_PPC64_PLT16_LO_DS + - : BFD_RELOC_PPC64_SECTOFF_DS + - : BFD_RELOC_PPC64_SECTOFF_LO_DS + - : BFD_RELOC_PPC64_TOC16_DS + - : BFD_RELOC_PPC64_TOC16_LO_DS + - : BFD_RELOC_PPC64_PLTGOT16_DS + - : BFD_RELOC_PPC64_PLTGOT16_LO_DS Power(rs6000) and PowerPC relocations. - -- : BFD_RELOC_PPC_TLS - -- : BFD_RELOC_PPC_DTPMOD - -- : BFD_RELOC_PPC_TPREL16 - -- : BFD_RELOC_PPC_TPREL16_LO - -- : BFD_RELOC_PPC_TPREL16_HI - -- : BFD_RELOC_PPC_TPREL16_HA - -- : BFD_RELOC_PPC_TPREL - -- : BFD_RELOC_PPC_DTPREL16 - -- : BFD_RELOC_PPC_DTPREL16_LO - -- : BFD_RELOC_PPC_DTPREL16_HI - -- : BFD_RELOC_PPC_DTPREL16_HA - -- : BFD_RELOC_PPC_DTPREL - -- : BFD_RELOC_PPC_GOT_TLSGD16 - -- : BFD_RELOC_PPC_GOT_TLSGD16_LO - -- : BFD_RELOC_PPC_GOT_TLSGD16_HI - -- : BFD_RELOC_PPC_GOT_TLSGD16_HA - -- : BFD_RELOC_PPC_GOT_TLSLD16 - -- : BFD_RELOC_PPC_GOT_TLSLD16_LO - -- : BFD_RELOC_PPC_GOT_TLSLD16_HI - -- : BFD_RELOC_PPC_GOT_TLSLD16_HA - -- : BFD_RELOC_PPC_GOT_TPREL16 - -- : BFD_RELOC_PPC_GOT_TPREL16_LO - -- : BFD_RELOC_PPC_GOT_TPREL16_HI - -- : BFD_RELOC_PPC_GOT_TPREL16_HA - -- : BFD_RELOC_PPC_GOT_DTPREL16 - -- : BFD_RELOC_PPC_GOT_DTPREL16_LO - -- : BFD_RELOC_PPC_GOT_DTPREL16_HI - -- : BFD_RELOC_PPC_GOT_DTPREL16_HA - -- : BFD_RELOC_PPC64_TPREL16_DS - -- : BFD_RELOC_PPC64_TPREL16_LO_DS - -- : BFD_RELOC_PPC64_TPREL16_HIGHER - -- : BFD_RELOC_PPC64_TPREL16_HIGHERA - -- : BFD_RELOC_PPC64_TPREL16_HIGHEST - -- : BFD_RELOC_PPC64_TPREL16_HIGHESTA - -- : BFD_RELOC_PPC64_DTPREL16_DS - -- : BFD_RELOC_PPC64_DTPREL16_LO_DS - -- : BFD_RELOC_PPC64_DTPREL16_HIGHER - -- : BFD_RELOC_PPC64_DTPREL16_HIGHERA - -- : BFD_RELOC_PPC64_DTPREL16_HIGHEST - -- : BFD_RELOC_PPC64_DTPREL16_HIGHESTA + - : BFD_RELOC_PPC_TLS + - : BFD_RELOC_PPC_DTPMOD + - : BFD_RELOC_PPC_TPREL16 + - : BFD_RELOC_PPC_TPREL16_LO + - : BFD_RELOC_PPC_TPREL16_HI + - : BFD_RELOC_PPC_TPREL16_HA + - : BFD_RELOC_PPC_TPREL + - : BFD_RELOC_PPC_DTPREL16 + - : BFD_RELOC_PPC_DTPREL16_LO + - : BFD_RELOC_PPC_DTPREL16_HI + - : BFD_RELOC_PPC_DTPREL16_HA + - : BFD_RELOC_PPC_DTPREL + - : BFD_RELOC_PPC_GOT_TLSGD16 + - : BFD_RELOC_PPC_GOT_TLSGD16_LO + - : BFD_RELOC_PPC_GOT_TLSGD16_HI + - : BFD_RELOC_PPC_GOT_TLSGD16_HA + - : BFD_RELOC_PPC_GOT_TLSLD16 + - : BFD_RELOC_PPC_GOT_TLSLD16_LO + - : BFD_RELOC_PPC_GOT_TLSLD16_HI + - : BFD_RELOC_PPC_GOT_TLSLD16_HA + - : BFD_RELOC_PPC_GOT_TPREL16 + - : BFD_RELOC_PPC_GOT_TPREL16_LO + - : BFD_RELOC_PPC_GOT_TPREL16_HI + - : BFD_RELOC_PPC_GOT_TPREL16_HA + - : BFD_RELOC_PPC_GOT_DTPREL16 + - : BFD_RELOC_PPC_GOT_DTPREL16_LO + - : BFD_RELOC_PPC_GOT_DTPREL16_HI + - : BFD_RELOC_PPC_GOT_DTPREL16_HA + - : BFD_RELOC_PPC64_TPREL16_DS + - : BFD_RELOC_PPC64_TPREL16_LO_DS + - : BFD_RELOC_PPC64_TPREL16_HIGHER + - : BFD_RELOC_PPC64_TPREL16_HIGHERA + - : BFD_RELOC_PPC64_TPREL16_HIGHEST + - : BFD_RELOC_PPC64_TPREL16_HIGHESTA + - : BFD_RELOC_PPC64_DTPREL16_DS + - : BFD_RELOC_PPC64_DTPREL16_LO_DS + - : BFD_RELOC_PPC64_DTPREL16_HIGHER + - : BFD_RELOC_PPC64_DTPREL16_HIGHERA + - : BFD_RELOC_PPC64_DTPREL16_HIGHEST + - : BFD_RELOC_PPC64_DTPREL16_HIGHESTA PowerPC and PowerPC64 thread-local storage relocations. - -- : BFD_RELOC_I370_D12 + - : BFD_RELOC_I370_D12 IBM 370/390 relocations - -- : BFD_RELOC_CTOR + - : BFD_RELOC_CTOR The type of reloc used to build a constructor table - at the moment probably a 32 bit wide absolute relocation, but the target can choose. It generally does map to one of the other relocation types. - -- : BFD_RELOC_ARM_PCREL_BRANCH + - : BFD_RELOC_ARM_PCREL_BRANCH ARM 26 bit pc-relative branch. The lowest two bits must be zero and are not stored in the instruction. - -- : BFD_RELOC_ARM_PCREL_BLX + - : BFD_RELOC_ARM_PCREL_BLX ARM 26 bit pc-relative branch. The lowest bit must be zero and is not stored in the instruction. The 2nd lowest bit comes from a 1 bit field in the instruction. - -- : BFD_RELOC_THUMB_PCREL_BLX + - : BFD_RELOC_THUMB_PCREL_BLX Thumb 22 bit pc-relative branch. The lowest bit must be zero and is not stored in the instruction. The 2nd lowest bit comes from a 1 bit field in the instruction. - -- : BFD_RELOC_ARM_IMMEDIATE - -- : BFD_RELOC_ARM_ADRL_IMMEDIATE - -- : BFD_RELOC_ARM_OFFSET_IMM - -- : BFD_RELOC_ARM_SHIFT_IMM - -- : BFD_RELOC_ARM_SMI - -- : BFD_RELOC_ARM_SWI - -- : BFD_RELOC_ARM_MULTI - -- : BFD_RELOC_ARM_CP_OFF_IMM - -- : BFD_RELOC_ARM_CP_OFF_IMM_S2 - -- : BFD_RELOC_ARM_ADR_IMM - -- : BFD_RELOC_ARM_LDR_IMM - -- : BFD_RELOC_ARM_LITERAL - -- : BFD_RELOC_ARM_IN_POOL - -- : BFD_RELOC_ARM_OFFSET_IMM8 - -- : BFD_RELOC_ARM_HWLITERAL - -- : BFD_RELOC_ARM_THUMB_ADD - -- : BFD_RELOC_ARM_THUMB_IMM - -- : BFD_RELOC_ARM_THUMB_SHIFT - -- : BFD_RELOC_ARM_THUMB_OFFSET - -- : BFD_RELOC_ARM_GOT12 - -- : BFD_RELOC_ARM_GOT32 - -- : BFD_RELOC_ARM_JUMP_SLOT - -- : BFD_RELOC_ARM_COPY - -- : BFD_RELOC_ARM_GLOB_DAT - -- : BFD_RELOC_ARM_PLT32 - -- : BFD_RELOC_ARM_RELATIVE - -- : BFD_RELOC_ARM_GOTOFF - -- : BFD_RELOC_ARM_GOTPC + - : BFD_RELOC_ARM_IMMEDIATE + - : BFD_RELOC_ARM_ADRL_IMMEDIATE + - : BFD_RELOC_ARM_OFFSET_IMM + - : BFD_RELOC_ARM_SHIFT_IMM + - : BFD_RELOC_ARM_SMI + - : BFD_RELOC_ARM_SWI + - : BFD_RELOC_ARM_MULTI + - : BFD_RELOC_ARM_CP_OFF_IMM + - : BFD_RELOC_ARM_CP_OFF_IMM_S2 + - : BFD_RELOC_ARM_ADR_IMM + - : BFD_RELOC_ARM_LDR_IMM + - : BFD_RELOC_ARM_LITERAL + - : BFD_RELOC_ARM_IN_POOL + - : BFD_RELOC_ARM_OFFSET_IMM8 + - : BFD_RELOC_ARM_HWLITERAL + - : BFD_RELOC_ARM_THUMB_ADD + - : BFD_RELOC_ARM_THUMB_IMM + - : BFD_RELOC_ARM_THUMB_SHIFT + - : BFD_RELOC_ARM_THUMB_OFFSET + - : BFD_RELOC_ARM_GOT12 + - : BFD_RELOC_ARM_GOT32 + - : BFD_RELOC_ARM_JUMP_SLOT + - : BFD_RELOC_ARM_COPY + - : BFD_RELOC_ARM_GLOB_DAT + - : BFD_RELOC_ARM_PLT32 + - : BFD_RELOC_ARM_RELATIVE + - : BFD_RELOC_ARM_GOTOFF + - : BFD_RELOC_ARM_GOTPC These relocs are only used within the ARM assembler. They are not (at present) written to any object files. - -- : BFD_RELOC_ARM_TARGET1 + - : BFD_RELOC_ARM_TARGET1 Pc-relative or absolute relocation depending on target. Used for entries in .init_array sections. - -- : BFD_RELOC_ARM_ROSEGREL32 + - : BFD_RELOC_ARM_ROSEGREL32 Read-only segment base relative address. - -- : BFD_RELOC_ARM_SBREL32 + - : BFD_RELOC_ARM_SBREL32 Data segment base relative address. - -- : BFD_RELOC_ARM_TARGET2 + - : BFD_RELOC_ARM_TARGET2 This reloc is used for References to RTTI dta from exception handling tables. The actual definition depends on the target. It may be a pc-relative or some form of GOT-indirect relocation. - -- : BFD_RELOC_ARM_PREL31 + - : BFD_RELOC_ARM_PREL31 31-bit PC relative address. - -- : BFD_RELOC_SH_PCDISP8BY2 - -- : BFD_RELOC_SH_PCDISP12BY2 - -- : BFD_RELOC_SH_IMM3 - -- : BFD_RELOC_SH_IMM3U - -- : BFD_RELOC_SH_DISP12 - -- : BFD_RELOC_SH_DISP12BY2 - -- : BFD_RELOC_SH_DISP12BY4 - -- : BFD_RELOC_SH_DISP12BY8 - -- : BFD_RELOC_SH_DISP20 - -- : BFD_RELOC_SH_DISP20BY8 - -- : BFD_RELOC_SH_IMM4 - -- : BFD_RELOC_SH_IMM4BY2 - -- : BFD_RELOC_SH_IMM4BY4 - -- : BFD_RELOC_SH_IMM8 - -- : BFD_RELOC_SH_IMM8BY2 - -- : BFD_RELOC_SH_IMM8BY4 - -- : BFD_RELOC_SH_PCRELIMM8BY2 - -- : BFD_RELOC_SH_PCRELIMM8BY4 - -- : BFD_RELOC_SH_SWITCH16 - -- : BFD_RELOC_SH_SWITCH32 - -- : BFD_RELOC_SH_USES - -- : BFD_RELOC_SH_COUNT - -- : BFD_RELOC_SH_ALIGN - -- : BFD_RELOC_SH_CODE - -- : BFD_RELOC_SH_DATA - -- : BFD_RELOC_SH_LABEL - -- : BFD_RELOC_SH_LOOP_START - -- : BFD_RELOC_SH_LOOP_END - -- : BFD_RELOC_SH_COPY - -- : BFD_RELOC_SH_GLOB_DAT - -- : BFD_RELOC_SH_JMP_SLOT - -- : BFD_RELOC_SH_RELATIVE - -- : BFD_RELOC_SH_GOTPC - -- : BFD_RELOC_SH_GOT_LOW16 - -- : BFD_RELOC_SH_GOT_MEDLOW16 - -- : BFD_RELOC_SH_GOT_MEDHI16 - -- : BFD_RELOC_SH_GOT_HI16 - -- : BFD_RELOC_SH_GOTPLT_LOW16 - -- : BFD_RELOC_SH_GOTPLT_MEDLOW16 - -- : BFD_RELOC_SH_GOTPLT_MEDHI16 - -- : BFD_RELOC_SH_GOTPLT_HI16 - -- : BFD_RELOC_SH_PLT_LOW16 - -- : BFD_RELOC_SH_PLT_MEDLOW16 - -- : BFD_RELOC_SH_PLT_MEDHI16 - -- : BFD_RELOC_SH_PLT_HI16 - -- : BFD_RELOC_SH_GOTOFF_LOW16 - -- : BFD_RELOC_SH_GOTOFF_MEDLOW16 - -- : BFD_RELOC_SH_GOTOFF_MEDHI16 - -- : BFD_RELOC_SH_GOTOFF_HI16 - -- : BFD_RELOC_SH_GOTPC_LOW16 - -- : BFD_RELOC_SH_GOTPC_MEDLOW16 - -- : BFD_RELOC_SH_GOTPC_MEDHI16 - -- : BFD_RELOC_SH_GOTPC_HI16 - -- : BFD_RELOC_SH_COPY64 - -- : BFD_RELOC_SH_GLOB_DAT64 - -- : BFD_RELOC_SH_JMP_SLOT64 - -- : BFD_RELOC_SH_RELATIVE64 - -- : BFD_RELOC_SH_GOT10BY4 - -- : BFD_RELOC_SH_GOT10BY8 - -- : BFD_RELOC_SH_GOTPLT10BY4 - -- : BFD_RELOC_SH_GOTPLT10BY8 - -- : BFD_RELOC_SH_GOTPLT32 - -- : BFD_RELOC_SH_SHMEDIA_CODE - -- : BFD_RELOC_SH_IMMU5 - -- : BFD_RELOC_SH_IMMS6 - -- : BFD_RELOC_SH_IMMS6BY32 - -- : BFD_RELOC_SH_IMMU6 - -- : BFD_RELOC_SH_IMMS10 - -- : BFD_RELOC_SH_IMMS10BY2 - -- : BFD_RELOC_SH_IMMS10BY4 - -- : BFD_RELOC_SH_IMMS10BY8 - -- : BFD_RELOC_SH_IMMS16 - -- : BFD_RELOC_SH_IMMU16 - -- : BFD_RELOC_SH_IMM_LOW16 - -- : BFD_RELOC_SH_IMM_LOW16_PCREL - -- : BFD_RELOC_SH_IMM_MEDLOW16 - -- : BFD_RELOC_SH_IMM_MEDLOW16_PCREL - -- : BFD_RELOC_SH_IMM_MEDHI16 - -- : BFD_RELOC_SH_IMM_MEDHI16_PCREL - -- : BFD_RELOC_SH_IMM_HI16 - -- : BFD_RELOC_SH_IMM_HI16_PCREL - -- : BFD_RELOC_SH_PT_16 - -- : BFD_RELOC_SH_TLS_GD_32 - -- : BFD_RELOC_SH_TLS_LD_32 - -- : BFD_RELOC_SH_TLS_LDO_32 - -- : BFD_RELOC_SH_TLS_IE_32 - -- : BFD_RELOC_SH_TLS_LE_32 - -- : BFD_RELOC_SH_TLS_DTPMOD32 - -- : BFD_RELOC_SH_TLS_DTPOFF32 - -- : BFD_RELOC_SH_TLS_TPOFF32 + - : BFD_RELOC_SH_PCDISP8BY2 + - : BFD_RELOC_SH_PCDISP12BY2 + - : BFD_RELOC_SH_IMM3 + - : BFD_RELOC_SH_IMM3U + - : BFD_RELOC_SH_DISP12 + - : BFD_RELOC_SH_DISP12BY2 + - : BFD_RELOC_SH_DISP12BY4 + - : BFD_RELOC_SH_DISP12BY8 + - : BFD_RELOC_SH_DISP20 + - : BFD_RELOC_SH_DISP20BY8 + - : BFD_RELOC_SH_IMM4 + - : BFD_RELOC_SH_IMM4BY2 + - : BFD_RELOC_SH_IMM4BY4 + - : BFD_RELOC_SH_IMM8 + - : BFD_RELOC_SH_IMM8BY2 + - : BFD_RELOC_SH_IMM8BY4 + - : BFD_RELOC_SH_PCRELIMM8BY2 + - : BFD_RELOC_SH_PCRELIMM8BY4 + - : BFD_RELOC_SH_SWITCH16 + - : BFD_RELOC_SH_SWITCH32 + - : BFD_RELOC_SH_USES + - : BFD_RELOC_SH_COUNT + - : BFD_RELOC_SH_ALIGN + - : BFD_RELOC_SH_CODE + - : BFD_RELOC_SH_DATA + - : BFD_RELOC_SH_LABEL + - : BFD_RELOC_SH_LOOP_START + - : BFD_RELOC_SH_LOOP_END + - : BFD_RELOC_SH_COPY + - : BFD_RELOC_SH_GLOB_DAT + - : BFD_RELOC_SH_JMP_SLOT + - : BFD_RELOC_SH_RELATIVE + - : BFD_RELOC_SH_GOTPC + - : BFD_RELOC_SH_GOT_LOW16 + - : BFD_RELOC_SH_GOT_MEDLOW16 + - : BFD_RELOC_SH_GOT_MEDHI16 + - : BFD_RELOC_SH_GOT_HI16 + - : BFD_RELOC_SH_GOTPLT_LOW16 + - : BFD_RELOC_SH_GOTPLT_MEDLOW16 + - : BFD_RELOC_SH_GOTPLT_MEDHI16 + - : BFD_RELOC_SH_GOTPLT_HI16 + - : BFD_RELOC_SH_PLT_LOW16 + - : BFD_RELOC_SH_PLT_MEDLOW16 + - : BFD_RELOC_SH_PLT_MEDHI16 + - : BFD_RELOC_SH_PLT_HI16 + - : BFD_RELOC_SH_GOTOFF_LOW16 + - : BFD_RELOC_SH_GOTOFF_MEDLOW16 + - : BFD_RELOC_SH_GOTOFF_MEDHI16 + - : BFD_RELOC_SH_GOTOFF_HI16 + - : BFD_RELOC_SH_GOTPC_LOW16 + - : BFD_RELOC_SH_GOTPC_MEDLOW16 + - : BFD_RELOC_SH_GOTPC_MEDHI16 + - : BFD_RELOC_SH_GOTPC_HI16 + - : BFD_RELOC_SH_COPY64 + - : BFD_RELOC_SH_GLOB_DAT64 + - : BFD_RELOC_SH_JMP_SLOT64 + - : BFD_RELOC_SH_RELATIVE64 + - : BFD_RELOC_SH_GOT10BY4 + - : BFD_RELOC_SH_GOT10BY8 + - : BFD_RELOC_SH_GOTPLT10BY4 + - : BFD_RELOC_SH_GOTPLT10BY8 + - : BFD_RELOC_SH_GOTPLT32 + - : BFD_RELOC_SH_SHMEDIA_CODE + - : BFD_RELOC_SH_IMMU5 + - : BFD_RELOC_SH_IMMS6 + - : BFD_RELOC_SH_IMMS6BY32 + - : BFD_RELOC_SH_IMMU6 + - : BFD_RELOC_SH_IMMS10 + - : BFD_RELOC_SH_IMMS10BY2 + - : BFD_RELOC_SH_IMMS10BY4 + - : BFD_RELOC_SH_IMMS10BY8 + - : BFD_RELOC_SH_IMMS16 + - : BFD_RELOC_SH_IMMU16 + - : BFD_RELOC_SH_IMM_LOW16 + - : BFD_RELOC_SH_IMM_LOW16_PCREL + - : BFD_RELOC_SH_IMM_MEDLOW16 + - : BFD_RELOC_SH_IMM_MEDLOW16_PCREL + - : BFD_RELOC_SH_IMM_MEDHI16 + - : BFD_RELOC_SH_IMM_MEDHI16_PCREL + - : BFD_RELOC_SH_IMM_HI16 + - : BFD_RELOC_SH_IMM_HI16_PCREL + - : BFD_RELOC_SH_PT_16 + - : BFD_RELOC_SH_TLS_GD_32 + - : BFD_RELOC_SH_TLS_LD_32 + - : BFD_RELOC_SH_TLS_LDO_32 + - : BFD_RELOC_SH_TLS_IE_32 + - : BFD_RELOC_SH_TLS_LE_32 + - : BFD_RELOC_SH_TLS_DTPMOD32 + - : BFD_RELOC_SH_TLS_DTPOFF32 + - : BFD_RELOC_SH_TLS_TPOFF32 Renesas / SuperH SH relocs. Not all of these appear in object files. - -- : BFD_RELOC_THUMB_PCREL_BRANCH9 - -- : BFD_RELOC_THUMB_PCREL_BRANCH12 - -- : BFD_RELOC_THUMB_PCREL_BRANCH23 + - : BFD_RELOC_THUMB_PCREL_BRANCH9 + - : BFD_RELOC_THUMB_PCREL_BRANCH12 + - : BFD_RELOC_THUMB_PCREL_BRANCH23 Thumb 23-, 12- and 9-bit pc-relative branches. The lowest bit must be zero and is not stored in the instruction. - -- : BFD_RELOC_ARC_B22_PCREL + - : BFD_RELOC_ARC_B22_PCREL ARC Cores relocs. ARC 22 bit pc-relative branch. The lowest two bits must be zero and are not stored in the instruction. The high 20 bits are installed in bits 26 through 7 of the instruction. - -- : BFD_RELOC_ARC_B26 + - : BFD_RELOC_ARC_B26 ARC 26 bit absolute branch. The lowest two bits must be zero and are not stored in the instruction. The high 24 bits are installed in bits 23 through 0. - -- : BFD_RELOC_D10V_10_PCREL_R + - : BFD_RELOC_D10V_10_PCREL_R Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2 bits assumed to be 0. - -- : BFD_RELOC_D10V_10_PCREL_L + - : BFD_RELOC_D10V_10_PCREL_L Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2 bits assumed to be 0. This is the same as the previous reloc except it is in the left container, i.e., shifted left 15 bits. - -- : BFD_RELOC_D10V_18 + - : BFD_RELOC_D10V_18 This is an 18-bit reloc with the right 2 bits assumed to be 0. - -- : BFD_RELOC_D10V_18_PCREL + - : BFD_RELOC_D10V_18_PCREL This is an 18-bit reloc with the right 2 bits assumed to be 0. - -- : BFD_RELOC_D30V_6 + - : BFD_RELOC_D30V_6 Mitsubishi D30V relocs. This is a 6-bit absolute reloc. - -- : BFD_RELOC_D30V_9_PCREL + - : BFD_RELOC_D30V_9_PCREL This is a 6-bit pc-relative reloc with the right 3 bits assumed to be 0. - -- : BFD_RELOC_D30V_9_PCREL_R + - : BFD_RELOC_D30V_9_PCREL_R This is a 6-bit pc-relative reloc with the right 3 bits assumed to be 0. Same as the previous reloc but on the right side of the container. - -- : BFD_RELOC_D30V_15 + - : BFD_RELOC_D30V_15 This is a 12-bit absolute reloc with the right 3 bitsassumed to be 0. - -- : BFD_RELOC_D30V_15_PCREL + - : BFD_RELOC_D30V_15_PCREL This is a 12-bit pc-relative reloc with the right 3 bits assumed to be 0. - -- : BFD_RELOC_D30V_15_PCREL_R + - : BFD_RELOC_D30V_15_PCREL_R This is a 12-bit pc-relative reloc with the right 3 bits assumed to be 0. Same as the previous reloc but on the right side of the container. - -- : BFD_RELOC_D30V_21 + - : BFD_RELOC_D30V_21 This is an 18-bit absolute reloc with the right 3 bits assumed to be 0. - -- : BFD_RELOC_D30V_21_PCREL + - : BFD_RELOC_D30V_21_PCREL This is an 18-bit pc-relative reloc with the right 3 bits assumed to be 0. - -- : BFD_RELOC_D30V_21_PCREL_R + - : BFD_RELOC_D30V_21_PCREL_R This is an 18-bit pc-relative reloc with the right 3 bits assumed to be 0. Same as the previous reloc but on the right side of the container. - -- : BFD_RELOC_D30V_32 + - : BFD_RELOC_D30V_32 This is a 32-bit absolute reloc. - -- : BFD_RELOC_D30V_32_PCREL + - : BFD_RELOC_D30V_32_PCREL This is a 32-bit pc-relative reloc. - -- : BFD_RELOC_DLX_HI16_S + - : BFD_RELOC_DLX_HI16_S DLX relocs - -- : BFD_RELOC_DLX_LO16 + - : BFD_RELOC_DLX_LO16 DLX relocs - -- : BFD_RELOC_DLX_JMP26 + - : BFD_RELOC_DLX_JMP26 DLX relocs - -- : BFD_RELOC_M32R_24 + - : BFD_RELOC_M32R_24 Renesas M32R (formerly Mitsubishi M32R) relocs. This is a 24 bit absolute address. - -- : BFD_RELOC_M32R_10_PCREL + - : BFD_RELOC_M32R_10_PCREL This is a 10-bit pc-relative reloc with the right 2 bits assumed to be 0. - -- : BFD_RELOC_M32R_18_PCREL + - : BFD_RELOC_M32R_18_PCREL This is an 18-bit reloc with the right 2 bits assumed to be 0. - -- : BFD_RELOC_M32R_26_PCREL + - : BFD_RELOC_M32R_26_PCREL This is a 26-bit reloc with the right 2 bits assumed to be 0. - -- : BFD_RELOC_M32R_HI16_ULO + - : BFD_RELOC_M32R_HI16_ULO This is a 16-bit reloc containing the high 16 bits of an address used when the lower 16 bits are treated as unsigned. - -- : BFD_RELOC_M32R_HI16_SLO + - : BFD_RELOC_M32R_HI16_SLO This is a 16-bit reloc containing the high 16 bits of an address used when the lower 16 bits are treated as signed. - -- : BFD_RELOC_M32R_LO16 + - : BFD_RELOC_M32R_LO16 This is a 16-bit reloc containing the lower 16 bits of an address. - -- : BFD_RELOC_M32R_SDA16 + - : BFD_RELOC_M32R_SDA16 This is a 16-bit reloc containing the small data area offset for use in add3, load, and store instructions. - -- : BFD_RELOC_M32R_GOT24 - -- : BFD_RELOC_M32R_26_PLTREL - -- : BFD_RELOC_M32R_COPY - -- : BFD_RELOC_M32R_GLOB_DAT - -- : BFD_RELOC_M32R_JMP_SLOT - -- : BFD_RELOC_M32R_RELATIVE - -- : BFD_RELOC_M32R_GOTOFF - -- : BFD_RELOC_M32R_GOTOFF_HI_ULO - -- : BFD_RELOC_M32R_GOTOFF_HI_SLO - -- : BFD_RELOC_M32R_GOTOFF_LO - -- : BFD_RELOC_M32R_GOTPC24 - -- : BFD_RELOC_M32R_GOT16_HI_ULO - -- : BFD_RELOC_M32R_GOT16_HI_SLO - -- : BFD_RELOC_M32R_GOT16_LO - -- : BFD_RELOC_M32R_GOTPC_HI_ULO - -- : BFD_RELOC_M32R_GOTPC_HI_SLO - -- : BFD_RELOC_M32R_GOTPC_LO + - : BFD_RELOC_M32R_GOT24 + - : BFD_RELOC_M32R_26_PLTREL + - : BFD_RELOC_M32R_COPY + - : BFD_RELOC_M32R_GLOB_DAT + - : BFD_RELOC_M32R_JMP_SLOT + - : BFD_RELOC_M32R_RELATIVE + - : BFD_RELOC_M32R_GOTOFF + - : BFD_RELOC_M32R_GOTOFF_HI_ULO + - : BFD_RELOC_M32R_GOTOFF_HI_SLO + - : BFD_RELOC_M32R_GOTOFF_LO + - : BFD_RELOC_M32R_GOTPC24 + - : BFD_RELOC_M32R_GOT16_HI_ULO + - : BFD_RELOC_M32R_GOT16_HI_SLO + - : BFD_RELOC_M32R_GOT16_LO + - : BFD_RELOC_M32R_GOTPC_HI_ULO + - : BFD_RELOC_M32R_GOTPC_HI_SLO + - : BFD_RELOC_M32R_GOTPC_LO For PIC. - -- : BFD_RELOC_V850_9_PCREL + - : BFD_RELOC_V850_9_PCREL This is a 9-bit reloc - -- : BFD_RELOC_V850_22_PCREL + - : BFD_RELOC_V850_22_PCREL This is a 22-bit reloc - -- : BFD_RELOC_V850_SDA_16_16_OFFSET + - : BFD_RELOC_V850_SDA_16_16_OFFSET This is a 16 bit offset from the short data area pointer. - -- : BFD_RELOC_V850_SDA_15_16_OFFSET + - : BFD_RELOC_V850_SDA_15_16_OFFSET This is a 16 bit offset (of which only 15 bits are used) from the short data area pointer. - -- : BFD_RELOC_V850_ZDA_16_16_OFFSET + - : BFD_RELOC_V850_ZDA_16_16_OFFSET This is a 16 bit offset from the zero data area pointer. - -- : BFD_RELOC_V850_ZDA_15_16_OFFSET + - : BFD_RELOC_V850_ZDA_15_16_OFFSET This is a 16 bit offset (of which only 15 bits are used) from the zero data area pointer. - -- : BFD_RELOC_V850_TDA_6_8_OFFSET + - : BFD_RELOC_V850_TDA_6_8_OFFSET This is an 8 bit offset (of which only 6 bits are used) from the tiny data area pointer. - -- : BFD_RELOC_V850_TDA_7_8_OFFSET + - : BFD_RELOC_V850_TDA_7_8_OFFSET This is an 8bit offset (of which only 7 bits are used) from the tiny data area pointer. - -- : BFD_RELOC_V850_TDA_7_7_OFFSET + - : BFD_RELOC_V850_TDA_7_7_OFFSET This is a 7 bit offset from the tiny data area pointer. - -- : BFD_RELOC_V850_TDA_16_16_OFFSET + - : BFD_RELOC_V850_TDA_16_16_OFFSET This is a 16 bit offset from the tiny data area pointer. - -- : BFD_RELOC_V850_TDA_4_5_OFFSET + - : BFD_RELOC_V850_TDA_4_5_OFFSET This is a 5 bit offset (of which only 4 bits are used) from the tiny data area pointer. - -- : BFD_RELOC_V850_TDA_4_4_OFFSET + - : BFD_RELOC_V850_TDA_4_4_OFFSET This is a 4 bit offset from the tiny data area pointer. - -- : BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET + - : BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET This is a 16 bit offset from the short data area pointer, with the bits placed non-contiguously in the instruction. - -- : BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET + - : BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET This is a 16 bit offset from the zero data area pointer, with the bits placed non-contiguously in the instruction. - -- : BFD_RELOC_V850_CALLT_6_7_OFFSET + - : BFD_RELOC_V850_CALLT_6_7_OFFSET This is a 6 bit offset from the call table base pointer. - -- : BFD_RELOC_V850_CALLT_16_16_OFFSET + - : BFD_RELOC_V850_CALLT_16_16_OFFSET This is a 16 bit offset from the call table base pointer. - -- : BFD_RELOC_V850_LONGCALL + - : BFD_RELOC_V850_LONGCALL Used for relaxing indirect function calls. - -- : BFD_RELOC_V850_LONGJUMP + - : BFD_RELOC_V850_LONGJUMP Used for relaxing indirect jumps. - -- : BFD_RELOC_V850_ALIGN + - : BFD_RELOC_V850_ALIGN Used to maintain alignment whilst relaxing. - -- : BFD_RELOC_V850_LO16_SPLIT_OFFSET + - : BFD_RELOC_V850_LO16_SPLIT_OFFSET This is a variation of BFD_RELOC_LO16 that can be used in v850e ld.bu instructions. - -- : BFD_RELOC_MN10300_32_PCREL + - : BFD_RELOC_MN10300_32_PCREL This is a 32bit pcrel reloc for the mn10300, offset by two bytes in the instruction. - -- : BFD_RELOC_MN10300_16_PCREL + - : BFD_RELOC_MN10300_16_PCREL This is a 16bit pcrel reloc for the mn10300, offset by two bytes in the instruction. - -- : BFD_RELOC_TIC30_LDP + - : BFD_RELOC_TIC30_LDP This is a 8bit DP reloc for the tms320c30, where the most significant 8 bits of a 24 bit word are placed into the least significant 8 bits of the opcode. - -- : BFD_RELOC_TIC54X_PARTLS7 + - : BFD_RELOC_TIC54X_PARTLS7 This is a 7bit reloc for the tms320c54x, where the least significant 7 bits of a 16 bit word are placed into the least significant 7 bits of the opcode. - -- : BFD_RELOC_TIC54X_PARTMS9 + - : BFD_RELOC_TIC54X_PARTMS9 This is a 9bit DP reloc for the tms320c54x, where the most significant 9 bits of a 16 bit word are placed into the least significant 9 bits of the opcode. - -- : BFD_RELOC_TIC54X_23 + - : BFD_RELOC_TIC54X_23 This is an extended address 23-bit reloc for the tms320c54x. - -- : BFD_RELOC_TIC54X_16_OF_23 + - : BFD_RELOC_TIC54X_16_OF_23 This is a 16-bit reloc for the tms320c54x, where the least significant 16 bits of a 23-bit extended address are placed into the opcode. - -- : BFD_RELOC_TIC54X_MS7_OF_23 + - : BFD_RELOC_TIC54X_MS7_OF_23 This is a reloc for the tms320c54x, where the most significant 7 bits of a 23-bit extended address are placed into the opcode. - -- : BFD_RELOC_FR30_48 + - : BFD_RELOC_FR30_48 This is a 48 bit reloc for the FR30 that stores 32 bits. - -- : BFD_RELOC_FR30_20 + - : BFD_RELOC_FR30_20 This is a 32 bit reloc for the FR30 that stores 20 bits split up into two sections. - -- : BFD_RELOC_FR30_6_IN_4 + - : BFD_RELOC_FR30_6_IN_4 This is a 16 bit reloc for the FR30 that stores a 6 bit word offset in 4 bits. - -- : BFD_RELOC_FR30_8_IN_8 + - : BFD_RELOC_FR30_8_IN_8 This is a 16 bit reloc for the FR30 that stores an 8 bit byte offset into 8 bits. - -- : BFD_RELOC_FR30_9_IN_8 + - : BFD_RELOC_FR30_9_IN_8 This is a 16 bit reloc for the FR30 that stores a 9 bit short offset into 8 bits. - -- : BFD_RELOC_FR30_10_IN_8 + - : BFD_RELOC_FR30_10_IN_8 This is a 16 bit reloc for the FR30 that stores a 10 bit word offset into 8 bits. - -- : BFD_RELOC_FR30_9_PCREL + - : BFD_RELOC_FR30_9_PCREL This is a 16 bit reloc for the FR30 that stores a 9 bit pc relative short offset into 8 bits. - -- : BFD_RELOC_FR30_12_PCREL + - : BFD_RELOC_FR30_12_PCREL This is a 16 bit reloc for the FR30 that stores a 12 bit pc relative short offset into 11 bits. - -- : BFD_RELOC_MCORE_PCREL_IMM8BY4 - -- : BFD_RELOC_MCORE_PCREL_IMM11BY2 - -- : BFD_RELOC_MCORE_PCREL_IMM4BY2 - -- : BFD_RELOC_MCORE_PCREL_32 - -- : BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2 - -- : BFD_RELOC_MCORE_RVA + - : BFD_RELOC_MCORE_PCREL_IMM8BY4 + - : BFD_RELOC_MCORE_PCREL_IMM11BY2 + - : BFD_RELOC_MCORE_PCREL_IMM4BY2 + - : BFD_RELOC_MCORE_PCREL_32 + - : BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2 + - : BFD_RELOC_MCORE_RVA Motorola Mcore relocations. - -- : BFD_RELOC_MMIX_GETA - -- : BFD_RELOC_MMIX_GETA_1 - -- : BFD_RELOC_MMIX_GETA_2 - -- : BFD_RELOC_MMIX_GETA_3 + - : BFD_RELOC_MMIX_GETA + - : BFD_RELOC_MMIX_GETA_1 + - : BFD_RELOC_MMIX_GETA_2 + - : BFD_RELOC_MMIX_GETA_3 These are relocations for the GETA instruction. - -- : BFD_RELOC_MMIX_CBRANCH - -- : BFD_RELOC_MMIX_CBRANCH_J - -- : BFD_RELOC_MMIX_CBRANCH_1 - -- : BFD_RELOC_MMIX_CBRANCH_2 - -- : BFD_RELOC_MMIX_CBRANCH_3 + - : BFD_RELOC_MMIX_CBRANCH + - : BFD_RELOC_MMIX_CBRANCH_J + - : BFD_RELOC_MMIX_CBRANCH_1 + - : BFD_RELOC_MMIX_CBRANCH_2 + - : BFD_RELOC_MMIX_CBRANCH_3 These are relocations for a conditional branch instruction. - -- : BFD_RELOC_MMIX_PUSHJ - -- : BFD_RELOC_MMIX_PUSHJ_1 - -- : BFD_RELOC_MMIX_PUSHJ_2 - -- : BFD_RELOC_MMIX_PUSHJ_3 - -- : BFD_RELOC_MMIX_PUSHJ_STUBBABLE + - : BFD_RELOC_MMIX_PUSHJ + - : BFD_RELOC_MMIX_PUSHJ_1 + - : BFD_RELOC_MMIX_PUSHJ_2 + - : BFD_RELOC_MMIX_PUSHJ_3 + - : BFD_RELOC_MMIX_PUSHJ_STUBBABLE These are relocations for the PUSHJ instruction. - -- : BFD_RELOC_MMIX_JMP - -- : BFD_RELOC_MMIX_JMP_1 - -- : BFD_RELOC_MMIX_JMP_2 - -- : BFD_RELOC_MMIX_JMP_3 + - : BFD_RELOC_MMIX_JMP + - : BFD_RELOC_MMIX_JMP_1 + - : BFD_RELOC_MMIX_JMP_2 + - : BFD_RELOC_MMIX_JMP_3 These are relocations for the JMP instruction. - -- : BFD_RELOC_MMIX_ADDR19 + - : BFD_RELOC_MMIX_ADDR19 This is a relocation for a relative address as in a GETA instruction or a branch. - -- : BFD_RELOC_MMIX_ADDR27 + - : BFD_RELOC_MMIX_ADDR27 This is a relocation for a relative address as in a JMP instruction. - -- : BFD_RELOC_MMIX_REG_OR_BYTE + - : BFD_RELOC_MMIX_REG_OR_BYTE This is a relocation for an instruction field that may be a general register or a value 0..255. - -- : BFD_RELOC_MMIX_REG + - : BFD_RELOC_MMIX_REG This is a relocation for an instruction field that may be a general register. - -- : BFD_RELOC_MMIX_BASE_PLUS_OFFSET + - : BFD_RELOC_MMIX_BASE_PLUS_OFFSET This is a relocation for two instruction fields holding a register and an offset, the equivalent of the relocation. - -- : BFD_RELOC_MMIX_LOCAL + - : BFD_RELOC_MMIX_LOCAL This relocation is an assertion that the expression is not allocated as a global register. It does not modify contents. - -- : BFD_RELOC_AVR_7_PCREL + - : BFD_RELOC_AVR_7_PCREL This is a 16 bit reloc for the AVR that stores 8 bit pc relative short offset into 7 bits. - -- : BFD_RELOC_AVR_13_PCREL + - : BFD_RELOC_AVR_13_PCREL This is a 16 bit reloc for the AVR that stores 13 bit pc relative short offset into 12 bits. - -- : BFD_RELOC_AVR_16_PM + - : BFD_RELOC_AVR_16_PM This is a 16 bit reloc for the AVR that stores 17 bit value (usually program memory address) into 16 bits. - -- : BFD_RELOC_AVR_LO8_LDI + - : BFD_RELOC_AVR_LO8_LDI This is a 16 bit reloc for the AVR that stores 8 bit value (usually data memory address) into 8 bit immediate value of LDI insn. - -- : BFD_RELOC_AVR_HI8_LDI + - : BFD_RELOC_AVR_HI8_LDI This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 bit of data memory address) into 8 bit immediate value of LDI insn. - -- : BFD_RELOC_AVR_HH8_LDI + - : BFD_RELOC_AVR_HH8_LDI This is a 16 bit reloc for the AVR that stores 8 bit value (most high 8 bit of program memory address) into 8 bit immediate value of LDI insn. - -- : BFD_RELOC_AVR_LO8_LDI_NEG + - : BFD_RELOC_AVR_LO8_LDI_NEG This is a 16 bit reloc for the AVR that stores negated 8 bit value (usually data memory address) into 8 bit immediate value of SUBI insn. - -- : BFD_RELOC_AVR_HI8_LDI_NEG + - : BFD_RELOC_AVR_HI8_LDI_NEG This is a 16 bit reloc for the AVR that stores negated 8 bit value (high 8 bit of data memory address) into 8 bit immediate value of SUBI insn. - -- : BFD_RELOC_AVR_HH8_LDI_NEG + - : BFD_RELOC_AVR_HH8_LDI_NEG This is a 16 bit reloc for the AVR that stores negated 8 bit value (most high 8 bit of program memory address) into 8 bit immediate value of LDI or SUBI insn. - -- : BFD_RELOC_AVR_LO8_LDI_PM + - : BFD_RELOC_AVR_LO8_LDI_PM This is a 16 bit reloc for the AVR that stores 8 bit value (usually command address) into 8 bit immediate value of LDI insn. - -- : BFD_RELOC_AVR_HI8_LDI_PM + - : BFD_RELOC_AVR_HI8_LDI_PM This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 bit of command address) into 8 bit immediate value of LDI insn. - -- : BFD_RELOC_AVR_HH8_LDI_PM + - : BFD_RELOC_AVR_HH8_LDI_PM This is a 16 bit reloc for the AVR that stores 8 bit value (most high 8 bit of command address) into 8 bit immediate value of LDI insn. - -- : BFD_RELOC_AVR_LO8_LDI_PM_NEG + - : BFD_RELOC_AVR_LO8_LDI_PM_NEG This is a 16 bit reloc for the AVR that stores negated 8 bit value (usually command address) into 8 bit immediate value of SUBI insn. - -- : BFD_RELOC_AVR_HI8_LDI_PM_NEG + - : BFD_RELOC_AVR_HI8_LDI_PM_NEG This is a 16 bit reloc for the AVR that stores negated 8 bit value (high 8 bit of 16 bit command address) into 8 bit immediate value of SUBI insn. - -- : BFD_RELOC_AVR_HH8_LDI_PM_NEG + - : BFD_RELOC_AVR_HH8_LDI_PM_NEG This is a 16 bit reloc for the AVR that stores negated 8 bit value (high 6 bit of 22 bit command address) into 8 bit immediate value of SUBI insn. - -- : BFD_RELOC_AVR_CALL + - : BFD_RELOC_AVR_CALL This is a 32 bit reloc for the AVR that stores 23 bit value into 22 bits. - -- : BFD_RELOC_AVR_LDI + - : BFD_RELOC_AVR_LDI This is a 16 bit reloc for the AVR that stores all needed bits for absolute addressing with ldi with overflow check to linktime - -- : BFD_RELOC_AVR_6 + - : BFD_RELOC_AVR_6 This is a 6 bit reloc for the AVR that stores offset for ldd/std instructions - -- : BFD_RELOC_AVR_6_ADIW + - : BFD_RELOC_AVR_6_ADIW This is a 6 bit reloc for the AVR that stores offset for adiw/sbiw instructions - -- : BFD_RELOC_390_12 + - : BFD_RELOC_390_12 Direct 12 bit. - -- : BFD_RELOC_390_GOT12 + - : BFD_RELOC_390_GOT12 12 bit GOT offset. - -- : BFD_RELOC_390_PLT32 + - : BFD_RELOC_390_PLT32 32 bit PC relative PLT address. - -- : BFD_RELOC_390_COPY + - : BFD_RELOC_390_COPY Copy symbol at runtime. - -- : BFD_RELOC_390_GLOB_DAT + - : BFD_RELOC_390_GLOB_DAT Create GOT entry. - -- : BFD_RELOC_390_JMP_SLOT + - : BFD_RELOC_390_JMP_SLOT Create PLT entry. - -- : BFD_RELOC_390_RELATIVE + - : BFD_RELOC_390_RELATIVE Adjust by program base. - -- : BFD_RELOC_390_GOTPC + - : BFD_RELOC_390_GOTPC 32 bit PC relative offset to GOT. - -- : BFD_RELOC_390_GOT16 + - : BFD_RELOC_390_GOT16 16 bit GOT offset. - -- : BFD_RELOC_390_PC16DBL + - : BFD_RELOC_390_PC16DBL PC relative 16 bit shifted by 1. - -- : BFD_RELOC_390_PLT16DBL + - : BFD_RELOC_390_PLT16DBL 16 bit PC rel. PLT shifted by 1. - -- : BFD_RELOC_390_PC32DBL + - : BFD_RELOC_390_PC32DBL PC relative 32 bit shifted by 1. - -- : BFD_RELOC_390_PLT32DBL + - : BFD_RELOC_390_PLT32DBL 32 bit PC rel. PLT shifted by 1. - -- : BFD_RELOC_390_GOTPCDBL + - : BFD_RELOC_390_GOTPCDBL 32 bit PC rel. GOT shifted by 1. - -- : BFD_RELOC_390_GOT64 + - : BFD_RELOC_390_GOT64 64 bit GOT offset. - -- : BFD_RELOC_390_PLT64 + - : BFD_RELOC_390_PLT64 64 bit PC relative PLT address. - -- : BFD_RELOC_390_GOTENT + - : BFD_RELOC_390_GOTENT 32 bit rel. offset to GOT entry. - -- : BFD_RELOC_390_GOTOFF64 + - : BFD_RELOC_390_GOTOFF64 64 bit offset to GOT. - -- : BFD_RELOC_390_GOTPLT12 + - : BFD_RELOC_390_GOTPLT12 12-bit offset to symbol-entry within GOT, with PLT handling. - -- : BFD_RELOC_390_GOTPLT16 + - : BFD_RELOC_390_GOTPLT16 16-bit offset to symbol-entry within GOT, with PLT handling. - -- : BFD_RELOC_390_GOTPLT32 + - : BFD_RELOC_390_GOTPLT32 32-bit offset to symbol-entry within GOT, with PLT handling. - -- : BFD_RELOC_390_GOTPLT64 + - : BFD_RELOC_390_GOTPLT64 64-bit offset to symbol-entry within GOT, with PLT handling. - -- : BFD_RELOC_390_GOTPLTENT + - : BFD_RELOC_390_GOTPLTENT 32-bit rel. offset to symbol-entry within GOT, with PLT handling. - -- : BFD_RELOC_390_PLTOFF16 + - : BFD_RELOC_390_PLTOFF16 16-bit rel. offset from the GOT to a PLT entry. - -- : BFD_RELOC_390_PLTOFF32 + - : BFD_RELOC_390_PLTOFF32 32-bit rel. offset from the GOT to a PLT entry. - -- : BFD_RELOC_390_PLTOFF64 + - : BFD_RELOC_390_PLTOFF64 64-bit rel. offset from the GOT to a PLT entry. - -- : BFD_RELOC_390_TLS_LOAD - -- : BFD_RELOC_390_TLS_GDCALL - -- : BFD_RELOC_390_TLS_LDCALL - -- : BFD_RELOC_390_TLS_GD32 - -- : BFD_RELOC_390_TLS_GD64 - -- : BFD_RELOC_390_TLS_GOTIE12 - -- : BFD_RELOC_390_TLS_GOTIE32 - -- : BFD_RELOC_390_TLS_GOTIE64 - -- : BFD_RELOC_390_TLS_LDM32 - -- : BFD_RELOC_390_TLS_LDM64 - -- : BFD_RELOC_390_TLS_IE32 - -- : BFD_RELOC_390_TLS_IE64 - -- : BFD_RELOC_390_TLS_IEENT - -- : BFD_RELOC_390_TLS_LE32 - -- : BFD_RELOC_390_TLS_LE64 - -- : BFD_RELOC_390_TLS_LDO32 - -- : BFD_RELOC_390_TLS_LDO64 - -- : BFD_RELOC_390_TLS_DTPMOD - -- : BFD_RELOC_390_TLS_DTPOFF - -- : BFD_RELOC_390_TLS_TPOFF + - : BFD_RELOC_390_TLS_LOAD + - : BFD_RELOC_390_TLS_GDCALL + - : BFD_RELOC_390_TLS_LDCALL + - : BFD_RELOC_390_TLS_GD32 + - : BFD_RELOC_390_TLS_GD64 + - : BFD_RELOC_390_TLS_GOTIE12 + - : BFD_RELOC_390_TLS_GOTIE32 + - : BFD_RELOC_390_TLS_GOTIE64 + - : BFD_RELOC_390_TLS_LDM32 + - : BFD_RELOC_390_TLS_LDM64 + - : BFD_RELOC_390_TLS_IE32 + - : BFD_RELOC_390_TLS_IE64 + - : BFD_RELOC_390_TLS_IEENT + - : BFD_RELOC_390_TLS_LE32 + - : BFD_RELOC_390_TLS_LE64 + - : BFD_RELOC_390_TLS_LDO32 + - : BFD_RELOC_390_TLS_LDO64 + - : BFD_RELOC_390_TLS_DTPMOD + - : BFD_RELOC_390_TLS_DTPOFF + - : BFD_RELOC_390_TLS_TPOFF s390 tls relocations. - -- : BFD_RELOC_390_20 - -- : BFD_RELOC_390_GOT20 - -- : BFD_RELOC_390_GOTPLT20 - -- : BFD_RELOC_390_TLS_GOTIE20 + - : BFD_RELOC_390_20 + - : BFD_RELOC_390_GOT20 + - : BFD_RELOC_390_GOTPLT20 + - : BFD_RELOC_390_TLS_GOTIE20 Long displacement extension. - -- : BFD_RELOC_IP2K_FR9 + - : BFD_RELOC_IP2K_FR9 Scenix IP2K - 9-bit register number / data address - -- : BFD_RELOC_IP2K_BANK + - : BFD_RELOC_IP2K_BANK Scenix IP2K - 4-bit register/data bank number - -- : BFD_RELOC_IP2K_ADDR16CJP + - : BFD_RELOC_IP2K_ADDR16CJP Scenix IP2K - low 13 bits of instruction word address - -- : BFD_RELOC_IP2K_PAGE3 + - : BFD_RELOC_IP2K_PAGE3 Scenix IP2K - high 3 bits of instruction word address - -- : BFD_RELOC_IP2K_LO8DATA - -- : BFD_RELOC_IP2K_HI8DATA - -- : BFD_RELOC_IP2K_EX8DATA + - : BFD_RELOC_IP2K_LO8DATA + - : BFD_RELOC_IP2K_HI8DATA + - : BFD_RELOC_IP2K_EX8DATA Scenix IP2K - ext/low/high 8 bits of data address - -- : BFD_RELOC_IP2K_LO8INSN - -- : BFD_RELOC_IP2K_HI8INSN + - : BFD_RELOC_IP2K_LO8INSN + - : BFD_RELOC_IP2K_HI8INSN Scenix IP2K - low/high 8 bits of instruction word address - -- : BFD_RELOC_IP2K_PC_SKIP + - : BFD_RELOC_IP2K_PC_SKIP Scenix IP2K - even/odd PC modifier to modify snb pcl.0 - -- : BFD_RELOC_IP2K_TEXT + - : BFD_RELOC_IP2K_TEXT Scenix IP2K - 16 bit word address in text section. - -- : BFD_RELOC_IP2K_FR_OFFSET + - : BFD_RELOC_IP2K_FR_OFFSET Scenix IP2K - 7-bit sp or dp offset - -- : BFD_RELOC_VPE4KMATH_DATA - -- : BFD_RELOC_VPE4KMATH_INSN + - : BFD_RELOC_VPE4KMATH_DATA + - : BFD_RELOC_VPE4KMATH_INSN Scenix VPE4K coprocessor - data/insn-space addressing - -- : BFD_RELOC_VTABLE_INHERIT - -- : BFD_RELOC_VTABLE_ENTRY + - : BFD_RELOC_VTABLE_INHERIT + - : BFD_RELOC_VTABLE_ENTRY These two relocations are used by the linker to determine which of the entries in a C++ virtual function table are actually used. When the -gc-sections option is given, the linker will zero out @@ -4213,322 +4214,336 @@ this offset is stored in the reloc's addend. For Rel hosts, we are forced to put this offset in the reloc's section offset. - -- : BFD_RELOC_IA64_IMM14 - -- : BFD_RELOC_IA64_IMM22 - -- : BFD_RELOC_IA64_IMM64 - -- : BFD_RELOC_IA64_DIR32MSB - -- : BFD_RELOC_IA64_DIR32LSB - -- : BFD_RELOC_IA64_DIR64MSB - -- : BFD_RELOC_IA64_DIR64LSB - -- : BFD_RELOC_IA64_GPREL22 - -- : BFD_RELOC_IA64_GPREL64I - -- : BFD_RELOC_IA64_GPREL32MSB - -- : BFD_RELOC_IA64_GPREL32LSB - -- : BFD_RELOC_IA64_GPREL64MSB - -- : BFD_RELOC_IA64_GPREL64LSB - -- : BFD_RELOC_IA64_LTOFF22 - -- : BFD_RELOC_IA64_LTOFF64I - -- : BFD_RELOC_IA64_PLTOFF22 - -- : BFD_RELOC_IA64_PLTOFF64I - -- : BFD_RELOC_IA64_PLTOFF64MSB - -- : BFD_RELOC_IA64_PLTOFF64LSB - -- : BFD_RELOC_IA64_FPTR64I - -- : BFD_RELOC_IA64_FPTR32MSB - -- : BFD_RELOC_IA64_FPTR32LSB - -- : BFD_RELOC_IA64_FPTR64MSB - -- : BFD_RELOC_IA64_FPTR64LSB - -- : BFD_RELOC_IA64_PCREL21B - -- : BFD_RELOC_IA64_PCREL21BI - -- : BFD_RELOC_IA64_PCREL21M - -- : BFD_RELOC_IA64_PCREL21F - -- : BFD_RELOC_IA64_PCREL22 - -- : BFD_RELOC_IA64_PCREL60B - -- : BFD_RELOC_IA64_PCREL64I - -- : BFD_RELOC_IA64_PCREL32MSB - -- : BFD_RELOC_IA64_PCREL32LSB - -- : BFD_RELOC_IA64_PCREL64MSB - -- : BFD_RELOC_IA64_PCREL64LSB - -- : BFD_RELOC_IA64_LTOFF_FPTR22 - -- : BFD_RELOC_IA64_LTOFF_FPTR64I - -- : BFD_RELOC_IA64_LTOFF_FPTR32MSB - -- : BFD_RELOC_IA64_LTOFF_FPTR32LSB - -- : BFD_RELOC_IA64_LTOFF_FPTR64MSB - -- : BFD_RELOC_IA64_LTOFF_FPTR64LSB - -- : BFD_RELOC_IA64_SEGREL32MSB - -- : BFD_RELOC_IA64_SEGREL32LSB - -- : BFD_RELOC_IA64_SEGREL64MSB - -- : BFD_RELOC_IA64_SEGREL64LSB - -- : BFD_RELOC_IA64_SECREL32MSB - -- : BFD_RELOC_IA64_SECREL32LSB - -- : BFD_RELOC_IA64_SECREL64MSB - -- : BFD_RELOC_IA64_SECREL64LSB - -- : BFD_RELOC_IA64_REL32MSB - -- : BFD_RELOC_IA64_REL32LSB - -- : BFD_RELOC_IA64_REL64MSB - -- : BFD_RELOC_IA64_REL64LSB - -- : BFD_RELOC_IA64_LTV32MSB - -- : BFD_RELOC_IA64_LTV32LSB - -- : BFD_RELOC_IA64_LTV64MSB - -- : BFD_RELOC_IA64_LTV64LSB - -- : BFD_RELOC_IA64_IPLTMSB - -- : BFD_RELOC_IA64_IPLTLSB - -- : BFD_RELOC_IA64_COPY - -- : BFD_RELOC_IA64_LTOFF22X - -- : BFD_RELOC_IA64_LDXMOV - -- : BFD_RELOC_IA64_TPREL14 - -- : BFD_RELOC_IA64_TPREL22 - -- : BFD_RELOC_IA64_TPREL64I - -- : BFD_RELOC_IA64_TPREL64MSB - -- : BFD_RELOC_IA64_TPREL64LSB - -- : BFD_RELOC_IA64_LTOFF_TPREL22 - -- : BFD_RELOC_IA64_DTPMOD64MSB - -- : BFD_RELOC_IA64_DTPMOD64LSB - -- : BFD_RELOC_IA64_LTOFF_DTPMOD22 - -- : BFD_RELOC_IA64_DTPREL14 - -- : BFD_RELOC_IA64_DTPREL22 - -- : BFD_RELOC_IA64_DTPREL64I - -- : BFD_RELOC_IA64_DTPREL32MSB - -- : BFD_RELOC_IA64_DTPREL32LSB - -- : BFD_RELOC_IA64_DTPREL64MSB - -- : BFD_RELOC_IA64_DTPREL64LSB - -- : BFD_RELOC_IA64_LTOFF_DTPREL22 + - : BFD_RELOC_IA64_IMM14 + - : BFD_RELOC_IA64_IMM22 + - : BFD_RELOC_IA64_IMM64 + - : BFD_RELOC_IA64_DIR32MSB + - : BFD_RELOC_IA64_DIR32LSB + - : BFD_RELOC_IA64_DIR64MSB + - : BFD_RELOC_IA64_DIR64LSB + - : BFD_RELOC_IA64_GPREL22 + - : BFD_RELOC_IA64_GPREL64I + - : BFD_RELOC_IA64_GPREL32MSB + - : BFD_RELOC_IA64_GPREL32LSB + - : BFD_RELOC_IA64_GPREL64MSB + - : BFD_RELOC_IA64_GPREL64LSB + - : BFD_RELOC_IA64_LTOFF22 + - : BFD_RELOC_IA64_LTOFF64I + - : BFD_RELOC_IA64_PLTOFF22 + - : BFD_RELOC_IA64_PLTOFF64I + - : BFD_RELOC_IA64_PLTOFF64MSB + - : BFD_RELOC_IA64_PLTOFF64LSB + - : BFD_RELOC_IA64_FPTR64I + - : BFD_RELOC_IA64_FPTR32MSB + - : BFD_RELOC_IA64_FPTR32LSB + - : BFD_RELOC_IA64_FPTR64MSB + - : BFD_RELOC_IA64_FPTR64LSB + - : BFD_RELOC_IA64_PCREL21B + - : BFD_RELOC_IA64_PCREL21BI + - : BFD_RELOC_IA64_PCREL21M + - : BFD_RELOC_IA64_PCREL21F + - : BFD_RELOC_IA64_PCREL22 + - : BFD_RELOC_IA64_PCREL60B + - : BFD_RELOC_IA64_PCREL64I + - : BFD_RELOC_IA64_PCREL32MSB + - : BFD_RELOC_IA64_PCREL32LSB + - : BFD_RELOC_IA64_PCREL64MSB + - : BFD_RELOC_IA64_PCREL64LSB + - : BFD_RELOC_IA64_LTOFF_FPTR22 + - : BFD_RELOC_IA64_LTOFF_FPTR64I + - : BFD_RELOC_IA64_LTOFF_FPTR32MSB + - : BFD_RELOC_IA64_LTOFF_FPTR32LSB + - : BFD_RELOC_IA64_LTOFF_FPTR64MSB + - : BFD_RELOC_IA64_LTOFF_FPTR64LSB + - : BFD_RELOC_IA64_SEGREL32MSB + - : BFD_RELOC_IA64_SEGREL32LSB + - : BFD_RELOC_IA64_SEGREL64MSB + - : BFD_RELOC_IA64_SEGREL64LSB + - : BFD_RELOC_IA64_SECREL32MSB + - : BFD_RELOC_IA64_SECREL32LSB + - : BFD_RELOC_IA64_SECREL64MSB + - : BFD_RELOC_IA64_SECREL64LSB + - : BFD_RELOC_IA64_REL32MSB + - : BFD_RELOC_IA64_REL32LSB + - : BFD_RELOC_IA64_REL64MSB + - : BFD_RELOC_IA64_REL64LSB + - : BFD_RELOC_IA64_LTV32MSB + - : BFD_RELOC_IA64_LTV32LSB + - : BFD_RELOC_IA64_LTV64MSB + - : BFD_RELOC_IA64_LTV64LSB + - : BFD_RELOC_IA64_IPLTMSB + - : BFD_RELOC_IA64_IPLTLSB + - : BFD_RELOC_IA64_COPY + - : BFD_RELOC_IA64_LTOFF22X + - : BFD_RELOC_IA64_LDXMOV + - : BFD_RELOC_IA64_TPREL14 + - : BFD_RELOC_IA64_TPREL22 + - : BFD_RELOC_IA64_TPREL64I + - : BFD_RELOC_IA64_TPREL64MSB + - : BFD_RELOC_IA64_TPREL64LSB + - : BFD_RELOC_IA64_LTOFF_TPREL22 + - : BFD_RELOC_IA64_DTPMOD64MSB + - : BFD_RELOC_IA64_DTPMOD64LSB + - : BFD_RELOC_IA64_LTOFF_DTPMOD22 + - : BFD_RELOC_IA64_DTPREL14 + - : BFD_RELOC_IA64_DTPREL22 + - : BFD_RELOC_IA64_DTPREL64I + - : BFD_RELOC_IA64_DTPREL32MSB + - : BFD_RELOC_IA64_DTPREL32LSB + - : BFD_RELOC_IA64_DTPREL64MSB + - : BFD_RELOC_IA64_DTPREL64LSB + - : BFD_RELOC_IA64_LTOFF_DTPREL22 Intel IA64 Relocations. - -- : BFD_RELOC_M68HC11_HI8 + - : BFD_RELOC_M68HC11_HI8 Motorola 68HC11 reloc. This is the 8 bit high part of an absolute address. - -- : BFD_RELOC_M68HC11_LO8 + - : BFD_RELOC_M68HC11_LO8 Motorola 68HC11 reloc. This is the 8 bit low part of an absolute address. - -- : BFD_RELOC_M68HC11_3B + - : BFD_RELOC_M68HC11_3B Motorola 68HC11 reloc. This is the 3 bit of a value. - -- : BFD_RELOC_M68HC11_RL_JUMP + - : BFD_RELOC_M68HC11_RL_JUMP Motorola 68HC11 reloc. This reloc marks the beginning of a jump/call instruction. It is used for linker relaxation to correctly identify beginning of instruction and change some branches to use PC-relative addressing mode. - -- : BFD_RELOC_M68HC11_RL_GROUP + - : BFD_RELOC_M68HC11_RL_GROUP Motorola 68HC11 reloc. This reloc marks a group of several instructions that gcc generates and for which the linker relaxation pass can modify and/or remove some of them. - -- : BFD_RELOC_M68HC11_LO16 + - : BFD_RELOC_M68HC11_LO16 Motorola 68HC11 reloc. This is the 16-bit lower part of an address. It is used for 'call' instruction to specify the symbol address without any special transformation (due to memory bank window). - -- : BFD_RELOC_M68HC11_PAGE + - : BFD_RELOC_M68HC11_PAGE Motorola 68HC11 reloc. This is a 8-bit reloc that specifies the page number of an address. It is used by 'call' instruction to specify the page number of the symbol. - -- : BFD_RELOC_M68HC11_24 + - : BFD_RELOC_M68HC11_24 Motorola 68HC11 reloc. This is a 24-bit reloc that represents the address with a 16-bit value and a 8-bit page number. The symbol address is transformed to follow the 16K memory bank of 68HC12 (seen as mapped in the window). - -- : BFD_RELOC_M68HC12_5B + - : BFD_RELOC_M68HC12_5B Motorola 68HC12 reloc. This is the 5 bits of a value. - -- : BFD_RELOC_16C_NUM08 - -- : BFD_RELOC_16C_NUM08_C - -- : BFD_RELOC_16C_NUM16 - -- : BFD_RELOC_16C_NUM16_C - -- : BFD_RELOC_16C_NUM32 - -- : BFD_RELOC_16C_NUM32_C - -- : BFD_RELOC_16C_DISP04 - -- : BFD_RELOC_16C_DISP04_C - -- : BFD_RELOC_16C_DISP08 - -- : BFD_RELOC_16C_DISP08_C - -- : BFD_RELOC_16C_DISP16 - -- : BFD_RELOC_16C_DISP16_C - -- : BFD_RELOC_16C_DISP24 - -- : BFD_RELOC_16C_DISP24_C - -- : BFD_RELOC_16C_DISP24a - -- : BFD_RELOC_16C_DISP24a_C - -- : BFD_RELOC_16C_REG04 - -- : BFD_RELOC_16C_REG04_C - -- : BFD_RELOC_16C_REG04a - -- : BFD_RELOC_16C_REG04a_C - -- : BFD_RELOC_16C_REG14 - -- : BFD_RELOC_16C_REG14_C - -- : BFD_RELOC_16C_REG16 - -- : BFD_RELOC_16C_REG16_C - -- : BFD_RELOC_16C_REG20 - -- : BFD_RELOC_16C_REG20_C - -- : BFD_RELOC_16C_ABS20 - -- : BFD_RELOC_16C_ABS20_C - -- : BFD_RELOC_16C_ABS24 - -- : BFD_RELOC_16C_ABS24_C - -- : BFD_RELOC_16C_IMM04 - -- : BFD_RELOC_16C_IMM04_C - -- : BFD_RELOC_16C_IMM16 - -- : BFD_RELOC_16C_IMM16_C - -- : BFD_RELOC_16C_IMM20 - -- : BFD_RELOC_16C_IMM20_C - -- : BFD_RELOC_16C_IMM24 - -- : BFD_RELOC_16C_IMM24_C - -- : BFD_RELOC_16C_IMM32 - -- : BFD_RELOC_16C_IMM32_C + - : BFD_RELOC_16C_NUM08 + - : BFD_RELOC_16C_NUM08_C + - : BFD_RELOC_16C_NUM16 + - : BFD_RELOC_16C_NUM16_C + - : BFD_RELOC_16C_NUM32 + - : BFD_RELOC_16C_NUM32_C + - : BFD_RELOC_16C_DISP04 + - : BFD_RELOC_16C_DISP04_C + - : BFD_RELOC_16C_DISP08 + - : BFD_RELOC_16C_DISP08_C + - : BFD_RELOC_16C_DISP16 + - : BFD_RELOC_16C_DISP16_C + - : BFD_RELOC_16C_DISP24 + - : BFD_RELOC_16C_DISP24_C + - : BFD_RELOC_16C_DISP24a + - : BFD_RELOC_16C_DISP24a_C + - : BFD_RELOC_16C_REG04 + - : BFD_RELOC_16C_REG04_C + - : BFD_RELOC_16C_REG04a + - : BFD_RELOC_16C_REG04a_C + - : BFD_RELOC_16C_REG14 + - : BFD_RELOC_16C_REG14_C + - : BFD_RELOC_16C_REG16 + - : BFD_RELOC_16C_REG16_C + - : BFD_RELOC_16C_REG20 + - : BFD_RELOC_16C_REG20_C + - : BFD_RELOC_16C_ABS20 + - : BFD_RELOC_16C_ABS20_C + - : BFD_RELOC_16C_ABS24 + - : BFD_RELOC_16C_ABS24_C + - : BFD_RELOC_16C_IMM04 + - : BFD_RELOC_16C_IMM04_C + - : BFD_RELOC_16C_IMM16 + - : BFD_RELOC_16C_IMM16_C + - : BFD_RELOC_16C_IMM20 + - : BFD_RELOC_16C_IMM20_C + - : BFD_RELOC_16C_IMM24 + - : BFD_RELOC_16C_IMM24_C + - : BFD_RELOC_16C_IMM32 + - : BFD_RELOC_16C_IMM32_C NS CR16C Relocations. - -- : BFD_RELOC_CRX_REL4 - -- : BFD_RELOC_CRX_REL8 - -- : BFD_RELOC_CRX_REL8_CMP - -- : BFD_RELOC_CRX_REL16 - -- : BFD_RELOC_CRX_REL24 - -- : BFD_RELOC_CRX_REL32 - -- : BFD_RELOC_CRX_REGREL12 - -- : BFD_RELOC_CRX_REGREL22 - -- : BFD_RELOC_CRX_REGREL28 - -- : BFD_RELOC_CRX_REGREL32 - -- : BFD_RELOC_CRX_ABS16 - -- : BFD_RELOC_CRX_ABS32 - -- : BFD_RELOC_CRX_NUM8 - -- : BFD_RELOC_CRX_NUM16 - -- : BFD_RELOC_CRX_NUM32 - -- : BFD_RELOC_CRX_IMM16 - -- : BFD_RELOC_CRX_IMM32 - -- : BFD_RELOC_CRX_SWITCH8 - -- : BFD_RELOC_CRX_SWITCH16 - -- : BFD_RELOC_CRX_SWITCH32 + - : BFD_RELOC_CRX_REL4 + - : BFD_RELOC_CRX_REL8 + - : BFD_RELOC_CRX_REL8_CMP + - : BFD_RELOC_CRX_REL16 + - : BFD_RELOC_CRX_REL24 + - : BFD_RELOC_CRX_REL32 + - : BFD_RELOC_CRX_REGREL12 + - : BFD_RELOC_CRX_REGREL22 + - : BFD_RELOC_CRX_REGREL28 + - : BFD_RELOC_CRX_REGREL32 + - : BFD_RELOC_CRX_ABS16 + - : BFD_RELOC_CRX_ABS32 + - : BFD_RELOC_CRX_NUM8 + - : BFD_RELOC_CRX_NUM16 + - : BFD_RELOC_CRX_NUM32 + - : BFD_RELOC_CRX_IMM16 + - : BFD_RELOC_CRX_IMM32 + - : BFD_RELOC_CRX_SWITCH8 + - : BFD_RELOC_CRX_SWITCH16 + - : BFD_RELOC_CRX_SWITCH32 NS CRX Relocations. - -- : BFD_RELOC_CRIS_BDISP8 - -- : BFD_RELOC_CRIS_UNSIGNED_5 - -- : BFD_RELOC_CRIS_SIGNED_6 - -- : BFD_RELOC_CRIS_UNSIGNED_6 - -- : BFD_RELOC_CRIS_SIGNED_8 - -- : BFD_RELOC_CRIS_UNSIGNED_8 - -- : BFD_RELOC_CRIS_SIGNED_16 - -- : BFD_RELOC_CRIS_UNSIGNED_16 - -- : BFD_RELOC_CRIS_LAPCQ_OFFSET - -- : BFD_RELOC_CRIS_UNSIGNED_4 + - : BFD_RELOC_CRIS_BDISP8 + - : BFD_RELOC_CRIS_UNSIGNED_5 + - : BFD_RELOC_CRIS_SIGNED_6 + - : BFD_RELOC_CRIS_UNSIGNED_6 + - : BFD_RELOC_CRIS_SIGNED_8 + - : BFD_RELOC_CRIS_UNSIGNED_8 + - : BFD_RELOC_CRIS_SIGNED_16 + - : BFD_RELOC_CRIS_UNSIGNED_16 + - : BFD_RELOC_CRIS_LAPCQ_OFFSET + - : BFD_RELOC_CRIS_UNSIGNED_4 These relocs are only used within the CRIS assembler. They are not (at present) written to any object files. - -- : BFD_RELOC_CRIS_COPY - -- : BFD_RELOC_CRIS_GLOB_DAT - -- : BFD_RELOC_CRIS_JUMP_SLOT - -- : BFD_RELOC_CRIS_RELATIVE + - : BFD_RELOC_CRIS_COPY + - : BFD_RELOC_CRIS_GLOB_DAT + - : BFD_RELOC_CRIS_JUMP_SLOT + - : BFD_RELOC_CRIS_RELATIVE Relocs used in ELF shared libraries for CRIS. - -- : BFD_RELOC_CRIS_32_GOT + - : BFD_RELOC_CRIS_32_GOT 32-bit offset to symbol-entry within GOT. - -- : BFD_RELOC_CRIS_16_GOT + - : BFD_RELOC_CRIS_16_GOT 16-bit offset to symbol-entry within GOT. - -- : BFD_RELOC_CRIS_32_GOTPLT + - : BFD_RELOC_CRIS_32_GOTPLT 32-bit offset to symbol-entry within GOT, with PLT handling. - -- : BFD_RELOC_CRIS_16_GOTPLT + - : BFD_RELOC_CRIS_16_GOTPLT 16-bit offset to symbol-entry within GOT, with PLT handling. - -- : BFD_RELOC_CRIS_32_GOTREL + - : BFD_RELOC_CRIS_32_GOTREL 32-bit offset to symbol, relative to GOT. - -- : BFD_RELOC_CRIS_32_PLT_GOTREL + - : BFD_RELOC_CRIS_32_PLT_GOTREL 32-bit offset to symbol with PLT entry, relative to GOT. - -- : BFD_RELOC_CRIS_32_PLT_PCREL + - : BFD_RELOC_CRIS_32_PLT_PCREL 32-bit offset to symbol with PLT entry, relative to this relocation. - -- : BFD_RELOC_860_COPY - -- : BFD_RELOC_860_GLOB_DAT - -- : BFD_RELOC_860_JUMP_SLOT - -- : BFD_RELOC_860_RELATIVE - -- : BFD_RELOC_860_PC26 - -- : BFD_RELOC_860_PLT26 - -- : BFD_RELOC_860_PC16 - -- : BFD_RELOC_860_LOW0 - -- : BFD_RELOC_860_SPLIT0 - -- : BFD_RELOC_860_LOW1 - -- : BFD_RELOC_860_SPLIT1 - -- : BFD_RELOC_860_LOW2 - -- : BFD_RELOC_860_SPLIT2 - -- : BFD_RELOC_860_LOW3 - -- : BFD_RELOC_860_LOGOT0 - -- : BFD_RELOC_860_SPGOT0 - -- : BFD_RELOC_860_LOGOT1 - -- : BFD_RELOC_860_SPGOT1 - -- : BFD_RELOC_860_LOGOTOFF0 - -- : BFD_RELOC_860_SPGOTOFF0 - -- : BFD_RELOC_860_LOGOTOFF1 - -- : BFD_RELOC_860_SPGOTOFF1 - -- : BFD_RELOC_860_LOGOTOFF2 - -- : BFD_RELOC_860_LOGOTOFF3 - -- : BFD_RELOC_860_LOPC - -- : BFD_RELOC_860_HIGHADJ - -- : BFD_RELOC_860_HAGOT - -- : BFD_RELOC_860_HAGOTOFF - -- : BFD_RELOC_860_HAPC - -- : BFD_RELOC_860_HIGH - -- : BFD_RELOC_860_HIGOT - -- : BFD_RELOC_860_HIGOTOFF + - : BFD_RELOC_860_COPY + - : BFD_RELOC_860_GLOB_DAT + - : BFD_RELOC_860_JUMP_SLOT + - : BFD_RELOC_860_RELATIVE + - : BFD_RELOC_860_PC26 + - : BFD_RELOC_860_PLT26 + - : BFD_RELOC_860_PC16 + - : BFD_RELOC_860_LOW0 + - : BFD_RELOC_860_SPLIT0 + - : BFD_RELOC_860_LOW1 + - : BFD_RELOC_860_SPLIT1 + - : BFD_RELOC_860_LOW2 + - : BFD_RELOC_860_SPLIT2 + - : BFD_RELOC_860_LOW3 + - : BFD_RELOC_860_LOGOT0 + - : BFD_RELOC_860_SPGOT0 + - : BFD_RELOC_860_LOGOT1 + - : BFD_RELOC_860_SPGOT1 + - : BFD_RELOC_860_LOGOTOFF0 + - : BFD_RELOC_860_SPGOTOFF0 + - : BFD_RELOC_860_LOGOTOFF1 + - : BFD_RELOC_860_SPGOTOFF1 + - : BFD_RELOC_860_LOGOTOFF2 + - : BFD_RELOC_860_LOGOTOFF3 + - : BFD_RELOC_860_LOPC + - : BFD_RELOC_860_HIGHADJ + - : BFD_RELOC_860_HAGOT + - : BFD_RELOC_860_HAGOTOFF + - : BFD_RELOC_860_HAPC + - : BFD_RELOC_860_HIGH + - : BFD_RELOC_860_HIGOT + - : BFD_RELOC_860_HIGOTOFF Intel i860 Relocations. - -- : BFD_RELOC_OPENRISC_ABS_26 - -- : BFD_RELOC_OPENRISC_REL_26 + - : BFD_RELOC_SPU_IMM7 + - : BFD_RELOC_SPU_IMM8 + - : BFD_RELOC_SPU_IMM10 + - : BFD_RELOC_SPU_IMM10W + - : BFD_RELOC_SPU_IMM16 + - : BFD_RELOC_SPU_IMM16W + - : BFD_RELOC_SPU_IMM18 + - : BFD_RELOC_SPU_PCREL9a + - : BFD_RELOC_SPU_PCREL9b + - : BFD_RELOC_SPU_PCREL16 + - : BFD_RELOC_SPU_LO16 + - : BFD_RELOC_SPU_HI16 + SPU Relocations. + + - : BFD_RELOC_OPENRISC_ABS_26 + - : BFD_RELOC_OPENRISC_REL_26 OpenRISC Relocations. - -- : BFD_RELOC_H8_DIR16A8 - -- : BFD_RELOC_H8_DIR16R8 - -- : BFD_RELOC_H8_DIR24A8 - -- : BFD_RELOC_H8_DIR24R8 - -- : BFD_RELOC_H8_DIR32A16 + - : BFD_RELOC_H8_DIR16A8 + - : BFD_RELOC_H8_DIR16R8 + - : BFD_RELOC_H8_DIR24A8 + - : BFD_RELOC_H8_DIR24R8 + - : BFD_RELOC_H8_DIR32A16 H8 elf Relocations. - -- : BFD_RELOC_XSTORMY16_REL_12 - -- : BFD_RELOC_XSTORMY16_12 - -- : BFD_RELOC_XSTORMY16_24 - -- : BFD_RELOC_XSTORMY16_FPTR16 + - : BFD_RELOC_XSTORMY16_REL_12 + - : BFD_RELOC_XSTORMY16_12 + - : BFD_RELOC_XSTORMY16_24 + - : BFD_RELOC_XSTORMY16_FPTR16 Sony Xstormy16 Relocations. - -- : BFD_RELOC_VAX_GLOB_DAT - -- : BFD_RELOC_VAX_JMP_SLOT - -- : BFD_RELOC_VAX_RELATIVE + - : BFD_RELOC_VAX_GLOB_DAT + - : BFD_RELOC_VAX_JMP_SLOT + - : BFD_RELOC_VAX_RELATIVE Relocations used by VAX ELF. - -- : BFD_RELOC_MSP430_10_PCREL - -- : BFD_RELOC_MSP430_16_PCREL - -- : BFD_RELOC_MSP430_16 - -- : BFD_RELOC_MSP430_16_PCREL_BYTE - -- : BFD_RELOC_MSP430_16_BYTE - -- : BFD_RELOC_MSP430_2X_PCREL - -- : BFD_RELOC_MSP430_RL_PCREL + - : BFD_RELOC_MSP430_10_PCREL + - : BFD_RELOC_MSP430_16_PCREL + - : BFD_RELOC_MSP430_16 + - : BFD_RELOC_MSP430_16_PCREL_BYTE + - : BFD_RELOC_MSP430_16_BYTE + - : BFD_RELOC_MSP430_2X_PCREL + - : BFD_RELOC_MSP430_RL_PCREL msp430 specific relocation codes - -- : BFD_RELOC_IQ2000_OFFSET_16 - -- : BFD_RELOC_IQ2000_OFFSET_21 - -- : BFD_RELOC_IQ2000_UHI16 + - : BFD_RELOC_IQ2000_OFFSET_16 + - : BFD_RELOC_IQ2000_OFFSET_21 + - : BFD_RELOC_IQ2000_UHI16 IQ2000 Relocations. - -- : BFD_RELOC_XTENSA_RTLD + - : BFD_RELOC_XTENSA_RTLD Special Xtensa relocation used only by PLT entries in ELF shared objects to indicate that the runtime linker should set the value to one of its own internal functions or data structures. - -- : BFD_RELOC_XTENSA_GLOB_DAT - -- : BFD_RELOC_XTENSA_JMP_SLOT - -- : BFD_RELOC_XTENSA_RELATIVE + - : BFD_RELOC_XTENSA_GLOB_DAT + - : BFD_RELOC_XTENSA_JMP_SLOT + - : BFD_RELOC_XTENSA_RELATIVE Xtensa relocations for ELF shared objects. - -- : BFD_RELOC_XTENSA_PLT + - : BFD_RELOC_XTENSA_PLT Xtensa relocation used in ELF object files for symbols that may require PLT entries. Otherwise, this is just a generic 32-bit relocation. - -- : BFD_RELOC_XTENSA_DIFF8 - -- : BFD_RELOC_XTENSA_DIFF16 - -- : BFD_RELOC_XTENSA_DIFF32 + - : BFD_RELOC_XTENSA_DIFF8 + - : BFD_RELOC_XTENSA_DIFF16 + - : BFD_RELOC_XTENSA_DIFF32 Xtensa relocations to mark the difference of two local symbols. These are only needed to support linker relaxation and can be ignored when not relaxing. The field is set to the value of the @@ -4536,95 +4551,95 @@ position of the first symbol so the linker can determine whether to adjust the field value. - -- : BFD_RELOC_XTENSA_SLOT0_OP - -- : BFD_RELOC_XTENSA_SLOT1_OP - -- : BFD_RELOC_XTENSA_SLOT2_OP - -- : BFD_RELOC_XTENSA_SLOT3_OP - -- : BFD_RELOC_XTENSA_SLOT4_OP - -- : BFD_RELOC_XTENSA_SLOT5_OP - -- : BFD_RELOC_XTENSA_SLOT6_OP - -- : BFD_RELOC_XTENSA_SLOT7_OP - -- : BFD_RELOC_XTENSA_SLOT8_OP - -- : BFD_RELOC_XTENSA_SLOT9_OP - -- : BFD_RELOC_XTENSA_SLOT10_OP - -- : BFD_RELOC_XTENSA_SLOT11_OP - -- : BFD_RELOC_XTENSA_SLOT12_OP - -- : BFD_RELOC_XTENSA_SLOT13_OP - -- : BFD_RELOC_XTENSA_SLOT14_OP + - : BFD_RELOC_XTENSA_SLOT0_OP + - : BFD_RELOC_XTENSA_SLOT1_OP + - : BFD_RELOC_XTENSA_SLOT2_OP + - : BFD_RELOC_XTENSA_SLOT3_OP + - : BFD_RELOC_XTENSA_SLOT4_OP + - : BFD_RELOC_XTENSA_SLOT5_OP + - : BFD_RELOC_XTENSA_SLOT6_OP + - : BFD_RELOC_XTENSA_SLOT7_OP + - : BFD_RELOC_XTENSA_SLOT8_OP + - : BFD_RELOC_XTENSA_SLOT9_OP + - : BFD_RELOC_XTENSA_SLOT10_OP + - : BFD_RELOC_XTENSA_SLOT11_OP + - : BFD_RELOC_XTENSA_SLOT12_OP + - : BFD_RELOC_XTENSA_SLOT13_OP + - : BFD_RELOC_XTENSA_SLOT14_OP Generic Xtensa relocations for instruction operands. Only the slot number is encoded in the relocation. The relocation applies to the last PC-relative immediate operand, or if there are no PC-relative immediates, to the last immediate operand. - -- : BFD_RELOC_XTENSA_SLOT0_ALT - -- : BFD_RELOC_XTENSA_SLOT1_ALT - -- : BFD_RELOC_XTENSA_SLOT2_ALT - -- : BFD_RELOC_XTENSA_SLOT3_ALT - -- : BFD_RELOC_XTENSA_SLOT4_ALT - -- : BFD_RELOC_XTENSA_SLOT5_ALT - -- : BFD_RELOC_XTENSA_SLOT6_ALT - -- : BFD_RELOC_XTENSA_SLOT7_ALT - -- : BFD_RELOC_XTENSA_SLOT8_ALT - -- : BFD_RELOC_XTENSA_SLOT9_ALT - -- : BFD_RELOC_XTENSA_SLOT10_ALT - -- : BFD_RELOC_XTENSA_SLOT11_ALT - -- : BFD_RELOC_XTENSA_SLOT12_ALT - -- : BFD_RELOC_XTENSA_SLOT13_ALT - -- : BFD_RELOC_XTENSA_SLOT14_ALT + - : BFD_RELOC_XTENSA_SLOT0_ALT + - : BFD_RELOC_XTENSA_SLOT1_ALT + - : BFD_RELOC_XTENSA_SLOT2_ALT + - : BFD_RELOC_XTENSA_SLOT3_ALT + - : BFD_RELOC_XTENSA_SLOT4_ALT + - : BFD_RELOC_XTENSA_SLOT5_ALT + - : BFD_RELOC_XTENSA_SLOT6_ALT + - : BFD_RELOC_XTENSA_SLOT7_ALT + - : BFD_RELOC_XTENSA_SLOT8_ALT + - : BFD_RELOC_XTENSA_SLOT9_ALT + - : BFD_RELOC_XTENSA_SLOT10_ALT + - : BFD_RELOC_XTENSA_SLOT11_ALT + - : BFD_RELOC_XTENSA_SLOT12_ALT + - : BFD_RELOC_XTENSA_SLOT13_ALT + - : BFD_RELOC_XTENSA_SLOT14_ALT Alternate Xtensa relocations. Only the slot is encoded in the relocation. The meaning of these relocations is opcode-specific. - -- : BFD_RELOC_XTENSA_OP0 - -- : BFD_RELOC_XTENSA_OP1 - -- : BFD_RELOC_XTENSA_OP2 + - : BFD_RELOC_XTENSA_OP0 + - : BFD_RELOC_XTENSA_OP1 + - : BFD_RELOC_XTENSA_OP2 Xtensa relocations for backward compatibility. These have all been replaced by BFD_RELOC_XTENSA_SLOT0_OP. - -- : BFD_RELOC_XTENSA_ASM_EXPAND + - : BFD_RELOC_XTENSA_ASM_EXPAND Xtensa relocation to mark that the assembler expanded the instructions from an original target. The expansion size is encoded in the reloc size. - -- : BFD_RELOC_XTENSA_ASM_SIMPLIFY + - : BFD_RELOC_XTENSA_ASM_SIMPLIFY Xtensa relocation to mark that the linker should simplify assembler-expanded instructions. This is commonly used internally by the linker after analysis of a BFD_RELOC_XTENSA_ASM_EXPAND. typedef enum bfd_reloc_code_real bfd_reloc_code_real_type; - -2.11.0.2 `bfd_reloc_type_lookup' -................................ -*Synopsis* +`bfd_reloc_type_lookup' +....................... + + *Synopsis* reloc_howto_type *bfd_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code); *Description* Return a pointer to a howto structure which, when invoked, will perform the relocation CODE on data from the architecture noted. -2.11.0.3 `bfd_default_reloc_type_lookup' -........................................ +`bfd_default_reloc_type_lookup' +............................... -*Synopsis* + *Synopsis* reloc_howto_type *bfd_default_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code); *Description* Provides a default relocation lookup routine for any architecture. -2.11.0.4 `bfd_get_reloc_code_name' -.................................. +`bfd_get_reloc_code_name' +......................... -*Synopsis* + *Synopsis* const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code); *Description* Provides a printable name for the supplied relocation code. Useful mainly for printing error messages. -2.11.0.5 `bfd_generic_relax_section' -.................................... +`bfd_generic_relax_section' +........................... -*Synopsis* + *Synopsis* bfd_boolean bfd_generic_relax_section (bfd *abfd, asection *section, @@ -4634,30 +4649,30 @@ Provides default handling for relaxing for back ends which don't do relaxing. -2.11.0.6 `bfd_generic_gc_sections' -.................................. +`bfd_generic_gc_sections' +......................... -*Synopsis* + *Synopsis* bfd_boolean bfd_generic_gc_sections (bfd *, struct bfd_link_info *); *Description* Provides default handling for relaxing for back ends which don't do section gc - i.e., does nothing. -2.11.0.7 `bfd_generic_merge_sections' -..................................... +`bfd_generic_merge_sections' +............................ -*Synopsis* + *Synopsis* bfd_boolean bfd_generic_merge_sections (bfd *, struct bfd_link_info *); *Description* Provides default handling for SEC_MERGE section merging for back ends which don't have SEC_MERGE support - i.e., does nothing. -2.11.0.8 `bfd_generic_get_relocated_section_contents' -..................................................... +`bfd_generic_get_relocated_section_contents' +............................................ -*Synopsis* + *Synopsis* bfd_byte *bfd_generic_get_relocated_section_contents (bfd *abfd, struct bfd_link_info *link_info, @@ -4672,34 +4687,34 @@  File: bfd.info, Node: Core Files, Next: Targets, Prev: Relocations, Up: BFD front end -2.12 Core files -=============== +Core files +========== -*Description* + *Description* These are functions pertaining to core files. -2.12.0.1 `bfd_core_file_failing_command' -........................................ +`bfd_core_file_failing_command' +............................... -*Synopsis* + *Synopsis* const char *bfd_core_file_failing_command (bfd *abfd); *Description* Return a read-only string explaining which program was running when it failed and produced the core file ABFD. -2.12.0.2 `bfd_core_file_failing_signal' -....................................... +`bfd_core_file_failing_signal' +.............................. -*Synopsis* + *Synopsis* int bfd_core_file_failing_signal (bfd *abfd); *Description* Returns the signal number which caused the core dump which generated the file the BFD ABFD is attached to. -2.12.0.3 `core_file_matches_executable_p' -......................................... +`core_file_matches_executable_p' +................................ -*Synopsis* + *Synopsis* bfd_boolean core_file_matches_executable_p (bfd *core_bfd, bfd *exec_bfd); *Description* @@ -4709,10 +4724,10 @@  File: bfd.info, Node: Targets, Next: Architectures, Prev: Core Files, Up: BFD front end -2.13 Targets -============ +Targets +======= -*Description* + *Description* Each port of BFD to a different machine requires the creation of a target back end. All the back end provides to the root part of BFD is a structure containing pointers to functions which perform certain low @@ -4759,10 +4774,10 @@  File: bfd.info, Node: bfd_target, Prev: Targets, Up: Targets -2.13.1 bfd_target ------------------ +bfd_target +---------- -*Description* + *Description* This structure contains everything that BFD knows about a target. It includes things like its byte order, name, and which routines to call to do various operations. @@ -4779,7 +4794,7 @@ wants to fix this and not break the above, please do. #define BFD_SEND(bfd, message, arglist) \ ((*((bfd)->xvec->message)) arglist) - + #ifdef DEBUG_BFD_SEND #undef BFD_SEND #define BFD_SEND(bfd, message, arglist) \ @@ -4790,7 +4805,7 @@ For operations which index on the BFD format: #define BFD_SEND_FMT(bfd, message, arglist) \ (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist) - + #ifdef DEBUG_BFD_SEND #undef BFD_SEND_FMT #define BFD_SEND_FMT(bfd, message, arglist) \ @@ -4831,45 +4846,45 @@ bfd_target_pef_xlib_flavour, bfd_target_sym_flavour }; - + enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN }; - + /* Forward declaration. */ typedef struct bfd_link_info _bfd_link_info; - + typedef struct bfd_target { /* Identifies the kind of target, e.g., SunOS4, Ultrix, etc. */ char *name; - + /* The "flavour" of a back end is a general indication about the contents of a file. */ enum bfd_flavour flavour; - + /* The order of bytes within the data area of a file. */ enum bfd_endian byteorder; - + /* The order of bytes within the header parts of a file. */ enum bfd_endian header_byteorder; - + /* A mask of all the flags which an executable may have set - from the set `BFD_NO_FLAGS', `HAS_RELOC', ...`D_PAGED'. */ flagword object_flags; - + /* A mask of all the flags which a section may have set - from the set `SEC_NO_FLAGS', `SEC_ALLOC', ...`SET_NEVER_LOAD'. */ flagword section_flags; - + /* The character normally found at the front of a symbol. (if any), perhaps `_'. */ char symbol_leading_char; - + /* The pad character for file names within an archive header. */ char ar_pad_char; - + /* The maximum number of characters in an archive header. */ unsigned short ar_max_namelen; - + /* Entries for byte swapping for data. These are different from the other entry points, since they don't take a BFD as the first argument. Certain other handlers could do the same. */ @@ -4882,7 +4897,7 @@ bfd_vma (*bfd_getx16) (const void *); bfd_signed_vma (*bfd_getx_signed_16) (const void *); void (*bfd_putx16) (bfd_vma, void *); - + /* Byte swapping for the headers. */ bfd_uint64_t (*bfd_h_getx64) (const void *); bfd_int64_t (*bfd_h_getx_signed_64) (const void *); @@ -4893,16 +4908,16 @@ bfd_vma (*bfd_h_getx16) (const void *); bfd_signed_vma (*bfd_h_getx_signed_16) (const void *); void (*bfd_h_putx16) (bfd_vma, void *); - + /* Format dependent routines: these are vectors of entry points within the target vector structure, one for each format to check. */ - + /* Check the format of a file being read. Return a `bfd_target *' or zero. */ const struct bfd_target *(*_bfd_check_format[bfd_type_end]) (bfd *); - + /* Set the format of a file being written. */ bfd_boolean (*_bfd_set_format[bfd_type_end]) (bfd *); - + /* Write cached information into a file being written, at `bfd_close'. */ bfd_boolean (*_bfd_write_contents[bfd_type_end]) (bfd *); The general target vector. These vectors are initialized using the @@ -4915,7 +4930,7 @@ NAME##_new_section_hook, \ NAME##_get_section_contents, \ NAME##_get_section_contents_in_window - + /* Called when the BFD is being closed to do any necessary cleanup. */ bfd_boolean (*_close_and_cleanup) (bfd *); /* Ask the BFD to free all cached information. */ @@ -4927,7 +4942,7 @@ (bfd *, sec_ptr, void *, file_ptr, bfd_size_type); bfd_boolean (*_bfd_get_section_contents_in_window) (bfd *, sec_ptr, bfd_window *, file_ptr, bfd_size_type); - + /* Entry points to copy private data. */ #define BFD_JUMP_TABLE_COPY(NAME) \ NAME##_bfd_copy_private_bfd_data, \ @@ -4937,7 +4952,7 @@ NAME##_bfd_copy_private_header_data, \ NAME##_bfd_set_private_flags, \ NAME##_bfd_print_private_bfd_data - + /* Called to copy BFD general private data from one object file to another. */ bfd_boolean (*_bfd_copy_private_bfd_data) (bfd *, bfd *); @@ -4958,20 +4973,20 @@ (bfd *, bfd *); /* Called to set private backend flags. */ bfd_boolean (*_bfd_set_private_flags) (bfd *, flagword); - + /* Called to print private BFD data. */ bfd_boolean (*_bfd_print_private_bfd_data) (bfd *, void *); - + /* Core file entry points. */ #define BFD_JUMP_TABLE_CORE(NAME) \ NAME##_core_file_failing_command, \ NAME##_core_file_failing_signal, \ NAME##_core_file_matches_executable_p - + char * (*_core_file_failing_command) (bfd *); int (*_core_file_failing_signal) (bfd *); bfd_boolean (*_core_file_matches_executable_p) (bfd *, bfd *); - + /* Archive entry points. */ #define BFD_JUMP_TABLE_ARCHIVE(NAME) \ NAME##_slurp_armap, \ @@ -4984,7 +4999,7 @@ NAME##_get_elt_at_index, \ NAME##_generic_stat_arch_elt, \ NAME##_update_armap_timestamp - + bfd_boolean (*_bfd_slurp_armap) (bfd *); bfd_boolean (*_bfd_slurp_extended_name_table) (bfd *); bfd_boolean (*_bfd_construct_extended_name_table) @@ -4998,7 +5013,7 @@ bfd * (*_bfd_get_elt_at_index) (bfd *, symindex); int (*_bfd_stat_arch_elt) (bfd *, struct stat *); bfd_boolean (*_bfd_update_armap_timestamp) (bfd *); - + /* Entry points used for symbols. */ #define BFD_JUMP_TABLE_SYMBOLS(NAME) \ NAME##_get_symtab_upper_bound, \ @@ -5013,7 +5028,7 @@ NAME##_bfd_make_debug_symbol, \ NAME##_read_minisymbols, \ NAME##_minisymbol_to_symbol - + long (*_bfd_get_symtab_upper_bound) (bfd *); long (*_bfd_canonicalize_symtab) (bfd *, struct bfd_symbol **); @@ -5044,30 +5059,30 @@ BFD_SEND (b, _minisymbol_to_symbol, (b, d, m, f)) asymbol * (*_minisymbol_to_symbol) (bfd *, bfd_boolean, const void *, asymbol *); - + /* Routines for relocs. */ #define BFD_JUMP_TABLE_RELOCS(NAME) \ NAME##_get_reloc_upper_bound, \ NAME##_canonicalize_reloc, \ NAME##_bfd_reloc_type_lookup - + long (*_get_reloc_upper_bound) (bfd *, sec_ptr); long (*_bfd_canonicalize_reloc) (bfd *, sec_ptr, arelent **, struct bfd_symbol **); /* See documentation on reloc types. */ reloc_howto_type * (*reloc_type_lookup) (bfd *, bfd_reloc_code_real_type); - + /* Routines used when writing an object file. */ #define BFD_JUMP_TABLE_WRITE(NAME) \ NAME##_set_arch_mach, \ NAME##_set_section_contents - + bfd_boolean (*_bfd_set_arch_mach) (bfd *, enum bfd_architecture, unsigned long); bfd_boolean (*_bfd_set_section_contents) (bfd *, sec_ptr, const void *, file_ptr, bfd_size_type); - + /* Routines used by the linker. */ #define BFD_JUMP_TABLE_LINK(NAME) \ NAME##_sizeof_headers, \ @@ -5084,52 +5099,52 @@ NAME##_bfd_is_group_section, \ NAME##_bfd_discard_group, \ NAME##_section_already_linked \ - + int (*_bfd_sizeof_headers) (bfd *, bfd_boolean); bfd_byte * (*_bfd_get_relocated_section_contents) (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *, bfd_boolean, struct bfd_symbol **); - + bfd_boolean (*_bfd_relax_section) (bfd *, struct bfd_section *, struct bfd_link_info *, bfd_boolean *); - + /* Create a hash table for the linker. Different backends store different information in this table. */ struct bfd_link_hash_table * (*_bfd_link_hash_table_create) (bfd *); - + /* Release the memory associated with the linker hash table. */ void (*_bfd_link_hash_table_free) (struct bfd_link_hash_table *); - + /* Add symbols from this object file into the hash table. */ bfd_boolean (*_bfd_link_add_symbols) (bfd *, struct bfd_link_info *); - + /* Indicate that we are only retrieving symbol values from this section. */ void (*_bfd_link_just_syms) (asection *, struct bfd_link_info *); - + /* Do a link based on the link_order structures attached to each section of the BFD. */ bfd_boolean (*_bfd_final_link) (bfd *, struct bfd_link_info *); - + /* Should this section be split up into smaller pieces during linking. */ bfd_boolean (*_bfd_link_split_section) (bfd *, struct bfd_section *); - + /* Remove sections that are not referenced from the output. */ bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *); - + /* Attempt to merge SEC_MERGE sections. */ bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *); - + /* Is this section a member of a group? */ bfd_boolean (*_bfd_is_group_section) (bfd *, const struct bfd_section *); - + /* Discard members of a group. */ bfd_boolean (*_bfd_discard_group) (bfd *, struct bfd_section *); - + /* Check if SEC has been already linked during a reloceatable or final link. */ void (*_section_already_linked) (bfd *, struct bfd_section *); - + /* Routines to handle dynamic symbols and relocs. */ #define BFD_JUMP_TABLE_DYNAMIC(NAME) \ NAME##_get_dynamic_symtab_upper_bound, \ @@ -5137,7 +5152,7 @@ NAME##_get_synthetic_symtab, \ NAME##_get_dynamic_reloc_upper_bound, \ NAME##_canonicalize_dynamic_reloc - + /* Get the amount of memory required to hold the dynamic symbols. */ long (*_bfd_get_dynamic_symtab_upper_bound) (bfd *); /* Read in the dynamic symbols. */ @@ -5159,27 +5174,27 @@ to find an alternative output format that is suitable. /* Opposite endian version of this target. */ const struct bfd_target * alternative_target; - + /* Data for use by back-end routines, which isn't generic enough to belong in this structure. */ const void *backend_data; - + } bfd_target; -2.13.1.1 `bfd_set_default_target' -................................. +`bfd_set_default_target' +........................ -*Synopsis* + *Synopsis* bfd_boolean bfd_set_default_target (const char *name); *Description* Set the default target vector to use when recognizing a BFD. This takes the name of the target, which may be a BFD target name or a configuration triplet. -2.13.1.2 `bfd_find_target' -.......................... +`bfd_find_target' +................. -*Synopsis* + *Synopsis* const bfd_target *bfd_find_target (const char *target_name, bfd *abfd); *Description* Return a pointer to the transfer vector for the object target named @@ -5192,19 +5207,19 @@ `bfd_check_format' to loop over all the targets to find the one that matches the file being read. -2.13.1.3 `bfd_target_list' -.......................... +`bfd_target_list' +................. -*Synopsis* + *Synopsis* const char ** bfd_target_list (void); *Description* Return a freshly malloced NULL-terminated vector of the names of all the valid BFD targets. Do not modify the names. -2.13.1.4 `bfd_seach_for_target' -............................... +`bfd_seach_for_target' +...................... -*Synopsis* + *Synopsis* const bfd_target *bfd_search_for_target (int (*search_func) (const bfd_target *, void *), void *); @@ -5217,10 +5232,10 @@  File: bfd.info, Node: Architectures, Next: Opening and Closing, Prev: Targets, Up: BFD front end -2.14 Architectures -================== +Architectures +============= -BFD keeps one atom in a BFD describing the architecture of the data + BFD keeps one atom in a BFD describing the architecture of the data attached to the BFD: a pointer to a `bfd_arch_info_type'. Pointers to structures can be requested independently of a BFD so @@ -5241,10 +5256,10 @@ BFD's idea of an architecture is implemented in `archures.c'. -2.14.1 bfd_architecture ------------------------ +bfd_architecture +---------------- -*Description* + *Description* This enum gives the object file's CPU architecture, in a global sense--i.e., what processor family does it belong to? Another field indicates which processor within the family is in use. The machine @@ -5283,7 +5298,7 @@ The exception is the "ca", which is incompatible with all other machines except "core". */ - + #define bfd_mach_i960_core 1 #define bfd_mach_i960_ka_sa 2 #define bfd_mach_i960_kb_sb 3 @@ -5292,9 +5307,9 @@ #define bfd_mach_i960_ca 6 #define bfd_mach_i960_jx 7 #define bfd_mach_i960_hx 8 - + bfd_arch_or32, /* OpenRISC 32 */ - + bfd_arch_a29k, /* AMD 29000 */ bfd_arch_sparc, /* SPARC */ #define bfd_mach_sparc 1 @@ -5388,11 +5403,14 @@ #define bfd_mach_ppc_rs64iii 643 #define bfd_mach_ppc_7400 7400 #define bfd_mach_ppc_e500 500 + #define bfd_mach_cell_ppu 501 bfd_arch_rs6000, /* IBM RS/6000 */ #define bfd_mach_rs6k 6000 #define bfd_mach_rs6k_rs1 6001 #define bfd_mach_rs6k_rsc 6003 #define bfd_mach_rs6k_rs2 6002 + bfd_arch_spu, /* PowerPC SPU */ + #define bfd_mach_spu 256 bfd_arch_hppa, /* HP PA RISC */ #define bfd_mach_hppa10 10 #define bfd_mach_hppa11 11 @@ -5545,10 +5563,10 @@ bfd_arch_last }; -2.14.2 bfd_arch_info --------------------- +bfd_arch_info +------------- -*Description* + *Description* This structure contains information on architectures for use within BFD. typedef struct bfd_arch_info @@ -5567,45 +5585,45 @@ bfd_boolean the_default; const struct bfd_arch_info * (*compatible) (const struct bfd_arch_info *a, const struct bfd_arch_info *b); - + bfd_boolean (*scan) (const struct bfd_arch_info *, const char *); - + const struct bfd_arch_info *next; } bfd_arch_info_type; -2.14.2.1 `bfd_printable_name' -............................. +`bfd_printable_name' +.................... -*Synopsis* + *Synopsis* const char *bfd_printable_name (bfd *abfd); *Description* Return a printable string representing the architecture and machine from the pointer to the architecture info structure. -2.14.2.2 `bfd_scan_arch' -........................ +`bfd_scan_arch' +............... -*Synopsis* + *Synopsis* const bfd_arch_info_type *bfd_scan_arch (const char *string); *Description* Figure out if BFD supports any cpu which could be described with the name STRING. Return a pointer to an `arch_info' structure if a machine is found, otherwise NULL. -2.14.2.3 `bfd_arch_list' -........................ +`bfd_arch_list' +............... -*Synopsis* + *Synopsis* const char **bfd_arch_list (void); *Description* Return a freshly malloced NULL-terminated vector of the names of all the valid BFD architectures. Do not modify the names. -2.14.2.4 `bfd_arch_get_compatible' -.................................. +`bfd_arch_get_compatible' +......................... -*Synopsis* + *Synopsis* const bfd_arch_info_type *bfd_arch_get_compatible (const bfd *abfd, const bfd *bbfd, bfd_boolean accept_unknowns); *Description* @@ -5614,28 +5632,28 @@ architectures and machine types implied by the BFDs and returns a pointer to an `arch_info' structure describing the compatible machine. -2.14.2.5 `bfd_default_arch_struct' -.................................. +`bfd_default_arch_struct' +......................... -*Description* + *Description* The `bfd_default_arch_struct' is an item of `bfd_arch_info_type' which has been initialized to a fairly generic state. A BFD starts life by pointing to this structure, until the correct back end has determined the real architecture of the file. extern const bfd_arch_info_type bfd_default_arch_struct; -2.14.2.6 `bfd_set_arch_info' -............................ +`bfd_set_arch_info' +................... -*Synopsis* + *Synopsis* void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg); *Description* Set the architecture info of ABFD to ARG. -2.14.2.7 `bfd_default_set_arch_mach' -.................................... +`bfd_default_set_arch_mach' +........................... -*Synopsis* + *Synopsis* bfd_boolean bfd_default_set_arch_mach (bfd *abfd, enum bfd_architecture arch, unsigned long mach); *Description* @@ -5643,70 +5661,70 @@ Find the correct pointer to a structure and insert it into the `arch_info' pointer. -2.14.2.8 `bfd_get_arch' -....................... +`bfd_get_arch' +.............. -*Synopsis* + *Synopsis* enum bfd_architecture bfd_get_arch (bfd *abfd); *Description* Return the enumerated type which describes the BFD ABFD's architecture. -2.14.2.9 `bfd_get_mach' -....................... +`bfd_get_mach' +.............. -*Synopsis* + *Synopsis* unsigned long bfd_get_mach (bfd *abfd); *Description* Return the long type which describes the BFD ABFD's machine. -2.14.2.10 `bfd_arch_bits_per_byte' -.................................. +`bfd_arch_bits_per_byte' +........................ -*Synopsis* + *Synopsis* unsigned int bfd_arch_bits_per_byte (bfd *abfd); *Description* Return the number of bits in one of the BFD ABFD's architecture's bytes. -2.14.2.11 `bfd_arch_bits_per_address' -..................................... +`bfd_arch_bits_per_address' +........................... -*Synopsis* + *Synopsis* unsigned int bfd_arch_bits_per_address (bfd *abfd); *Description* Return the number of bits in one of the BFD ABFD's architecture's addresses. -2.14.2.12 `bfd_default_compatible' -.................................. +`bfd_default_compatible' +........................ -*Synopsis* + *Synopsis* const bfd_arch_info_type *bfd_default_compatible (const bfd_arch_info_type *a, const bfd_arch_info_type *b); *Description* The default function for testing for compatibility. -2.14.2.13 `bfd_default_scan' -............................ +`bfd_default_scan' +.................. -*Synopsis* + *Synopsis* bfd_boolean bfd_default_scan (const struct bfd_arch_info *info, const char *string); *Description* The default function for working out whether this is an architecture hit and a machine hit. -2.14.2.14 `bfd_get_arch_info' -............................. +`bfd_get_arch_info' +................... -*Synopsis* + *Synopsis* const bfd_arch_info_type *bfd_get_arch_info (bfd *abfd); *Description* Return the architecture info struct in ABFD. -2.14.2.15 `bfd_lookup_arch' -........................... +`bfd_lookup_arch' +................. -*Synopsis* + *Synopsis* const bfd_arch_info_type *bfd_lookup_arch (enum bfd_architecture arch, unsigned long machine); *Description* @@ -5714,10 +5732,10 @@ ARCH and MACHINE. A machine of 0 matches the machine/architecture structure which marks itself as the default. -2.14.2.16 `bfd_printable_arch_mach' -................................... +`bfd_printable_arch_mach' +......................... -*Synopsis* + *Synopsis* const char *bfd_printable_arch_mach (enum bfd_architecture arch, unsigned long machine); *Description* @@ -5726,20 +5744,20 @@ This routine is depreciated. -2.14.2.17 `bfd_octets_per_byte' -............................... +`bfd_octets_per_byte' +..................... -*Synopsis* + *Synopsis* unsigned int bfd_octets_per_byte (bfd *abfd); *Description* Return the number of octets (8-bit quantities) per target byte (minimum addressable unit). In most cases, this will be one, but some DSP targets have 16, 32, or even 48 bits per byte. -2.14.2.18 `bfd_arch_mach_octets_per_byte' -......................................... +`bfd_arch_mach_octets_per_byte' +............................... -*Synopsis* + *Synopsis* unsigned int bfd_arch_mach_octets_per_byte (enum bfd_architecture arch, unsigned long machine); *Description* @@ -5751,13 +5769,13 @@  File: bfd.info, Node: Opening and Closing, Next: Internal, Prev: Architectures, Up: BFD front end -2.15 Opening and closing BFDs -============================= +Opening and closing BFDs +======================== -2.15.0.1 `bfd_openr' -.................... +`bfd_openr' +........... -*Synopsis* + *Synopsis* bfd *bfd_openr (const char *filename, const char *target); *Description* Open the file FILENAME (using `fopen') with the target TARGET. Return @@ -5770,10 +5788,10 @@ are `bfd_error_no_memory', `bfd_error_invalid_target' or `system_call' error. -2.15.0.2 `bfd_fdopenr' -...................... +`bfd_fdopenr' +............. -*Synopsis* + *Synopsis* bfd *bfd_fdopenr (const char *filename, const char *target, int fd); *Description* `bfd_fdopenr' is to `bfd_fopenr' much like `fdopen' is to `fopen'. It @@ -5791,19 +5809,19 @@ Possible errors are `bfd_error_no_memory', `bfd_error_invalid_target' and `bfd_error_system_call'. -2.15.0.3 `bfd_openstreamr' -.......................... +`bfd_openstreamr' +................. -*Synopsis* + *Synopsis* bfd *bfd_openstreamr (const char *, const char *, void *); *Description* Open a BFD for read access on an existing stdio stream. When the BFD is passed to `bfd_close', the stream will be closed. -2.15.0.4 `bfd_openr_iovec' -.......................... +`bfd_openr_iovec' +................. -*Synopsis* + *Synopsis* bfd *bfd_openr_iovec (const char *filename, const char *target, void *(*open) (struct bfd *nbfd, void *open_closure), @@ -5840,10 +5858,10 @@ Possible errors are `bfd_error_no_memory', `bfd_error_invalid_target' and `bfd_error_system_call'. -2.15.0.5 `bfd_openw' -.................... +`bfd_openw' +........... -*Synopsis* + *Synopsis* bfd *bfd_openw (const char *filename, const char *target); *Description* Create a BFD, associated with file FILENAME, using the file format @@ -5852,10 +5870,10 @@ Possible errors are `bfd_error_system_call', `bfd_error_no_memory', `bfd_error_invalid_target'. -2.15.0.6 `bfd_close' -.................... +`bfd_close' +........... -*Synopsis* + *Synopsis* bfd_boolean bfd_close (bfd *abfd); *Description* Close a BFD. If the BFD was open for writing, then pending operations @@ -5870,10 +5888,10 @@ *Returns* `TRUE' is returned if all is ok, otherwise `FALSE'. -2.15.0.7 `bfd_close_all_done' -............................. +`bfd_close_all_done' +.................... -*Synopsis* + *Synopsis* bfd_boolean bfd_close_all_done (bfd *); *Description* Close a BFD. Differs from `bfd_close' since it does not complete any @@ -5889,20 +5907,20 @@ *Returns* `TRUE' is returned if all is ok, otherwise `FALSE'. -2.15.0.8 `bfd_create' -..................... +`bfd_create' +............ -*Synopsis* + *Synopsis* bfd *bfd_create (const char *filename, bfd *templ); *Description* Create a new BFD in the manner of `bfd_openw', but without opening a file. The new BFD takes the target from the target used by TEMPLATE. The format is always set to `bfd_object'. -2.15.0.9 `bfd_make_writable' -............................ +`bfd_make_writable' +................... -*Synopsis* + *Synopsis* bfd_boolean bfd_make_writable (bfd *abfd); *Description* Takes a BFD as created by `bfd_create' and converts it into one like as @@ -5913,10 +5931,10 @@ *Returns* `TRUE' is returned if all is ok, otherwise `FALSE'. -2.15.0.10 `bfd_make_readable' -............................. +`bfd_make_readable' +................... -*Synopsis* + *Synopsis* bfd_boolean bfd_make_readable (bfd *abfd); *Description* Takes a BFD as created by `bfd_create' and `bfd_make_writable' and @@ -5927,28 +5945,28 @@ *Returns* `TRUE' is returned if all is ok, otherwise `FALSE'. -2.15.0.11 `bfd_alloc' -..................... +`bfd_alloc' +........... -*Synopsis* + *Synopsis* void *bfd_alloc (bfd *abfd, bfd_size_type wanted); *Description* Allocate a block of WANTED bytes of memory attached to `abfd' and return a pointer to it. -2.15.0.12 `bfd_zalloc' -...................... +`bfd_zalloc' +............ -*Synopsis* + *Synopsis* void *bfd_zalloc (bfd *abfd, bfd_size_type wanted); *Description* Allocate a block of WANTED bytes of zeroed memory attached to `abfd' and return a pointer to it. -2.15.0.13 `bfd_calc_gnu_debuglink_crc32' -........................................ +`bfd_calc_gnu_debuglink_crc32' +.............................. -*Synopsis* + *Synopsis* unsigned long bfd_calc_gnu_debuglink_crc32 (unsigned long crc, const unsigned char *buf, bfd_size_type len); *Description* @@ -5959,29 +5977,29 @@ *Returns* Return the updated CRC32 value. -2.15.0.14 `get_debug_link_info' -............................... +`get_debug_link_info' +..................... -*Synopsis* + *Synopsis* char *get_debug_link_info (bfd *abfd, unsigned long *crc32_out); *Description* fetch the filename and CRC32 value for any separate debuginfo associated with ABFD. Return NULL if no such info found, otherwise return filename and update CRC32_OUT. -2.15.0.15 `separate_debug_file_exists' -...................................... +`separate_debug_file_exists' +............................ -*Synopsis* + *Synopsis* bfd_boolean separate_debug_file_exists (char *name, unsigned long crc32); *Description* Checks to see if NAME is a file and if its contents match CRC32. -2.15.0.16 `find_separate_debug_file' -.................................... +`find_separate_debug_file' +.......................... -*Synopsis* + *Synopsis* char *find_separate_debug_file (bfd *abfd); *Description* Searches ABFD for a reference to separate debugging information, scans @@ -5990,10 +6008,10 @@ information if the file is found and has matching CRC32. Returns NULL if no reference to debugging file exists, or file cannot be found. -2.15.0.17 `bfd_follow_gnu_debuglink' -.................................... +`bfd_follow_gnu_debuglink' +.......................... -*Synopsis* + *Synopsis* char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir); *Description* Takes a BFD and searches it for a .gnu_debuglink section. If this @@ -6011,10 +6029,10 @@ pointer to a heap-allocated string containing the filename. The caller is responsible for freeing this string. -2.15.0.18 `bfd_create_gnu_debuglink_section' -............................................ +`bfd_create_gnu_debuglink_section' +.................................. -*Synopsis* + *Synopsis* struct bfd_section *bfd_create_gnu_debuglink_section (bfd *abfd, const char *filename); *Description* @@ -6025,10 +6043,10 @@ A pointer to the new section is returned if all is ok. Otherwise `NULL' is returned and bfd_error is set. -2.15.0.19 `bfd_fill_in_gnu_debuglink_section' -............................................. +`bfd_fill_in_gnu_debuglink_section' +................................... -*Synopsis* + *Synopsis* bfd_boolean bfd_fill_in_gnu_debuglink_section (bfd *abfd, struct bfd_section *sect, const char *filename); *Description* @@ -6043,29 +6061,29 @@  File: bfd.info, Node: Internal, Next: File Caching, Prev: Opening and Closing, Up: BFD front end -2.16 Internal functions -======================= +Internal functions +================== -*Description* + *Description* These routines are used within BFD. They are not intended for export, but are documented here for completeness. -2.16.0.1 `bfd_write_bigendian_4byte_int' -........................................ +`bfd_write_bigendian_4byte_int' +............................... -*Synopsis* + *Synopsis* bfd_boolean bfd_write_bigendian_4byte_int (bfd *, unsigned int); *Description* Write a 4 byte integer I to the output BFD ABFD, in big endian order regardless of what else is going on. This is useful in archives. -2.16.0.2 `bfd_put_size' -....................... +`bfd_put_size' +.............. -2.16.0.3 `bfd_get_size' -....................... +`bfd_get_size' +.............. -*Description* + *Description* These macros as used for reading and writing raw data in sections; each access (except for bytes) is vectored through the target format of the BFD and mangled accordingly. The mangling performs any necessary endian @@ -6083,7 +6101,7 @@ `bfd_vma''s. /* Byte swapping macros for user section data. */ - + #define bfd_put_8(abfd, val, ptr) \ ((void) (*((unsigned char *) (ptr)) = (val) & 0xff)) #define bfd_put_signed_8 \ @@ -6092,7 +6110,7 @@ (*(unsigned char *) (ptr) & 0xff) #define bfd_get_signed_8(abfd, ptr) \ (((*(unsigned char *) (ptr) & 0xff) ^ 0x80) - 0x80) - + #define bfd_put_16(abfd, val, ptr) \ BFD_SEND (abfd, bfd_putx16, ((val),(ptr))) #define bfd_put_signed_16 \ @@ -6101,7 +6119,7 @@ BFD_SEND (abfd, bfd_getx16, (ptr)) #define bfd_get_signed_16(abfd, ptr) \ BFD_SEND (abfd, bfd_getx_signed_16, (ptr)) - + #define bfd_put_32(abfd, val, ptr) \ BFD_SEND (abfd, bfd_putx32, ((val),(ptr))) #define bfd_put_signed_32 \ @@ -6110,7 +6128,7 @@ BFD_SEND (abfd, bfd_getx32, (ptr)) #define bfd_get_signed_32(abfd, ptr) \ BFD_SEND (abfd, bfd_getx_signed_32, (ptr)) - + #define bfd_put_64(abfd, val, ptr) \ BFD_SEND (abfd, bfd_putx64, ((val), (ptr))) #define bfd_put_signed_64 \ @@ -6119,14 +6137,14 @@ BFD_SEND (abfd, bfd_getx64, (ptr)) #define bfd_get_signed_64(abfd, ptr) \ BFD_SEND (abfd, bfd_getx_signed_64, (ptr)) - + #define bfd_get(bits, abfd, ptr) \ ((bits) == 8 ? (bfd_vma) bfd_get_8 (abfd, ptr) \ : (bits) == 16 ? bfd_get_16 (abfd, ptr) \ : (bits) == 32 ? bfd_get_32 (abfd, ptr) \ : (bits) == 64 ? bfd_get_64 (abfd, ptr) \ : (abort (), (bfd_vma) - 1)) - + #define bfd_put(bits, abfd, val, ptr) \ ((bits) == 8 ? bfd_put_8 (abfd, val, ptr) \ : (bits) == 16 ? bfd_put_16 (abfd, val, ptr) \ @@ -6134,10 +6152,10 @@ : (bits) == 64 ? bfd_put_64 (abfd, val, ptr) \ : (abort (), (void) 0)) -2.16.0.4 `bfd_h_put_size' -......................... +`bfd_h_put_size' +................ -*Description* + *Description* These macros have the same function as their `bfd_get_x' brethren, except that they are used for removing information for the header records of object files. Believe it or not, some object files keep @@ -6145,7 +6163,7 @@ endian order. /* Byte swapping macros for file header data. */ - + #define bfd_h_put_8(abfd, val, ptr) \ bfd_put_8 (abfd, val, ptr) #define bfd_h_put_signed_8(abfd, val, ptr) \ @@ -6154,7 +6172,7 @@ bfd_get_8 (abfd, ptr) #define bfd_h_get_signed_8(abfd, ptr) \ bfd_get_signed_8 (abfd, ptr) - + #define bfd_h_put_16(abfd, val, ptr) \ BFD_SEND (abfd, bfd_h_putx16, (val, ptr)) #define bfd_h_put_signed_16 \ @@ -6163,7 +6181,7 @@ BFD_SEND (abfd, bfd_h_getx16, (ptr)) #define bfd_h_get_signed_16(abfd, ptr) \ BFD_SEND (abfd, bfd_h_getx_signed_16, (ptr)) - + #define bfd_h_put_32(abfd, val, ptr) \ BFD_SEND (abfd, bfd_h_putx32, (val, ptr)) #define bfd_h_put_signed_32 \ @@ -6172,7 +6190,7 @@ BFD_SEND (abfd, bfd_h_getx32, (ptr)) #define bfd_h_get_signed_32(abfd, ptr) \ BFD_SEND (abfd, bfd_h_getx_signed_32, (ptr)) - + #define bfd_h_put_64(abfd, val, ptr) \ BFD_SEND (abfd, bfd_h_putx64, (val, ptr)) #define bfd_h_put_signed_64 \ @@ -6181,9 +6199,9 @@ BFD_SEND (abfd, bfd_h_getx64, (ptr)) #define bfd_h_get_signed_64(abfd, ptr) \ BFD_SEND (abfd, bfd_h_getx_signed_64, (ptr)) - + /* Aliases for the above, which should eventually go away. */ - + #define H_PUT_64 bfd_h_put_64 #define H_PUT_32 bfd_h_put_32 #define H_PUT_16 bfd_h_put_16 @@ -6201,10 +6219,10 @@ #define H_GET_S16 bfd_h_get_signed_16 #define H_GET_S8 bfd_h_get_signed_8 -2.16.0.5 `bfd_log2' -................... +`bfd_log2' +.......... -*Synopsis* + *Synopsis* unsigned int bfd_log2 (bfd_vma x); *Description* Return the log base 2 of the value supplied, rounded up. E.g., an X of @@ -6213,10 +6231,10 @@  File: bfd.info, Node: File Caching, Next: Linker Functions, Prev: Internal, Up: BFD front end -2.17 File caching -================= +File caching +============ -The file caching mechanism is embedded within BFD and allows the + The file caching mechanism is embedded within BFD and allows the application to open as many BFDs as it wants without regard to the underlying operating system's file descriptor limit (often as low as 20 open files). The module in `cache.c' maintains a least recently used @@ -6225,27 +6243,27 @@ BFD is open. If not, then it chooses a file to close, closes it and opens the one wanted, returning its file handle. -2.17.0.1 `BFD_CACHE_MAX_OPEN macro' -................................... +`BFD_CACHE_MAX_OPEN macro' +.......................... -*Description* + *Description* The maximum number of files which the cache will keep open at one time. #define BFD_CACHE_MAX_OPEN 10 -2.17.0.2 `bfd_last_cache' -......................... +`bfd_last_cache' +................ -*Synopsis* + *Synopsis* extern bfd *bfd_last_cache; *Description* Zero, or a pointer to the topmost BFD on the chain. This is used by the `bfd_cache_lookup' macro in `libbfd.h' to determine when it can avoid a function call. -2.17.0.3 `bfd_cache_lookup' -........................... +`bfd_cache_lookup' +.................. -*Description* + *Description* Check to see if the required BFD is the same as the last one looked up. If so, then it can use the stream in the BFD with impunity, since it can't have changed since the last lookup; otherwise, it has to perform @@ -6255,18 +6273,18 @@ (FILE *) (bfd_last_cache->iostream): \ bfd_cache_lookup_worker (x)) -2.17.0.4 `bfd_cache_init' -......................... +`bfd_cache_init' +................ -*Synopsis* + *Synopsis* bfd_boolean bfd_cache_init (bfd *abfd); *Description* Add a newly opened BFD to the cache. -2.17.0.5 `bfd_cache_close' -.......................... +`bfd_cache_close' +................. -*Synopsis* + *Synopsis* bfd_boolean bfd_cache_close (bfd *abfd); *Description* Remove the BFD ABFD from the cache. If the attached file is open, then @@ -6276,10 +6294,10 @@ `FALSE' is returned if closing the file fails, `TRUE' is returned if all is well. -2.17.0.6 `bfd_cache_close_all' -.............................. +`bfd_cache_close_all' +..................... -*Synopsis* + *Synopsis* bfd_boolean bfd_cache_close_all (void); *Description* Remove all BFDs from the cache. If the attached file is open, then @@ -6289,10 +6307,10 @@ `FALSE' is returned if closing one of the file fails, `TRUE' is returned if all is well. -2.17.0.7 `bfd_open_file' -........................ +`bfd_open_file' +............... -*Synopsis* + *Synopsis* FILE* bfd_open_file (bfd *abfd); *Description* Call the OS to open a file for ABFD. Return the `FILE *' (possibly @@ -6301,10 +6319,10 @@ `NULL', then it won't have been put in the cache, so it won't have to be removed from it. -2.17.0.8 `bfd_cache_lookup_worker' -.................................. +`bfd_cache_lookup_worker' +......................... -*Synopsis* + *Synopsis* FILE *bfd_cache_lookup_worker (bfd *abfd); *Description* Called when the macro `bfd_cache_lookup' fails to find a quick answer. @@ -6316,10 +6334,10 @@  File: bfd.info, Node: Linker Functions, Next: Hash Tables, Prev: File Caching, Up: BFD front end -2.18 Linker Functions -===================== +Linker Functions +================ -The linker uses three special entry points in the BFD target vector. + The linker uses three special entry points in the BFD target vector. It is not necessary to write special routines for these entry points when creating a new BFD back end, since generic versions are provided. However, writing them can speed up linking and make it use @@ -6355,10 +6373,10 @@  File: bfd.info, Node: Creating a Linker Hash Table, Next: Adding Symbols to the Hash Table, Prev: Linker Functions, Up: Linker Functions -2.18.1 Creating a linker hash table ------------------------------------ +Creating a linker hash table +---------------------------- -The linker routines must create a hash table, which must be derived + The linker routines must create a hash table, which must be derived from `struct bfd_link_hash_table' described in `bfdlink.c'. *Note Hash Tables::, for information on how to create a derived hash table. This entry point is called using the target vector of the linker output file. @@ -6388,16 +6406,16 @@  File: bfd.info, Node: Adding Symbols to the Hash Table, Next: Performing the Final Link, Prev: Creating a Linker Hash Table, Up: Linker Functions -2.18.2 Adding symbols to the hash table ---------------------------------------- +Adding symbols to the hash table +-------------------------------- -The linker proper will call the `_bfd_link_add_symbols' entry point for -each object file or archive which is to be linked (typically these are -the files named on the command line, but some may also come from the -linker script). The entry point is responsible for examining the file. -For an object file, BFD must add any relevant symbol information to -the hash table. For an archive, BFD must determine which elements of -the archive should be used and adding them to the link. + The linker proper will call the `_bfd_link_add_symbols' entry point +for each object file or archive which is to be linked (typically these +are the files named on the command line, but some may also come from +the linker script). The entry point is responsible for examining the +file. For an object file, BFD must add any relevant symbol information +to the hash table. For an archive, BFD must determine which elements +of the archive should be used and adding them to the link. The a.out version of this entry point is `NAME(aout,link_add_symbols)'. @@ -6411,18 +6429,18 @@  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 -2.18.2.1 Differing file formats -............................... +Differing file formats +...................... -Normally all the files involved in a link will be of the same format, -but it is also possible to link together different format object files, -and the back end must support that. The `_bfd_link_add_symbols' entry -point is called via the target vector of the file to be added. This -has an important consequence: the function may not assume that the hash -table is the type created by the corresponding -`_bfd_link_hash_table_create' vector. All the `_bfd_link_add_symbols' -function can assume about the hash table is that it is derived from -`struct bfd_link_hash_table'. + Normally all the files involved in a link will be of the same +format, but it is also possible to link together different format +object files, and the back end must support that. The +`_bfd_link_add_symbols' entry point is called via the target vector of +the file to be added. This has an important consequence: the function +may not assume that the hash table is the type created by the +corresponding `_bfd_link_hash_table_create' vector. All the +`_bfd_link_add_symbols' function can assume about the hash table is +that it is derived from `struct bfd_link_hash_table'. Sometimes the `_bfd_link_add_symbols' function must store some information in the hash table entry to be used by the `_bfd_final_link' @@ -6445,12 +6463,12 @@  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 -2.18.2.2 Adding symbols from an object file -........................................... +Adding symbols from an object file +.................................. -When the `_bfd_link_add_symbols' routine is passed an object file, it -must add all externally visible symbols in that object file to the hash -table. The actual work of adding the symbol to the hash table is + When the `_bfd_link_add_symbols' routine is passed an object file, +it must add all externally visible symbols in that object file to the +hash table. The actual work of adding the symbol to the hash table is normally handled by the function `_bfd_generic_link_add_one_symbol'. The `_bfd_link_add_symbols' routine is responsible for reading all the symbols from the object file and passing the correct information to @@ -6485,11 +6503,11 @@  File: bfd.info, Node: Adding symbols from an archive, Prev: Adding symbols from an object file, Up: Adding Symbols to the Hash Table -2.18.2.3 Adding symbols from an archive -....................................... +Adding symbols from an archive +.............................. -When the `_bfd_link_add_symbols' routine is passed an archive, it must -look through the symbols defined by the archive and decide which + When the `_bfd_link_add_symbols' routine is passed an archive, it +must look through the symbols defined by the archive and decide which elements of the archive should be included in the link. For each such element it must call the `add_archive_element' linker callback, and it must add the symbols from the object file to the linker hash table. @@ -6529,10 +6547,10 @@  File: bfd.info, Node: Performing the Final Link, Prev: Adding Symbols to the Hash Table, Up: Linker Functions -2.18.3 Performing the final link --------------------------------- +Performing the final link +------------------------- -When all the input files have been processed, the linker calls the + When all the input files have been processed, the linker calls the `_bfd_final_link' entry point of the output BFD. This routine is responsible for producing the final output file, which has several aspects. It must relocate the contents of the input sections and copy @@ -6559,11 +6577,11 @@  File: bfd.info, Node: Information provided by the linker, Next: Relocating the section contents, Prev: Performing the Final Link, Up: Performing the Final Link -2.18.3.1 Information provided by the linker -........................................... +Information provided by the linker +.................................. -Before the linker calls the `_bfd_final_link' entry point, it sets up -some data structures for the function to use. + Before the linker calls the `_bfd_final_link' entry point, it sets +up some data structures for the function to use. The `input_bfds' field of the `bfd_link_info' structure will point to a list of all the input files included in the link. These files are @@ -6582,10 +6600,10 @@  File: bfd.info, Node: Relocating the section contents, Next: Writing the symbol table, Prev: Information provided by the linker, Up: Performing the Final Link -2.18.3.2 Relocating the section contents -........................................ +Relocating the section contents +............................... -The `_bfd_final_link' function should look through the `link_order' + The `_bfd_final_link' function should look through the `link_order' structures attached to each section of the output file. Each `link_order' structure should either be handled specially, or it should be passed to the function `_bfd_default_link_order' which will do the @@ -6616,12 +6634,12 @@  File: bfd.info, Node: Writing the symbol table, Prev: Relocating the section contents, Up: Performing the Final Link -2.18.3.3 Writing the symbol table -................................. +Writing the symbol table +........................ -The `_bfd_final_link' function must gather all the symbols in the input -files and write them out. It must also write out all the symbols in -the global hash table. This must be controlled by the `strip' and + The `_bfd_final_link' function must gather all the symbols in the +input files and write them out. It must also write out all the symbols +in the global hash table. This must be controlled by the `strip' and `discard' fields of the `bfd_link_info' structure. The local symbols of the input files will not have been entered into @@ -6657,10 +6675,10 @@ builds a string table while writing out the symbols, which is written to the output file at the end of `NAME(aout,final_link)'. -2.18.3.4 `bfd_link_split_section' -................................. +`bfd_link_split_section' +........................ -*Synopsis* + *Synopsis* bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec); *Description* Return nonzero if SEC should be split during a reloceatable or final @@ -6668,10 +6686,10 @@ #define bfd_link_split_section(abfd, sec) \ BFD_SEND (abfd, _bfd_link_split_section, (abfd, sec)) -2.18.3.5 `bfd_section_already_linked' -..................................... +`bfd_section_already_linked' +............................ -*Synopsis* + *Synopsis* void bfd_section_already_linked (bfd *abfd, asection *sec); *Description* Check if SEC has been already linked during a reloceatable or final @@ -6682,10 +6700,10 @@  File: bfd.info, Node: Hash Tables, Prev: Linker Functions, Up: BFD front end -2.19 Hash Tables -================ +Hash Tables +=========== -BFD provides a simple set of hash table functions. Routines are + BFD provides a simple set of hash table functions. Routines are provided to initialize a hash table, to free a hash table, to look up a string in a hash table and optionally create an entry for it, and to traverse a hash table. There is currently no routine to delete an @@ -6713,12 +6731,12 @@  File: bfd.info, Node: Creating and Freeing a Hash Table, Next: Looking Up or Entering a String, Prev: Hash Tables, Up: Hash Tables -2.19.1 Creating and freeing a hash table ----------------------------------------- +Creating and freeing a hash table +--------------------------------- -To create a hash table, create an instance of a `struct bfd_hash_table' -(defined in `bfd.h') and call `bfd_hash_table_init' (if you know -approximately how many entries you will need, the function + To create a hash table, create an instance of a `struct +bfd_hash_table' (defined in `bfd.h') and call `bfd_hash_table_init' (if +you know approximately how many entries you will need, the function `bfd_hash_table_init_n', which takes a SIZE argument, may be used). `bfd_hash_table_init' returns `FALSE' if some sort of error occurs. @@ -6741,11 +6759,11 @@  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 -2.19.2 Looking up or entering a string --------------------------------------- +Looking up or entering a string +------------------------------- -The function `bfd_hash_lookup' is used both to look up a string in the -hash table and to create a new entry. + The function `bfd_hash_lookup' is used both to look up a string in +the hash table and to create a new entry. If the CREATE argument is `FALSE', `bfd_hash_lookup' will look up a string. If the string is found, it will returns a pointer to a `struct @@ -6768,12 +6786,12 @@  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 -2.19.3 Traversing a hash table ------------------------------- +Traversing a hash table +----------------------- -The function `bfd_hash_traverse' may be used to traverse a hash table, -calling a function on each element. The traversal is done in a random -order. + The function `bfd_hash_traverse' may be used to traverse a hash +table, calling a function on each element. The traversal is done in a +random order. `bfd_hash_traverse' takes as arguments a function and a generic `void *' pointer. The function is called with a hash table entry (a @@ -6786,10 +6804,10 @@  File: bfd.info, Node: Deriving a New Hash Table Type, Prev: Traversing a Hash Table, Up: Hash Tables -2.19.4 Deriving a new hash table type -------------------------------------- +Deriving a new hash table type +------------------------------ -Many uses of hash tables want to store additional information which + Many uses of hash tables want to store additional information which each entry in the hash table. Some also find it convenient to store additional information with the hash table itself. This may be done using a derived hash table. @@ -6815,10 +6833,10 @@  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 -2.19.4.1 Define the derived structures -...................................... +Define the derived structures +............................. -You must define a structure for an entry in the hash table, and a + You must define a structure for an entry in the hash table, and a structure for the hash table itself. The first field in the structure for an entry in the hash table must @@ -6837,11 +6855,11 @@  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 -2.19.4.2 Write the derived creation routine -........................................... +Write the derived creation routine +.................................. -You must write a routine which will create and initialize an entry in -the hash table. This routine is passed as the function argument to + You must write a routine which will create and initialize an entry +in the hash table. This routine is passed as the function argument to `bfd_hash_table_init'. In order to permit other hash tables to be derived from the hash @@ -6872,7 +6890,7 @@ const char *string; { struct ENTRY_TYPE *ret = (ENTRY_TYPE *) entry; - + /* Allocate the structure if it has not already been allocated by a derived class. */ if (ret == (ENTRY_TYPE *) NULL) @@ -6882,13 +6900,13 @@ if (ret == (ENTRY_TYPE *) NULL) return NULL; } - + /* Call the allocation method of the base class. */ ret = ((ENTRY_TYPE *) BASE_NEWFUNC ((struct bfd_hash_entry *) ret, table, string)); - + /* Initialize the local fields here. */ - + return (struct bfd_hash_entry *) ret; } *Description* @@ -6904,10 +6922,11 @@  File: bfd.info, Node: Write Other Derived Routines, Prev: Write the Derived Creation Routine, Up: Deriving a New Hash Table Type -2.19.4.3 Write other derived routines -..................................... +Write other derived routines +............................ -You will want to write other routines for your new hash table, as well. + You will want to write other routines for your new hash table, as +well. You will want an initialization routine which calls the initialization routine of the hash table you are deriving from and @@ -6933,8 +6952,8 @@  File: bfd.info, Node: BFD back ends, Next: GNU Free Documentation License, Prev: BFD front end, Up: Top -3 BFD back ends -*************** +BFD back ends +************* * Menu: @@ -6952,10 +6971,10 @@  File: bfd.info, Node: aout, Next: coff, Prev: What to Put Where, Up: BFD back ends -3.1 a.out backends -================== +a.out backends +============== -*Description* + *Description* BFD supports a number of different flavours of a.out format, though the major differences are only the sizes of the structures on disk, and the shape of the relocation information. @@ -7031,10 +7050,10 @@ `XXX.mt' file (by setting "`bfd_target=XXX'") when your configuration is selected. -3.1.1 Relocations ------------------ +Relocations +----------- -*Description* + *Description* The file `aoutx.h' provides for both the _standard_ and _extended_ forms of a.out relocation records. @@ -7042,18 +7061,18 @@ type field. The extended records (used on 29ks and sparcs) also have a full integer for an addend. -3.1.2 Internal entry points ---------------------------- +Internal entry points +--------------------- -*Description* + *Description* `aoutx.h' exports several routines for accessing the contents of an a.out file, which are gathered and exported in turn by various format specific files (eg sunos.c). -3.1.2.1 `aout_SIZE_swap_exec_header_in' -....................................... +`aout_SIZE_swap_exec_header_in' +............................... -*Synopsis* + *Synopsis* void aout_SIZE_swap_exec_header_in, (bfd *abfd, struct external_exec *raw_bytes, @@ -7062,10 +7081,10 @@ Swap the information in an executable header RAW_BYTES taken from a raw byte stream memory image into the internal exec header structure EXECP. -3.1.2.2 `aout_SIZE_swap_exec_header_out' -........................................ +`aout_SIZE_swap_exec_header_out' +................................ -*Synopsis* + *Synopsis* void aout_SIZE_swap_exec_header_out (bfd *abfd, struct internal_exec *execp, @@ -7074,10 +7093,10 @@ Swap the information in an internal exec header structure EXECP into the buffer RAW_BYTES ready for writing to disk. -3.1.2.3 `aout_SIZE_some_aout_object_p' -...................................... +`aout_SIZE_some_aout_object_p' +.............................. -*Synopsis* + *Synopsis* const bfd_target *aout_SIZE_some_aout_object_p (bfd *abfd, const bfd_target *(*callback_to_real_object_p) ()); @@ -7087,18 +7106,18 @@ is. Call back to the calling environment's "finish up" function just before returning, to handle any last-minute setup. -3.1.2.4 `aout_SIZE_mkobject' -............................ +`aout_SIZE_mkobject' +.................... -*Synopsis* + *Synopsis* bfd_boolean aout_SIZE_mkobject, (bfd *abfd); *Description* Initialize BFD ABFD for use with a.out files. -3.1.2.5 `aout_SIZE_machine_type' -................................ +`aout_SIZE_machine_type' +........................ -*Synopsis* + *Synopsis* enum machine_type aout_SIZE_machine_type (enum bfd_architecture arch, unsigned long machine)); @@ -7111,10 +7130,10 @@ If the architecture is understood, machine type 0 (default) is always understood. -3.1.2.6 `aout_SIZE_set_arch_mach' -................................. +`aout_SIZE_set_arch_mach' +......................... -*Synopsis* + *Synopsis* bfd_boolean aout_SIZE_set_arch_mach, (bfd *, enum bfd_architecture arch, @@ -7124,10 +7143,10 @@ and MACHINE. Verify that ABFD's format can support the architecture required. -3.1.2.7 `aout_SIZE_new_section_hook' -.................................... +`aout_SIZE_new_section_hook' +............................ -*Synopsis* + *Synopsis* bfd_boolean aout_SIZE_new_section_hook, (bfd *abfd, asection *newsect)); @@ -7137,12 +7156,12 @@  File: bfd.info, Node: coff, Next: elf, Prev: aout, Up: BFD back ends -3.2 coff backends -================= +coff backends +============= -BFD supports a number of different flavours of coff format. The major -differences between formats are the sizes and alignments of fields in -structures on disk, and the occasional extra field. + BFD supports a number of different flavours of coff format. The +major differences between formats are the sizes and alignments of +fields in structures on disk, and the occasional extra field. Coff in all its varieties is implemented with a few common files and a number of implementation specific files. For example, The 88k bcs @@ -7156,19 +7175,19 @@ `coff-i960.c'. This file has the same structure as `coff-m88k.c', except that it includes `coff/i960.h' rather than `coff-m88k.h'. -3.2.1 Porting to a new version of coff --------------------------------------- +Porting to a new version of coff +-------------------------------- -The recommended method is to select from the existing implementations -the version of coff which is most like the one you want to use. For -example, we'll say that i386 coff is the one you select, and that your -coff flavour is called foo. Copy `i386coff.c' to `foocoff.c', copy -`../include/coff/i386.h' to `../include/coff/foo.h', and add the lines -to `targets.c' and `Makefile.in' so that your new back end is used. -Alter the shapes of the structures in `../include/coff/foo.h' so that -they match what you need. You will probably also have to add `#ifdef's -to the code in `coff/internal.h' and `coffcode.h' if your version of -coff is too wild. + The recommended method is to select from the existing +implementations the version of coff which is most like the one you want +to use. For example, we'll say that i386 coff is the one you select, +and that your coff flavour is called foo. Copy `i386coff.c' to +`foocoff.c', copy `../include/coff/i386.h' to `../include/coff/foo.h', +and add the lines to `targets.c' and `Makefile.in' so that your new +back end is used. Alter the shapes of the structures in +`../include/coff/foo.h' so that they match what you need. You will +probably also have to add `#ifdef's to the code in `coff/internal.h' and +`coffcode.h' if your version of coff is too wild. You can verify that your new BFD backend works quite simply by building `objdump' from the `binutils' directory, and making sure that @@ -7178,16 +7197,16 @@ you've done to Cygnus. Then your stuff will be in the next release, and you won't have to keep integrating it. -3.2.2 How the coff backend works --------------------------------- +How the coff backend works +-------------------------- -3.2.2.1 File layout -................... +File layout +........... -The Coff backend is split into generic routines that are applicable to -any Coff target and routines that are specific to a particular target. -The target-specific routines are further split into ones which are -basically the same for all Coff targets except that they use the + The Coff backend is split into generic routines that are applicable +to any Coff target and routines that are specific to a particular +target. The target-specific routines are further split into ones which +are basically the same for all Coff targets except that they use the external symbol format or use different values for certain constants. The generic routines are in `coffgen.c'. These routines work for @@ -7210,10 +7229,10 @@ This code is not in `coffcode.h' because it would not be used by any other target. -3.2.2.2 Bit twiddling -..................... +Bit twiddling +............. -Each flavour of coff supported in BFD has its own header file + Each flavour of coff supported in BFD has its own header file describing the external layout of the structures. There is also an internal description of the coff layout, in `coff/internal.h'. A major function of the coff backend is swapping the bytes and twiddling the @@ -7240,13 +7259,13 @@ use the same header files as `gas', which makes one avenue to disaster disappear. -3.2.2.3 Symbol reading -...................... +Symbol reading +.............. -The simple canonical form for symbols used by BFD is not rich enough to -keep all the information available in a coff symbol table. The back end -gets around this problem by keeping the original symbol table around, -"behind the scenes". + The simple canonical form for symbols used by BFD is not rich enough +to keep all the information available in a coff symbol table. The back +end gets around this problem by keeping the original symbol table +around, "behind the scenes". When a symbol table is requested (through a call to `bfd_canonicalize_symtab'), a request gets through to @@ -7278,13 +7297,13 @@ Any linenumbers are read from the coff file too, and attached to the symbols which own the functions the linenumbers belong to. -3.2.2.4 Symbol writing -...................... +Symbol writing +.............. -Writing a symbol to a coff file which didn't come from a coff file will -lose any debugging information. The `asymbol' structure remembers the -BFD from which the symbol was taken, and on output the back end makes -sure that the same destination target as source target is present. + Writing a symbol to a coff file which didn't come from a coff file +will lose any debugging information. The `asymbol' structure remembers +the BFD from which the symbol was taken, and on output the back end +makes sure that the same destination target as source target is present. When the symbols have come from a coff file then all the debugging information is preserved. @@ -7320,10 +7339,10 @@ symbols from their internal form into the coff way, calls the bit twiddlers, and writes out the table to the file. -3.2.2.5 `coff_symbol_type' -.......................... +`coff_symbol_type' +.................. -*Description* + *Description* The hidden information for an `asymbol' is described in a `combined_entry_type': @@ -7333,27 +7352,27 @@ /* Remembers the offset from the first symbol in the file for this symbol. Generated by coff_renumber_symbols. */ unsigned int offset; - + /* Should the value of this symbol be renumbered. Used for XCOFF C_BSTAT symbols. Set by coff_slurp_symbol_table. */ unsigned int fix_value : 1; - + /* Should the tag field of this symbol be renumbered. Created by coff_pointerize_aux. */ unsigned int fix_tag : 1; - + /* Should the endidx field of this symbol be renumbered. Created by coff_pointerize_aux. */ unsigned int fix_end : 1; - + /* Should the x_csect.x_scnlen field be renumbered. Created by coff_pointerize_aux. */ unsigned int fix_scnlen : 1; - + /* Fix up an XCOFF C_BINCL/C_EINCL symbol. The value is the index into the line number entries. Set by coff_slurp_symbol_table. */ unsigned int fix_line : 1; - + /* The container for the symbol structure as read and translated from the file. */ union @@ -7362,30 +7381,30 @@ struct internal_syment syment; } u; } combined_entry_type; - - + + /* Each canonical asymbol really looks like this: */ - + typedef struct coff_symbol_struct { /* The actual symbol which the rest of BFD works with */ asymbol symbol; - + /* A pointer to the hidden information for this symbol */ combined_entry_type *native; - + /* A pointer to the linenumber information for this symbol */ struct lineno_cache_entry *lineno; - + /* Have the line numbers been relocated yet ? */ bfd_boolean done_lineno; } coff_symbol_type; - -3.2.2.6 `bfd_coff_backend_data' -............................... - /* COFF symbol classifications. */ +`bfd_coff_backend_data' +....................... + /* COFF symbol classifications. */ + enum coff_symbol_classification { /* Global symbol. */ @@ -7399,39 +7418,39 @@ /* PE section symbol. */ COFF_SYMBOL_PE_SECTION }; -Special entry points for gdb to swap in coff symbol table parts: + Special entry points for gdb to swap in coff symbol table parts: typedef struct { void (*_bfd_coff_swap_aux_in) PARAMS ((bfd *, PTR, int, int, int, int, PTR)); - + void (*_bfd_coff_swap_sym_in) PARAMS ((bfd *, PTR, PTR)); - + void (*_bfd_coff_swap_lineno_in) PARAMS ((bfd *, PTR, PTR)); - + unsigned int (*_bfd_coff_swap_aux_out) PARAMS ((bfd *, PTR, int, int, int, int, PTR)); - + unsigned int (*_bfd_coff_swap_sym_out) PARAMS ((bfd *, PTR, PTR)); - + unsigned int (*_bfd_coff_swap_lineno_out) PARAMS ((bfd *, PTR, PTR)); - + unsigned int (*_bfd_coff_swap_reloc_out) PARAMS ((bfd *, PTR, PTR)); - + unsigned int (*_bfd_coff_swap_filehdr_out) PARAMS ((bfd *, PTR, PTR)); - + unsigned int (*_bfd_coff_swap_aouthdr_out) PARAMS ((bfd *, PTR, PTR)); - + unsigned int (*_bfd_coff_swap_scnhdr_out) PARAMS ((bfd *, PTR, PTR)); - + unsigned int _bfd_filhsz; unsigned int _bfd_aoutsz; unsigned int _bfd_scnhsz; @@ -7445,124 +7464,124 @@ unsigned int _bfd_coff_default_section_alignment_power; bfd_boolean _bfd_coff_force_symnames_in_strings; unsigned int _bfd_coff_debug_string_prefix_length; - + void (*_bfd_coff_swap_filehdr_in) PARAMS ((bfd *, PTR, PTR)); - + void (*_bfd_coff_swap_aouthdr_in) PARAMS ((bfd *, PTR, PTR)); - + void (*_bfd_coff_swap_scnhdr_in) PARAMS ((bfd *, PTR, PTR)); - + void (*_bfd_coff_swap_reloc_in) PARAMS ((bfd *abfd, PTR, PTR)); - + bfd_boolean (*_bfd_coff_bad_format_hook) PARAMS ((bfd *, PTR)); - + bfd_boolean (*_bfd_coff_set_arch_mach_hook) PARAMS ((bfd *, PTR)); - + PTR (*_bfd_coff_mkobject_hook) PARAMS ((bfd *, PTR, PTR)); - + bfd_boolean (*_bfd_styp_to_sec_flags_hook) PARAMS ((bfd *, PTR, const char *, asection *, flagword *)); - + void (*_bfd_set_alignment_hook) PARAMS ((bfd *, asection *, PTR)); - + bfd_boolean (*_bfd_coff_slurp_symbol_table) PARAMS ((bfd *)); - + bfd_boolean (*_bfd_coff_symname_in_debug) PARAMS ((bfd *, struct internal_syment *)); - + bfd_boolean (*_bfd_coff_pointerize_aux_hook) PARAMS ((bfd *, combined_entry_type *, combined_entry_type *, unsigned int, combined_entry_type *)); - + bfd_boolean (*_bfd_coff_print_aux) PARAMS ((bfd *, FILE *, combined_entry_type *, combined_entry_type *, combined_entry_type *, unsigned int)); - + void (*_bfd_coff_reloc16_extra_cases) PARAMS ((bfd *, struct bfd_link_info *, struct bfd_link_order *, arelent *, bfd_byte *, unsigned int *, unsigned int *)); - + int (*_bfd_coff_reloc16_estimate) PARAMS ((bfd *, asection *, arelent *, unsigned int, struct bfd_link_info *)); - + enum coff_symbol_classification (*_bfd_coff_classify_symbol) PARAMS ((bfd *, struct internal_syment *)); - + bfd_boolean (*_bfd_coff_compute_section_file_positions) PARAMS ((bfd *)); - + bfd_boolean (*_bfd_coff_start_final_link) PARAMS ((bfd *, struct bfd_link_info *)); - + bfd_boolean (*_bfd_coff_relocate_section) PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, struct internal_reloc *, struct internal_syment *, asection **)); - + reloc_howto_type *(*_bfd_coff_rtype_to_howto) PARAMS ((bfd *, asection *, struct internal_reloc *, struct coff_link_hash_entry *, struct internal_syment *, bfd_vma *)); - + bfd_boolean (*_bfd_coff_adjust_symndx) PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, struct internal_reloc *, bfd_boolean *)); - + bfd_boolean (*_bfd_coff_link_add_one_symbol) PARAMS ((struct bfd_link_info *, bfd *, const char *, flagword, asection *, bfd_vma, const char *, bfd_boolean, bfd_boolean, struct bfd_link_hash_entry **)); - + bfd_boolean (*_bfd_coff_link_output_has_begun) PARAMS ((bfd *, struct coff_final_link_info *)); - + bfd_boolean (*_bfd_coff_final_link_postscript) PARAMS ((bfd *, struct coff_final_link_info *)); - + } bfd_coff_backend_data; - + #define coff_backend_info(abfd) \ ((bfd_coff_backend_data *) (abfd)->xvec->backend_data) - + #define bfd_coff_swap_aux_in(a,e,t,c,ind,num,i) \ ((coff_backend_info (a)->_bfd_coff_swap_aux_in) (a,e,t,c,ind,num,i)) - + #define bfd_coff_swap_sym_in(a,e,i) \ ((coff_backend_info (a)->_bfd_coff_swap_sym_in) (a,e,i)) - + #define bfd_coff_swap_lineno_in(a,e,i) \ ((coff_backend_info ( a)->_bfd_coff_swap_lineno_in) (a,e,i)) - + #define bfd_coff_swap_reloc_out(abfd, i, o) \ ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_out) (abfd, i, o)) - + #define bfd_coff_swap_lineno_out(abfd, i, o) \ ((coff_backend_info (abfd)->_bfd_coff_swap_lineno_out) (abfd, i, o)) - + #define bfd_coff_swap_aux_out(a,i,t,c,ind,num,o) \ ((coff_backend_info (a)->_bfd_coff_swap_aux_out) (a,i,t,c,ind,num,o)) - + #define bfd_coff_swap_sym_out(abfd, i,o) \ ((coff_backend_info (abfd)->_bfd_coff_swap_sym_out) (abfd, i, o)) - + #define bfd_coff_swap_scnhdr_out(abfd, i,o) \ ((coff_backend_info (abfd)->_bfd_coff_swap_scnhdr_out) (abfd, i, o)) - + #define bfd_coff_swap_filehdr_out(abfd, i,o) \ ((coff_backend_info (abfd)->_bfd_coff_swap_filehdr_out) (abfd, i, o)) - + #define bfd_coff_swap_aouthdr_out(abfd, i,o) \ ((coff_backend_info (abfd)->_bfd_coff_swap_aouthdr_out) (abfd, i, o)) - + #define bfd_coff_filhsz(abfd) (coff_backend_info (abfd)->_bfd_filhsz) #define bfd_coff_aoutsz(abfd) (coff_backend_info (abfd)->_bfd_aoutsz) #define bfd_coff_scnhsz(abfd) (coff_backend_info (abfd)->_bfd_scnhsz) @@ -7579,65 +7598,65 @@ (coff_backend_info (abfd)->_bfd_coff_default_section_alignment_power) #define bfd_coff_swap_filehdr_in(abfd, i,o) \ ((coff_backend_info (abfd)->_bfd_coff_swap_filehdr_in) (abfd, i, o)) - + #define bfd_coff_swap_aouthdr_in(abfd, i,o) \ ((coff_backend_info (abfd)->_bfd_coff_swap_aouthdr_in) (abfd, i, o)) - + #define bfd_coff_swap_scnhdr_in(abfd, i,o) \ ((coff_backend_info (abfd)->_bfd_coff_swap_scnhdr_in) (abfd, i, o)) - + #define bfd_coff_swap_reloc_in(abfd, i, o) \ ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_in) (abfd, i, o)) - + #define bfd_coff_bad_format_hook(abfd, filehdr) \ ((coff_backend_info (abfd)->_bfd_coff_bad_format_hook) (abfd, filehdr)) - + #define bfd_coff_set_arch_mach_hook(abfd, filehdr)\ ((coff_backend_info (abfd)->_bfd_coff_set_arch_mach_hook) (abfd, filehdr)) #define bfd_coff_mkobject_hook(abfd, filehdr, aouthdr)\ ((coff_backend_info (abfd)->_bfd_coff_mkobject_hook)\ (abfd, filehdr, aouthdr)) - + #define bfd_coff_styp_to_sec_flags_hook(abfd, scnhdr, name, section, flags_ptr)\ ((coff_backend_info (abfd)->_bfd_styp_to_sec_flags_hook)\ (abfd, scnhdr, name, section, flags_ptr)) - + #define bfd_coff_set_alignment_hook(abfd, sec, scnhdr)\ ((coff_backend_info (abfd)->_bfd_set_alignment_hook) (abfd, sec, scnhdr)) - + #define bfd_coff_slurp_symbol_table(abfd)\ ((coff_backend_info (abfd)->_bfd_coff_slurp_symbol_table) (abfd)) - + #define bfd_coff_symname_in_debug(abfd, sym)\ ((coff_backend_info (abfd)->_bfd_coff_symname_in_debug) (abfd, sym)) - + #define bfd_coff_force_symnames_in_strings(abfd)\ (coff_backend_info (abfd)->_bfd_coff_force_symnames_in_strings) - + #define bfd_coff_debug_string_prefix_length(abfd)\ (coff_backend_info (abfd)->_bfd_coff_debug_string_prefix_length) - + #define bfd_coff_print_aux(abfd, file, base, symbol, aux, indaux)\ ((coff_backend_info (abfd)->_bfd_coff_print_aux)\ (abfd, file, base, symbol, aux, indaux)) - + #define bfd_coff_reloc16_extra_cases(abfd, link_info, link_order,\ reloc, data, src_ptr, dst_ptr)\ ((coff_backend_info (abfd)->_bfd_coff_reloc16_extra_cases)\ (abfd, link_info, link_order, reloc, data, src_ptr, dst_ptr)) - + #define bfd_coff_reloc16_estimate(abfd, section, reloc, shrink, link_info)\ ((coff_backend_info (abfd)->_bfd_coff_reloc16_estimate)\ (abfd, section, reloc, shrink, link_info)) - + #define bfd_coff_classify_symbol(abfd, sym)\ ((coff_backend_info (abfd)->_bfd_coff_classify_symbol)\ (abfd, sym)) - + #define bfd_coff_compute_section_file_positions(abfd)\ ((coff_backend_info (abfd)->_bfd_coff_compute_section_file_positions)\ (abfd)) - + #define bfd_coff_start_final_link(obfd, info)\ ((coff_backend_info (obfd)->_bfd_coff_start_final_link)\ (obfd, info)) @@ -7654,16 +7673,16 @@ value, string, cp, coll, hashp)\ ((coff_backend_info (abfd)->_bfd_coff_link_add_one_symbol)\ (info, abfd, name, flags, section, value, string, cp, coll, hashp)) - + #define bfd_coff_link_output_has_begun(a,p) \ ((coff_backend_info (a)->_bfd_coff_link_output_has_begun) (a,p)) #define bfd_coff_final_link_postscript(a,p) \ ((coff_backend_info (a)->_bfd_coff_final_link_postscript) (a,p)) -3.2.2.7 Writing relocations -........................... +Writing relocations +................... -To write relocations, the back end steps though the canonical + To write relocations, the back end steps though the canonical relocation table and create an `internal_reloc'. The symbol index to use is removed from the `offset' field in the symbol table supplied. The address comes directly from the sum of the section base address and @@ -7671,10 +7690,10 @@ Then the `internal_reloc' is swapped into the shape of an `external_reloc' and written out to disk. -3.2.2.8 Reading linenumbers -........................... +Reading linenumbers +................... -Creating the linenumber table is done by reading in the entire coff + Creating the linenumber table is done by reading in the entire coff linenumber table, and creating another table for internal use. A coff linenumber table is structured so that each function is @@ -7691,10 +7710,10 @@ How does this work ? -3.2.2.9 Reading relocations -........................... +Reading relocations +................... -Coff relocations are easily transformed into the internal BFD form + Coff relocations are easily transformed into the internal BFD form (`arelent'). Reading a coff relocation table is done in the following stages: @@ -7719,10 +7738,9 @@  File: bfd.info, Node: elf, Next: mmo, Prev: coff, Up: BFD back ends -3.3 -=== -ELF backends + + ELF backends BFD support for ELF formats is being worked on. Currently, the best supported back ends are for sparc and i386 (running svr4 or Solaris 2). @@ -7731,10 +7749,10 @@ written. The code is changing quickly enough that we haven't bothered yet. -3.3.0.1 `bfd_elf_find_section' -.............................. +`bfd_elf_find_section' +...................... -*Synopsis* + *Synopsis* struct elf_internal_shdr *bfd_elf_find_section (bfd *abfd, char *name); *Description* Helper functions for GDB to locate the string tables. Since BFD hides @@ -7746,20 +7764,20 @@  File: bfd.info, Node: mmo, Prev: elf, Up: BFD back ends -3.4 mmo backend -=============== +mmo backend +=========== -The mmo object format is used exclusively together with Professor + The mmo object format is used exclusively together with Professor Donald E. Knuth's educational 64-bit processor MMIX. The simulator `mmix' which is available at -`http://www-cs-faculty.stanford.edu/~knuth/programs/mmix.tar.gz' + understands this format. That package also includes a combined assembler and linker called `mmixal'. The mmo format has no advantages feature-wise compared to e.g. ELF. It is a simple non-relocatable object format with no support for archives or debugging information, except for symbol value information and line numbers (which is not yet implemented in BFD). See -`http://www-cs-faculty.stanford.edu/~knuth/mmix.html' for more + for more information about MMIX. The ELF format is used for intermediate object files in the BFD implementation. @@ -7772,10 +7790,10 @@  File: bfd.info, Node: File layout, Next: Symbol-table, Prev: mmo, Up: mmo -3.4.1 File layout ------------------ +File layout +----------- -The mmo file contents is not partitioned into named sections as with + The mmo file contents is not partitioned into named sections as with e.g. ELF. Memory areas is formed by specifying the location of the data that follows. Only the memory area `0x0000...00' to `0x01ff...ff' is executable, so it is used for code (and constants) and the area @@ -7793,7 +7811,7 @@ the thirteen lopcodes. The two remaining bytes, called the `Y' and `Z' fields, or the `YZ' field (a 16-bit big-endian number), are used for various purposes different for each lopcode. As documented in -`http://www-cs-faculty.stanford.edu/~knuth/mmixal-intro.ps.gz', the +, the lopcodes are: `lop_quote' @@ -7910,11 +7928,11 @@  File: bfd.info, Node: Symbol-table, Next: mmo section mapping, Prev: File layout, Up: mmo -3.4.2 Symbol table format -------------------------- +Symbol table format +------------------- -From mmixal.w (or really, the generated mmixal.tex) in -`http://www-cs-faculty.stanford.edu/~knuth/programs/mmix.tar.gz'): + From mmixal.w (or really, the generated mmixal.tex) in +): "Symbols are stored and retrieved by means of a `ternary search trie', following ideas of Bentley and Sedgewick. (See ACM-SIAM Symp. on Discrete Algorithms `8' (1997), 360-369; R.Sedgewick, `Algorithms in C' @@ -7935,22 +7953,22 @@ (MMO3_LEFT) 0x40 - Traverse left trie. (Read a new command byte and recurse.) - + (MMO3_SYMBITS) 0x2f - Read the next byte as a character and store it in the current character position; increment character position. Test the bits of `m': - + (MMO3_WCHAR) 0x80 - The character is 16-bit (so read another byte, merge into current character. - + (MMO3_TYPEBITS) 0xf - We have a complete symbol; parse the type, value and serial number and do what should be done with a symbol. The type and length information is in j = (m & 0xf). - + (MMO3_REGQUAL_BITS) j == 0xf: A register variable. The following byte tells which register. @@ -7961,18 +7979,18 @@ j > 8: As with j <= 8, but add (0x20 << 56) to the value in the following j - 8 bytes. - + Then comes the serial number, as a variant of uleb128, but better named ubeb128: Read bytes and shift the previous value left 7 (multiply by 128). Add in the new byte, repeat until a byte has bit 7 set. The serial number is the computed value minus 128. - + (MMO3_MIDDLE) 0x20 - Traverse middle trie. (Read a new command byte and recurse.) Decrement character position. - + (MMO3_RIGHT) 0x10 - Traverse right trie. (Read a new command byte and recurse.) @@ -8004,3 +8022,1644 @@ 00 The value is 0. 81 The serial number is 1. + +File: bfd.info, Node: mmo section mapping, Prev: Symbol-table, Up: mmo + +mmo section mapping +------------------- + + The implementation in BFD uses special data type 80 (decimal) to +encapsulate and describe named sections, containing e.g. debug +information. If needed, any datum in the encapsulation will be quoted +using lop_quote. First comes a 32-bit word holding the number of +32-bit words containing the zero-terminated zero-padded segment name. +After the name there's a 32-bit word holding flags describing the +section type. Then comes a 64-bit big-endian word with the section +length (in bytes), then another with the section start address. +Depending on the type of section, the contents might follow, +zero-padded to 32-bit boundary. For a loadable section (such as data +or code), the contents might follow at some later point, not +necessarily immediately, as a lop_loc with the same start address as in +the section description, followed by the contents. This in effect +forms a descriptor that must be emitted before the actual contents. +Sections described this way must not overlap. + + For areas that don't have such descriptors, synthetic sections are +formed by BFD. Consecutive contents in the two memory areas +`0x0000...00' to `0x01ff...ff' and `0x2000...00' to `0x20ff...ff' are +entered in sections named `.text' and `.data' respectively. If an area +is not otherwise described, but would together with a neighboring lower +area be less than `0x40000000' bytes long, it is joined with the lower +area and the gap is zero-filled. For other cases, a new section is +formed, named `.MMIX.sec.N'. Here, N is a number, a running count +through the mmo file, starting at 0. + + A loadable section specified as: + + .section secname,"ax" + TETRA 1,2,3,4,-1,-2009 + BYTE 80 + + and linked to address `0x4', is represented by the sequence: + + 0x98080050 - lop_spec 80 + 0x00000002 - two 32-bit words for the section name + 0x7365636e - "secn" + 0x616d6500 - "ame\0" + 0x00000033 - flags CODE, READONLY, LOAD, ALLOC + 0x00000000 - high 32 bits of section length + 0x0000001c - section length is 28 bytes; 6 * 4 + 1 + alignment to 32 bits + 0x00000000 - high 32 bits of section address + 0x00000004 - section address is 4 + 0x98010002 - 64 bits with address of following data + 0x00000000 - high 32 bits of address + 0x00000004 - low 32 bits: data starts at address 4 + 0x00000001 - 1 + 0x00000002 - 2 + 0x00000003 - 3 + 0x00000004 - 4 + 0xffffffff - -1 + 0xfffff827 - -2009 + 0x50000000 - 80 as a byte, padded with zeros. + + Note that the lop_spec wrapping does not include the section +contents. Compare this to a non-loaded section specified as: + + .section thirdsec + TETRA 200001,100002 + BYTE 38,40 + + This, when linked to address `0x200000000000001c', is represented by: + + 0x98080050 - lop_spec 80 + 0x00000002 - two 32-bit words for the section name + 0x7365636e - "thir" + 0x616d6500 - "dsec" + 0x00000010 - flag READONLY + 0x00000000 - high 32 bits of section length + 0x0000000c - section length is 12 bytes; 2 * 4 + 2 + alignment to 32 bits + 0x20000000 - high 32 bits of address + 0x0000001c - low 32 bits of address 0x200000000000001c + 0x00030d41 - 200001 + 0x000186a2 - 100002 + 0x26280000 - 38, 40 as bytes, padded with zeros + + For the latter example, the section contents must not be loaded in +memory, and is therefore specified as part of the special data. The +address is usually unimportant but might provide information for e.g. +the DWARF 2 debugging format. + + +File: bfd.info, Node: GNU Free Documentation License, Next: Index, Prev: BFD back ends, Up: Top + +GNU Free Documentation License +****************************** + + Version 1.1, March 2000 + Copyright (C) 2000, 2003 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + 0. PREAMBLE + + The purpose of this License is to make a manual, textbook, or other + written document "free" in the sense of freedom: to assure everyone + the effective freedom to copy and redistribute it, with or without + modifying it, either commercially or noncommercially. Secondarily, + this License preserves for the author and publisher a way to get + credit for their work, while not being considered responsible for + modifications made by others. + + This License is a kind of "copyleft", which means that derivative + works of the document must themselves be free in the same sense. + It complements the GNU General Public License, which is a copyleft + license designed for free software. + + We have designed this License in order to use it for manuals for + free software, because free software needs free documentation: a + free program should come with manuals providing the same freedoms + that the software does. But this License is not limited to + software manuals; it can be used for any textual work, regardless + of subject matter or whether it is published as a printed book. + We recommend this License principally for works whose purpose is + instruction or reference. + + + 1. APPLICABILITY AND DEFINITIONS + + This License applies to any manual or other work that contains a + notice placed by the copyright holder saying it can be distributed + under the terms of this License. The "Document", below, refers to + any such manual or work. Any member of the public is a licensee, + and is addressed as "you." + + A "Modified Version" of the Document means any work containing the + Document or a portion of it, either copied verbatim, or with + modifications and/or translated into another language. + + A "Secondary Section" is a named appendix or a front-matter + section of the Document that deals exclusively with the + relationship of the publishers or authors of the Document to the + Document's overall subject (or to related matters) and contains + nothing that could fall directly within that overall subject. + (For example, if the Document is in part a textbook of + mathematics, a Secondary Section may not explain any mathematics.) + The relationship could be a matter of historical connection with + the subject or with related matters, or of legal, commercial, + philosophical, ethical or political position regarding them. + + The "Invariant Sections" are certain Secondary Sections whose + titles are designated, as being those of Invariant Sections, in + the notice that says that the Document is released under this + License. + + The "Cover Texts" are certain short passages of text that are + listed, as Front-Cover Texts or Back-Cover Texts, in the notice + that says that the Document is released under this License. + + A "Transparent" copy of the Document means a machine-readable copy, + represented in a format whose specification is available to the + general public, whose contents can be viewed and edited directly + and straightforwardly with generic text editors or (for images + composed of pixels) generic paint programs or (for drawings) some + widely available drawing editor, and that is suitable for input to + text formatters or for automatic translation to a variety of + formats suitable for input to text formatters. A copy made in an + otherwise Transparent file format whose markup has been designed + to thwart or discourage subsequent modification by readers is not + Transparent. A copy that is not "Transparent" is called "Opaque." + + Examples of suitable formats for Transparent copies include plain + ASCII without markup, Texinfo input format, LaTeX input format, + SGML or XML using a publicly available DTD, and + standard-conforming simple HTML designed for human modification. + Opaque formats include PostScript, PDF, proprietary formats that + can be read and edited only by proprietary word processors, SGML + or XML for which the DTD and/or processing tools are not generally + available, and the machine-generated HTML produced by some word + processors for output purposes only. + + The "Title Page" means, for a printed book, the title page itself, + plus such following pages as are needed to hold, legibly, the + material this License requires to appear in the title page. For + works in formats which do not have any title page as such, "Title + Page" means the text near the most prominent appearance of the + work's title, preceding the beginning of the body of the text. + + 2. VERBATIM COPYING + + You may copy and distribute the Document in any medium, either + commercially or noncommercially, provided that this License, the + copyright notices, and the license notice saying this License + applies to the Document are reproduced in all copies, and that you + add no other conditions whatsoever to those of this License. You + may not use technical measures to obstruct or control the reading + or further copying of the copies you make or distribute. However, + you may accept compensation in exchange for copies. If you + distribute a large enough number of copies you must also follow + the conditions in section 3. + + You may also lend copies, under the same conditions stated above, + and you may publicly display copies. + + 3. COPYING IN QUANTITY + + If you publish printed copies of the Document numbering more than + 100, and the Document's license notice requires Cover Texts, you + must enclose the copies in covers that carry, clearly and legibly, + all these Cover Texts: Front-Cover Texts on the front cover, and + Back-Cover Texts on the back cover. Both covers must also clearly + and legibly identify you as the publisher of these copies. The + front cover must present the full title with all words of the + title equally prominent and visible. You may add other material + on the covers in addition. Copying with changes limited to the + covers, as long as they preserve the title of the Document and + satisfy these conditions, can be treated as verbatim copying in + other respects. + + If the required texts for either cover are too voluminous to fit + legibly, you should put the first ones listed (as many as fit + reasonably) on the actual cover, and continue the rest onto + adjacent pages. + + If you publish or distribute Opaque copies of the Document + numbering more than 100, you must either include a + machine-readable Transparent copy along with each Opaque copy, or + state in or with each Opaque copy a publicly-accessible + computer-network location containing a complete Transparent copy + of the Document, free of added material, which the general + network-using public has access to download anonymously at no + charge using public-standard network protocols. If you use the + latter option, you must take reasonably prudent steps, when you + begin distribution of Opaque copies in quantity, to ensure that + this Transparent copy will remain thus accessible at the stated + location until at least one year after the last time you + distribute an Opaque copy (directly or through your agents or + retailers) of that edition to the public. + + It is requested, but not required, that you contact the authors of + the Document well before redistributing any large number of + copies, to give them a chance to provide you with an updated + version of the Document. + + 4. MODIFICATIONS + + You may copy and distribute a Modified Version of the Document + under the conditions of sections 2 and 3 above, provided that you + release the Modified Version under precisely this License, with + the Modified Version filling the role of the Document, thus + licensing distribution and modification of the Modified Version to + whoever possesses a copy of it. In addition, you must do these + things in the Modified Version: + + A. Use in the Title Page (and on the covers, if any) a title + distinct from that of the Document, and from those of previous + versions (which should, if there were any, be listed in the + History section of the Document). You may use the same title + as a previous version if the original publisher of that version + gives permission. + B. List on the Title Page, as authors, one or more persons or + entities responsible for authorship of the modifications in the + Modified Version, together with at least five of the principal + authors of the Document (all of its principal authors, if it + has less than five). + C. State on the Title page the name of the publisher of the + Modified Version, as the publisher. + D. Preserve all the copyright notices of the Document. + E. Add an appropriate copyright notice for your modifications + adjacent to the other copyright notices. + F. Include, immediately after the copyright notices, a license + notice giving the public permission to use the Modified Version + under the terms of this License, in the form shown in the + Addendum below. + G. Preserve in that license notice the full lists of Invariant + Sections and required Cover Texts given in the Document's + license notice. + H. Include an unaltered copy of this License. + I. Preserve the section entitled "History", and its title, and add + to it an item stating at least the title, year, new authors, and + publisher of the Modified Version as given on the Title Page. + If there is no section entitled "History" in the Document, + create one stating the title, year, authors, and publisher of + the Document as given on its Title Page, then add an item + describing the Modified Version as stated in the previous + sentence. + J. Preserve the network location, if any, given in the Document for + public access to a Transparent copy of the Document, and + likewise the network locations given in the Document for + previous versions it was based on. These may be placed in the + "History" section. You may omit a network location for a work + that was published at least four years before the Document + itself, or if the original publisher of the version it refers + to gives permission. + K. In any section entitled "Acknowledgements" or "Dedications", + preserve the section's title, and preserve in the section all the + substance and tone of each of the contributor acknowledgements + and/or dedications given therein. + L. Preserve all the Invariant Sections of the Document, + unaltered in their text and in their titles. Section numbers + or the equivalent are not considered part of the section titles. + M. Delete any section entitled "Endorsements." Such a section + may not be included in the Modified Version. + N. Do not retitle any existing section as "Endorsements" or to + conflict in title with any Invariant Section. + + If the Modified Version includes new front-matter sections or + appendices that qualify as Secondary Sections and contain no + material copied from the Document, you may at your option + designate some or all of these sections as invariant. To do this, + add their titles to the list of Invariant Sections in the Modified + Version's license notice. These titles must be distinct from any + other section titles. + + You may add a section entitled "Endorsements", provided it contains + nothing but endorsements of your Modified Version by various + parties-for example, statements of peer review or that the text has + been approved by an organization as the authoritative definition + of a standard. + + You may add a passage of up to five words as a Front-Cover Text, + and a passage of up to 25 words as a Back-Cover Text, to the end + of the list of Cover Texts in the Modified Version. Only one + passage of Front-Cover Text and one of Back-Cover Text may be + added by (or through arrangements made by) any one entity. If the + Document already includes a cover text for the same cover, + previously added by you or by arrangement made by the same entity + you are acting on behalf of, you may not add another; but you may + replace the old one, on explicit permission from the previous + publisher that added the old one. + + The author(s) and publisher(s) of the Document do not by this + License give permission to use their names for publicity for or to + assert or imply endorsement of any Modified Version. + + 5. COMBINING DOCUMENTS + + You may combine the Document with other documents released under + this License, under the terms defined in section 4 above for + modified versions, provided that you include in the combination + all of the Invariant Sections of all of the original documents, + unmodified, and list them all as Invariant Sections of your + combined work in its license notice. + + The combined work need only contain one copy of this License, and + multiple identical Invariant Sections may be replaced with a single + copy. If there are multiple Invariant Sections with the same name + but different contents, make the title of each such section unique + by adding at the end of it, in parentheses, the name of the + original author or publisher of that section if known, or else a + unique number. Make the same adjustment to the section titles in + the list of Invariant Sections in the license notice of the + combined work. + + In the combination, you must combine any sections entitled + "History" in the various original documents, forming one section + entitled "History"; likewise combine any sections entitled + "Acknowledgements", and any sections entitled "Dedications." You + must delete all sections entitled "Endorsements." + + 6. COLLECTIONS OF DOCUMENTS + + You may make a collection consisting of the Document and other + documents released under this License, and replace the individual + copies of this License in the various documents with a single copy + that is included in the collection, provided that you follow the + rules of this License for verbatim copying of each of the + documents in all other respects. + + You may extract a single document from such a collection, and + distribute it individually under this License, provided you insert + a copy of this License into the extracted document, and follow + this License in all other respects regarding verbatim copying of + that document. + + 7. AGGREGATION WITH INDEPENDENT WORKS + + A compilation of the Document or its derivatives with other + separate and independent documents or works, in or on a volume of + a storage or distribution medium, does not as a whole count as a + Modified Version of the Document, provided no compilation + copyright is claimed for the compilation. Such a compilation is + called an "aggregate", and this License does not apply to the + other self-contained works thus compiled with the Document, on + account of their being thus compiled, if they are not themselves + derivative works of the Document. + + If the Cover Text requirement of section 3 is applicable to these + copies of the Document, then if the Document is less than one + quarter of the entire aggregate, the Document's Cover Texts may be + placed on covers that surround only the Document within the + aggregate. Otherwise they must appear on covers around the whole + aggregate. + + 8. TRANSLATION + + Translation is considered a kind of modification, so you may + distribute translations of the Document under the terms of section + 4. Replacing Invariant Sections with translations requires special + permission from their copyright holders, but you may include + translations of some or all Invariant Sections in addition to the + original versions of these Invariant Sections. You may include a + translation of this License provided that you also include the + original English version of this License. In case of a + disagreement between the translation and the original English + version of this License, the original English version will prevail. + + 9. TERMINATION + + You may not copy, modify, sublicense, or distribute the Document + except as expressly provided for under this License. Any other + attempt to copy, modify, sublicense or distribute the Document is + void, and will automatically terminate your rights under this + License. However, parties who have received copies, or rights, + from you under this License will not have their licenses + terminated so long as such parties remain in full compliance. + + 10. FUTURE REVISIONS OF THIS LICENSE + + The Free Software Foundation may publish new, revised versions of + the GNU Free Documentation License from time to time. Such new + versions will be similar in spirit to the present version, but may + differ in detail to address new problems or concerns. See + http://www.gnu.org/copyleft/. + + Each version of the License is given a distinguishing version + number. If the Document specifies that a particular numbered + version of this License "or any later version" applies to it, you + have the option of following the terms and conditions either of + that specified version or of any later version that has been + published (not as a draft) by the Free Software Foundation. If + the Document does not specify a version number of this License, + you may choose any version ever published (not as a draft) by the + Free Software Foundation. + + +ADDENDUM: How to use this License for your documents +==================================================== + + To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and license +notices just after the title page: + + Copyright (C) YEAR YOUR NAME. + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.1 + or any later version published by the Free Software Foundation; + with the Invariant Sections being LIST THEIR TITLES, with the + Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. + A copy of the license is included in the section entitled "GNU + Free Documentation License." + + If you have no Invariant Sections, write "with no Invariant Sections" +instead of saying which ones are invariant. If you have no Front-Cover +Texts, write "no Front-Cover Texts" instead of "Front-Cover Texts being +LIST"; likewise for Back-Cover Texts. + + If your document contains nontrivial examples of program code, we +recommend releasing these examples in parallel under your choice of +free software license, such as the GNU General Public License, to +permit their use in free software. + + +File: bfd.info, Node: Index, Prev: GNU Free Documentation License, Up: Top + +Index +***** + +* Menu: + +* _bfd_final_link_relocate: Relocating the section contents. +* _bfd_generic_link_add_archive_symbols: Adding symbols from an archive. +* _bfd_generic_link_add_one_symbol: Adding symbols from an object file. +* _bfd_generic_make_empty_symbol: symbol handling functions. +* _bfd_link_add_symbols in target vector: Adding Symbols to the Hash Table. +* _bfd_link_final_link in target vector: Performing the Final Link. +* _bfd_link_hash_table_create in target vector: Creating a Linker Hash Table. +* _bfd_relocate_contents: Relocating the section contents. +* _bfd_strip_section_from_output: section prototypes. +* aout_SIZE_machine_type: aout. +* aout_SIZE_mkobject: aout. +* aout_SIZE_new_section_hook: aout. +* aout_SIZE_set_arch_mach: aout. +* aout_SIZE_some_aout_object_p: aout. +* aout_SIZE_swap_exec_header_in: aout. +* aout_SIZE_swap_exec_header_out: aout. +* arelent_chain: typedef arelent. +* BFD: Overview. +* BFD canonical format: Canonical format. +* bfd_alloc: Opening and Closing. +* bfd_alt_mach_code: BFD front end. +* bfd_arch_bits_per_address: Architectures. +* bfd_arch_bits_per_byte: Architectures. +* bfd_arch_get_compatible: Architectures. +* bfd_arch_list: Architectures. +* bfd_arch_mach_octets_per_byte: Architectures. +* bfd_cache_close: File Caching. +* bfd_cache_close_all: File Caching. +* bfd_cache_init: File Caching. +* bfd_cache_lookup: File Caching. +* bfd_cache_lookup_worker: File Caching. +* BFD_CACHE_MAX_OPEN macro: File Caching. +* bfd_calc_gnu_debuglink_crc32: Opening and Closing. +* bfd_canonicalize_reloc: BFD front end. +* bfd_canonicalize_symtab: symbol handling functions. +* bfd_check_format: Formats. +* bfd_check_format_matches: Formats. +* bfd_check_overflow: typedef arelent. +* bfd_close: Opening and Closing. +* bfd_close_all_done: Opening and Closing. +* bfd_coff_backend_data: coff. +* bfd_copy_private_bfd_data: BFD front end. +* bfd_copy_private_header_data: BFD front end. +* bfd_copy_private_section_data: section prototypes. +* bfd_copy_private_symbol_data: symbol handling functions. +* bfd_core_file_failing_command: Core Files. +* bfd_core_file_failing_signal: Core Files. +* bfd_create: Opening and Closing. +* bfd_create_gnu_debuglink_section: Opening and Closing. +* bfd_decode_symclass: symbol handling functions. +* bfd_default_arch_struct: Architectures. +* bfd_default_compatible: Architectures. +* bfd_default_reloc_type_lookup: howto manager. +* bfd_default_scan: Architectures. +* bfd_default_set_arch_mach: Architectures. +* bfd_elf_find_section: elf. +* bfd_errmsg: BFD front end. +* bfd_fdopenr: Opening and Closing. +* bfd_fill_in_gnu_debuglink_section: Opening and Closing. +* bfd_find_target: bfd_target. +* bfd_follow_gnu_debuglink: Opening and Closing. +* bfd_format_string: Formats. +* bfd_generic_discard_group: section prototypes. +* bfd_generic_gc_sections: howto manager. +* bfd_generic_get_relocated_section_contents: howto manager. +* bfd_generic_is_group_section: section prototypes. +* bfd_generic_merge_sections: howto manager. +* bfd_generic_relax_section: howto manager. +* bfd_get_arch: Architectures. +* bfd_get_arch_info: Architectures. +* bfd_get_arch_size: BFD front end. +* bfd_get_error: BFD front end. +* bfd_get_error_handler: BFD front end. +* bfd_get_gp_size: BFD front end. +* bfd_get_mach: Architectures. +* bfd_get_mtime: BFD front end. +* bfd_get_next_mapent: Archives. +* bfd_get_reloc_code_name: howto manager. +* bfd_get_reloc_size: typedef arelent. +* bfd_get_reloc_upper_bound: BFD front end. +* bfd_get_section_by_name: section prototypes. +* bfd_get_section_by_name_if: section prototypes. +* bfd_get_section_contents: section prototypes. +* bfd_get_sign_extend_vma: BFD front end. +* bfd_get_size <1>: Internal. +* bfd_get_size: BFD front end. +* bfd_get_symtab_upper_bound: symbol handling functions. +* bfd_get_unique_section_name: section prototypes. +* bfd_h_put_size: Internal. +* bfd_hash_allocate: Creating and Freeing a Hash Table. +* bfd_hash_lookup: Looking Up or Entering a String. +* bfd_hash_newfunc: Creating and Freeing a Hash Table. +* bfd_hash_set_default_size: Creating and Freeing a Hash Table. +* bfd_hash_table_free: Creating and Freeing a Hash Table. +* bfd_hash_table_init: Creating and Freeing a Hash Table. +* bfd_hash_table_init_n: Creating and Freeing a Hash Table. +* bfd_hash_traverse: Traversing a Hash Table. +* bfd_init: Initialization. +* bfd_install_relocation: typedef arelent. +* bfd_is_local_label: symbol handling functions. +* bfd_is_local_label_name: symbol handling functions. +* bfd_is_target_special_symbol: symbol handling functions. +* bfd_is_undefined_symclass: symbol handling functions. +* bfd_last_cache: File Caching. +* bfd_link_split_section: Writing the symbol table. +* bfd_log2: Internal. +* bfd_lookup_arch: Architectures. +* bfd_make_debug_symbol: symbol handling functions. +* bfd_make_empty_symbol: symbol handling functions. +* bfd_make_readable: Opening and Closing. +* bfd_make_section: section prototypes. +* bfd_make_section_anyway: section prototypes. +* bfd_make_section_old_way: section prototypes. +* bfd_make_writable: Opening and Closing. +* bfd_malloc_and_get_section: section prototypes. +* bfd_map_over_sections: section prototypes. +* bfd_merge_private_bfd_data: BFD front end. +* bfd_octets_per_byte: Architectures. +* bfd_open_file: File Caching. +* bfd_openr: Opening and Closing. +* bfd_openr_iovec: Opening and Closing. +* bfd_openr_next_archived_file: Archives. +* bfd_openstreamr: Opening and Closing. +* bfd_openw: Opening and Closing. +* bfd_perform_relocation: typedef arelent. +* bfd_perror: BFD front end. +* bfd_preserve_finish: BFD front end. +* bfd_preserve_restore: BFD front end. +* bfd_preserve_save: BFD front end. +* bfd_print_symbol_vandf: symbol handling functions. +* bfd_printable_arch_mach: Architectures. +* bfd_printable_name: Architectures. +* bfd_put_size: Internal. +* BFD_RELOC_12_PCREL: howto manager. +* BFD_RELOC_14: howto manager. +* BFD_RELOC_16: howto manager. +* BFD_RELOC_16_BASEREL: howto manager. +* BFD_RELOC_16_GOT_PCREL: howto manager. +* BFD_RELOC_16_GOTOFF: howto manager. +* BFD_RELOC_16_PCREL: howto manager. +* BFD_RELOC_16_PCREL_S2: howto manager. +* BFD_RELOC_16_PLT_PCREL: howto manager. +* BFD_RELOC_16_PLTOFF: howto manager. +* BFD_RELOC_16C_ABS20: howto manager. +* BFD_RELOC_16C_ABS20_C: howto manager. +* BFD_RELOC_16C_ABS24: howto manager. +* BFD_RELOC_16C_ABS24_C: howto manager. +* BFD_RELOC_16C_DISP04: howto manager. +* BFD_RELOC_16C_DISP04_C: howto manager. +* BFD_RELOC_16C_DISP08: howto manager. +* BFD_RELOC_16C_DISP08_C: howto manager. +* BFD_RELOC_16C_DISP16: howto manager. +* BFD_RELOC_16C_DISP16_C: howto manager. +* BFD_RELOC_16C_DISP24: howto manager. +* BFD_RELOC_16C_DISP24_C: howto manager. +* BFD_RELOC_16C_DISP24a: howto manager. +* BFD_RELOC_16C_DISP24a_C: howto manager. +* BFD_RELOC_16C_IMM04: howto manager. +* BFD_RELOC_16C_IMM04_C: howto manager. +* BFD_RELOC_16C_IMM16: howto manager. +* BFD_RELOC_16C_IMM16_C: howto manager. +* BFD_RELOC_16C_IMM20: howto manager. +* BFD_RELOC_16C_IMM20_C: howto manager. +* BFD_RELOC_16C_IMM24: howto manager. +* BFD_RELOC_16C_IMM24_C: howto manager. +* BFD_RELOC_16C_IMM32: howto manager. +* BFD_RELOC_16C_IMM32_C: howto manager. +* BFD_RELOC_16C_NUM08: howto manager. +* BFD_RELOC_16C_NUM08_C: howto manager. +* BFD_RELOC_16C_NUM16: howto manager. +* BFD_RELOC_16C_NUM16_C: howto manager. +* BFD_RELOC_16C_NUM32: howto manager. +* BFD_RELOC_16C_NUM32_C: howto manager. +* BFD_RELOC_16C_REG04: howto manager. +* BFD_RELOC_16C_REG04_C: howto manager. +* BFD_RELOC_16C_REG04a: howto manager. +* BFD_RELOC_16C_REG04a_C: howto manager. +* BFD_RELOC_16C_REG14: howto manager. +* BFD_RELOC_16C_REG14_C: howto manager. +* BFD_RELOC_16C_REG16: howto manager. +* BFD_RELOC_16C_REG16_C: howto manager. +* BFD_RELOC_16C_REG20: howto manager. +* BFD_RELOC_16C_REG20_C: howto manager. +* BFD_RELOC_23_PCREL_S2: howto manager. +* BFD_RELOC_24: howto manager. +* BFD_RELOC_24_PCREL: howto manager. +* BFD_RELOC_24_PLT_PCREL: howto manager. +* BFD_RELOC_26: howto manager. +* BFD_RELOC_32: howto manager. +* BFD_RELOC_32_BASEREL: howto manager. +* BFD_RELOC_32_GOT_PCREL: howto manager. +* BFD_RELOC_32_GOTOFF: howto manager. +* BFD_RELOC_32_PCREL: howto manager. +* BFD_RELOC_32_PCREL_S2: howto manager. +* BFD_RELOC_32_PLT_PCREL: howto manager. +* BFD_RELOC_32_PLTOFF: howto manager. +* BFD_RELOC_32_SECREL: howto manager. +* BFD_RELOC_386_COPY: howto manager. +* BFD_RELOC_386_GLOB_DAT: howto manager. +* BFD_RELOC_386_GOT32: howto manager. +* BFD_RELOC_386_GOTOFF: howto manager. +* BFD_RELOC_386_GOTPC: howto manager. +* BFD_RELOC_386_JUMP_SLOT: howto manager. +* BFD_RELOC_386_PLT32: howto manager. +* BFD_RELOC_386_RELATIVE: howto manager. +* BFD_RELOC_386_TLS_DTPMOD32: howto manager. +* BFD_RELOC_386_TLS_DTPOFF32: howto manager. +* BFD_RELOC_386_TLS_GD: howto manager. +* BFD_RELOC_386_TLS_GOTIE: howto manager. +* BFD_RELOC_386_TLS_IE: howto manager. +* BFD_RELOC_386_TLS_IE_32: howto manager. +* BFD_RELOC_386_TLS_LDM: howto manager. +* BFD_RELOC_386_TLS_LDO_32: howto manager. +* BFD_RELOC_386_TLS_LE: howto manager. +* BFD_RELOC_386_TLS_LE_32: howto manager. +* BFD_RELOC_386_TLS_TPOFF: howto manager. +* BFD_RELOC_386_TLS_TPOFF32: howto manager. +* BFD_RELOC_390_12: howto manager. +* BFD_RELOC_390_20: howto manager. +* BFD_RELOC_390_COPY: howto manager. +* BFD_RELOC_390_GLOB_DAT: howto manager. +* BFD_RELOC_390_GOT12: howto manager. +* BFD_RELOC_390_GOT16: howto manager. +* BFD_RELOC_390_GOT20: howto manager. +* BFD_RELOC_390_GOT64: howto manager. +* BFD_RELOC_390_GOTENT: howto manager. +* BFD_RELOC_390_GOTOFF64: howto manager. +* BFD_RELOC_390_GOTPC: howto manager. +* BFD_RELOC_390_GOTPCDBL: howto manager. +* BFD_RELOC_390_GOTPLT12: howto manager. +* BFD_RELOC_390_GOTPLT16: howto manager. +* BFD_RELOC_390_GOTPLT20: howto manager. +* BFD_RELOC_390_GOTPLT32: howto manager. +* BFD_RELOC_390_GOTPLT64: howto manager. +* BFD_RELOC_390_GOTPLTENT: howto manager. +* BFD_RELOC_390_JMP_SLOT: howto manager. +* BFD_RELOC_390_PC16DBL: howto manager. +* BFD_RELOC_390_PC32DBL: howto manager. +* BFD_RELOC_390_PLT16DBL: howto manager. +* BFD_RELOC_390_PLT32: howto manager. +* BFD_RELOC_390_PLT32DBL: howto manager. +* BFD_RELOC_390_PLT64: howto manager. +* BFD_RELOC_390_PLTOFF16: howto manager. +* BFD_RELOC_390_PLTOFF32: howto manager. +* BFD_RELOC_390_PLTOFF64: howto manager. +* BFD_RELOC_390_RELATIVE: howto manager. +* BFD_RELOC_390_TLS_DTPMOD: howto manager. +* BFD_RELOC_390_TLS_DTPOFF: howto manager. +* BFD_RELOC_390_TLS_GD32: howto manager. +* BFD_RELOC_390_TLS_GD64: howto manager. +* BFD_RELOC_390_TLS_GDCALL: howto manager. +* BFD_RELOC_390_TLS_GOTIE12: howto manager. +* BFD_RELOC_390_TLS_GOTIE20: howto manager. +* BFD_RELOC_390_TLS_GOTIE32: howto manager. +* BFD_RELOC_390_TLS_GOTIE64: howto manager. +* BFD_RELOC_390_TLS_IE32: howto manager. +* BFD_RELOC_390_TLS_IE64: howto manager. +* BFD_RELOC_390_TLS_IEENT: howto manager. +* BFD_RELOC_390_TLS_LDCALL: howto manager. +* BFD_RELOC_390_TLS_LDM32: howto manager. +* BFD_RELOC_390_TLS_LDM64: howto manager. +* BFD_RELOC_390_TLS_LDO32: howto manager. +* BFD_RELOC_390_TLS_LDO64: howto manager. +* BFD_RELOC_390_TLS_LE32: howto manager. +* BFD_RELOC_390_TLS_LE64: howto manager. +* BFD_RELOC_390_TLS_LOAD: howto manager. +* BFD_RELOC_390_TLS_TPOFF: howto manager. +* BFD_RELOC_64: howto manager. +* BFD_RELOC_64_PCREL: howto manager. +* BFD_RELOC_64_PLT_PCREL: howto manager. +* BFD_RELOC_64_PLTOFF: howto manager. +* BFD_RELOC_68K_GLOB_DAT: howto manager. +* BFD_RELOC_68K_JMP_SLOT: howto manager. +* BFD_RELOC_68K_RELATIVE: howto manager. +* BFD_RELOC_8: howto manager. +* BFD_RELOC_860_COPY: howto manager. +* BFD_RELOC_860_GLOB_DAT: howto manager. +* BFD_RELOC_860_HAGOT: howto manager. +* BFD_RELOC_860_HAGOTOFF: howto manager. +* BFD_RELOC_860_HAPC: howto manager. +* BFD_RELOC_860_HIGH: howto manager. +* BFD_RELOC_860_HIGHADJ: howto manager. +* BFD_RELOC_860_HIGOT: howto manager. +* BFD_RELOC_860_HIGOTOFF: howto manager. +* BFD_RELOC_860_JUMP_SLOT: howto manager. +* BFD_RELOC_860_LOGOT0: howto manager. +* BFD_RELOC_860_LOGOT1: howto manager. +* BFD_RELOC_860_LOGOTOFF0: howto manager. +* BFD_RELOC_860_LOGOTOFF1: howto manager. +* BFD_RELOC_860_LOGOTOFF2: howto manager. +* BFD_RELOC_860_LOGOTOFF3: howto manager. +* BFD_RELOC_860_LOPC: howto manager. +* BFD_RELOC_860_LOW0: howto manager. +* BFD_RELOC_860_LOW1: howto manager. +* BFD_RELOC_860_LOW2: howto manager. +* BFD_RELOC_860_LOW3: howto manager. +* BFD_RELOC_860_PC16: howto manager. +* BFD_RELOC_860_PC26: howto manager. +* BFD_RELOC_860_PLT26: howto manager. +* BFD_RELOC_860_RELATIVE: howto manager. +* BFD_RELOC_860_SPGOT0: howto manager. +* BFD_RELOC_860_SPGOT1: howto manager. +* BFD_RELOC_860_SPGOTOFF0: howto manager. +* BFD_RELOC_860_SPGOTOFF1: howto manager. +* BFD_RELOC_860_SPLIT0: howto manager. +* BFD_RELOC_860_SPLIT1: howto manager. +* BFD_RELOC_860_SPLIT2: howto manager. +* BFD_RELOC_8_BASEREL: howto manager. +* BFD_RELOC_8_FFnn: howto manager. +* BFD_RELOC_8_GOT_PCREL: howto manager. +* BFD_RELOC_8_GOTOFF: howto manager. +* BFD_RELOC_8_PCREL: howto manager. +* BFD_RELOC_8_PLT_PCREL: howto manager. +* BFD_RELOC_8_PLTOFF: howto manager. +* BFD_RELOC_ALPHA_BRSGP: howto manager. +* BFD_RELOC_ALPHA_CODEADDR: howto manager. +* BFD_RELOC_ALPHA_DTPMOD64: howto manager. +* BFD_RELOC_ALPHA_DTPREL16: howto manager. +* BFD_RELOC_ALPHA_DTPREL64: howto manager. +* BFD_RELOC_ALPHA_DTPREL_HI16: howto manager. +* BFD_RELOC_ALPHA_DTPREL_LO16: howto manager. +* BFD_RELOC_ALPHA_ELF_LITERAL: howto manager. +* BFD_RELOC_ALPHA_GOTDTPREL16: howto manager. +* BFD_RELOC_ALPHA_GOTTPREL16: howto manager. +* BFD_RELOC_ALPHA_GPDISP: howto manager. +* BFD_RELOC_ALPHA_GPDISP_HI16: howto manager. +* BFD_RELOC_ALPHA_GPDISP_LO16: howto manager. +* BFD_RELOC_ALPHA_GPREL_HI16: howto manager. +* BFD_RELOC_ALPHA_GPREL_LO16: howto manager. +* BFD_RELOC_ALPHA_HINT: howto manager. +* BFD_RELOC_ALPHA_LINKAGE: howto manager. +* BFD_RELOC_ALPHA_LITERAL: howto manager. +* BFD_RELOC_ALPHA_LITUSE: howto manager. +* BFD_RELOC_ALPHA_TLSGD: howto manager. +* BFD_RELOC_ALPHA_TLSLDM: howto manager. +* BFD_RELOC_ALPHA_TPREL16: howto manager. +* BFD_RELOC_ALPHA_TPREL64: howto manager. +* BFD_RELOC_ALPHA_TPREL_HI16: howto manager. +* BFD_RELOC_ALPHA_TPREL_LO16: howto manager. +* BFD_RELOC_ARC_B22_PCREL: howto manager. +* BFD_RELOC_ARC_B26: howto manager. +* BFD_RELOC_ARM_ADR_IMM: howto manager. +* BFD_RELOC_ARM_ADRL_IMMEDIATE: howto manager. +* BFD_RELOC_ARM_COPY: howto manager. +* BFD_RELOC_ARM_CP_OFF_IMM: howto manager. +* BFD_RELOC_ARM_CP_OFF_IMM_S2: howto manager. +* BFD_RELOC_ARM_GLOB_DAT: howto manager. +* BFD_RELOC_ARM_GOT12: howto manager. +* BFD_RELOC_ARM_GOT32: howto manager. +* BFD_RELOC_ARM_GOTOFF: howto manager. +* BFD_RELOC_ARM_GOTPC: howto manager. +* BFD_RELOC_ARM_HWLITERAL: howto manager. +* BFD_RELOC_ARM_IMMEDIATE: howto manager. +* BFD_RELOC_ARM_IN_POOL: howto manager. +* BFD_RELOC_ARM_JUMP_SLOT: howto manager. +* BFD_RELOC_ARM_LDR_IMM: howto manager. +* BFD_RELOC_ARM_LITERAL: howto manager. +* BFD_RELOC_ARM_MULTI: howto manager. +* BFD_RELOC_ARM_OFFSET_IMM: howto manager. +* BFD_RELOC_ARM_OFFSET_IMM8: howto manager. +* BFD_RELOC_ARM_PCREL_BLX: howto manager. +* BFD_RELOC_ARM_PCREL_BRANCH: howto manager. +* BFD_RELOC_ARM_PLT32: howto manager. +* BFD_RELOC_ARM_PREL31: howto manager. +* BFD_RELOC_ARM_RELATIVE: howto manager. +* BFD_RELOC_ARM_ROSEGREL32: howto manager. +* BFD_RELOC_ARM_SBREL32: howto manager. +* BFD_RELOC_ARM_SHIFT_IMM: howto manager. +* BFD_RELOC_ARM_SMI: howto manager. +* BFD_RELOC_ARM_SWI: howto manager. +* BFD_RELOC_ARM_TARGET1: howto manager. +* BFD_RELOC_ARM_TARGET2: howto manager. +* BFD_RELOC_ARM_THUMB_ADD: howto manager. +* BFD_RELOC_ARM_THUMB_IMM: howto manager. +* BFD_RELOC_ARM_THUMB_OFFSET: howto manager. +* BFD_RELOC_ARM_THUMB_SHIFT: howto manager. +* BFD_RELOC_AVR_13_PCREL: howto manager. +* BFD_RELOC_AVR_16_PM: howto manager. +* BFD_RELOC_AVR_6: howto manager. +* BFD_RELOC_AVR_6_ADIW: howto manager. +* BFD_RELOC_AVR_7_PCREL: howto manager. +* BFD_RELOC_AVR_CALL: howto manager. +* BFD_RELOC_AVR_HH8_LDI: howto manager. +* BFD_RELOC_AVR_HH8_LDI_NEG: howto manager. +* BFD_RELOC_AVR_HH8_LDI_PM: howto manager. +* BFD_RELOC_AVR_HH8_LDI_PM_NEG: howto manager. +* BFD_RELOC_AVR_HI8_LDI: howto manager. +* BFD_RELOC_AVR_HI8_LDI_NEG: howto manager. +* BFD_RELOC_AVR_HI8_LDI_PM: howto manager. +* BFD_RELOC_AVR_HI8_LDI_PM_NEG: howto manager. +* BFD_RELOC_AVR_LDI: howto manager. +* BFD_RELOC_AVR_LO8_LDI: howto manager. +* BFD_RELOC_AVR_LO8_LDI_NEG: howto manager. +* BFD_RELOC_AVR_LO8_LDI_PM: howto manager. +* BFD_RELOC_AVR_LO8_LDI_PM_NEG: howto manager. +* bfd_reloc_code_type: howto manager. +* BFD_RELOC_CRIS_16_GOT: howto manager. +* BFD_RELOC_CRIS_16_GOTPLT: howto manager. +* BFD_RELOC_CRIS_32_GOT: howto manager. +* BFD_RELOC_CRIS_32_GOTPLT: howto manager. +* BFD_RELOC_CRIS_32_GOTREL: howto manager. +* BFD_RELOC_CRIS_32_PLT_GOTREL: howto manager. +* BFD_RELOC_CRIS_32_PLT_PCREL: howto manager. +* BFD_RELOC_CRIS_BDISP8: howto manager. +* BFD_RELOC_CRIS_COPY: howto manager. +* BFD_RELOC_CRIS_GLOB_DAT: howto manager. +* BFD_RELOC_CRIS_JUMP_SLOT: howto manager. +* BFD_RELOC_CRIS_LAPCQ_OFFSET: howto manager. +* BFD_RELOC_CRIS_RELATIVE: howto manager. +* BFD_RELOC_CRIS_SIGNED_16: howto manager. +* BFD_RELOC_CRIS_SIGNED_6: howto manager. +* BFD_RELOC_CRIS_SIGNED_8: howto manager. +* BFD_RELOC_CRIS_UNSIGNED_16: howto manager. +* BFD_RELOC_CRIS_UNSIGNED_4: howto manager. +* BFD_RELOC_CRIS_UNSIGNED_5: howto manager. +* BFD_RELOC_CRIS_UNSIGNED_6: howto manager. +* BFD_RELOC_CRIS_UNSIGNED_8: howto manager. +* BFD_RELOC_CRX_ABS16: howto manager. +* BFD_RELOC_CRX_ABS32: howto manager. +* BFD_RELOC_CRX_IMM16: howto manager. +* BFD_RELOC_CRX_IMM32: howto manager. +* BFD_RELOC_CRX_NUM16: howto manager. +* BFD_RELOC_CRX_NUM32: howto manager. +* BFD_RELOC_CRX_NUM8: howto manager. +* BFD_RELOC_CRX_REGREL12: howto manager. +* BFD_RELOC_CRX_REGREL22: howto manager. +* BFD_RELOC_CRX_REGREL28: howto manager. +* BFD_RELOC_CRX_REGREL32: howto manager. +* BFD_RELOC_CRX_REL16: howto manager. +* BFD_RELOC_CRX_REL24: howto manager. +* BFD_RELOC_CRX_REL32: howto manager. +* BFD_RELOC_CRX_REL4: howto manager. +* BFD_RELOC_CRX_REL8: howto manager. +* BFD_RELOC_CRX_REL8_CMP: howto manager. +* BFD_RELOC_CRX_SWITCH16: howto manager. +* BFD_RELOC_CRX_SWITCH32: howto manager. +* BFD_RELOC_CRX_SWITCH8: howto manager. +* BFD_RELOC_CTOR: howto manager. +* BFD_RELOC_D10V_10_PCREL_L: howto manager. +* BFD_RELOC_D10V_10_PCREL_R: howto manager. +* BFD_RELOC_D10V_18: howto manager. +* BFD_RELOC_D10V_18_PCREL: howto manager. +* BFD_RELOC_D30V_15: howto manager. +* BFD_RELOC_D30V_15_PCREL: howto manager. +* BFD_RELOC_D30V_15_PCREL_R: howto manager. +* BFD_RELOC_D30V_21: howto manager. +* BFD_RELOC_D30V_21_PCREL: howto manager. +* BFD_RELOC_D30V_21_PCREL_R: howto manager. +* BFD_RELOC_D30V_32: howto manager. +* BFD_RELOC_D30V_32_PCREL: howto manager. +* BFD_RELOC_D30V_6: howto manager. +* BFD_RELOC_D30V_9_PCREL: howto manager. +* BFD_RELOC_D30V_9_PCREL_R: howto manager. +* BFD_RELOC_DLX_HI16_S: howto manager. +* BFD_RELOC_DLX_JMP26: howto manager. +* BFD_RELOC_DLX_LO16: howto manager. +* BFD_RELOC_FR30_10_IN_8: howto manager. +* BFD_RELOC_FR30_12_PCREL: howto manager. +* BFD_RELOC_FR30_20: howto manager. +* BFD_RELOC_FR30_48: howto manager. +* BFD_RELOC_FR30_6_IN_4: howto manager. +* BFD_RELOC_FR30_8_IN_8: howto manager. +* BFD_RELOC_FR30_9_IN_8: howto manager. +* BFD_RELOC_FR30_9_PCREL: howto manager. +* BFD_RELOC_FRV_FUNCDESC: howto manager. +* BFD_RELOC_FRV_FUNCDESC_GOT12: howto manager. +* BFD_RELOC_FRV_FUNCDESC_GOTHI: howto manager. +* BFD_RELOC_FRV_FUNCDESC_GOTLO: howto manager. +* BFD_RELOC_FRV_FUNCDESC_GOTOFF12: howto manager. +* BFD_RELOC_FRV_FUNCDESC_GOTOFFHI: howto manager. +* BFD_RELOC_FRV_FUNCDESC_GOTOFFLO: howto manager. +* BFD_RELOC_FRV_FUNCDESC_VALUE: howto manager. +* BFD_RELOC_FRV_GETTLSOFF: howto manager. +* BFD_RELOC_FRV_GETTLSOFF_RELAX: howto manager. +* BFD_RELOC_FRV_GOT12: howto manager. +* BFD_RELOC_FRV_GOTHI: howto manager. +* BFD_RELOC_FRV_GOTLO: howto manager. +* BFD_RELOC_FRV_GOTOFF12: howto manager. +* BFD_RELOC_FRV_GOTOFFHI: howto manager. +* BFD_RELOC_FRV_GOTOFFLO: howto manager. +* BFD_RELOC_FRV_GOTTLSDESC12: howto manager. +* BFD_RELOC_FRV_GOTTLSDESCHI: howto manager. +* BFD_RELOC_FRV_GOTTLSDESCLO: howto manager. +* BFD_RELOC_FRV_GOTTLSOFF12: howto manager. +* BFD_RELOC_FRV_GOTTLSOFFHI: howto manager. +* BFD_RELOC_FRV_GOTTLSOFFLO: howto manager. +* BFD_RELOC_FRV_GPREL12: howto manager. +* BFD_RELOC_FRV_GPREL32: howto manager. +* BFD_RELOC_FRV_GPRELHI: howto manager. +* BFD_RELOC_FRV_GPRELLO: howto manager. +* BFD_RELOC_FRV_GPRELU12: howto manager. +* BFD_RELOC_FRV_HI16: howto manager. +* BFD_RELOC_FRV_LABEL16: howto manager. +* BFD_RELOC_FRV_LABEL24: howto manager. +* BFD_RELOC_FRV_LO16: howto manager. +* BFD_RELOC_FRV_TLSDESC_RELAX: howto manager. +* BFD_RELOC_FRV_TLSDESC_VALUE: howto manager. +* BFD_RELOC_FRV_TLSMOFF: howto manager. +* BFD_RELOC_FRV_TLSMOFF12: howto manager. +* BFD_RELOC_FRV_TLSMOFFHI: howto manager. +* BFD_RELOC_FRV_TLSMOFFLO: howto manager. +* BFD_RELOC_FRV_TLSOFF: howto manager. +* BFD_RELOC_FRV_TLSOFF_RELAX: howto manager. +* BFD_RELOC_GPREL16: howto manager. +* BFD_RELOC_GPREL32: howto manager. +* BFD_RELOC_H8_DIR16A8: howto manager. +* BFD_RELOC_H8_DIR16R8: howto manager. +* BFD_RELOC_H8_DIR24A8: howto manager. +* BFD_RELOC_H8_DIR24R8: howto manager. +* BFD_RELOC_H8_DIR32A16: howto manager. +* BFD_RELOC_HI16: howto manager. +* BFD_RELOC_HI16_BASEREL: howto manager. +* BFD_RELOC_HI16_GOTOFF: howto manager. +* BFD_RELOC_HI16_PLTOFF: howto manager. +* BFD_RELOC_HI16_S: howto manager. +* BFD_RELOC_HI16_S_BASEREL: howto manager. +* BFD_RELOC_HI16_S_GOTOFF: howto manager. +* BFD_RELOC_HI16_S_PLTOFF: howto manager. +* BFD_RELOC_HI22: howto manager. +* BFD_RELOC_I370_D12: howto manager. +* BFD_RELOC_I960_CALLJ: howto manager. +* BFD_RELOC_IA64_COPY: howto manager. +* BFD_RELOC_IA64_DIR32LSB: howto manager. +* BFD_RELOC_IA64_DIR32MSB: howto manager. +* BFD_RELOC_IA64_DIR64LSB: howto manager. +* BFD_RELOC_IA64_DIR64MSB: howto manager. +* BFD_RELOC_IA64_DTPMOD64LSB: howto manager. +* BFD_RELOC_IA64_DTPMOD64MSB: howto manager. +* BFD_RELOC_IA64_DTPREL14: howto manager. +* BFD_RELOC_IA64_DTPREL22: howto manager. +* BFD_RELOC_IA64_DTPREL32LSB: howto manager. +* BFD_RELOC_IA64_DTPREL32MSB: howto manager. +* BFD_RELOC_IA64_DTPREL64I: howto manager. +* BFD_RELOC_IA64_DTPREL64LSB: howto manager. +* BFD_RELOC_IA64_DTPREL64MSB: howto manager. +* BFD_RELOC_IA64_FPTR32LSB: howto manager. +* BFD_RELOC_IA64_FPTR32MSB: howto manager. +* BFD_RELOC_IA64_FPTR64I: howto manager. +* BFD_RELOC_IA64_FPTR64LSB: howto manager. +* BFD_RELOC_IA64_FPTR64MSB: howto manager. +* BFD_RELOC_IA64_GPREL22: howto manager. +* BFD_RELOC_IA64_GPREL32LSB: howto manager. +* BFD_RELOC_IA64_GPREL32MSB: howto manager. +* BFD_RELOC_IA64_GPREL64I: howto manager. +* BFD_RELOC_IA64_GPREL64LSB: howto manager. +* BFD_RELOC_IA64_GPREL64MSB: howto manager. +* BFD_RELOC_IA64_IMM14: howto manager. +* BFD_RELOC_IA64_IMM22: howto manager. +* BFD_RELOC_IA64_IMM64: howto manager. +* BFD_RELOC_IA64_IPLTLSB: howto manager. +* BFD_RELOC_IA64_IPLTMSB: howto manager. +* BFD_RELOC_IA64_LDXMOV: howto manager. +* BFD_RELOC_IA64_LTOFF22: howto manager. +* BFD_RELOC_IA64_LTOFF22X: howto manager. +* BFD_RELOC_IA64_LTOFF64I: howto manager. +* BFD_RELOC_IA64_LTOFF_DTPMOD22: howto manager. +* BFD_RELOC_IA64_LTOFF_DTPREL22: howto manager. +* BFD_RELOC_IA64_LTOFF_FPTR22: howto manager. +* BFD_RELOC_IA64_LTOFF_FPTR32LSB: howto manager. +* BFD_RELOC_IA64_LTOFF_FPTR32MSB: howto manager. +* BFD_RELOC_IA64_LTOFF_FPTR64I: howto manager. +* BFD_RELOC_IA64_LTOFF_FPTR64LSB: howto manager. +* BFD_RELOC_IA64_LTOFF_FPTR64MSB: howto manager. +* BFD_RELOC_IA64_LTOFF_TPREL22: howto manager. +* BFD_RELOC_IA64_LTV32LSB: howto manager. +* BFD_RELOC_IA64_LTV32MSB: howto manager. +* BFD_RELOC_IA64_LTV64LSB: howto manager. +* BFD_RELOC_IA64_LTV64MSB: howto manager. +* BFD_RELOC_IA64_PCREL21B: howto manager. +* BFD_RELOC_IA64_PCREL21BI: howto manager. +* BFD_RELOC_IA64_PCREL21F: howto manager. +* BFD_RELOC_IA64_PCREL21M: howto manager. +* BFD_RELOC_IA64_PCREL22: howto manager. +* BFD_RELOC_IA64_PCREL32LSB: howto manager. +* BFD_RELOC_IA64_PCREL32MSB: howto manager. +* BFD_RELOC_IA64_PCREL60B: howto manager. +* BFD_RELOC_IA64_PCREL64I: howto manager. +* BFD_RELOC_IA64_PCREL64LSB: howto manager. +* BFD_RELOC_IA64_PCREL64MSB: howto manager. +* BFD_RELOC_IA64_PLTOFF22: howto manager. +* BFD_RELOC_IA64_PLTOFF64I: howto manager. +* BFD_RELOC_IA64_PLTOFF64LSB: howto manager. +* BFD_RELOC_IA64_PLTOFF64MSB: howto manager. +* BFD_RELOC_IA64_REL32LSB: howto manager. +* BFD_RELOC_IA64_REL32MSB: howto manager. +* BFD_RELOC_IA64_REL64LSB: howto manager. +* BFD_RELOC_IA64_REL64MSB: howto manager. +* BFD_RELOC_IA64_SECREL32LSB: howto manager. +* BFD_RELOC_IA64_SECREL32MSB: howto manager. +* BFD_RELOC_IA64_SECREL64LSB: howto manager. +* BFD_RELOC_IA64_SECREL64MSB: howto manager. +* BFD_RELOC_IA64_SEGREL32LSB: howto manager. +* BFD_RELOC_IA64_SEGREL32MSB: howto manager. +* BFD_RELOC_IA64_SEGREL64LSB: howto manager. +* BFD_RELOC_IA64_SEGREL64MSB: howto manager. +* BFD_RELOC_IA64_TPREL14: howto manager. +* BFD_RELOC_IA64_TPREL22: howto manager. +* BFD_RELOC_IA64_TPREL64I: howto manager. +* BFD_RELOC_IA64_TPREL64LSB: howto manager. +* BFD_RELOC_IA64_TPREL64MSB: howto manager. +* BFD_RELOC_IP2K_ADDR16CJP: howto manager. +* BFD_RELOC_IP2K_BANK: howto manager. +* BFD_RELOC_IP2K_EX8DATA: howto manager. +* BFD_RELOC_IP2K_FR9: howto manager. +* BFD_RELOC_IP2K_FR_OFFSET: howto manager. +* BFD_RELOC_IP2K_HI8DATA: howto manager. +* BFD_RELOC_IP2K_HI8INSN: howto manager. +* BFD_RELOC_IP2K_LO8DATA: howto manager. +* BFD_RELOC_IP2K_LO8INSN: howto manager. +* BFD_RELOC_IP2K_PAGE3: howto manager. +* BFD_RELOC_IP2K_PC_SKIP: howto manager. +* BFD_RELOC_IP2K_TEXT: howto manager. +* BFD_RELOC_IQ2000_OFFSET_16: howto manager. +* BFD_RELOC_IQ2000_OFFSET_21: howto manager. +* BFD_RELOC_IQ2000_UHI16: howto manager. +* BFD_RELOC_LO10: howto manager. +* BFD_RELOC_LO16: howto manager. +* BFD_RELOC_LO16_BASEREL: howto manager. +* BFD_RELOC_LO16_GOTOFF: howto manager. +* BFD_RELOC_LO16_PLTOFF: howto manager. +* BFD_RELOC_M32R_10_PCREL: howto manager. +* BFD_RELOC_M32R_18_PCREL: howto manager. +* BFD_RELOC_M32R_24: howto manager. +* BFD_RELOC_M32R_26_PCREL: howto manager. +* BFD_RELOC_M32R_26_PLTREL: howto manager. +* BFD_RELOC_M32R_COPY: howto manager. +* BFD_RELOC_M32R_GLOB_DAT: howto manager. +* BFD_RELOC_M32R_GOT16_HI_SLO: howto manager. +* BFD_RELOC_M32R_GOT16_HI_ULO: howto manager. +* BFD_RELOC_M32R_GOT16_LO: howto manager. +* BFD_RELOC_M32R_GOT24: howto manager. +* BFD_RELOC_M32R_GOTOFF: howto manager. +* BFD_RELOC_M32R_GOTOFF_HI_SLO: howto manager. +* BFD_RELOC_M32R_GOTOFF_HI_ULO: howto manager. +* BFD_RELOC_M32R_GOTOFF_LO: howto manager. +* BFD_RELOC_M32R_GOTPC24: howto manager. +* BFD_RELOC_M32R_GOTPC_HI_SLO: howto manager. +* BFD_RELOC_M32R_GOTPC_HI_ULO: howto manager. +* BFD_RELOC_M32R_GOTPC_LO: howto manager. +* BFD_RELOC_M32R_HI16_SLO: howto manager. +* BFD_RELOC_M32R_HI16_ULO: howto manager. +* BFD_RELOC_M32R_JMP_SLOT: howto manager. +* BFD_RELOC_M32R_LO16: howto manager. +* BFD_RELOC_M32R_RELATIVE: howto manager. +* BFD_RELOC_M32R_SDA16: howto manager. +* BFD_RELOC_M68HC11_24: howto manager. +* BFD_RELOC_M68HC11_3B: howto manager. +* BFD_RELOC_M68HC11_HI8: howto manager. +* BFD_RELOC_M68HC11_LO16: howto manager. +* BFD_RELOC_M68HC11_LO8: howto manager. +* BFD_RELOC_M68HC11_PAGE: howto manager. +* BFD_RELOC_M68HC11_RL_GROUP: howto manager. +* BFD_RELOC_M68HC11_RL_JUMP: howto manager. +* BFD_RELOC_M68HC12_5B: howto manager. +* BFD_RELOC_MCORE_PCREL_32: howto manager. +* BFD_RELOC_MCORE_PCREL_IMM11BY2: howto manager. +* BFD_RELOC_MCORE_PCREL_IMM4BY2: howto manager. +* BFD_RELOC_MCORE_PCREL_IMM8BY4: howto manager. +* BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2: howto manager. +* BFD_RELOC_MCORE_RVA: howto manager. +* BFD_RELOC_MIPS16_GPREL: howto manager. +* BFD_RELOC_MIPS16_HI16: howto manager. +* BFD_RELOC_MIPS16_HI16_S: howto manager. +* BFD_RELOC_MIPS16_JMP: howto manager. +* BFD_RELOC_MIPS16_LO16: howto manager. +* BFD_RELOC_MIPS_CALL16: howto manager. +* BFD_RELOC_MIPS_CALL_HI16: howto manager. +* BFD_RELOC_MIPS_CALL_LO16: howto manager. +* BFD_RELOC_MIPS_DELETE: howto manager. +* BFD_RELOC_MIPS_GOT16: howto manager. +* BFD_RELOC_MIPS_GOT_DISP: howto manager. +* BFD_RELOC_MIPS_GOT_HI16: howto manager. +* BFD_RELOC_MIPS_GOT_LO16: howto manager. +* BFD_RELOC_MIPS_GOT_OFST: howto manager. +* BFD_RELOC_MIPS_GOT_PAGE: howto manager. +* BFD_RELOC_MIPS_HIGHER: howto manager. +* BFD_RELOC_MIPS_HIGHEST: howto manager. +* BFD_RELOC_MIPS_INSERT_A: howto manager. +* BFD_RELOC_MIPS_INSERT_B: howto manager. +* BFD_RELOC_MIPS_JALR: howto manager. +* BFD_RELOC_MIPS_JMP: howto manager. +* BFD_RELOC_MIPS_LITERAL: howto manager. +* BFD_RELOC_MIPS_REL16: howto manager. +* BFD_RELOC_MIPS_RELGOT: howto manager. +* BFD_RELOC_MIPS_SCN_DISP: howto manager. +* BFD_RELOC_MIPS_SHIFT5: howto manager. +* BFD_RELOC_MIPS_SHIFT6: howto manager. +* BFD_RELOC_MIPS_SUB: howto manager. +* BFD_RELOC_MIPS_TLS_DTPMOD32: howto manager. +* BFD_RELOC_MIPS_TLS_DTPMOD64: howto manager. +* BFD_RELOC_MIPS_TLS_DTPREL32: howto manager. +* BFD_RELOC_MIPS_TLS_DTPREL64: howto manager. +* BFD_RELOC_MIPS_TLS_DTPREL_HI16: howto manager. +* BFD_RELOC_MIPS_TLS_DTPREL_LO16: howto manager. +* BFD_RELOC_MIPS_TLS_GD: howto manager. +* BFD_RELOC_MIPS_TLS_GOTTPREL: howto manager. +* BFD_RELOC_MIPS_TLS_LDM: howto manager. +* BFD_RELOC_MIPS_TLS_TPREL32: howto manager. +* BFD_RELOC_MIPS_TLS_TPREL64: howto manager. +* BFD_RELOC_MIPS_TLS_TPREL_HI16: howto manager. +* BFD_RELOC_MIPS_TLS_TPREL_LO16: howto manager. +* BFD_RELOC_MMIX_ADDR19: howto manager. +* BFD_RELOC_MMIX_ADDR27: howto manager. +* BFD_RELOC_MMIX_BASE_PLUS_OFFSET: howto manager. +* BFD_RELOC_MMIX_CBRANCH: howto manager. +* BFD_RELOC_MMIX_CBRANCH_1: howto manager. +* BFD_RELOC_MMIX_CBRANCH_2: howto manager. +* BFD_RELOC_MMIX_CBRANCH_3: howto manager. +* BFD_RELOC_MMIX_CBRANCH_J: howto manager. +* BFD_RELOC_MMIX_GETA: howto manager. +* BFD_RELOC_MMIX_GETA_1: howto manager. +* BFD_RELOC_MMIX_GETA_2: howto manager. +* BFD_RELOC_MMIX_GETA_3: howto manager. +* BFD_RELOC_MMIX_JMP: howto manager. +* BFD_RELOC_MMIX_JMP_1: howto manager. +* BFD_RELOC_MMIX_JMP_2: howto manager. +* BFD_RELOC_MMIX_JMP_3: howto manager. +* BFD_RELOC_MMIX_LOCAL: howto manager. +* BFD_RELOC_MMIX_PUSHJ: howto manager. +* BFD_RELOC_MMIX_PUSHJ_1: howto manager. +* BFD_RELOC_MMIX_PUSHJ_2: howto manager. +* BFD_RELOC_MMIX_PUSHJ_3: howto manager. +* BFD_RELOC_MMIX_PUSHJ_STUBBABLE: howto manager. +* BFD_RELOC_MMIX_REG: howto manager. +* BFD_RELOC_MMIX_REG_OR_BYTE: howto manager. +* BFD_RELOC_MN10300_16_PCREL: howto manager. +* BFD_RELOC_MN10300_32_PCREL: howto manager. +* BFD_RELOC_MN10300_COPY: howto manager. +* BFD_RELOC_MN10300_GLOB_DAT: howto manager. +* BFD_RELOC_MN10300_GOT16: howto manager. +* BFD_RELOC_MN10300_GOT24: howto manager. +* BFD_RELOC_MN10300_GOT32: howto manager. +* BFD_RELOC_MN10300_GOTOFF24: howto manager. +* BFD_RELOC_MN10300_JMP_SLOT: howto manager. +* BFD_RELOC_MN10300_RELATIVE: howto manager. +* BFD_RELOC_MSP430_10_PCREL: howto manager. +* BFD_RELOC_MSP430_16: howto manager. +* BFD_RELOC_MSP430_16_BYTE: howto manager. +* BFD_RELOC_MSP430_16_PCREL: howto manager. +* BFD_RELOC_MSP430_16_PCREL_BYTE: howto manager. +* BFD_RELOC_MSP430_2X_PCREL: howto manager. +* BFD_RELOC_MSP430_RL_PCREL: howto manager. +* BFD_RELOC_NONE: howto manager. +* BFD_RELOC_NS32K_DISP_16: howto manager. +* BFD_RELOC_NS32K_DISP_16_PCREL: howto manager. +* BFD_RELOC_NS32K_DISP_32: howto manager. +* BFD_RELOC_NS32K_DISP_32_PCREL: howto manager. +* BFD_RELOC_NS32K_DISP_8: howto manager. +* BFD_RELOC_NS32K_DISP_8_PCREL: howto manager. +* BFD_RELOC_NS32K_IMM_16: howto manager. +* BFD_RELOC_NS32K_IMM_16_PCREL: howto manager. +* BFD_RELOC_NS32K_IMM_32: howto manager. +* BFD_RELOC_NS32K_IMM_32_PCREL: howto manager. +* BFD_RELOC_NS32K_IMM_8: howto manager. +* BFD_RELOC_NS32K_IMM_8_PCREL: howto manager. +* BFD_RELOC_OPENRISC_ABS_26: howto manager. +* BFD_RELOC_OPENRISC_REL_26: howto manager. +* BFD_RELOC_PDP11_DISP_6_PCREL: howto manager. +* BFD_RELOC_PDP11_DISP_8_PCREL: howto manager. +* BFD_RELOC_PJ_CODE_DIR16: howto manager. +* BFD_RELOC_PJ_CODE_DIR32: howto manager. +* BFD_RELOC_PJ_CODE_HI16: howto manager. +* BFD_RELOC_PJ_CODE_LO16: howto manager. +* BFD_RELOC_PJ_CODE_REL16: howto manager. +* BFD_RELOC_PJ_CODE_REL32: howto manager. +* BFD_RELOC_PPC64_ADDR16_DS: howto manager. +* BFD_RELOC_PPC64_ADDR16_LO_DS: howto manager. +* BFD_RELOC_PPC64_DTPREL16_DS: howto manager. +* BFD_RELOC_PPC64_DTPREL16_HIGHER: howto manager. +* BFD_RELOC_PPC64_DTPREL16_HIGHERA: howto manager. +* BFD_RELOC_PPC64_DTPREL16_HIGHEST: howto manager. +* BFD_RELOC_PPC64_DTPREL16_HIGHESTA: howto manager. +* BFD_RELOC_PPC64_DTPREL16_LO_DS: howto manager. +* BFD_RELOC_PPC64_GOT16_DS: howto manager. +* BFD_RELOC_PPC64_GOT16_LO_DS: howto manager. +* BFD_RELOC_PPC64_HIGHER: howto manager. +* BFD_RELOC_PPC64_HIGHER_S: howto manager. +* BFD_RELOC_PPC64_HIGHEST: howto manager. +* BFD_RELOC_PPC64_HIGHEST_S: howto manager. +* BFD_RELOC_PPC64_PLT16_LO_DS: howto manager. +* BFD_RELOC_PPC64_PLTGOT16: howto manager. +* BFD_RELOC_PPC64_PLTGOT16_DS: howto manager. +* BFD_RELOC_PPC64_PLTGOT16_HA: howto manager. +* BFD_RELOC_PPC64_PLTGOT16_HI: howto manager. +* BFD_RELOC_PPC64_PLTGOT16_LO: howto manager. +* BFD_RELOC_PPC64_PLTGOT16_LO_DS: howto manager. +* BFD_RELOC_PPC64_SECTOFF_DS: howto manager. +* BFD_RELOC_PPC64_SECTOFF_LO_DS: howto manager. +* BFD_RELOC_PPC64_TOC: howto manager. +* BFD_RELOC_PPC64_TOC16_DS: howto manager. +* BFD_RELOC_PPC64_TOC16_HA: howto manager. +* BFD_RELOC_PPC64_TOC16_HI: howto manager. +* BFD_RELOC_PPC64_TOC16_LO: howto manager. +* BFD_RELOC_PPC64_TOC16_LO_DS: howto manager. +* BFD_RELOC_PPC64_TPREL16_DS: howto manager. +* BFD_RELOC_PPC64_TPREL16_HIGHER: howto manager. +* BFD_RELOC_PPC64_TPREL16_HIGHERA: howto manager. +* BFD_RELOC_PPC64_TPREL16_HIGHEST: howto manager. +* BFD_RELOC_PPC64_TPREL16_HIGHESTA: howto manager. +* BFD_RELOC_PPC64_TPREL16_LO_DS: howto manager. +* BFD_RELOC_PPC_B16: howto manager. +* BFD_RELOC_PPC_B16_BRNTAKEN: howto manager. +* BFD_RELOC_PPC_B16_BRTAKEN: howto manager. +* BFD_RELOC_PPC_B26: howto manager. +* BFD_RELOC_PPC_BA16: howto manager. +* BFD_RELOC_PPC_BA16_BRNTAKEN: howto manager. +* BFD_RELOC_PPC_BA16_BRTAKEN: howto manager. +* BFD_RELOC_PPC_BA26: howto manager. +* BFD_RELOC_PPC_COPY: howto manager. +* BFD_RELOC_PPC_DTPMOD: howto manager. +* BFD_RELOC_PPC_DTPREL: howto manager. +* BFD_RELOC_PPC_DTPREL16: howto manager. +* BFD_RELOC_PPC_DTPREL16_HA: howto manager. +* BFD_RELOC_PPC_DTPREL16_HI: howto manager. +* BFD_RELOC_PPC_DTPREL16_LO: howto manager. +* BFD_RELOC_PPC_EMB_BIT_FLD: howto manager. +* BFD_RELOC_PPC_EMB_MRKREF: howto manager. +* BFD_RELOC_PPC_EMB_NADDR16: howto manager. +* BFD_RELOC_PPC_EMB_NADDR16_HA: howto manager. +* BFD_RELOC_PPC_EMB_NADDR16_HI: howto manager. +* BFD_RELOC_PPC_EMB_NADDR16_LO: howto manager. +* BFD_RELOC_PPC_EMB_NADDR32: howto manager. +* BFD_RELOC_PPC_EMB_RELSDA: howto manager. +* BFD_RELOC_PPC_EMB_RELSEC16: howto manager. +* BFD_RELOC_PPC_EMB_RELST_HA: howto manager. +* BFD_RELOC_PPC_EMB_RELST_HI: howto manager. +* BFD_RELOC_PPC_EMB_RELST_LO: howto manager. +* BFD_RELOC_PPC_EMB_SDA21: howto manager. +* BFD_RELOC_PPC_EMB_SDA2I16: howto manager. +* BFD_RELOC_PPC_EMB_SDA2REL: howto manager. +* BFD_RELOC_PPC_EMB_SDAI16: howto manager. +* BFD_RELOC_PPC_GLOB_DAT: howto manager. +* BFD_RELOC_PPC_GOT_DTPREL16: howto manager. +* BFD_RELOC_PPC_GOT_DTPREL16_HA: howto manager. +* BFD_RELOC_PPC_GOT_DTPREL16_HI: howto manager. +* BFD_RELOC_PPC_GOT_DTPREL16_LO: howto manager. +* BFD_RELOC_PPC_GOT_TLSGD16: howto manager. +* BFD_RELOC_PPC_GOT_TLSGD16_HA: howto manager. +* BFD_RELOC_PPC_GOT_TLSGD16_HI: howto manager. +* BFD_RELOC_PPC_GOT_TLSGD16_LO: howto manager. +* BFD_RELOC_PPC_GOT_TLSLD16: howto manager. +* BFD_RELOC_PPC_GOT_TLSLD16_HA: howto manager. +* BFD_RELOC_PPC_GOT_TLSLD16_HI: howto manager. +* BFD_RELOC_PPC_GOT_TLSLD16_LO: howto manager. +* BFD_RELOC_PPC_GOT_TPREL16: howto manager. +* BFD_RELOC_PPC_GOT_TPREL16_HA: howto manager. +* BFD_RELOC_PPC_GOT_TPREL16_HI: howto manager. +* BFD_RELOC_PPC_GOT_TPREL16_LO: howto manager. +* BFD_RELOC_PPC_JMP_SLOT: howto manager. +* BFD_RELOC_PPC_LOCAL24PC: howto manager. +* BFD_RELOC_PPC_RELATIVE: howto manager. +* BFD_RELOC_PPC_TLS: howto manager. +* BFD_RELOC_PPC_TOC16: howto manager. +* BFD_RELOC_PPC_TPREL: howto manager. +* BFD_RELOC_PPC_TPREL16: howto manager. +* BFD_RELOC_PPC_TPREL16_HA: howto manager. +* BFD_RELOC_PPC_TPREL16_HI: howto manager. +* BFD_RELOC_PPC_TPREL16_LO: howto manager. +* BFD_RELOC_RVA: howto manager. +* BFD_RELOC_SH_ALIGN: howto manager. +* BFD_RELOC_SH_CODE: howto manager. +* BFD_RELOC_SH_COPY: howto manager. +* BFD_RELOC_SH_COPY64: howto manager. +* BFD_RELOC_SH_COUNT: howto manager. +* BFD_RELOC_SH_DATA: howto manager. +* BFD_RELOC_SH_DISP12: howto manager. +* BFD_RELOC_SH_DISP12BY2: howto manager. +* BFD_RELOC_SH_DISP12BY4: howto manager. +* BFD_RELOC_SH_DISP12BY8: howto manager. +* BFD_RELOC_SH_DISP20: howto manager. +* BFD_RELOC_SH_DISP20BY8: howto manager. +* BFD_RELOC_SH_GLOB_DAT: howto manager. +* BFD_RELOC_SH_GLOB_DAT64: howto manager. +* BFD_RELOC_SH_GOT10BY4: howto manager. +* BFD_RELOC_SH_GOT10BY8: howto manager. +* BFD_RELOC_SH_GOT_HI16: howto manager. +* BFD_RELOC_SH_GOT_LOW16: howto manager. +* BFD_RELOC_SH_GOT_MEDHI16: howto manager. +* BFD_RELOC_SH_GOT_MEDLOW16: howto manager. +* BFD_RELOC_SH_GOTOFF_HI16: howto manager. +* BFD_RELOC_SH_GOTOFF_LOW16: howto manager. +* BFD_RELOC_SH_GOTOFF_MEDHI16: howto manager. +* BFD_RELOC_SH_GOTOFF_MEDLOW16: howto manager. +* BFD_RELOC_SH_GOTPC: howto manager. +* BFD_RELOC_SH_GOTPC_HI16: howto manager. +* BFD_RELOC_SH_GOTPC_LOW16: howto manager. +* BFD_RELOC_SH_GOTPC_MEDHI16: howto manager. +* BFD_RELOC_SH_GOTPC_MEDLOW16: howto manager. +* BFD_RELOC_SH_GOTPLT10BY4: howto manager. +* BFD_RELOC_SH_GOTPLT10BY8: howto manager. +* BFD_RELOC_SH_GOTPLT32: howto manager. +* BFD_RELOC_SH_GOTPLT_HI16: howto manager. +* BFD_RELOC_SH_GOTPLT_LOW16: howto manager. +* BFD_RELOC_SH_GOTPLT_MEDHI16: howto manager. +* BFD_RELOC_SH_GOTPLT_MEDLOW16: howto manager. +* BFD_RELOC_SH_IMM3: howto manager. +* BFD_RELOC_SH_IMM3U: howto manager. +* BFD_RELOC_SH_IMM4: howto manager. +* BFD_RELOC_SH_IMM4BY2: howto manager. +* BFD_RELOC_SH_IMM4BY4: howto manager. +* BFD_RELOC_SH_IMM8: howto manager. +* BFD_RELOC_SH_IMM8BY2: howto manager. +* BFD_RELOC_SH_IMM8BY4: howto manager. +* BFD_RELOC_SH_IMM_HI16: howto manager. +* BFD_RELOC_SH_IMM_HI16_PCREL: howto manager. +* BFD_RELOC_SH_IMM_LOW16: howto manager. +* BFD_RELOC_SH_IMM_LOW16_PCREL: howto manager. +* BFD_RELOC_SH_IMM_MEDHI16: howto manager. +* BFD_RELOC_SH_IMM_MEDHI16_PCREL: howto manager. +* BFD_RELOC_SH_IMM_MEDLOW16: howto manager. +* BFD_RELOC_SH_IMM_MEDLOW16_PCREL: howto manager. +* BFD_RELOC_SH_IMMS10: howto manager. +* BFD_RELOC_SH_IMMS10BY2: howto manager. +* BFD_RELOC_SH_IMMS10BY4: howto manager. +* BFD_RELOC_SH_IMMS10BY8: howto manager. +* BFD_RELOC_SH_IMMS16: howto manager. +* BFD_RELOC_SH_IMMS6: howto manager. +* BFD_RELOC_SH_IMMS6BY32: howto manager. +* BFD_RELOC_SH_IMMU16: howto manager. +* BFD_RELOC_SH_IMMU5: howto manager. +* BFD_RELOC_SH_IMMU6: howto manager. +* BFD_RELOC_SH_JMP_SLOT: howto manager. +* BFD_RELOC_SH_JMP_SLOT64: howto manager. +* BFD_RELOC_SH_LABEL: howto manager. +* BFD_RELOC_SH_LOOP_END: howto manager. +* BFD_RELOC_SH_LOOP_START: howto manager. +* BFD_RELOC_SH_PCDISP12BY2: howto manager. +* BFD_RELOC_SH_PCDISP8BY2: howto manager. +* BFD_RELOC_SH_PCRELIMM8BY2: howto manager. +* BFD_RELOC_SH_PCRELIMM8BY4: howto manager. +* BFD_RELOC_SH_PLT_HI16: howto manager. +* BFD_RELOC_SH_PLT_LOW16: howto manager. +* BFD_RELOC_SH_PLT_MEDHI16: howto manager. +* BFD_RELOC_SH_PLT_MEDLOW16: howto manager. +* BFD_RELOC_SH_PT_16: howto manager. +* BFD_RELOC_SH_RELATIVE: howto manager. +* BFD_RELOC_SH_RELATIVE64: howto manager. +* BFD_RELOC_SH_SHMEDIA_CODE: howto manager. +* BFD_RELOC_SH_SWITCH16: howto manager. +* BFD_RELOC_SH_SWITCH32: howto manager. +* BFD_RELOC_SH_TLS_DTPMOD32: howto manager. +* BFD_RELOC_SH_TLS_DTPOFF32: howto manager. +* BFD_RELOC_SH_TLS_GD_32: howto manager. +* BFD_RELOC_SH_TLS_IE_32: howto manager. +* BFD_RELOC_SH_TLS_LD_32: howto manager. +* BFD_RELOC_SH_TLS_LDO_32: howto manager. +* BFD_RELOC_SH_TLS_LE_32: howto manager. +* BFD_RELOC_SH_TLS_TPOFF32: howto manager. +* BFD_RELOC_SH_USES: howto manager. +* BFD_RELOC_SPARC13: howto manager. +* BFD_RELOC_SPARC22: howto manager. +* BFD_RELOC_SPARC_10: howto manager. +* BFD_RELOC_SPARC_11: howto manager. +* BFD_RELOC_SPARC_5: howto manager. +* BFD_RELOC_SPARC_6: howto manager. +* BFD_RELOC_SPARC_64: howto manager. +* BFD_RELOC_SPARC_7: howto manager. +* BFD_RELOC_SPARC_BASE13: howto manager. +* BFD_RELOC_SPARC_BASE22: howto manager. +* BFD_RELOC_SPARC_COPY: howto manager. +* BFD_RELOC_SPARC_DISP64: howto manager. +* BFD_RELOC_SPARC_GLOB_DAT: howto manager. +* BFD_RELOC_SPARC_GOT10: howto manager. +* BFD_RELOC_SPARC_GOT13: howto manager. +* BFD_RELOC_SPARC_GOT22: howto manager. +* BFD_RELOC_SPARC_H44: howto manager. +* BFD_RELOC_SPARC_HH22: howto manager. +* BFD_RELOC_SPARC_HIX22: howto manager. +* BFD_RELOC_SPARC_HM10: howto manager. +* BFD_RELOC_SPARC_JMP_SLOT: howto manager. +* BFD_RELOC_SPARC_L44: howto manager. +* BFD_RELOC_SPARC_LM22: howto manager. +* BFD_RELOC_SPARC_LOX10: howto manager. +* BFD_RELOC_SPARC_M44: howto manager. +* BFD_RELOC_SPARC_OLO10: howto manager. +* BFD_RELOC_SPARC_PC10: howto manager. +* BFD_RELOC_SPARC_PC22: howto manager. +* BFD_RELOC_SPARC_PC_HH22: howto manager. +* BFD_RELOC_SPARC_PC_HM10: howto manager. +* BFD_RELOC_SPARC_PC_LM22: howto manager. +* BFD_RELOC_SPARC_PLT32: howto manager. +* BFD_RELOC_SPARC_PLT64: howto manager. +* BFD_RELOC_SPARC_REGISTER: howto manager. +* BFD_RELOC_SPARC_RELATIVE: howto manager. +* BFD_RELOC_SPARC_REV32: howto manager. +* BFD_RELOC_SPARC_TLS_DTPMOD32: howto manager. +* BFD_RELOC_SPARC_TLS_DTPMOD64: howto manager. +* BFD_RELOC_SPARC_TLS_DTPOFF32: howto manager. +* BFD_RELOC_SPARC_TLS_DTPOFF64: howto manager. +* BFD_RELOC_SPARC_TLS_GD_ADD: howto manager. +* BFD_RELOC_SPARC_TLS_GD_CALL: howto manager. +* BFD_RELOC_SPARC_TLS_GD_HI22: howto manager. +* BFD_RELOC_SPARC_TLS_GD_LO10: howto manager. +* BFD_RELOC_SPARC_TLS_IE_ADD: howto manager. +* BFD_RELOC_SPARC_TLS_IE_HI22: howto manager. +* BFD_RELOC_SPARC_TLS_IE_LD: howto manager. +* BFD_RELOC_SPARC_TLS_IE_LDX: howto manager. +* BFD_RELOC_SPARC_TLS_IE_LO10: howto manager. +* BFD_RELOC_SPARC_TLS_LDM_ADD: howto manager. +* BFD_RELOC_SPARC_TLS_LDM_CALL: howto manager. +* BFD_RELOC_SPARC_TLS_LDM_HI22: howto manager. +* BFD_RELOC_SPARC_TLS_LDM_LO10: howto manager. +* BFD_RELOC_SPARC_TLS_LDO_ADD: howto manager. +* BFD_RELOC_SPARC_TLS_LDO_HIX22: howto manager. +* BFD_RELOC_SPARC_TLS_LDO_LOX10: howto manager. +* BFD_RELOC_SPARC_TLS_LE_HIX22: howto manager. +* BFD_RELOC_SPARC_TLS_LE_LOX10: howto manager. +* BFD_RELOC_SPARC_TLS_TPOFF32: howto manager. +* BFD_RELOC_SPARC_TLS_TPOFF64: howto manager. +* BFD_RELOC_SPARC_UA16: howto manager. +* BFD_RELOC_SPARC_UA32: howto manager. +* BFD_RELOC_SPARC_UA64: howto manager. +* BFD_RELOC_SPARC_WDISP16: howto manager. +* BFD_RELOC_SPARC_WDISP19: howto manager. +* BFD_RELOC_SPARC_WDISP22: howto manager. +* BFD_RELOC_SPARC_WPLT30: howto manager. +* BFD_RELOC_SPU_HI16: howto manager. +* BFD_RELOC_SPU_IMM10: howto manager. +* BFD_RELOC_SPU_IMM10W: howto manager. +* BFD_RELOC_SPU_IMM16: howto manager. +* BFD_RELOC_SPU_IMM16W: howto manager. +* BFD_RELOC_SPU_IMM18: howto manager. +* BFD_RELOC_SPU_IMM7: howto manager. +* BFD_RELOC_SPU_IMM8: howto manager. +* BFD_RELOC_SPU_LO16: howto manager. +* BFD_RELOC_SPU_PCREL16: howto manager. +* BFD_RELOC_SPU_PCREL9a: howto manager. +* BFD_RELOC_SPU_PCREL9b: howto manager. +* BFD_RELOC_THUMB_PCREL_BLX: howto manager. +* BFD_RELOC_THUMB_PCREL_BRANCH12: howto manager. +* BFD_RELOC_THUMB_PCREL_BRANCH23: howto manager. +* BFD_RELOC_THUMB_PCREL_BRANCH9: howto manager. +* BFD_RELOC_TIC30_LDP: howto manager. +* BFD_RELOC_TIC54X_16_OF_23: howto manager. +* BFD_RELOC_TIC54X_23: howto manager. +* BFD_RELOC_TIC54X_MS7_OF_23: howto manager. +* BFD_RELOC_TIC54X_PARTLS7: howto manager. +* BFD_RELOC_TIC54X_PARTMS9: howto manager. +* bfd_reloc_type_lookup: howto manager. +* BFD_RELOC_V850_22_PCREL: howto manager. +* BFD_RELOC_V850_9_PCREL: howto manager. +* BFD_RELOC_V850_ALIGN: howto manager. +* BFD_RELOC_V850_CALLT_16_16_OFFSET: howto manager. +* BFD_RELOC_V850_CALLT_6_7_OFFSET: howto manager. +* BFD_RELOC_V850_LO16_SPLIT_OFFSET: howto manager. +* BFD_RELOC_V850_LONGCALL: howto manager. +* BFD_RELOC_V850_LONGJUMP: howto manager. +* BFD_RELOC_V850_SDA_15_16_OFFSET: howto manager. +* BFD_RELOC_V850_SDA_16_16_OFFSET: howto manager. +* BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET: howto manager. +* BFD_RELOC_V850_TDA_16_16_OFFSET: howto manager. +* BFD_RELOC_V850_TDA_4_4_OFFSET: howto manager. +* BFD_RELOC_V850_TDA_4_5_OFFSET: howto manager. +* BFD_RELOC_V850_TDA_6_8_OFFSET: howto manager. +* BFD_RELOC_V850_TDA_7_7_OFFSET: howto manager. +* BFD_RELOC_V850_TDA_7_8_OFFSET: howto manager. +* BFD_RELOC_V850_ZDA_15_16_OFFSET: howto manager. +* BFD_RELOC_V850_ZDA_16_16_OFFSET: howto manager. +* BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET: howto manager. +* BFD_RELOC_VAX_GLOB_DAT: howto manager. +* BFD_RELOC_VAX_JMP_SLOT: howto manager. +* BFD_RELOC_VAX_RELATIVE: howto manager. +* BFD_RELOC_VPE4KMATH_DATA: howto manager. +* BFD_RELOC_VPE4KMATH_INSN: howto manager. +* BFD_RELOC_VTABLE_ENTRY: howto manager. +* BFD_RELOC_VTABLE_INHERIT: howto manager. +* BFD_RELOC_X86_64_32S: howto manager. +* BFD_RELOC_X86_64_COPY: howto manager. +* BFD_RELOC_X86_64_DTPMOD64: howto manager. +* BFD_RELOC_X86_64_DTPOFF32: howto manager. +* BFD_RELOC_X86_64_DTPOFF64: howto manager. +* BFD_RELOC_X86_64_GLOB_DAT: howto manager. +* BFD_RELOC_X86_64_GOT32: howto manager. +* BFD_RELOC_X86_64_GOTPCREL: howto manager. +* BFD_RELOC_X86_64_GOTTPOFF: howto manager. +* BFD_RELOC_X86_64_JUMP_SLOT: howto manager. +* BFD_RELOC_X86_64_PLT32: howto manager. +* BFD_RELOC_X86_64_RELATIVE: howto manager. +* BFD_RELOC_X86_64_TLSGD: howto manager. +* BFD_RELOC_X86_64_TLSLD: howto manager. +* BFD_RELOC_X86_64_TPOFF32: howto manager. +* BFD_RELOC_X86_64_TPOFF64: howto manager. +* BFD_RELOC_XSTORMY16_12: howto manager. +* BFD_RELOC_XSTORMY16_24: howto manager. +* BFD_RELOC_XSTORMY16_FPTR16: howto manager. +* BFD_RELOC_XSTORMY16_REL_12: howto manager. +* BFD_RELOC_XTENSA_ASM_EXPAND: howto manager. +* BFD_RELOC_XTENSA_ASM_SIMPLIFY: howto manager. +* BFD_RELOC_XTENSA_DIFF16: howto manager. +* BFD_RELOC_XTENSA_DIFF32: howto manager. +* BFD_RELOC_XTENSA_DIFF8: howto manager. +* BFD_RELOC_XTENSA_GLOB_DAT: howto manager. +* BFD_RELOC_XTENSA_JMP_SLOT: howto manager. +* BFD_RELOC_XTENSA_OP0: howto manager. +* BFD_RELOC_XTENSA_OP1: howto manager. +* BFD_RELOC_XTENSA_OP2: howto manager. +* BFD_RELOC_XTENSA_PLT: howto manager. +* BFD_RELOC_XTENSA_RELATIVE: howto manager. +* BFD_RELOC_XTENSA_RTLD: howto manager. +* BFD_RELOC_XTENSA_SLOT0_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT0_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT10_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT10_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT11_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT11_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT12_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT12_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT13_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT13_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT14_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT14_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT1_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT1_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT2_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT2_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT3_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT3_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT4_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT4_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT5_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT5_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT6_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT6_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT7_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT7_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT8_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT8_OP: howto manager. +* BFD_RELOC_XTENSA_SLOT9_ALT: howto manager. +* BFD_RELOC_XTENSA_SLOT9_OP: howto manager. +* bfd_scan_arch: Architectures. +* bfd_scan_vma: BFD front end. +* bfd_seach_for_target: bfd_target. +* bfd_section_already_linked: Writing the symbol table. +* bfd_section_list_clear: section prototypes. +* bfd_sections_find_if: section prototypes. +* bfd_set_arch_info: Architectures. +* bfd_set_archive_head: Archives. +* bfd_set_default_target: bfd_target. +* bfd_set_error: BFD front end. +* bfd_set_error_handler: BFD front end. +* bfd_set_error_program_name: BFD front end. +* bfd_set_file_flags: BFD front end. +* bfd_set_format: Formats. +* bfd_set_gp_size: BFD front end. +* bfd_set_private_flags: BFD front end. +* bfd_set_reloc: BFD front end. +* bfd_set_section_contents: section prototypes. +* bfd_set_section_flags: section prototypes. +* bfd_set_section_size: section prototypes. +* bfd_set_start_address: BFD front end. +* bfd_set_symtab: symbol handling functions. +* bfd_symbol_info: symbol handling functions. +* bfd_target_list: bfd_target. +* bfd_write_bigendian_4byte_int: Internal. +* bfd_zalloc: Opening and Closing. +* coff_symbol_type: coff. +* core_file_matches_executable_p: Core Files. +* find_separate_debug_file: Opening and Closing. +* get_debug_link_info: Opening and Closing. +* Hash tables: Hash Tables. +* internal object-file format: Canonical format. +* Linker: Linker Functions. +* Other functions: BFD front end. +* separate_debug_file_exists: Opening and Closing. +* struct bfd_iovec: BFD front end. +* target vector (_bfd_final_link): Performing the Final Link. +* target vector (_bfd_link_add_symbols): Adding Symbols to the Hash Table. +* target vector (_bfd_link_hash_table_create): Creating a Linker Hash Table. +* The HOWTO Macro: typedef arelent. +* what is it?: Overview. + + diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/doc/chew.c binutils/bfd/doc/chew.c --- binutils-2.16.1/bfd/doc/chew.c 2005-03-03 12:41:02.000000000 +0100 +++ binutils/bfd/doc/chew.c 2006-03-30 01:23:21.000000000 +0200 @@ -91,6 +91,12 @@ #define DEF_SIZE 5000 #define STACK 50 +#ifdef __MINGW32__ +/* Prevent \r\n\ line endings */ +#include +unsigned int _CRT_fmode = _O_BINARY; +#endif + int internal_wanted; int internal_mode; diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/elf.c binutils/bfd/elf.c --- binutils-2.16.1/bfd/elf.c 2005-05-30 00:00:10.000000000 +0200 +++ binutils/bfd/elf.c 2006-03-30 01:23:21.000000000 +0200 @@ -41,6 +41,10 @@ #include "elf-bfd.h" #include "libiberty.h" +#if (defined(BPA)) +#include "elf/spu.h" +#endif + static int elf_sort_sections (const void *, const void *); static bfd_boolean assign_file_positions_except_relocs (bfd *, struct bfd_link_info *); static bfd_boolean prep_headers (bfd *); @@ -3400,6 +3404,10 @@ asection *dynsec, *eh_frame_hdr; bfd_size_type amt; +#if defined(BPA) + bfd_boolean toe_segment=FALSE; +#endif + if (elf_tdata (abfd)->segment_map != NULL) return TRUE; @@ -3511,6 +3519,19 @@ one (we build the last one after this loop). */ new_segment = FALSE; } +#if defined(BPA) + else if (strcmp (hdr->name, ".toe") == 0) + { + new_segment = TRUE; + toe_segment = TRUE; + } + else if (toe_segment == TRUE) + { + /* no longer in toe_segment */ + new_segment = TRUE; + toe_segment = FALSE; + } +#endif else if (last_hdr->lma - last_hdr->vma != hdr->lma - hdr->vma) { /* If this section has a different relation between the @@ -3964,7 +3985,11 @@ bfd_size_type align; bfd_vma adjust; - if ((abfd->flags & D_PAGED) != 0) + /* CELL LOCAL Begin */ + /* FIXME - need to double check this merge */ + if ((abfd->flags & D_PAGED) != 0 + || m == elf_tdata (abfd)->segment_map) + /* CELL LOCAL End */ align = bed->maxpagesize; else { @@ -4263,7 +4288,152 @@ p->p_flags |= PF_W; } } + +#if (defined(BPA)) + if ((bfd_get_arch(abfd) == bfd_arch_spu)) { +#define SPU_SEG_ALIGN 0x10 + if( p->p_type == PT_LOAD ) { + bfd_vma adjust_segment; + bfd_vma adjust_memsz; + /* segment file size is increased to multiple of SPU_SEG_ALIGN byte for DMA transfer. */ + adjust_segment = p->p_filesz % SPU_SEG_ALIGN ; + if ( adjust_segment != 0 ) { + p->p_filesz += (SPU_SEG_ALIGN - adjust_segment); + off += (SPU_SEG_ALIGN - adjust_segment) ; + voff += (SPU_SEG_ALIGN - adjust_segment) ; + } + /* The memory size of the segment is aligned to 16byte boundary.*/ + adjust_memsz = p->p_memsz % SPU_SEG_ALIGN ; + if ( adjust_memsz != 0) + p->p_memsz += (SPU_SEG_ALIGN - adjust_memsz); + } + } +#endif + + } + + +#if (defined(BPA)) + + /* Offset for PT_NOTE segment contains SPU_PTNOTE_SPUNAME section is set in this routine. + + In actual assign_file_positions_for_segments() doesn't gurantee to set file offset + in program header for non PT_LOAD segment. + + In detail, procedure are below. + 1) offset is set for sections in PT_LOAD segments. (in assign_file_positions_for_segments()) + 2) program headers are created and written. (in assign_file_positions_for_segments()) + 3) offset is set for sections in non PT_LOAD segments. (in assign_file_positions_except_relocs()) + + Note: + For example, file offset of PT_NOTE are set in normal system. + Because .note is contained in both PT_LOAD and PT_NOTE, + its offset are set in 1) and no problem occured. + + So this routine is added to gurantee to set offset for SPU_PTNOTE_SPUNAME only contained in PT_NOTE. + */ + + { + unsigned int i; + Elf_Internal_Shdr **hdrpp; + Elf_Internal_Shdr ** const i_shdrpp = elf_elfsections (abfd); + unsigned int num_sec = elf_numsections (abfd); + Elf_Internal_Ehdr * const i_ehdrp = elf_elfheader (abfd); + + if (bfd_get_arch(abfd) == bfd_arch_spu) { + for (i = 1, hdrpp = i_shdrpp + 1; i < num_sec; i++, hdrpp++) { + Elf_Internal_Shdr *hdr; + + hdr = *hdrpp; + if (hdr->bfd_section != NULL + && hdr->bfd_section->name != NULL + && (strcmp(hdr->bfd_section->name, SPU_PTNOTE_SPUNAME) == 0 )) { + + off = _bfd_elf_assign_file_position_for_section (hdr, off, TRUE); + + elf_tdata (abfd)->next_file_pos = off; + } + } + } + } +#endif /* BPA */ + + +/* This is for SPU dynamic loading initial step. */ +#if 0 +#if (defined(BPA)) + /* Offset for non PT_LOAD segments is set in this routine. + This added routine is exactly same in assign_file_positions_except_relocs(). + + In actual assign_file_positions_for_segments() doesn't gurantee to set file offset + in program header for non PT_LOAD segment. + + In detail, procedure are below. + 1) offset is set for sections in PT_LOAD segments. (in assign_file_positions_for_segments()) + 2) program headers are created and written. (in assign_file_positions_for_segments()) + 3) offset is set for sections in non PT_LOAD segments. (in assign_file_positions_except_relocs()) + + So this routine is added to gurantee to set offset for not PT_LOAD segments. + + Note: + For example, file offset of PT_DYNAMIC are set in normal system. + Because .dynamic are contained in both PT_LOAD and PT_DYNAMIC. + So its offset are set in 1) and no problem occured. */ + + { + unsigned int i; + Elf_Internal_Shdr **hdrpp; + Elf_Internal_Shdr ** const i_shdrpp = elf_elfsections (abfd); + unsigned int num_sec = elf_numsections (abfd); + struct elf_obj_tdata * const tdata = elf_tdata (abfd); + Elf_Internal_Ehdr * const i_ehdrp = elf_elfheader (abfd); + + if ((bfd_get_arch(abfd) == bfd_arch_spu) && (i_ehdrp->e_type == ET_DYN)) { + /* Assign file positions for the other sections. */ + + for (i = 1, hdrpp = i_shdrpp + 1; i < num_sec; i++, hdrpp++) + { + Elf_Internal_Shdr *hdr; + + hdr = *hdrpp; + if (hdr->bfd_section != NULL + && hdr->bfd_section->filepos != 0) + hdr->sh_offset = hdr->bfd_section->filepos; + else if ((hdr->sh_flags & SHF_ALLOC) != 0) + { + ((*_bfd_error_handler) + (_("%s: warning: allocated section `%s' not in segment"), + bfd_get_filename (abfd), + (hdr->bfd_section == NULL + ? "*unknown*" + : hdr->bfd_section->name))); + if ((abfd->flags & D_PAGED) != 0) + off += (hdr->sh_addr - off) % bed->maxpagesize; + else + off += (hdr->sh_addr - off) % hdr->sh_addralign; + off = _bfd_elf_assign_file_position_for_section (hdr, off, + false); + } + else if (hdr->sh_type == SHT_REL + || hdr->sh_type == SHT_RELA + || hdr == i_shdrpp[tdata->symtab_section] + || hdr == i_shdrpp[tdata->symtab_shndx_section] + || hdr == i_shdrpp[tdata->strtab_section]) + hdr->sh_offset = -1; + else + off = _bfd_elf_assign_file_position_for_section (hdr, off, TRUE); + + if (i == SHN_LORESERVE - 1) + { + i += SHN_HIRESERVE + 1 - SHN_LORESERVE; + hdrpp += SHN_HIRESERVE + 1 - SHN_LORESERVE; + } + } + } + elf_tdata (abfd)->next_file_pos = off; } +#endif +#endif /* Now that we have set the section file positions, we can set up the file positions for the non PT_LOAD segments. */ diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/elf32-spu.c binutils/bfd/elf32-spu.c --- binutils-2.16.1/bfd/elf32-spu.c 1970-01-01 01:00:00.000000000 +0100 +++ binutils/bfd/elf32-spu.c 2006-03-30 01:23:21.000000000 +0200 @@ -0,0 +1,1015 @@ +/* SPU specific support for 32-bit ELF */ + +/* (C) Copyright + Sony Computer Entertainment, Inc., + Toshiba Corporation, + International Business Machines Corporation, + 2001,2002,2003,2004,2005. + + This file is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + This file is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with this file; see the file COPYING. If not, write to the Free + Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ + +#include "bfd.h" +#include "sysdep.h" +#include "bfdlink.h" +#include "libbfd.h" +#include "elf-bfd.h" +#include "elf/spu.h" + +void spu_elf_info_to_howto PARAMS ((bfd *, arelent *, Elf_Internal_Rela *)); +void spu_elf_info_to_howto_rel PARAMS ((bfd *, arelent *, Elf_Internal_Rela *)); +reloc_howto_type *spu_elf_reloc_type_lookup PARAMS ((bfd *, bfd_reloc_code_real_type)); +static void spu_elf_final_write_processing PARAMS ((bfd *, bfd_boolean)); +static bfd_boolean spu_elf_relocate_section PARAMS ((bfd *, struct bfd_link_info *, bfd *, + asection *, bfd_byte *, Elf_Internal_Rela *, + Elf_Internal_Sym *, asection **)); +static asection * spu_elf_gc_mark_hook PARAMS ((asection *, struct bfd_link_info *, + Elf_Internal_Rela *, struct elf_link_hash_entry *, + Elf_Internal_Sym *)); +static bfd_boolean spu_elf_gc_sweep_hook PARAMS ((bfd *, struct bfd_link_info *, asection *, + const Elf_Internal_Rela *)); + +#if defined(BPA) +static void spu_elf_post_process_headers PARAMS ((bfd *, struct bfd_link_info *)); +static bfd_boolean spu_elf_section_processing PARAMS ((bfd *, Elf_Internal_Shdr *)); +static bfd_boolean spu_elf_always_size_sections PARAMS ((bfd *, struct bfd_link_info *)); +#endif + +/* When USE_REL is not defined bfd uses reloc entry addends + * instead of inserting the addend into the instruction. + * #define USE_REL 0 + */ + + +/* Values of type 'enum elf_spu_reloc_type' are used to index this + * array, so it must be declared in the order of that type. */ +static reloc_howto_type elf_howto_table[] = { + HOWTO(R_SPU_NONE, 0, 0, 0, FALSE, 0, complain_overflow_dont, bfd_elf_generic_reloc, "SPU_NONE", FALSE, 0x00000000, 0x00000000, FALSE), + HOWTO(R_SPU_ADDR10, 4, 2,10, FALSE, 14, complain_overflow_bitfield, bfd_elf_generic_reloc, "SPU_ADDR10", FALSE, 0x00ffc000, 0x00ffc000, FALSE), + HOWTO(R_SPU_ADDR16, 2, 2,16, FALSE, 7, complain_overflow_bitfield, bfd_elf_generic_reloc, "SPU_ADDR16", FALSE, 0x007fff80, 0x007fff80, FALSE), + HOWTO(R_SPU_ADDR16_HI,16,2,16, FALSE, 7, complain_overflow_bitfield, bfd_elf_generic_reloc, "SPU_ADDR16_HI", FALSE, 0x007fff80, 0x007fff80, FALSE), + HOWTO(R_SPU_ADDR16_LO,0, 2,16, FALSE, 7, complain_overflow_dont, bfd_elf_generic_reloc, "SPU_ADDR16_LO", FALSE, 0x007fff80, 0x007fff80, FALSE), + HOWTO(R_SPU_ADDR18, 0, 2,18, FALSE, 7, complain_overflow_bitfield, bfd_elf_generic_reloc, "SPU_ADDR18", FALSE, 0x01ffff80, 0x01ffff80, FALSE), + HOWTO(R_SPU_GLOB_DAT, 0, 2,32, FALSE, 0, complain_overflow_bitfield, bfd_elf_generic_reloc, "SPU_GLOB_DAT", FALSE, 0xffffffff, 0xffffffff, FALSE), + HOWTO(R_SPU_REL16, 2, 2,16, TRUE, 7, complain_overflow_bitfield, bfd_elf_generic_reloc, "SPU_REL16", FALSE, 0x007fff80, 0x007fff80, TRUE), + HOWTO(R_SPU_ADDR7, 0, 2, 7, FALSE, 14, complain_overflow_dont, bfd_elf_generic_reloc, "SPU_ADDR7", FALSE, 0x001fc000, 0x001fc000, FALSE), + HOWTO(R_SPU_REL9, 2, 2, 9, TRUE, 0, complain_overflow_signed, bfd_elf_generic_reloc, "SPU_REL9", FALSE, 0x0180007f, 0x0180007f, TRUE), + HOWTO(R_SPU_REL9I, 2, 2, 9, TRUE, 0, complain_overflow_signed, bfd_elf_generic_reloc, "SPU_REL9I", FALSE, 0x0000c07f, 0x0000c07f, TRUE), + HOWTO(R_SPU_ADDR10I, 0, 2,10, FALSE, 14, complain_overflow_signed, bfd_elf_generic_reloc, "SPU_ADDR10I", FALSE, 0x00ffc000, 0x00ffc000, FALSE), + HOWTO(R_SPU_ADDR16I, 0, 2,16, FALSE, 7, complain_overflow_signed, bfd_elf_generic_reloc, "SPU_ADDR16I", FALSE, 0x007fff80, 0x007fff80, FALSE), +}; + +static struct bfd_elf_special_section const spu_elf_special_sections[]= +{ + { ".toe", 4, 0, SHT_PROGBITS, SHF_ALLOC }, + { NULL, 0, 0, 0, 0 } +}; + +static enum elf_spu_reloc_type +spu_elf_bfd_to_reloc_type (bfd_reloc_code_real_type code) +{ + switch (code) + { + default: + return R_SPU_NONE; + case BFD_RELOC_SPU_IMM10W: + return R_SPU_ADDR10; + case BFD_RELOC_SPU_IMM16W: + return R_SPU_ADDR16; + case BFD_RELOC_SPU_LO16: + return R_SPU_ADDR16_LO; + case BFD_RELOC_SPU_HI16: + return R_SPU_ADDR16_HI; + case BFD_RELOC_SPU_IMM18: + return R_SPU_ADDR18; + case BFD_RELOC_32: + return R_SPU_GLOB_DAT; + case BFD_RELOC_SPU_PCREL16: + return R_SPU_REL16; + case BFD_RELOC_SPU_IMM7: + return R_SPU_ADDR7; + case BFD_RELOC_SPU_IMM8: + return R_SPU_NONE; + case BFD_RELOC_SPU_PCREL9a: + return R_SPU_REL9; + case BFD_RELOC_SPU_PCREL9b: + return R_SPU_REL9I; + case BFD_RELOC_SPU_IMM10: + return R_SPU_ADDR10I; + case BFD_RELOC_SPU_IMM16: + return R_SPU_ADDR16I; + } +} + +void +spu_elf_info_to_howto (bfd * abfd ATTRIBUTE_UNUSED, + arelent * cache_ptr ATTRIBUTE_UNUSED, + Elf_Internal_Rela * dst ATTRIBUTE_UNUSED) +{ + enum elf_spu_reloc_type r_type; + + r_type = (enum elf_spu_reloc_type) ELF32_R_TYPE (dst->r_info); + BFD_ASSERT (r_type < R_SPU_max); + cache_ptr->howto = &elf_howto_table[(int) r_type]; +} + +void +spu_elf_info_to_howto_rel (bfd * abfd ATTRIBUTE_UNUSED, + arelent * cache_ptr, Elf_Internal_Rela * dst) +{ + enum elf_spu_reloc_type type; + + type = (enum elf_spu_reloc_type) ELF32_R_TYPE (dst->r_info); + BFD_ASSERT (type < R_SPU_max); + cache_ptr->howto = &elf_howto_table[(int) type]; +} + +reloc_howto_type * +spu_elf_reloc_type_lookup (bfd * abfd ATTRIBUTE_UNUSED, + bfd_reloc_code_real_type code) +{ + return elf_howto_table + spu_elf_bfd_to_reloc_type (code); +} + +/* Look through the relocs for a section during the first phase and + make any required dynamic sections. + + We iterate over the relocations three times: + + spu_elf_check_relocs + This creates any needed dynamic sections as we first read all the + input objects. We need to do create the sections now so they get + mapped to the correct output sections. At this points we don't + know which symbols are resolved from dynamic objects. + + allocate_dynrelocs + This computes sizes of the sections. Now we do know which + symbols come from where, so we can determine the correct amount + of space to allocate. Some sections will require no space and + are stripped by spu_elf_size_dynamic_sections. + + spu_elf_relocate_section + This finally creates the relocations in the correct section. + */ +static bfd_boolean +spu_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, + asection *sec, const Elf_Internal_Rela *relocs) +{ + Elf_Internal_Shdr *symtab_hdr; + struct elf_link_hash_entry **sym_hashes, **sym_hashes_end; + const Elf_Internal_Rela *rel; + const Elf_Internal_Rela *rel_end; + asection *sreloc; + bfd *dynobj; + + if (info->relocatable) + return TRUE; + + /* Don't do anything special with non-loaded, non-alloced sections. + In particular, there's not much point in propagating relocs to + shared libs that the dynamic linker won't relocate. */ + if ((sec->flags & SEC_ALLOC) == 0) + return TRUE; + + dynobj = elf_hash_table (info)->dynobj; + + symtab_hdr = &elf_tdata (abfd)->symtab_hdr; + + sym_hashes = elf_sym_hashes (abfd); + sym_hashes_end = (sym_hashes + + symtab_hdr->sh_size / sizeof (Elf32_External_Sym) + - symtab_hdr->sh_info); + + sreloc = NULL; + + rel_end = relocs + sec->reloc_count; + for (rel = relocs; rel < rel_end; rel++) + { + unsigned long r_symndx; + struct elf_link_hash_entry *h; + enum elf_spu_reloc_type r_type; + + r_symndx = ELF32_R_SYM (rel->r_info); + if (r_symndx < symtab_hdr->sh_info) + h = NULL; + else + h = sym_hashes[r_symndx - symtab_hdr->sh_info]; + + r_type = ELF32_R_TYPE (rel->r_info); + switch (r_type) + { + case R_SPU_ADDR10: + case R_SPU_ADDR16: + case R_SPU_ADDR16_HI: + case R_SPU_ADDR16_LO: + case R_SPU_ADDR18: + case R_SPU_GLOB_DAT: + case R_SPU_REL16: + case R_SPU_ADDR7: + case R_SPU_ADDR10I: + case R_SPU_ADDR16I: + if (h != NULL + && (!h->def_regular + || h->root.type == bfd_link_hash_defweak + || (info->shared && ! info->symbolic))) + { + /* We might need to copy these reloc types into the output file. + Create a reloc section in dynobj. */ + if (sreloc == NULL) + { + const char *name; + + name = (bfd_elf_string_from_elf_section + (abfd, + elf_elfheader (abfd)->e_shstrndx, + elf_section_data (sec)->rel_hdr.sh_name)); + if (name == NULL) + return FALSE; + + if (strncmp (name, ".rela", 5) != 0 + || strcmp (bfd_get_section_name (abfd, sec), + name + 5) != 0) + { + (*_bfd_error_handler) + (_("%B: bad relocation section name `%s\'"), + abfd, name); + bfd_set_error (bfd_error_bad_value); + } + + if (dynobj == NULL) + dynobj = elf_hash_table (info)->dynobj = abfd; + + sreloc = bfd_get_section_by_name (dynobj, name); + if (sreloc == NULL) + { + flagword flags; + + sreloc = bfd_make_section (dynobj, name); + flags = (SEC_HAS_CONTENTS | SEC_READONLY + | SEC_IN_MEMORY | SEC_LINKER_CREATED); + if ((sec->flags & SEC_ALLOC) != 0) + flags |= SEC_ALLOC | SEC_LOAD; + if (sreloc == NULL + || ! bfd_set_section_flags (dynobj, sreloc, flags) + || ! bfd_set_section_alignment (dynobj, sreloc, 3)) + return FALSE; + } + elf_section_data (sec)->sreloc = sreloc; + } + } + break; + + default: + break; + } + } + return TRUE; +} + + +static bfd_boolean +spu_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, + struct bfd_link_info *info, + bfd * input_bfd, + asection * input_section, + bfd_byte * contents, + Elf_Internal_Rela * relocs, + Elf_Internal_Sym * local_syms, + asection ** local_sections) +{ + Elf_Internal_Shdr *symtab_hdr; + struct elf_link_hash_entry **sym_hashes; + Elf_Internal_Rela *rel, *relend; + bfd_boolean ret = TRUE; + + if (info->relocatable) + return TRUE; + + symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr; + sym_hashes = (struct elf_link_hash_entry **) (elf_sym_hashes (input_bfd)); + + rel = relocs; + relend = relocs + input_section->reloc_count; + for (; rel < relend; rel++) + { + int r_type; + reloc_howto_type *howto; + unsigned long r_symndx; + Elf_Internal_Sym *sym; + asection *sec; + struct elf_link_hash_entry *h; + const char *sym_name; + bfd_vma relocation; + bfd_reloc_status_type r; + bfd_boolean unresolved_reloc; + bfd_boolean warned; + + r_symndx = ELF32_R_SYM (rel->r_info); + r_type = ELF32_R_TYPE (rel->r_info); + howto = elf_howto_table + r_type; + unresolved_reloc = FALSE; + warned = FALSE; + + h = NULL; + sym = NULL; + sec = NULL; + if (r_symndx < symtab_hdr->sh_info) + { + sym = local_syms + r_symndx; + sec = local_sections[r_symndx]; + sym_name = bfd_elf_sym_name (input_bfd, symtab_hdr, sym); + relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); + } + else + { + RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, + r_symndx, symtab_hdr, sym_hashes, + h, sec, relocation, + unresolved_reloc, warned); + sym_name = h->root.root.string; + } + + switch (r_type) + { + /* Relocations that always need to be propagated if this is a shared + object. */ + case R_SPU_ADDR10: + case R_SPU_ADDR16: + case R_SPU_ADDR16_HI: + case R_SPU_ADDR16_LO: + case R_SPU_ADDR18: + case R_SPU_GLOB_DAT: + case R_SPU_REL16: + case R_SPU_ADDR7: + case R_SPU_ADDR10I: + case R_SPU_ADDR16I: + /* r_symndx will be zero only for relocs against symbols + from removed linkonce sections, or sections discarded by + a linker script. */ + if (r_symndx == 0) + break; + /* Fall thru. */ + + if ((info->shared + && (h == NULL + || ELF_ST_VISIBILITY (h->other) == STV_DEFAULT + || h->root.type != bfd_link_hash_undefweak) + && (!SYMBOL_CALLS_LOCAL (info, h))) + || (!info->shared + && h != NULL + && h->dynindx != -1 + && h->def_dynamic + && !h->def_regular)) + { + Elf_Internal_Rela outrel; + bfd_boolean skip, relocate; + asection *sreloc; + bfd_byte *loc; + bfd_vma out_off; + + /* When generating a dynamic object, these relocations + are copied into the output file to be resolved at run + time. */ + + skip = FALSE; + relocate = FALSE; + + out_off = _bfd_elf_section_offset (output_bfd, info, + input_section, rel->r_offset); + if (out_off == (bfd_vma) -1) + skip = TRUE; + else if (out_off == (bfd_vma) -2) + skip = TRUE, relocate = TRUE; + out_off += (input_section->output_section->vma + + input_section->output_offset); + outrel.r_offset = out_off; + outrel.r_addend = rel->r_addend; + + if (skip) + memset (&outrel, 0, sizeof outrel); + else if (!SYMBOL_REFERENCES_LOCAL (info, h)) + outrel.r_info = ELF32_R_INFO (h->dynindx, r_type); + else + { + /* This symbol is local, or marked to become local. */ + outrel.r_addend += relocation; + if (r_type == R_SPU_GLOB_DAT) + { + outrel.r_info = ELF32_R_INFO (0, R_SPU_GLOB_DAT); + + /* Prelink also wants simple and consistent rules + for relocs. This make all RELATIVE relocs have + *r_offset equal to r_addend. */ + relocate = TRUE; + } + else + { + long indx = 0; + + if (bfd_is_abs_section (sec)) + ; + else if (sec == NULL || sec->owner == NULL) + { + bfd_set_error (bfd_error_bad_value); + return FALSE; + } + else + { + asection *osec; + + osec = sec->output_section; + indx = elf_section_data (osec)->dynindx; + + /* We are turning this relocation into one + against a section symbol, so subtract out + the output section's address but not the + offset of the input section in the output + section. */ + outrel.r_addend -= osec->vma; + } + + outrel.r_info = ELF32_R_INFO (indx, r_type); + } + } + + sreloc = elf_section_data (input_section)->sreloc; + if (sreloc == NULL) + abort (); + + loc = sreloc->contents; + loc += sreloc->reloc_count++ * sizeof (Elf32_External_Rela); + bfd_elf32_swap_reloca_out (output_bfd, &outrel, loc); + + /* If this reloc is against an external symbol, it will + be computed at runtime, so there's no need to do + anything now. However, for the sake of prelink ensure + that the section contents are a known value. */ + if (! relocate) + { + unresolved_reloc = FALSE; + /* The value chosen here is quite arbitrary as ld.so + ignores section contents except for the special + case of .opd where the contents might be accessed + before relocation. Choose zero, as that won't + cause reloc overflow. */ + relocation = 0; + rel->r_addend = 0; + /* Adjust pc_relative relocs to have zero in *r_offset. */ + if (howto->pc_relative) + rel->r_addend = (input_section->output_section->vma + + input_section->output_offset + + rel->r_offset); + } + } + break; + } + + if (unresolved_reloc + && !((input_section->flags & SEC_DEBUGGING) != 0 + && h->def_dynamic)) + { + (*_bfd_error_handler) + (_("%B(%s+0x%lx): unresolvable %s relocation against symbol `%s'"), + input_bfd, + bfd_get_section_name (input_bfd, input_section), + (long) rel->r_offset, + howto->name, + sym_name); + ret = FALSE; + } + + r = _bfd_final_link_relocate (howto, + input_bfd, + input_section, + contents, + rel->r_offset, relocation, rel->r_addend); + + if (r != bfd_reloc_ok) + { + const char *name; + const char *msg = (const char *) 0; + + if (h != NULL) + name = h->root.root.string; + else + { + name = (bfd_elf_string_from_elf_section + (input_bfd, symtab_hdr->sh_link, sym->st_name)); + if (name == NULL || *name == '\0') + name = bfd_section_name (input_bfd, sec); + } + + switch (r) + { + case bfd_reloc_overflow: + if (!((*info->callbacks->reloc_overflow) + (info, (h ? &h->root : NULL), name, howto->name, + (bfd_vma) 0, input_bfd, input_section, rel->r_offset))) + return FALSE; + break; + + case bfd_reloc_undefined: + if (!((*info->callbacks->undefined_symbol) + (info, name, input_bfd, input_section, + rel->r_offset, TRUE))) + return FALSE; + break; + + case bfd_reloc_outofrange: + msg = _("internal error: out of range error"); + goto common_error; + + case bfd_reloc_notsupported: + msg = _("internal error: unsupported relocation error"); + goto common_error; + + case bfd_reloc_dangerous: + msg = _("internal error: dangerous error"); + goto common_error; + + default: + msg = _("internal error: unknown error"); + /* fall through */ + + common_error: + if (!((*info->callbacks->warning) + (info, msg, name, input_bfd, input_section, + rel->r_offset))) + return FALSE; + break; + } + } + } + + return ret; +} + +static asection * +spu_elf_gc_mark_hook (asection *sec, + struct bfd_link_info *info ATTRIBUTE_UNUSED, + Elf_Internal_Rela *rel ATTRIBUTE_UNUSED, struct elf_link_hash_entry *h, + Elf_Internal_Sym *sym) +{ + if (h != NULL) + { + switch (h->root.type) + { + case bfd_link_hash_defined: + case bfd_link_hash_defweak: + return h->root.u.def.section; + + case bfd_link_hash_common: + return h->root.u.c.p->section; + + default: + break; + } + } + else + return bfd_section_from_elf_index (sec->owner, sym->st_shndx); + + return NULL; +} + +static bfd_boolean +spu_elf_gc_sweep_hook (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info ATTRIBUTE_UNUSED, + asection *sec ATTRIBUTE_UNUSED, const Elf_Internal_Rela *relocs ATTRIBUTE_UNUSED) +{ + return TRUE; +} + +static void +spu_elf_final_write_processing (bfd * abfd, + bfd_boolean linker ATTRIBUTE_UNUSED) +{ + elf_elfheader (abfd)->e_machine = EM_SPU; + + /* We do these verifications here because this function is called only + * once. There may be a better place to do it, I didn't look. */ + + BFD_ASSERT (elf_elfheader (abfd)->e_ident[EI_CLASS] == ELFCLASS32); + BFD_ASSERT (elf_elfheader (abfd)->e_ident[EI_DATA] == ELFDATA2MSB); + BFD_ASSERT (elf_elfheader (abfd)->e_flags == 0); + + /* Verify that elf_howto_table is in the correct order. */ + { + unsigned int i; + for (i = 0; i < sizeof (elf_howto_table) / sizeof (*elf_howto_table); i++) + { + BFD_ASSERT (elf_howto_table[i].type == i); + } + } +} + + +#if defined(BPA) +static void +spu_elf_post_process_headers (bfd * abfd, struct bfd_link_info *link_info) +{ + Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form */ + + /* e_type is set if -plugin assigned. */ + + i_ehdrp = elf_elfheader (abfd); + + if (link_info != NULL) + { + if (link_info->spuplugin) + { + i_ehdrp->e_type = ET_DYN; + } + } +} + +#endif + +#if defined(BPA) +static bfd_boolean +spu_elf_section_processing (bfd * abfd ATTRIBUTE_UNUSED, + Elf_Internal_Shdr * i_shdrp) +{ + /* Content of PT_NOTE segment for SPU plugin is set here. + Because it doesn't have SEC_ALLOC attribute, + it is not written in file as usual process. + + If this routine is not used, some special writing process has to be done somewhere. + (e.g., special function would be needed as string table writing process.) */ + + asection *sec; + + sec = i_shdrp->bfd_section; + if ((sec != NULL) && + (sec->name != NULL) && (strcmp (sec->name, SPU_PTNOTE_SPUNAME) == 0)) + { + + SPUPLUGIN_INFO *spuplugin_info; + spuplugin_info = bfd_alloc (abfd, sizeof (SPUPLUGIN_INFO)); + + bfd_put_32(abfd, (bfd_vma) SPU_PLUGIN_NAMESZ, &spuplugin_info->namesz) ; + bfd_put_32(abfd, (bfd_vma) SPU_PLUGIN_LOOKUPNAMESZ, &spuplugin_info->descsz) ; + bfd_put_32(abfd, (bfd_vma) 1, &spuplugin_info->type) ; + strncpy( spuplugin_info->name, SPU_PLUGIN_NAME, SPU_PLUGIN_NAMESZ); + strncpy( spuplugin_info->lookupname, bfd_get_filename(abfd), SPU_PLUGIN_LOOKUPNAMESZ); + + i_shdrp->contents = (unsigned char*)spuplugin_info ; + } + return TRUE; +} +#endif + +#if defined(BPA) +/* + * Make SPU_PTNOTE_SPUNAME section + * */ +static bfd_boolean +spu_elf_always_size_sections (bfd * abfd, struct bfd_link_info *link_info ATTRIBUTE_UNUSED) +{ + + register asection *s; + char *sname = SPU_PTNOTE_SPUNAME; + + s = bfd_get_section_by_name(abfd, sname); + /* don't create the section if already exists */ + if (s == NULL) { + s = bfd_make_section (abfd, sname); + if (s == NULL) { + return FALSE; + } + } + + if (!bfd_set_section_flags + (abfd, s, + (SEC_LOAD | SEC_IN_MEMORY | SEC_HAS_CONTENTS | SEC_LINKER_CREATED | + SEC_READONLY))) { + return FALSE; + } + + if (!bfd_set_section_alignment (abfd, s, 2)) { + return FALSE; + } + + if (!bfd_set_section_size (abfd, s, sizeof (SPUPLUGIN_INFO))) { + return FALSE; + } + + return TRUE; +} +#endif + +static bfd_boolean +spu_elf_finish_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED, + struct bfd_link_info *info ATTRIBUTE_UNUSED) +{ + return TRUE; +} +static bfd_boolean +spu_elf_finish_dynamic_symbol (bfd *output_bfd ATTRIBUTE_UNUSED, + struct bfd_link_info *info ATTRIBUTE_UNUSED, + struct elf_link_hash_entry *h ATTRIBUTE_UNUSED, + Elf_Internal_Sym *sym ATTRIBUTE_UNUSED) +{ + return TRUE; +} + +/* compute the sizes of the required dynamic relocatios */ +static bfd_boolean +allocate_dynrelocs (bfd *abfd, struct bfd_link_info *info, + asection *sec, const Elf_Internal_Rela *relocs) +{ + Elf_Internal_Shdr *symtab_hdr; + struct elf_link_hash_entry **sym_hashes, **sym_hashes_end; + const Elf_Internal_Rela *rel; + const Elf_Internal_Rela *rel_end; + asection *sreloc; + bfd *dynobj; + + if (info->relocatable) + return TRUE; + + /* Don't do anything special with non-loaded, non-alloced sections. + In particular, there's not much point in propagating relocs to + shared libs that the dynamic linker won't relocate. */ + if ((sec->flags & SEC_ALLOC) == 0) + return TRUE; + + /* spu_elf_check_relocs will have set sreloc for the sections we + need to check. */ + sreloc = elf_section_data (sec)->sreloc; + if (sreloc == NULL) + return TRUE; + + dynobj = elf_hash_table (info)->dynobj; + if (dynobj == NULL) + abort(); + + symtab_hdr = &elf_tdata (abfd)->symtab_hdr; + + sym_hashes = elf_sym_hashes (abfd); + sym_hashes_end = (sym_hashes + + symtab_hdr->sh_size / sizeof (Elf32_External_Sym) + - symtab_hdr->sh_info); + + + rel_end = relocs + sec->reloc_count; + for (rel = relocs; rel < rel_end; rel++) + { + unsigned long r_symndx; + struct elf_link_hash_entry *h; + enum elf_spu_reloc_type r_type; + + r_symndx = ELF32_R_SYM (rel->r_info); + if (r_symndx < symtab_hdr->sh_info) + h = NULL; + else + h = sym_hashes[r_symndx - symtab_hdr->sh_info]; + + r_type = ELF32_R_TYPE (rel->r_info); + switch (r_type) + { + case R_SPU_ADDR10: + case R_SPU_ADDR16: + case R_SPU_ADDR16_HI: + case R_SPU_ADDR16_LO: + case R_SPU_ADDR18: + case R_SPU_GLOB_DAT: + case R_SPU_REL16: + case R_SPU_ADDR7: + case R_SPU_ADDR10I: + case R_SPU_ADDR16I: + if ((info->shared + && (h == NULL + || ELF_ST_VISIBILITY (h->other) == STV_DEFAULT + || h->root.type != bfd_link_hash_undefweak) + && (!SYMBOL_CALLS_LOCAL (info, h))) + || (!info->shared + && h != NULL + && h->dynindx != -1 + && h->def_dynamic + && !h->def_regular)) + { + /* We must copy these reloc types into the output file. + Increase the size of the reloc section. */ + sreloc->rawsize += sizeof (Elf32_External_Rela); + } + break; + + default: + break; + } + } + return TRUE; +} + +/* Set the sizes of the dynamic sections. */ + +static bfd_boolean +spu_elf_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED, struct bfd_link_info * info) +{ + bfd * dynobj; + asection * s; + bfd_boolean relocs; + bfd_boolean reltext; + asection *o; + bfd *inputobj; + + /* Check all the relocations of all input objects to determine + the size of dynamic sections. */ + for (inputobj = info->input_bfds; + inputobj; + inputobj = inputobj->link_next) + { + for (o = inputobj->sections; o != NULL; o = o->next) + { + Elf_Internal_Rela *internal_relocs; + bfd_boolean ok; + + if ((o->flags & SEC_RELOC) == 0 + || o->reloc_count == 0 + || ((info->strip == strip_all || info->strip == strip_debugger) + && (o->flags & SEC_DEBUGGING) != 0) + || bfd_is_abs_section (o->output_section)) + continue; + + internal_relocs = _bfd_elf_link_read_relocs (inputobj, o, NULL, NULL, + info->keep_memory); + if (internal_relocs == NULL) + return FALSE; + + ok = allocate_dynrelocs (inputobj, info, o, internal_relocs); + + if (elf_section_data (o)->relocs != internal_relocs) + free (internal_relocs); + + if (! ok) + return FALSE; + } + } + + dynobj = elf_hash_table (info)->dynobj; + BFD_ASSERT (dynobj != NULL); + + /* The code above has determined the sizes of the various dynamic + sections. Allocate memory for them. */ + relocs = FALSE; + reltext = FALSE; + for (s = dynobj->sections; s != NULL; s = s->next) + { + const char * name; + bfd_boolean strip; + + if ((s->flags & SEC_LINKER_CREATED) == 0) + continue; + + if (s->contents != NULL) + continue; + + /* It's OK to base decisions on the section name, because none + of the dynobj section names depend upon the input files. */ + name = bfd_get_section_name (dynobj, s); + + strip = FALSE; + + if (strncmp (name, ".rela", 5) == 0) + { + if (s->rawsize == 0) + { + /* If we don't need this section, strip it from the output + file. */ + strip = TRUE; + } + else + { + /* We use the reloc_count field as a counter if we need + to copy relocs into the output file. */ + s->reloc_count = 0; + } + } + else + /* It's not one of our sections, so don't allocate space. */ + continue; + + if (strip) + { + _bfd_strip_section_from_output (info, s); + continue; + } + + /* Allocate memory for the section contents. We use bfd_zalloc + here in case unused entries are not reclaimed before the + section's contents are written out. This should not happen, + but this way if it does, we get a R_SPU_NONE reloc instead of + garbage. */ + s->contents = (bfd_byte *) bfd_zalloc (dynobj, s->rawsize); + if (s->contents == NULL && s->rawsize != 0) + return FALSE; + } + + return TRUE; +} + +/* Create dynamic sections when linking against a dynamic object. */ + +static bfd_boolean +spu_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info) +{ + flagword flags; + asection *s; + const struct elf_backend_data *bed = get_elf_backend_data (abfd); + + /* We need to create .dynbss, and .rel[a].bss sections. */ + + flags = (SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS | SEC_IN_MEMORY + | SEC_LINKER_CREATED); + + if (bed->want_dynbss) + { + /* The .dynbss section is a place to put symbols which are defined + by dynamic objects, are referenced by regular objects, and are + not functions. We must allocate space for them in the process + image and use a R_*_COPY reloc to tell the dynamic linker to + initialize them at run time. The linker script puts the .dynbss + section into the .bss section of the final image. */ + s = bfd_make_section (abfd, ".dynbss"); + if (s == NULL + || ! bfd_set_section_flags (abfd, s, SEC_ALLOC | SEC_LINKER_CREATED)) + return FALSE; + + /* The .rel[a].bss section holds copy relocs. This section is not + normally needed. We need to create it here, though, so that the + linker will map it to an output section. We can't just create it + only if we need it, because we will not know whether we need it + until we have seen all the input files, and the first time the + main linker code calls BFD after examining all the input files + (size_dynamic_sections) the input sections have already been + mapped to the output sections. If the section turns out not to + be needed, we can discard it later. We will never need this + section when generating a shared object, since they do not use + copy relocs. */ + if (! info->shared) + { + s = bfd_make_section (abfd, + (bed->default_use_rela_p + ? ".rela.bss" : ".rel.bss")); + if (s == NULL + || ! bfd_set_section_flags (abfd, s, flags | SEC_READONLY) + || ! bfd_set_section_alignment (abfd, s, bed->s->log_file_align)) + return FALSE; + } + } + + return TRUE; +} + +static bfd_boolean +spu_elf_adjust_dynamic_symbol (struct bfd_link_info *info ATTRIBUTE_UNUSED, + struct elf_link_hash_entry *h ATTRIBUTE_UNUSED) +{ + return TRUE; +} + + +#define elf_backend_can_gc_sections 1 +#define elf_backend_rela_normal 1 + + +#define bfd_elf32_bfd_reloc_type_lookup spu_elf_reloc_type_lookup +#define elf_info_to_howto spu_elf_info_to_howto +#define elf_info_to_howto_rel spu_elf_info_to_howto_rel +#define elf_backend_relocate_section spu_elf_relocate_section +#define elf_backend_final_write_processing spu_elf_final_write_processing +#define elf_backend_gc_mark_hook spu_elf_gc_mark_hook +#define elf_backend_gc_sweep_hook spu_elf_gc_sweep_hook +#define elf_backend_adjust_dynamic_symbol spu_elf_adjust_dynamic_symbol +#define elf_backend_check_relocs spu_elf_check_relocs + +#define elf_backend_create_dynamic_sections spu_elf_create_dynamic_sections +#define elf_backend_finish_dynamic_sections spu_elf_finish_dynamic_sections +#define elf_backend_finish_dynamic_symbol spu_elf_finish_dynamic_symbol +#define elf_backend_size_dynamic_sections spu_elf_size_dynamic_sections + +#define TARGET_BIG_SYM bfd_elf32_spu_vec +#define TARGET_BIG_NAME "elf32-spu" +#define ELF_ARCH bfd_arch_spu +#define ELF_MACHINE_CODE EM_SPU +#define ELF_MAXPAGESIZE 0x80 /* This matches the alignment need for DMA. */ + +#if defined(BPA) +#define elf_backend_post_process_headers spu_elf_post_process_headers +#define elf_backend_section_processing spu_elf_section_processing +#define elf_backend_always_size_sections spu_elf_always_size_sections +#define elf_backend_special_sections spu_elf_special_sections +#endif + +#include "elf32-target.h" diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/elf64-ppc.c binutils/bfd/elf64-ppc.c --- binutils-2.16.1/bfd/elf64-ppc.c 2005-06-12 19:37:59.000000000 +0200 +++ binutils/bfd/elf64-ppc.c 2006-03-30 01:23:21.000000000 +0200 @@ -3967,7 +3967,8 @@ newsym->value = 0; newsym->flags = BSF_WEAK; - bh = NULL; + /* We don't want to search the "wrap" hash table */ + bh = bfd_link_hash_lookup (info->hash, newsym->name, TRUE, FALSE, FALSE); if (!_bfd_generic_link_add_one_symbol (info, abfd, newsym->name, newsym->flags, newsym->section, newsym->value, NULL, FALSE, FALSE, @@ -8985,6 +8986,8 @@ if (stub_type != ppc_stub_plt_call) { + /* CELL Local: Fix for lib00001372 in 2.15, not sure + if it is necessary in 2.16.1, but leaving it in. */ /* Check whether we need a TOC adjusting stub. Since the linker pastes together pieces from different object files when creating the diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/elflink.c binutils/bfd/elflink.c --- binutils-2.16.1/bfd/elflink.c 2005-04-29 15:40:22.000000000 +0200 +++ binutils/bfd/elflink.c 2006-03-30 01:23:21.000000000 +0200 @@ -909,6 +909,11 @@ else olddef = TRUE; + /* CELL LOCAL BEGIN changes */ +#if 0 + To be compatible with TLS references generated by binutils 2.15, we + disable this check. + /* Check TLS symbol. */ if ((ELF_ST_TYPE (sym->st_info) == STT_TLS || h->type == STT_TLS) && ELF_ST_TYPE (sym->st_info) != h->type) @@ -956,6 +961,8 @@ bfd_set_error (bfd_error_bad_value); return FALSE; } +#endif + /* CELL LOCAL END changes */ /* We need to remember if a symbol has a definition in a dynamic object or is weak in all dynamic objects. Internal and hidden diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/opncls.c binutils/bfd/opncls.c --- binutils-2.16.1/bfd/opncls.c 2005-03-07 11:32:38.000000000 +0100 +++ binutils/bfd/opncls.c 2006-03-30 01:23:21.000000000 +0200 @@ -1357,3 +1357,18 @@ return TRUE; } + +/* + * Added at SCEA - set direction. Needed to compensate for WIN32 + * lack of fcntl + */ +void +bfd_set_direction(bfd *abfd, int fdflags) +{ + switch (fdflags & (O_ACCMODE)) { + case O_RDONLY: abfd->direction = read_direction; break; + case O_WRONLY: abfd->direction = write_direction; break; + case O_RDWR: abfd->direction = both_direction; break; + default: abort (); + } +} diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/reloc.c binutils/bfd/reloc.c --- binutils-2.16.1/bfd/reloc.c 2005-03-02 22:23:21.000000000 +0100 +++ binutils/bfd/reloc.c 2006-03-30 01:23:21.000000000 +0200 @@ -4159,6 +4159,33 @@ Intel i860 Relocations. ENUM + BFD_RELOC_SPU_IMM7 +ENUMX + BFD_RELOC_SPU_IMM8 +ENUMX + BFD_RELOC_SPU_IMM10 +ENUMX + BFD_RELOC_SPU_IMM10W +ENUMX + BFD_RELOC_SPU_IMM16 +ENUMX + BFD_RELOC_SPU_IMM16W +ENUMX + BFD_RELOC_SPU_IMM18 +ENUMX + BFD_RELOC_SPU_PCREL9a +ENUMX + BFD_RELOC_SPU_PCREL9b +ENUMX + BFD_RELOC_SPU_PCREL16 +ENUMX + BFD_RELOC_SPU_LO16 +ENUMX + BFD_RELOC_SPU_HI16 +ENUMDOC + SPU Relocations. + +ENUM BFD_RELOC_OPENRISC_ABS_26 ENUMX BFD_RELOC_OPENRISC_REL_26 diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/bfd/targets.c binutils/bfd/targets.c --- binutils-2.16.1/bfd/targets.c 2005-03-01 02:56:27.000000000 +0100 +++ binutils/bfd/targets.c 2006-03-30 01:23:21.000000000 +0200 @@ -613,6 +613,7 @@ extern const bfd_target bfd_elf32_shlnbsd_vec; extern const bfd_target bfd_elf32_shnbsd_vec; extern const bfd_target bfd_elf32_sparc_vec; +extern const bfd_target bfd_elf32_spu_vec; extern const bfd_target bfd_elf32_tradbigmips_vec; extern const bfd_target bfd_elf32_tradlittlemips_vec; extern const bfd_target bfd_elf32_us_cris_vec; @@ -918,6 +919,7 @@ &bfd_elf32_sh64blin_vec, #endif &bfd_elf32_sparc_vec, + &bfd_elf32_spu_vec, &bfd_elf32_tradbigmips_vec, &bfd_elf32_tradlittlemips_vec, &bfd_elf32_us_cris_vec, diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/binutils/ar.c binutils/binutils/ar.c --- binutils-2.16.1/binutils/ar.c 2005-03-03 12:46:12.000000000 +0100 +++ binutils/binutils/ar.c 2006-03-30 01:23:21.000000000 +0200 @@ -362,6 +362,15 @@ program_name = argv[0]; xmalloc_set_program_name (program_name); + { + const char *response_file = expandargv (&argc, &argv); + if (response_file) + { + fatal (_("cannot file response file. --- %s"), response_file); + xexit (1); + } + } + if (is_ranlib < 0) { char *temp; diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/binutils/doc/objcopy.1 binutils/binutils/doc/objcopy.1 --- binutils-2.16.1/binutils/doc/objcopy.1 2005-04-20 20:49:51.000000000 +0200 +++ binutils/binutils/doc/objcopy.1 2006-03-30 01:23:21.000000000 +0200 @@ -164,6 +164,8 @@ [\fB\-\-change\-section\-vma\fR \fIsection\fR{=,+,\-}\fIval\fR] [\fB\-\-change\-warnings\fR] [\fB\-\-no\-change\-warnings\fR] [\fB\-\-set\-section\-flags\fR \fIsection\fR=\fIflags\fR] + [\fB\-\-set\-section\-align\fR \fIsection\fR=\fIalignment\fR] + [\fB\-\-set\-section\-pad\fR \fIsection\fR=\fIalignment\fR] [\fB\-\-add\-section\fR \fIsectionname\fR=\fIfilename\fR] [\fB\-\-rename\-section\fR \fIoldname\fR=\fInewname\fR[,\fIflags\fR]] [\fB\-\-change\-leading\-char\fR] [\fB\-\-remove\-leading\-char\fR] @@ -526,6 +528,13 @@ \&\fBcontents\fR flag of a section which does have contents\*(--just remove the section instead. Not all flags are meaningful for all object file formats. +.IP "\fB\-\-set\-section\-align\fR \fIsection\fR\fB=\fR\fIalignment\fR" 4 +.IX Item "--set-section-align section=align" +Set the alignment for the named section to 2**align. +.IP "\fB\-\-set\-section\-pad\fR \fIsection\fR\fB=\fR\fIalignment\fR" 4 +.IX Item "--set-section-pad section=pad_align" +Set the size for the named section such that its size is a multiple +of pad_align. .IP "\fB\-\-add\-section\fR \fIsectionname\fR\fB=\fR\fIfilename\fR" 4 .IX Item "--add-section sectionname=filename" Add a new section named \fIsectionname\fR while copying the file. The diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/binutils/objcopy.c binutils/binutils/objcopy.c --- binutils-2.16.1/binutils/objcopy.c 2005-03-03 12:46:12.000000000 +0100 +++ binutils/binutils/objcopy.c 2006-03-30 01:23:21.000000000 +0200 @@ -120,6 +120,10 @@ bfd_vma lma_val; /* Amount to change by or set to. */ bfd_boolean set_flags; /* Whether to set the section flags. */ flagword flags; /* What to set the section flags to. */ + bfd_boolean set_align; /* Whether to set the section alignment. */ + int alignment; /* What to set the section alignment to. */ + bfd_boolean set_pad; /* Whether to set the section alignment. */ + int pad_align; /* What to set the section alignment to. */ }; static struct section_list *change_sections; @@ -249,7 +253,9 @@ OPTION_READONLY_TEXT, OPTION_WRITABLE_TEXT, OPTION_PURE, - OPTION_IMPURE + OPTION_IMPURE, + OPTION_SET_SECTION_ALIGN, + OPTION_SET_SECTION_PAD }; /* Options to handle if running as "strip". */ @@ -336,7 +342,9 @@ {"remove-leading-char", no_argument, 0, OPTION_REMOVE_LEADING_CHAR}, {"remove-section", required_argument, 0, 'R'}, {"rename-section", required_argument, 0, OPTION_RENAME_SECTION}, + {"set-section-align", required_argument, 0, OPTION_SET_SECTION_ALIGN}, {"set-section-flags", required_argument, 0, OPTION_SET_SECTION_FLAGS}, + {"set-section-pad", required_argument, 0, OPTION_SET_SECTION_PAD}, {"set-start", required_argument, 0, OPTION_SET_START}, {"srec-len", required_argument, 0, OPTION_SREC_LEN}, {"srec-forceS3", no_argument, 0, OPTION_SREC_FORCES3}, @@ -441,6 +449,12 @@ Warn if a named section does not exist\n\ --set-section-flags =\n\ Set section 's properties to \n\ + --set-section-align =\n\ + Set section 's alignment to\n\ + 2**\n\ + --set-section-pad =\n\ + Set section 's size to a multiple of\n\ + \n\ --add-section = Add section found in to output\n\ --rename-section =[,] Rename section to \n\ --change-leading-char Force output format's leading character style\n\ @@ -1907,6 +1921,8 @@ size = bfd_section_size (ibfd, isection); if (copy_byte >= 0) size = (size + interleave - 1) / interleave; + if (p != NULL && p->set_pad) + size += p->pad_align - (size % p->pad_align); if (! bfd_set_section_size (obfd, osection, size)) { err = _("size"); @@ -1942,9 +1958,18 @@ osection->lma = lma; + if (p != NULL && p->set_align) + { + if (! bfd_set_section_alignment (obfd, osection, p->alignment)) + { + bfd_nonfatal (bfd_get_filename (obfd)); + return FALSE; + } + } + /* FIXME: This is probably not enough. If we change the LMA we may have to recompute the header for the file as well. */ - if (!bfd_set_section_alignment (obfd, + else if (!bfd_set_section_alignment (obfd, osection, bfd_section_alignment (ibfd, isection))) { @@ -2816,6 +2841,51 @@ } break; + case OPTION_SET_SECTION_ALIGN: + { + const char *s; + int len; + char *name; + + s = strchr (optarg, '='); + if (s == NULL) + fatal (_("bad format for %s"), "--set-section-align"); + + len = s - optarg; + name = xmalloc (len + 1); + strncpy (name, optarg, len); + name[len] = '\0'; + + p = find_section_list (name, TRUE); + + p->set_align = TRUE; + p->alignment = atoi (s + 1); + } + break; + + case OPTION_SET_SECTION_PAD: + { + const char *s; + int len; + char *name; + + s = strchr (optarg, '='); + if (s == NULL) + fatal (_("bad format for %s"), "--set-section-align"); + + len = s - optarg; + name = xmalloc (len + 1); + strncpy (name, optarg, len); + name[len] = '\0'; + + p = find_section_list (name, TRUE); + + p->pad_align = atoi (s + 1); + if (p->pad_align > 0) + p->set_pad = TRUE; + } + break; + case OPTION_RENAME_SECTION: { flagword flags; diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/binutils/readelf.c binutils/binutils/readelf.c --- binutils-2.16.1/binutils/readelf.c 2005-04-20 20:43:36.000000000 +0200 +++ binutils/binutils/readelf.c 2006-03-30 01:23:21.000000000 +0200 @@ -102,6 +102,7 @@ #include "elf/s390.h" #include "elf/sh.h" #include "elf/sparc.h" +#include "elf/spu.h" #include "elf/v850.h" #include "elf/vax.h" #include "elf/x86-64.h" @@ -723,6 +724,7 @@ case EM_XSTORMY16: case EM_CRX: case EM_VAX: + case EM_SPU: case EM_IP2K: case EM_IP2K_OLD: case EM_IQ2000: @@ -1219,6 +1221,10 @@ rtype = elf_vax_reloc_type (type); break; + case EM_SPU: + rtype = elf_spu_reloc_type (type); + break; + case EM_IP2K: case EM_IP2K_OLD: rtype = elf_ip2k_reloc_type (type); @@ -1715,6 +1721,7 @@ case EM_OR32: return "OpenRISC"; case EM_CRX: return "National Semiconductor CRX microprocessor"; case EM_DLX: return "OpenDLX"; + case EM_SPU: return "SPU"; case EM_IP2K_OLD: case EM_IP2K: return "Ubicom IP2xxx 8-bit microcontrollers"; case EM_IQ2000: return "Vitesse IQ2000"; diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/config.sub binutils/config.sub --- binutils-2.16.1/config.sub 2005-01-19 01:34:56.000000000 +0100 +++ binutils/config.sub 2006-03-30 01:23:21.000000000 +0200 @@ -114,12 +114,26 @@ exit 1;; esac +# Here we handle any "marketing" names - translating them to +# standard triplets +case $1 in + spu) + set spu-unknown-elf + ;; + ppu | ppu-elf | cellppu | cellppu-elf) + set powerpc64-unknown-linux + ;; + *) + ;; +esac + # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) + kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova* | \ + lv2 ) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; @@ -271,6 +285,9 @@ | z8k) basic_machine=$basic_machine-unknown ;; + spu | ppu) + basic_machine=$basic_machine-unknown + ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown @@ -348,6 +365,8 @@ | ymp-* \ | z8k-*) ;; + spu-* | ppu-*) + ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) @@ -1308,6 +1327,8 @@ -zvmoe) os=-zvmoe ;; + -lv2) + ;; -none) ;; *) diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/gas/Makefile.am binutils/gas/Makefile.am --- binutils-2.16.1/gas/Makefile.am 2005-03-22 16:31:44.000000000 +0100 +++ binutils/gas/Makefile.am 2006-03-30 01:23:21.000000000 +0200 @@ -81,6 +81,7 @@ sh \ sh64 \ sparc \ + spu \ tahoe \ tic30 \ tic4x \ @@ -279,6 +280,7 @@ config/tc-sh.c \ config/tc-sh64.c \ config/tc-sparc.c \ + config/tc-spu.c \ config/tc-tahoe.c \ config/tc-tic30.c \ config/tc-tic54x.c \ @@ -332,6 +334,7 @@ config/tc-sh.h \ config/tc-sh64.h \ config/tc-sparc.h \ + config/tc-spu.h \ config/tc-tahoe.h \ config/tc-tic30.h \ config/tc-tic54x.h \ @@ -1451,6 +1454,12 @@ $(INCDIR)/opcode/sparc.h dw2gencfi.h $(INCDIR)/elf/dwarf2.h \ $(INCDIR)/elf/sparc.h $(INCDIR)/elf/reloc-macros.h \ dwarf2dbg.h +DEPTC_spu_elf = $(INCDIR)/symcat.h $(srcdir)/config/obj-elf.h \ + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \ + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-spu.h \ + $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \ + $(INCDIR)/opcode/spu.h $(INCDIR)/elf/spu.h $(INCDIR)/elf/reloc-macros.h \ + $(INCDIR)/opcode/spu-insns.h dwarf2dbg.h DEPTC_tahoe_aout = $(INCDIR)/symcat.h $(srcdir)/config/obj-aout.h \ $(srcdir)/config/tc-tahoe.h $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h \ $(INCDIR)/safe-ctype.h $(INCDIR)/obstack.h $(INCDIR)/opcode/tahoe.h @@ -1980,6 +1989,10 @@ $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-sparc.h \ $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \ struc-symbol.h dwarf2dbg.h $(INCDIR)/aout/aout64.h +DEPOBJ_spu_elf = $(INCDIR)/symcat.h $(srcdir)/config/obj-elf.h \ + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \ + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-spu.h \ + $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h DEPOBJ_tahoe_aout = $(INCDIR)/symcat.h $(srcdir)/config/obj-aout.h \ $(srcdir)/config/tc-tahoe.h $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h \ $(INCDIR)/aout/aout64.h $(INCDIR)/obstack.h @@ -2362,6 +2375,9 @@ DEP_sparc_elf = $(srcdir)/config/obj-elf.h $(INCDIR)/symcat.h \ $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \ $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-sparc.h +DEP_spu_elf = $(srcdir)/config/obj-elf.h $(INCDIR)/symcat.h \ + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \ + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-spu.h DEP_tahoe_aout = $(srcdir)/config/obj-aout.h $(srcdir)/config/tc-tahoe.h \ $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h DEP_tahoe_coff = $(srcdir)/config/obj-coff.h $(srcdir)/config/tc-tahoe.h \ diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/gas/as.c binutils/gas/as.c --- binutils-2.16.1/gas/as.c 2005-03-03 02:29:52.000000000 +0100 +++ binutils/gas/as.c 2006-03-30 01:23:21.000000000 +0200 @@ -1066,6 +1066,15 @@ myname = argv[0]; xmalloc_set_program_name (myname); + { + const char *response_file = expandargv (&argc, &argv); + if (response_file) + { + as_bad (_("can't open response file %s"), response_file); + xexit (1); + } + } + START_PROGRESS (myname, 0); #ifndef OBJ_DEFAULT_OUTPUT_FILE_NAME diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/gas/config/obj-coff.c binutils/gas/config/obj-coff.c --- binutils-2.16.1/gas/config/obj-coff.c 2005-03-01 12:24:31.000000000 +0100 +++ binutils/gas/config/obj-coff.c 2006-03-30 01:23:21.000000000 +0200 @@ -26,10 +26,6 @@ #include "obstack.h" #include "subsegs.h" -#ifdef TE_PE -#include "coff/pe.h" -#endif - /* I think this is probably always correct. */ #ifndef KEEP_RELOC_INFO #define KEEP_RELOC_INFO @@ -45,10 +41,6 @@ /* This is used to hold the symbol built by a sequence of pseudo-ops from .def and .endef. */ static symbolS *def_symbol_in_progress; -#ifdef TE_PE -/* PE weak alternate symbols begin with this string. */ -static const char weak_altprefix[] = ".weak."; -#endif /* TE_PE */ typedef struct { @@ -211,6 +203,47 @@ s_lcomm (0); } +/* Handle .weak. This is a GNU extension. */ + +static void +obj_coff_weak (ignore) + int ignore ATTRIBUTE_UNUSED; +{ + char *name; + int c; + symbolS *symbolP; + + do + { + name = input_line_pointer; + c = get_symbol_end (); + symbolP = symbol_find_or_make (name); + *input_line_pointer = c; + SKIP_WHITESPACE (); + +#if defined BFD_ASSEMBLER || defined S_SET_WEAK + S_SET_WEAK (symbolP); +#endif + +#ifdef TE_PE + S_SET_STORAGE_CLASS (symbolP, C_NT_WEAK); +#else + S_SET_STORAGE_CLASS (symbolP, C_WEAKEXT); +#endif + + if (c == ',') + { + input_line_pointer++; + SKIP_WHITESPACE (); + if (*input_line_pointer == '\n') + c = '\n'; + } + } + while (c == ','); + + demand_empty_rest_of_line (); +} + #ifdef BFD_ASSEMBLER static segT fetch_coff_debug_section PARAMS ((void)); @@ -1092,135 +1125,6 @@ demand_empty_rest_of_line (); } -#ifdef TE_PE - -/* Return nonzero if name begins with weak alternate symbol prefix. */ - -static int -weak_is_altname (const char * name) -{ - return ! strncmp (name, weak_altprefix, sizeof (weak_altprefix) - 1); -} - -/* Return the name of the alternate symbol - name corresponding to a weak symbol's name. */ - -static const char * -weak_name2altname (const char * name) -{ - char *alt_name; - - alt_name = xmalloc (sizeof (weak_altprefix) + strlen (name)); - strcpy (alt_name, weak_altprefix); - return strcat (alt_name, name); -} - -/* Return the name of the weak symbol corresponding to an - alterate symbol. */ - -static const char * -weak_altname2name (const char * name) -{ - char * weak_name; - char * dot; - - assert (weak_is_altname (name)); - - weak_name = xstrdup (name + 6); - if ((dot = strchr (weak_name, '.'))) - *dot = 0; - return weak_name; -} - -/* Make a weak symbol name unique by - appending the name of an external symbol. */ - -static const char * -weak_uniquify (const char * name) -{ - char *ret; - const char * unique = ""; - -#ifdef USE_UNIQUE - if (an_external_name != NULL) - unique = an_external_name; -#endif - assert (weak_is_altname (name)); - - if (strchr (name + sizeof (weak_altprefix), '.')) - return name; - - ret = xmalloc (strlen (name) + strlen (unique) + 2); - strcpy (ret, name); - strcat (ret, "."); - strcat (ret, unique); - return ret; -} - -#endif /* TE_PE */ - -/* Handle .weak. This is a GNU extension in formats other than PE. */ - -static void -obj_coff_weak (int ignore ATTRIBUTE_UNUSED) -{ - char *name; - int c; - symbolS *symbolP; -#ifdef TE_PE - symbolS *alternateP; -#endif - - do - { - name = input_line_pointer; - c = get_symbol_end (); - if (*name == 0) - { - as_warn (_("badly formed .weak directive ignored")); - ignore_rest_of_line (); - return; - } - c = 0; - symbolP = symbol_find_or_make (name); - *input_line_pointer = c; - SKIP_WHITESPACE (); - -#if defined BFD_ASSEMBLER || defined S_SET_WEAK - S_SET_WEAK (symbolP); -#endif - -#ifdef TE_PE - /* See _Microsoft Portable Executable and Common Object - File Format Specification_, section 5.5.3. - Create a symbol representing the alternate value. - coff_frob_symbol will set the value of this symbol from - the value of the weak symbol itself. */ - S_SET_STORAGE_CLASS (symbolP, C_NT_WEAK); - S_SET_NUMBER_AUXILIARY (symbolP, 1); - SA_SET_SYM_FSIZE (symbolP, IMAGE_WEAK_EXTERN_SEARCH_LIBRARY); - - alternateP = symbol_find_or_make (weak_name2altname (name)); - S_SET_EXTERNAL (alternateP); - S_SET_STORAGE_CLASS (alternateP, C_NT_WEAK); - - SA_SET_SYM_TAGNDX (symbolP, alternateP); -#endif - - if (c == ',') - { - input_line_pointer++; - SKIP_WHITESPACE (); - if (*input_line_pointer == '\n') - c = '\n'; - } - - } - while (c == ','); - - demand_empty_rest_of_line (); -} - void coff_obj_read_begin_hook () { @@ -1259,67 +1163,14 @@ if (!block_stack) block_stack = stack_init (512, sizeof (symbolS*)); -#ifdef TE_PE - if (S_GET_STORAGE_CLASS (symp) == C_NT_WEAK - && ! S_IS_WEAK (symp) - && weak_is_altname (S_GET_NAME (symp))) + if (S_IS_WEAK (symp)) { - /* This is a weak alternate symbol. All processing of - PECOFFweak symbols is done here, through the alternate. */ - symbolS *weakp = symbol_find (weak_altname2name (S_GET_NAME (symp))); - - assert (weakp); - assert (S_GET_NUMBER_AUXILIARY (weakp) == 1); - - if (symbol_equated_p (weakp)) - { - /* The weak symbol has an alternate specified; symp is unneeded. */ - S_SET_STORAGE_CLASS (weakp, C_NT_WEAK); - SA_SET_SYM_TAGNDX (weakp, - symbol_get_value_expression (weakp)->X_add_symbol); - - S_CLEAR_EXTERNAL (symp); - *punt = 1; - return; - } - else - { - /* The weak symbol has been assigned an alternate value. - Copy this value to symp, and set symp as weakp's alternate. */ - if (S_GET_STORAGE_CLASS (weakp) != C_NT_WEAK) - { - S_SET_STORAGE_CLASS (symp, S_GET_STORAGE_CLASS (weakp)); - S_SET_STORAGE_CLASS (weakp, C_NT_WEAK); - } - - if (S_IS_DEFINED (weakp)) - { - /* This is a defined weak symbol. Copy value information - from the weak symbol itself to the alternate symbol. */ - symbol_set_value_expression (symp, - symbol_get_value_expression (weakp)); - symbol_set_frag (symp, symbol_get_frag (weakp)); - S_SET_SEGMENT (symp, S_GET_SEGMENT (weakp)); - } - else - { - /* This is an undefined weak symbol. - Define the alternate symbol to zero. */ - S_SET_VALUE (symp, 0); - S_SET_SEGMENT (symp, absolute_section); - } - - S_SET_NAME (symp, weak_uniquify (S_GET_NAME (symp))); - S_SET_STORAGE_CLASS (symp, C_EXT); - - S_SET_VALUE (weakp, 0); - S_SET_SEGMENT (weakp, undefined_section); - } +#ifdef TE_PE + S_SET_STORAGE_CLASS (symp, C_NT_WEAK); +#else + S_SET_STORAGE_CLASS (symp, C_WEAKEXT); +#endif } -#else /* TE_PE */ - if (S_IS_WEAK (symp)) - S_SET_STORAGE_CLASS (symp, C_WEAKEXT); -#endif /* TE_PE */ if (!S_IS_DEFINED (symp) && !S_IS_WEAK (symp) diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/gas/config/tc-ppc.c binutils/gas/config/tc-ppc.c --- binutils-2.16.1/gas/config/tc-ppc.c 2005-03-02 14:24:01.000000000 +0100 +++ binutils/gas/config/tc-ppc.c 2006-03-30 01:23:21.000000000 +0200 @@ -36,6 +36,9 @@ #include "coff/pe.h" #endif +#undef TARGET_CPU +#define TARGET_CPU "cellppu" + /* This is the assembler for the PowerPC or POWER (RS/6000) chips. */ /* Tell the main code what the endianness is. */ @@ -184,8 +187,11 @@ const char FLT_CHARS[] = "dD"; /* '+' and '-' can be used as postfix predicate predictors for conditional - branches. So they need to be accepted as symbol characters. */ -const char ppc_symbol_chars[] = "+-"; + branches. So they need to be accepted as symbol characters. + No they don't. The lexer already accepts them as part of an opcode + name without adding them to ppc_symbol_chars. And if they are added + they mess up argument/expression parsing. */ +const char ppc_symbol_chars[] = ""; /* The dwarf2 data alignment, adjusted for 32 or 64 bit. */ int ppc_cie_data_alignment; @@ -906,6 +912,15 @@ ppc_cpu = (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC | PPC_OPCODE_64 | PPC_OPCODE_POWER4); } + /* -mcellppu and -mppu means assemble for the CELL PPU arhictecrue */ + /* -mdd1.0, -mdd2.0 and -mdd3.0 are here for completeness. */ + else if (strcmp (arg, "cellppu") == 0 || strcmp (arg, "ppu") == 0 + || strcmp (arg, "dd1.0") == 0 || strcmp (arg, "dd2.0") == 0 + || strcmp (arg, "dd3.0") == 0 ) + { + ppc_cpu = PPC_OPCODE_PPC | PPC_OPCODE_64 | PPC_OPCODE_CELLPPU + | PPC_OPCODE_ALTIVEC; + } /* -mcom means assemble for the common intersection between Power and PowerPC. At present, we just allow the union, rather than the intersection. */ @@ -1100,6 +1115,7 @@ -mbooke64 generate code for 64-bit PowerPC BookE\n\ -mbooke, mbooke32 generate code for 32-bit PowerPC BookE\n\ -mpower4 generate code for Power4 architecture\n\ +-mcellppu, mppu generate code for CELL PPU architecture\n\ -mcom generate code Power/PowerPC common instructions\n\ -many generate code for any architecture (PWR/PWRX/PPC)\n")); fprintf (stream, _("\ @@ -1134,7 +1150,13 @@ if ((ppc_cpu & ~PPC_OPCODE_ANY) == 0) { - if (ppc_obj64) + if (strncmp (default_cpu, "ppu", 2) == 0 + || strncmp (default_cpu, "cellppu", 6) == 0) + { + ppc_cpu = PPC_OPCODE_PPC | PPC_OPCODE_64 | PPC_OPCODE_CELLPPU + | PPC_OPCODE_ALTIVEC; + } + else if (ppc_obj64) ppc_cpu |= PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC | PPC_OPCODE_64; else if (strncmp (default_os, "aix", 3) == 0 && default_os[3] >= '4' && default_os[3] <= '9') @@ -1266,7 +1288,7 @@ if ((ppc_cpu & PPC_OPCODE_601) != 0 && (op->flags & PPC_OPCODE_POWER) != 0) continue; - + as_bad (_("Internal assembler error for instruction %s"), op->name); dup_insn = TRUE; @@ -1579,6 +1601,7 @@ MAP64 ("highesta", BFD_RELOC_PPC64_HIGHEST_S), MAP64 ("tocbase", BFD_RELOC_PPC64_TOC), MAP64 ("toc", BFD_RELOC_PPC_TOC16), + MAP ("sdatoc", BFD_RELOC_PPC_TOC16), MAP64 ("toc@l", BFD_RELOC_PPC64_TOC16_LO), MAP64 ("toc@h", BFD_RELOC_PPC64_TOC16_HI), MAP64 ("toc@ha", BFD_RELOC_PPC64_TOC16_HA), @@ -2363,8 +2386,6 @@ if (ex.X_op == O_illegal) as_bad (_("illegal operand")); - else if (ex.X_op == O_absent) - as_bad (_("missing operand")); else if (ex.X_op == O_register) { insn = ppc_insert_operand (insn, operand, ex.X_add_number, diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/gas/config/tc-spu.c binutils/gas/config/tc-spu.c --- binutils-2.16.1/gas/config/tc-spu.c 1970-01-01 01:00:00.000000000 +0100 +++ binutils/gas/config/tc-spu.c 2006-03-30 01:23:21.000000000 +0200 @@ -0,0 +1,1006 @@ +/* spu.c -- Assembler for the IBM Synergistic Processing Unit (SPU) */ + +/* (C) Copyright + Sony Computer Entertainment, Inc., + Toshiba Corporation, + International Business Machines Corporation, + 2001,2002,2003,2004,2005. + + This file is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + This file is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with this file; see the file COPYING. If not, write to the Free + Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ + + +#include "as.h" +#include "safe-ctype.h" +#include "subsegs.h" +#include "opcode/spu.h" +#include "dwarf2dbg.h" + +const struct spu_opcode spu_opcodes[] = { +#define APUOP(TAG,MACFORMAT,OPCODE,MNEMONIC,ASMFORMAT,DEP,PIPE) \ + { MACFORMAT, (OPCODE) << (32-11), MNEMONIC, ASMFORMAT }, +#define APUOPFB(TAG,MACFORMAT,OPCODE,FB,MNEMONIC,ASMFORMAT,DEP,PIPE) \ + { MACFORMAT, ((OPCODE) << (32-11)) | ((FB) << (32-18)), MNEMONIC, ASMFORMAT }, +#include "opcode/spu-insns.h" +#undef APUOP +#undef APUOPFB +}; + +static const int spu_num_opcodes = + sizeof (spu_opcodes) / sizeof (spu_opcodes[0]); + +#define MAX_RELOCS 2 + +struct spu_insn +{ + unsigned int opcode; + expressionS exp[MAX_RELOCS]; + int reloc_arg[MAX_RELOCS]; + int flag[MAX_RELOCS]; + enum spu_insns tag; +}; + +static const char *get_imm PARAMS ((const char *param, struct spu_insn *insn, int arg)); +static const char *get_reg PARAMS ((const char *param, struct spu_insn *insn, int arg, int accept_expr)); + +static int calcop PARAMS ((struct spu_opcode *format, + const char *param, struct spu_insn *insn)); + +extern char *myname; +static struct hash_control *op_hash = NULL; + +/* These bits should be turned off in the first address of every segment */ +int md_seg_align = 7; + +/* These chars start a comment anywhere in a source file (except inside + another comment */ +const char comment_chars[] = "#"; + +/* These chars only start a comment at the beginning of a line. */ +const char line_comment_chars[] = "#"; + +/* gods own line continuation char */ +const char line_separator_chars[] = ";"; + +/* Chars that can be used to separate mant from exp in floating point nums */ +const char EXP_CHARS[] = "eE"; + +/* Chars that mean this number is a floating point constant */ +/* as in 0f123.456 */ +/* or 0H1.234E-12 (see exp chars above) */ +const char FLT_CHARS[] = "dDfF"; + +const pseudo_typeS md_pseudo_table[] = +{ + {"align", s_align_ptwo, 4}, + {"def", s_set, 0}, + {"dfloat", float_cons, 'd'}, + {"ffloat", float_cons, 'f'}, + {"global", s_globl, 0}, + {"half", cons, 2}, + {"bss", s_lcomm_bytes, 1}, + {"string", stringer, 1}, + {"word", cons, 4}, + /* Force set to be treated as an instruction. */ + {"set", NULL, 0}, + {".set", s_set, 0}, + {"file", (void (*) PARAMS ((int))) dwarf2_directive_file, 0 }, + {"loc", dwarf2_directive_loc, 0}, + {0,0,0} +}; + +void +md_begin () +{ + const char *retval = NULL; + int i; + + /* initialize hash table */ + + op_hash = hash_new (); + + /* loop until you see the end of the list */ + + for (i = 0; i < spu_num_opcodes; i++) + { + /* hash each mnemonic and record its position */ + + retval = hash_insert (op_hash, spu_opcodes[i].mnemonic, (PTR)&spu_opcodes[i]); + + if (retval != NULL && strcmp(retval, "exists") != 0) + as_fatal (_("Can't hash instruction '%s':%s"), + spu_opcodes[i].mnemonic, retval); + } +} + +CONST char *md_shortopts = ""; +struct option md_longopts[] = { +#define OPTION_APUASM (OPTION_MD_BASE) + {"apuasm", no_argument, NULL, OPTION_APUASM}, +#define OPTION_DD2 (OPTION_MD_BASE+1) + {"mdd2.0", no_argument, NULL, OPTION_DD2}, +#define OPTION_DD1 (OPTION_MD_BASE+2) + {"mdd1.0", no_argument, NULL, OPTION_DD1}, +#define OPTION_DD3 (OPTION_MD_BASE+3) + {"mdd3.0", no_argument, NULL, OPTION_DD3}, + { NULL, no_argument, NULL, 0 } +}; +size_t md_longopts_size = sizeof (md_longopts); + +/* When set (by -apuasm) our assembler emulates the behaviour of apuasm. + * e.g. don't add bias to float conversion and don't right shift + * immediate values. */ +static int emulate_apuasm; + +/* Use the dd2.0 instructions set. The only differences are some new + * register names and the orx insn */ +static int use_dd2 = 1; + +int +md_parse_option (c, arg) + int c; + char *arg ATTRIBUTE_UNUSED; +{ + switch(c) + { + case OPTION_APUASM: emulate_apuasm = 1; break; + case OPTION_DD3: use_dd2 = 1; break; + case OPTION_DD2: use_dd2 = 1; break; + case OPTION_DD1: use_dd2 = 0; break; + default: return 0; + } + return 1; +} + +void +md_show_usage (stream) + FILE *stream; +{ + fputs (_("\ +SPU options:\n\ + --apuasm emulate behaviour of apuasm\n"), + stream); +} + + +struct arg_encode { + int size; + int pos; + int rshift; + int lo, hi; + int wlo, whi; + bfd_reloc_code_real_type reloc; +}; +static struct arg_encode arg_encode[A_MAX] = { + { 7, 0, 0, 0, 127, 0, -1, 0 }, /* A_T */ + { 7, 7, 0, 0, 127, 0, -1, 0 }, /* A_A */ + { 7, 14, 0, 0, 127, 0, -1, 0 }, /* A_B */ + { 7, 21, 0, 0, 127, 0, -1, 0 }, /* A_C */ + { 7, 7, 0, 0, 127, 0, -1, 0 }, /* A_S */ + { 7, 7, 0, 0, 127, 0, -1, 0 }, /* A_H */ + { 0, 0, 0, 0, -1, 0, -1, 0 }, /* A_P */ + { 7, 14, 0, 0, -1, 0, -1, BFD_RELOC_SPU_IMM7 }, /* A_S3 */ + { 7, 14, 0, -32, 31, -31, 0, BFD_RELOC_SPU_IMM7 }, /* A_S6 */ + { 7, 14, 0, 0, -1, 0, -1, BFD_RELOC_SPU_IMM7 }, /* A_S7N */ + { 7, 14, 0, -64, 63, -63, 0, BFD_RELOC_SPU_IMM7 }, /* A_S7 */ + { 8, 14, 0, 0, 127, 0, -1, BFD_RELOC_SPU_IMM8 }, /* A_U7A */ + { 8, 14, 0, 0, 127, 0, -1, BFD_RELOC_SPU_IMM8 }, /* A_U7B */ + { 10, 14, 0, -512, 511, -128, 255, BFD_RELOC_SPU_IMM10 }, /* A_S10B */ + { 10, 14, 0, -512, 511, 0, -1, BFD_RELOC_SPU_IMM10 }, /* A_S10 */ + { 2, 23, 9, -1024, 1023, 0, -1, BFD_RELOC_SPU_PCREL9a }, /* A_S11 */ + { 2, 14, 9, -1024, 1023, 0, -1, BFD_RELOC_SPU_PCREL9b }, /* A_S11I */ + { 10, 14, 4, -8192, 8191, 0, -1, BFD_RELOC_SPU_IMM10W }, /* A_S14 */ + { 16, 7, 0, -32768, 32767, 0, -1, BFD_RELOC_SPU_IMM16 }, /* A_S16 */ + { 16, 7, 2, -131072, 262143, 0, -1, BFD_RELOC_SPU_IMM16W }, /* A_S18 */ + { 16, 7, 2, -262144, 262143, 0, -1, BFD_RELOC_SPU_PCREL16 }, /* A_R18 */ + { 7, 14, 0, 0, -1, 0, -1, BFD_RELOC_SPU_IMM7 }, /* A_U3 */ + { 7, 14, 0, 0, 127, 0, 31, BFD_RELOC_SPU_IMM7 }, /* A_U5 */ + { 7, 14, 0, 0, 127, 0, 63, BFD_RELOC_SPU_IMM7 }, /* A_U6 */ + { 7, 14, 0, 0, -1, 0, -1, BFD_RELOC_SPU_IMM7 }, /* A_U7 */ + { 14, 0, 0, 0, 16383, 0, -1, 0 }, /* A_U14 */ + { 16, 7, 0, -32768, 65535, 0, -1, BFD_RELOC_SPU_IMM16 }, /* A_X16 */ + { 18, 7, 0, 0, 262143, 0, -1, BFD_RELOC_SPU_IMM18 }, /* A_U18 */ +}; + +/* Some flags for handling errors. This is very hackish and added after + * the fact. */ +static int syntax_error_arg; +static char * syntax_error_param; +static int syntax_reg; + +static char * +insn_fmt_string(struct spu_opcode *format) +{ + static char buf[64]; + int len = 0; + int i; + int paren; + len += sprintf (&buf[len], "%s\t", format->mnemonic); + for (i = 1; i <= format->arg[0]; i++) + { + int arg = format->arg[i]; + char *exp; + if (i > 1 && arg != A_P && format->arg[i-1] != A_P) + buf[len++] = ','; + if (arg == A_P) + exp = "("; + else if (arg < A_P) + exp = i == syntax_error_arg ? "REG" : "reg"; + else + exp = i == syntax_error_arg ? "IMM" : "imm"; + len += sprintf (&buf[len], "%s", exp); + if (i > 1 && format->arg[i-1] == A_P) + buf[len++] = ')'; + } + buf[len] = 0; + return buf; +} + +void +md_assemble (op) + char *op; +{ + char *param, *thisfrag; + char c; + struct spu_opcode *format; + struct spu_insn insn; + int i; + + assert (op); + + /* skip over instruction to find parameters */ + + for (param = op; *param != 0 && !ISSPACE (*param); param++) + ; + c = *param; + *param = 0; + + if (c != 0 && c != '\n') + param++; + + /* try to find the instruction in the hash table */ + + if ((format = (struct spu_opcode *) hash_find (op_hash, op)) == NULL) + { + as_bad (_("Invalid mnemonic '%s'"), op); + return; + } + + if (!use_dd2 && strcmp(format->mnemonic, "orx") == 0) + { + as_bad (_("'%s' is only available in DD2.0 or higher."), op); + return; + } + + while (1) + { + /* try parsing this instruction into insn */ + + for (i = 0; i < MAX_RELOCS; i++) + { + insn.exp[i].X_add_symbol = 0; + insn.exp[i].X_op_symbol = 0; + insn.exp[i].X_add_number = 0; + insn.exp[i].X_op = O_illegal; + insn.reloc_arg[i] = -1; + insn.flag[i] = 0; + } + insn.opcode = format->opcode; + insn.tag = (enum spu_insns)(format - spu_opcodes); + + syntax_error_arg = 0; + syntax_error_param = 0; + syntax_reg = 0; + if (calcop (format, param, &insn)) + break; + + /* if it doesn't parse try the next instruction */ + if (!strcmp (format[0].mnemonic, format[1].mnemonic)) + format++; + else + { + int parg = format[0].arg[syntax_error_arg-1]; + char *exp; + as_fatal (_("Error in argument %d. Expecting: \"%s\""), + syntax_error_arg - (parg == A_P), + insn_fmt_string(format)); + return; + } + } + + if ((syntax_reg & 4) + && ! (insn.tag == M_RDCH + || insn.tag == M_RCHCNT + || insn.tag == M_WRCH)) + as_warn (_("Mixing register syntax, with and without '$'.")); + if (syntax_error_param) + { + char *d = syntax_error_param; + while (*d != '$') + d--; + as_warn (_("Treating '%-*s' as a symbol."), syntax_error_param-d, d); + } + + /* grow the current frag and plop in the opcode */ + + thisfrag = frag_more (4); + md_number_to_chars (thisfrag, insn.opcode, 4); + + /* if this instruction requires labels mark it for later */ + + for (i = 0; i < MAX_RELOCS; i++) + if (insn.reloc_arg[i] >= 0) + { + fixS *fixP; + bfd_reloc_code_real_type reloc = arg_encode[insn.reloc_arg[i]].reloc; + int pcrel = 0; + if (reloc == BFD_RELOC_SPU_PCREL9a + || reloc == BFD_RELOC_SPU_PCREL9b + || reloc == BFD_RELOC_SPU_PCREL16) + pcrel = 1; + if (insn.flag[i] & 1) reloc = BFD_RELOC_SPU_HI16; + else if (insn.flag[i] & 2) reloc = BFD_RELOC_SPU_LO16; + fixP = fix_new_exp (frag_now, + thisfrag - frag_now->fr_literal, + 4, + &insn.exp[i], + pcrel, + reloc); + fixP->tc_fix_data = insn.reloc_arg[i]; + } + dwarf2_emit_insn(4); +} + +static int +calcop (format, param, insn) + struct spu_opcode *format; + const char *param; + struct spu_insn *insn; +{ + int i; + int paren = 0; + int arg; + + for (i = 1; i <= format->arg[0]; i++) + { + arg = format->arg[i]; + syntax_error_arg = i; + + while (ISSPACE(*param)) + param++; + if (*param == 0 || *param == ',') + return 0; + if (arg < A_P) + param = get_reg (param, insn, arg, 1); + else if (arg > A_P) + param = get_imm (param, insn, arg); + else if (arg == A_P) + { + paren++; + if ('(' != *param++) + return 0; + } + + if (!param) + return 0; + + while (ISSPACE(*param)) + param++; + + if (arg != A_P && paren) + { + paren--; + if (')' != *param++) + return 0; + } + else if (i < format->arg[0] + && format->arg[i] != A_P + && format->arg[i+1] != A_P) + { + if (',' != *param++) + { + syntax_error_arg++; + return 0; + } + } + } + while (ISSPACE(*param)) + param++; + return !paren && (*param == 0 || *param == '\n'); +} + +struct reg_name { + int regno; + int length; + char name[32]; +}; +#define REG_NAME(NO,NM) { NO, sizeof(NM)-1, NM } +static struct reg_name reg_name[] = { + REG_NAME(0, "lr"), /* link register */ + REG_NAME(1, "sp"), /* stack pointer */ + REG_NAME(0, "rp"), /* link register */ + REG_NAME(127, "fp"), /* frame pointer */ +}; +static struct reg_name sp_reg_name[] = { +}; +static struct reg_name ch_reg_name[] = { + REG_NAME( 0, "SPU_RdEventStat"), + REG_NAME( 1, "SPU_WrEventMask"), + REG_NAME( 2, "SPU_WrEventAck"), + REG_NAME( 3, "SPU_RdSigNotify1"), + REG_NAME( 4, "SPU_RdSigNotify2"), + REG_NAME( 7, "SPU_WrDec"), + REG_NAME( 8, "SPU_RdDec"), + REG_NAME( 11, "SPU_RdEventStatMask"), /* DD2.0 only */ + REG_NAME( 13, "SPU_RdMachStat"), + REG_NAME( 14, "SPU_WrSRR0"), + REG_NAME( 15, "SPU_RdSRR0"), + REG_NAME( 28, "SPU_WrOutMbox"), + REG_NAME( 29, "SPU_RdInMbox"), + REG_NAME( 30, "SPU_WrOutIntrMbox"), + REG_NAME( 9, "MFC_WrMSSyncReq"), + REG_NAME( 12, "MFC_RdTagMask"), /* DD2.0 only */ + REG_NAME( 16, "MFC_LSA"), + REG_NAME( 17, "MFC_EAH"), + REG_NAME( 18, "MFC_EAL"), + REG_NAME( 19, "MFC_Size"), + REG_NAME( 20, "MFC_TagID"), + REG_NAME( 21, "MFC_Cmd"), + REG_NAME( 22, "MFC_WrTagMask"), + REG_NAME( 23, "MFC_WrTagUpdate"), + REG_NAME( 24, "MFC_RdTagStat"), + REG_NAME( 25, "MFC_RdListStallStat"), + REG_NAME( 26, "MFC_WrListStallAck"), + REG_NAME( 27, "MFC_RdAtomicStat"), +}; +#undef REG_NAME + +static const char * +get_reg (param, insn, arg, accept_expr) + const char *param; + struct spu_insn *insn; + int arg; + int accept_expr; +{ + unsigned regno; + int saw_prefix = 0; + + if (*param == '$') + { + saw_prefix = 1; + param++; + } + + if (arg == A_H) /* Channel */ + { + if ((param[0] == 'c' || param[0] == 'C') + && (param[1] == 'h' || param[1] == 'H') + && ISDIGIT(param[2])) + param += 2; + } + else if (arg == A_S) /* Special purpose register */ + { + if ((param[0] == 's' || param[0] == 'S') + && (param[1] == 'p' || param[1] == 'P') + && ISDIGIT(param[2])) + param += 2; + } + + if (ISDIGIT(*param)) + { + regno = 0; + while (ISDIGIT(*param)) + regno = regno * 10 + *param++ - '0'; + } + else + { + struct reg_name *rn; + unsigned int i, n, l = 0; + + if (arg == A_H) /* Channel */ + { + rn = ch_reg_name; + n = sizeof(ch_reg_name)/sizeof(*ch_reg_name); + } + else if (arg == A_S) /* Special purpose register */ + { + rn = sp_reg_name; + n = sizeof(sp_reg_name)/sizeof(*sp_reg_name); + } + else + { + rn = reg_name; + n = sizeof(reg_name)/sizeof(*reg_name); + } + regno = 128; + for (i = 0; i < n; i++) + if (rn[i].length > l + && 0 == strncasecmp(param, rn[i].name, rn[i].length)) + { + l = rn[i].length; + regno = rn[i].regno; + } + param += l; + } + + if (!use_dd2 + && arg == A_H) + { + if (regno == 11) + as_bad (_("'SPU_RdEventStatMask' (channel 11) is only available in DD2.0 or higher.")); + else if (regno == 12) + as_bad (_("'MFC_RdTagMask' (channel 12) is only available in DD2.0 or higher.")); + } + + if (regno < 128) + { + insn->opcode |= regno << arg_encode[arg].pos; + if ((!saw_prefix && syntax_reg == 1) + || (saw_prefix && syntax_reg == 2)) + syntax_reg |= 4; + syntax_reg |= saw_prefix ? 1 : 2; + return param; + } + if (accept_expr) + { + char *save_ptr; + expressionS ex; + save_ptr = input_line_pointer; + input_line_pointer = (char *)param; + expression (&ex); + param = input_line_pointer; + input_line_pointer = save_ptr; + if (ex.X_op == O_register || ex.X_op == O_constant) + { + insn->opcode |= ex.X_add_number << arg_encode[arg].pos; + return param; + } + } + return 0; +} + +static const char * +get_imm (param, insn, arg) + const char *param; + struct spu_insn *insn; + int arg; +{ + int val; + char *save_ptr; + int low = 0, high = 0; + int reloc_i = insn->reloc_arg[0] >= 0 ? 1 : 0; + + if (strncmp(param, "%lo(", 4) == 0) + { + param += 3; + low = 1; + as_warn (_("Using old style, %%lo(expr), please change to PPC style, expr@l.")); + } + else if (strncmp(param, "%hi(", 4) == 0) + { + param += 3; + high = 1; + as_warn (_("Using old style, %%hi(expr), please change to PPC style, expr@h.")); + } + else if (strncmp(param, "%pic(", 5) == 0) + { + /* Currently we expect %pic(expr) == expr, so do nothing here. + * i.e. for code loaded at address 0 $toc will be 0. */ + param += 4; + } + + if (*param == '$') + { + /* Symbols can start with $, but if this symbol matches a register + * name, it's probably a mistake. The only way to avoid this + * warning is to rename the symbol. */ + struct spu_insn tmp_insn; + char *np; + if ((np = get_reg (param, &tmp_insn, arg, 0))) + syntax_error_param = np; + } + + save_ptr = input_line_pointer; + input_line_pointer = (char *)param; + expression (&insn->exp[reloc_i]); + param = input_line_pointer; + input_line_pointer = save_ptr; + + /* Similar to ppc_elf_suffix in tc-ppc.c. We have so few cases to + * handle we do it inlined here. */ + if (param[0] == '@' && !ISALNUM(param[2]) && param[2] != '@') + { + if (param[1] == 'h' || param[1] == 'H') + { + high = 1; + param += 2; + } + else if (param[1] == 'l' || param[1] == 'L') + { + low = 1; + param += 2; + } + } + + val = insn->exp[reloc_i].X_add_number; + + if (insn->exp[reloc_i].X_op == O_constant) + { + if (emulate_apuasm) + { + /* Convert the value to a format we expect. */ + val <<= arg_encode[arg].rshift; + if (arg == A_U7A) + val = 173 - val; + else if (arg == A_U7B) + val = 155 - val; + } + + if (high) + val = val >> 16; + else if (low) + val = val & 0xffff; + + /* Warn about out of range expressions. */ + { + int hi = arg_encode[arg].hi; + int lo = arg_encode[arg].lo; + int whi = arg_encode[arg].whi; + int wlo = arg_encode[arg].wlo; + if (hi > lo && (val < lo || val > hi)) + as_fatal (_("Constant expression %d out of range, [%d, %d]."), val, lo, hi); + else if (whi > wlo && (val < wlo || val > whi)) + as_warn (_("Constant expression %d out of range, [%d, %d]."), val, wlo, whi); + } + + if (arg == A_U7A) + val = 173 - val; + else if (arg == A_U7B) + val = 155 - val; + + /* Branch hints have a split encoding. Do the bottom part. */ + if (arg == A_S11 || arg == A_S11I) + insn->opcode |= ((val >> 2) & 0x7f); + + insn->opcode |= ((val >> arg_encode[arg].rshift) + & ((1<reloc_arg[reloc_i] = -1; + insn->flag[reloc_i] = 0; + } + else + { + insn->reloc_arg[reloc_i] = arg; + if (high) insn->flag[reloc_i] |= 1; + if (low) insn->flag[reloc_i] |= 2; + } + + return param; +} + +void +md_number_to_chars (buf, val, nbytes) + char *buf; + valueT val; + int nbytes; +{ + number_to_chars_bigendian (buf, val, nbytes); +} + +#define MAX_LITTLENUMS 6 + +/* Turn a string in input_line_pointer into a floating point constant of type + type, and store the appropriate bytes in *litP. The number of LITTLENUMS + emitted is stored in *sizeP . An error message is returned, or NULL on OK. + */ +char * +md_atof (type, litP, sizeP) + char type; + char *litP; + int *sizeP; +{ + int prec; + LITTLENUM_TYPE words[MAX_LITTLENUMS]; + LITTLENUM_TYPE *wordP; + char *t; + + switch (type) + { + case 'f': + case 'F': + case 's': + case 'S': + prec = 2; + break; + + case 'd': + case 'D': + case 'r': + case 'R': + prec = 4; + break; + + case 'x': + case 'X': + prec = 6; + break; + + case 'p': + case 'P': + prec = 6; + break; + + default: + *sizeP = 0; + return _("Bad call to MD_ATOF()"); + } + t = atof_ieee (input_line_pointer, type, words); + if (t) + input_line_pointer = t; + + *sizeP = prec * sizeof (LITTLENUM_TYPE); + for (wordP = words; prec--;) + { + md_number_to_chars (litP, (long) (*wordP++), sizeof (LITTLENUM_TYPE)); + litP += sizeof (LITTLENUM_TYPE); + } + return 0; +} + +int md_short_jump_size = 4; + +void +md_create_short_jump (ptr, from_addr, to_addr, frag, to_symbol) + char *ptr; + addressT from_addr ATTRIBUTE_UNUSED, to_addr ATTRIBUTE_UNUSED; + fragS *frag; + symbolS *to_symbol; +{ + ptr[0] = (char) 0xc0; + ptr[1] = 0x00; + ptr[2] = 0x00; + ptr[3] = 0x00; + fix_new (frag, + ptr - frag->fr_literal, + 4, + to_symbol, + (offsetT) 0, + 0, + BFD_RELOC_SPU_PCREL16); +} + +int md_long_jump_size = 4; + +void +md_create_long_jump (ptr, from_addr, to_addr, frag, to_symbol) + char *ptr; + addressT from_addr ATTRIBUTE_UNUSED, to_addr ATTRIBUTE_UNUSED; + fragS *frag; + symbolS *to_symbol; +{ + ptr[0] = (char) 0xc0; + ptr[1] = 0x00; + ptr[2] = 0x00; + ptr[3] = 0x00; + fix_new (frag, + ptr - frag->fr_literal, + 4, + to_symbol, + (offsetT) 0, + 0, + BFD_RELOC_SPU_PCREL16); +} + +int +md_estimate_size_before_relax (fragP, segment_type) + fragS *fragP ATTRIBUTE_UNUSED; + segT segment_type ATTRIBUTE_UNUSED; +{ + as_fatal (_("Relaxation should never occur")); + return (-1); +} + +/* If while processing a fixup, a reloc really needs to be created, + then it is done here. */ + +arelent * +tc_gen_reloc (seg, fixp) + asection *seg ATTRIBUTE_UNUSED; + fixS *fixp; +{ + arelent *reloc; + reloc = (arelent *) xmalloc (sizeof (arelent)); + reloc->sym_ptr_ptr = (asymbol **) xmalloc (sizeof (asymbol *)); + if (fixp->fx_addsy) + *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy); + else if (fixp->fx_subsy) + *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_subsy); + reloc->address = fixp->fx_frag->fr_address + fixp->fx_where; + reloc->howto = bfd_reloc_type_lookup (stdoutput, fixp->fx_r_type); + if (reloc->howto == (reloc_howto_type *) NULL) + { + as_bad_where (fixp->fx_file, fixp->fx_line, + _("reloc %d not supported by object file format"), + (int) fixp->fx_r_type); + return NULL; + } + reloc->addend = fixp->fx_addnumber; + return reloc; +} + +/* Round up a section's size to the appropriate boundary. */ + +valueT +md_section_align (seg, size) + segT seg; + valueT size; +{ + int align = bfd_get_section_alignment (stdoutput, seg); + valueT mask = ((valueT) 1 << align) - 1; + + return (size + mask) & ~mask; +} + +/* Where a PC relative offset is calculated from. On the spu they + are calculated from the beginning of the branch instruction. */ + +long +md_pcrel_from (fixp) + fixS *fixp; +{ + switch (fixp->fx_r_type) + { + case BFD_RELOC_SPU_PCREL9a: + case BFD_RELOC_SPU_PCREL9b: + case BFD_RELOC_SPU_PCREL16: + return fixp->fx_frag->fr_address + fixp->fx_where; + default: + abort (); + } + /*NOTREACHED*/ +} + +/* Fill in rs_align_code fragments. */ + +void +spu_handle_align (fragp) + fragS *fragp; +{ + static const unsigned char nop_pattern[8] = { + 0x40, 0x20, 0x00, 0x00, /* even nop */ + 0x00, 0x20, 0x00, 0x00, /* odd nop */ + }; + + int bytes; + char *p; + + if (fragp->fr_type != rs_align_code) + return; + + bytes = fragp->fr_next->fr_address - fragp->fr_address - fragp->fr_fix; + p = fragp->fr_literal + fragp->fr_fix; + + if (bytes & 3) + { + int fix = bytes & 3; + memset (p, 0, fix); + p += fix; + bytes -= fix; + fragp->fr_fix += fix; + } + if (bytes & 4) + { + memcpy (p, &nop_pattern[4], 4); + p += 4; + bytes -= 4; + fragp->fr_fix += 4; + } + + memcpy (p, nop_pattern, 8); + fragp->fr_var = 8; +} + +void +md_apply_fix3 (fixP, valP, seg) + fixS *fixP; + valueT * valP; + segT seg ATTRIBUTE_UNUSED; +{ + unsigned int res; + long val = (long)*valP; + char *place = fixP->fx_where + fixP->fx_frag->fr_literal; + + if (fixP->fx_addsy != NULL) + { + /* Hack around bfd_install_relocation brain damage. */ + if (fixP->fx_pcrel) + val += fixP->fx_frag->fr_address + fixP->fx_where; + } + + fixP->fx_addnumber = val; + + if (fixP->fx_addsy == NULL && fixP->fx_pcrel == 0) + { + fixP->fx_done = 1; + res = 0; + if (fixP->tc_fix_data > A_P) + { + int hi = arg_encode[fixP->tc_fix_data].hi; + int lo = arg_encode[fixP->tc_fix_data].lo; + if (hi > lo && (val < lo || val > hi)) + as_bad_where (fixP->fx_file, fixP->fx_line, + "Relocation doesn't fit. (relocation value = 0x%x)", + (int) val); + } + switch (fixP->fx_r_type) + { + case 0: + break; + case BFD_RELOC_SPU_IMM7: + res = (val & 0x7f) << 14; + break; + case BFD_RELOC_SPU_IMM8: + res = (val & 0xff) << 14; + break; + case BFD_RELOC_SPU_IMM10: + res = (val & 0xcff) << 14; + break; + case BFD_RELOC_SPU_IMM10W: + res = (val & 0xcff0) << 10; + break; + case BFD_RELOC_SPU_IMM16: + res = (val & 0xffff) << 7; + break; + case BFD_RELOC_SPU_IMM16W: + res = (val & 0x3fffc) << 5; + break; + case BFD_RELOC_SPU_IMM18: + res = (val & 0x3ffff) << 7; + break; + case BFD_RELOC_16: +#if 0 + val = fixP->fx_offset; + number_to_chars_bigendian (place, val, 2); +#endif + res = val; + break; + case BFD_RELOC_32: + res = val; + break; + case BFD_RELOC_SPU_PCREL9a: + res = ((val & 0x1fc) >> 2) | ((val & 0x600) << 14); + break; + case BFD_RELOC_SPU_PCREL9b: + res = ((val & 0x1fc) >> 2) | ((val & 0x600) << 5); + break; + case BFD_RELOC_SPU_PCREL16: + res = (val & 0x3fffc) << 5; + break; + + default: + as_bad_where (fixP->fx_file, fixP->fx_line, + _("reloc %d not supported by object file format"), + (int) fixP->fx_r_type); + abort (); + } + if (res != 0) + { + place[0] |= (res >> 24) & 0xff; + place[1] |= (res >> 16) & 0xff; + place[2] |= (res >> 8) & 0xff; + place[3] |= (res) & 0xff; + } + } +} diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/gas/config/tc-spu.h binutils/gas/config/tc-spu.h --- binutils-2.16.1/gas/config/tc-spu.h 1970-01-01 01:00:00.000000000 +0100 +++ binutils/gas/config/tc-spu.h 2006-03-30 01:23:21.000000000 +0200 @@ -0,0 +1,107 @@ +/* spu.h -- Assembler for spu */ + +/* (C) Copyright + Sony Computer Entertainment, Inc., + Toshiba Corporation, + International Business Machines Corporation, + 2001,2002,2003,2004,2005. + + This file is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + This file is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with this file; see the file COPYING. If not, write to the Free + Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ + +#define TC_SPU + +#ifdef OBJ_ELF +#define TARGET_FORMAT "elf32-spu" +#define TARGET_ARCH bfd_arch_spu +#define TARGET_NAME "elf32-spu" +#endif + +#define TARGET_BYTES_BIG_ENDIAN 1 + +#ifndef TARGET_NAME +#define TARGET_NAME "coff-spu" +#endif + +#ifndef TARGET_ARCH +#define TARGET_ARCH bfd_arch_spu +#endif + +#define COFF_MAGIC SPU_MAGIC +#define BFD_ARCH bfd_arch_spu + +#define NEED_FX_R_TYPE +#define TC_KEEP_FX_OFFSET +/* #define TC_CONS_RELOC RELOC_32 */ + +/* If defined, fixS will have a member named tc_fix_data of this type. */ +#define TC_FIX_TYPE int +#define TC_INIT_FIX_DATA(FIXP) ((FIXP)->tc_fix_data = 0) + +#define TC_FIX_ADJUSTABLE(FIXP) 0 + +/* Values passed to md_apply_fix3 don't include symbol values. */ +#define MD_APPLY_SYM_VALUE(FIX) 0 + +/* This expression evaluates to false if the relocation is for a local + object for which we still want to do the relocation at runtime. + True if we are willing to perform this relocation while building + the .o file. This is only used for pcrel relocations. */ + +#define TC_RELOC_RTSYM_LOC_FIXUP(FIX) \ + ((FIX)->fx_addsy == NULL \ + || (! S_IS_EXTERNAL ((FIX)->fx_addsy) \ + && ! S_IS_WEAK ((FIX)->fx_addsy) \ + && S_IS_DEFINED ((FIX)->fx_addsy) \ + && ! S_IS_COMMON ((FIX)->fx_addsy))) + +/* The spu uses pseudo-ops with no leading period. */ +#define NO_PSEUDO_DOT 1 + +/* Don't warn on word overflow; it happens on %hi relocs. */ +#undef WARN_SIGNED_OVERFLOW_WORD + +#define md_convert_frag(b,s,f) {as_fatal (_("spu convert_frag\n"));} + +/* We don't need to do anything special for undefined symbols. */ +#define md_undefined_symbol(s) 0 + +/* We have no special operand handling. */ +#define md_operand(e) + +/* Fill in rs_align_code fragments. */ +extern void spu_handle_align PARAMS ((fragS *)); +#define HANDLE_ALIGN(frag) spu_handle_align (frag) + +#define MAX_MEM_FOR_RS_ALIGN_CODE (7 + 8) + +#ifdef SPUCOFF + +/* Whether a reloc should be output. */ +#define TC_COUNT_RELOC(fixp) ((fixp)->fx_addsy != NULL || (fixp)->fx_subsy != NULL) + +/* Get the BFD reloc type to use for a gas fixS structure. */ +#define TC_COFF_FIX2RTYPE(fixp) tc_coff_fix2rtype (fixp) + +/* No special hook needed for symbols. */ +#define tc_coff_symbol_emit_hook(s) + +/* Align sections to a four byte boundary. */ +#ifndef max +#define max(a,b) (((a) > (b)) ? (a) : (b)) +#endif +#define SUB_SEGMENT_ALIGN(SEG) max (section_alignment[(int) (SEG)], 4) + +#endif /* SPUCOFF */ diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/gas/configure.tgt binutils/gas/configure.tgt --- binutils-2.16.1/gas/configure.tgt 2005-01-31 18:18:51.000000000 +0100 +++ binutils/gas/configure.tgt 2006-03-30 01:23:21.000000000 +0200 @@ -58,6 +58,7 @@ pj*) cpu_type=pj endian=big ;; powerpc*le*) cpu_type=ppc endian=little ;; powerpc*) cpu_type=ppc endian=big ;; + ppu*) cpu_type=ppc endian=big ;; rs6000*) cpu_type=ppc ;; s390x*) cpu_type=s390 arch=s390x ;; s390*) cpu_type=s390 arch=s390 ;; @@ -338,6 +339,7 @@ ppc-*-macos*) fmt=coff em=macos ;; ppc-*-nto*) fmt=elf ;; ppc-*-kaos*) fmt=elf ;; + ppc-*-lv2*) fmt=elf ;; ppc-*-lynxos*) fmt=elf em=lynx bfd_gas=yes ;; s390-*-linux-gnu*) fmt=elf em=linux ;; @@ -385,6 +387,9 @@ strongarm-*-elf) fmt=elf ;; strongarm-*-kaos*) fmt=elf ;; + spu-*-elf) fmt=elf bfd_gas=yes ;; + spu-*-lv2) fmt=elf bfd_gas=yes ;; + tic30-*-*aout*) fmt=aout bfd_gas=yes ;; tic30-*-*coff*) fmt=coff bfd_gas=yes ;; tic4x-*-* | c4x-*-*) fmt=coff bfd_gas=yes ;; diff --exclude '*.po' --exclude Makefile.in -ruN binutils-2.16.1/gas/doc/as.info-1 binutils/gas/doc/as.info-1 --- binutils-2.16.1/gas/doc/as.info-1 2005-06-12 21:02:26.000000000 +0200 +++ binutils/gas/doc/as.info-1 2006-03-30 01:23:21.000000000 +0200 @@ -1,5 +1,5 @@ -This is ../.././gas/doc/as.info, produced by makeinfo version 4.7 from -../.././gas/doc/as.texinfo. +This is /vobs/toolchain/binutils/gas/doc/as.info, produced by makeinfo +version 4.5 from /vobs/toolchain/binutils/gas/doc/as.texinfo. START-INFO-DIR-ENTRY * As: (as). The GNU assembler. @@ -24,7 +24,7 @@ Using as ******** -This file is a user guide to the GNU assembler `as' version 2.16.1. + This file is a user guide to the GNU assembler `as' version 2.16.1. This document is distributed under the terms of the GNU Free Documentation License. A copy of the license is included in the @@ -48,11 +48,11 @@  File: as.info, Node: Overview, Next: Invoking, Prev: Top, Up: Top -1 Overview -********** +Overview +******** -Here is a brief summary of how to invoke `as'. For details, *note -Command-Line Options: Invoking. + Here is a brief summary of how to invoke `as'. For details, *note +Command-Line Options: Invoking.. as [-a[cdhlns][=FILE]] [-alternate] [-D] [-defsym SYM=VAL] [-f] [-g] [-gstabs] [-gstabs+] @@ -63,17 +63,17 @@ [-version] [-version] [-W] [-warn] [-fatal-warnings] [-w] [-x] [-Z] [-target-help] [TARGET-OPTIONS] [-|FILES ...] - + _Target Alpha options:_ [-mCPU] [-mdebug | -no-mdebug] [-relax] [-g] [-GSIZE] [-F] [-32addr] - + _Target ARC options:_ [-marc[5|6|7|8]] [-EB|-EL] - + _Target ARM options:_ [-mcpu=PROCESSOR[+EXTENSION...]] [-march=ARCHITECTURE[+EXTENSION...]] @@ -85,27 +85,27 @@ [-mapcs-32|-mapcs-26|-mapcs-float| -mapcs-reentrant] [-mthumb-interwork] [-k] - + _Target CRIS options:_ [-underscore | -no-underscore] [-pic] [-N] [-emulation=criself | -emulation=crisaout] [-march=v0_v10 | -march=v10 | -march=v32 | -march=common_v10_v32] - + _Target D10V options:_ [-O] - + _Target D30V options:_ [-O|-n|-N] - + _Target i386 options:_ [-32|-64] [-n] - + _Target i960 options:_ [-ACA|-ACA_A|-ACB|-ACC|-AKA|-AKB| -AKC|-AMC] [-b] [-no-relax] - + _Target IA-64 options:_ [-mconstant-gp|-mauto-pic] [-milp32|-milp64|-mlp64|-mp64] @@ -113,17 +113,17 @@ [-munwind-check=warning|-munwind-check=error] [-mhint.b=ok|-mhint.b=warning|-mhint.b=error] [-x|-xexplicit] [-xauto] [-xdebug] - + _Target IP2K options:_ [-mip2022|-mip2022ext] - + _Target M32R options:_ [-m32rx|-[no-]warn-explicit-parallel-conflicts| -W[n]p] - + _Target M680X0 options:_ [-l] [-m68000|-m68010|-m68020|...] - + _Target M68HC11 options:_ [-m68hc11|-m68hc12|-m68hcs12] [-mshort|-mlong] @@ -131,11 +131,11 @@ [-force-long-branchs] [-short-branchs] [-strict-direct-mode] [-print-insn-syntax] [-print-opcodes] [-generate-example] - + _Target MCORE options:_ [-jsri2bsr] [-sifilter] [-relax] [-mcpu=[210|340]] - + _Target MIPS options:_ [-nocpp] [-EL] [-EB] [-O[OPTIMIZATION LEVEL]] [-g[DEBUG LEVEL]] [-G NUM] [-KPIC] [-call_shared] @@ -152,21 +152,21 @@ [-mdmx] [-no-mdmx] [-mdebug] [-no-mdebug] [-mpdr] [-mno-pdr] - + _Target MMIX options:_ [-fixed-special-register-names] [-globalize-symbols] [-gnu-syntax] [-relax] [-no-predefined-symbols] [-no-expand] [-no-merge-gregs] [-x] [-linker-allocated-gregs] - + _Target PDP11 options:_ [-mpic|-mno-pic] [-mall] [-mno-extensions] [-mEXTENSION|-mno-EXTENSION] [-mCPU] [-mMACHINE] - + _Target picoJava options:_ [-mb|-me] - + _Target PowerPC options:_ [-mpwrx|-mpwr2|-mpwr|-m601|-mppc|-mppc32|-m603|-m604| -m403|-m405|-mppc64|-m620|-mppc64bridge|-mbooke| @@ -176,17 +176,17 @@ [-mrelocatable|-mrelocatable-lib] [-mlittle|-mlittle-endian|-mbig|-mbig-endian] [-msolaris|-mno-solaris] - + _Target SPARC options:_ [-Av6|-Av7|-Av8|-Asparclet|-Asparclite -Av8plus|-Av8plusa|-Av9|-Av9a] [-xarch=v8plus|-xarch=v8plusa] [-bump] [-32|-64] - + _Target TIC54X options:_ [-mcpu=54[123589]|-mcpu=54[56]lp] [-mfar-mode|-mf] [-merrors-to-file |-me ] - + _Target Xtensa options:_ [-[no-]text-section-literals] [-[no-]absolute-literals] [-[no-]target-align] [-[no-]longcalls] @@ -794,10 +794,10 @@  File: as.info, Node: Manual, Next: GNU Assembler, Up: Overview -1.1 Structure of this Manual -============================ +Structure of this Manual +======================== -This manual is intended to describe what you need to know to use GNU + This manual is intended to describe what you need to know to use GNU `as'. We cover the syntax expected in source files, including notation for symbols, constants, and expressions; the directives that `as' understands; and of course how to invoke `as'. @@ -816,14 +816,15 @@  File: as.info, Node: GNU Assembler, Next: Object Formats, Prev: Manual, Up: Overview -1.2 The GNU Assembler -===================== +The GNU Assembler +================= -GNU `as' is really a family of assemblers. If you use (or have used) -the GNU assembler on one architecture, you should find a fairly similar -environment when you use it on another architecture. Each version has -much in common with the others, including object file formats, most -assembler directives (often called "pseudo-ops") and assembler syntax. + GNU `as' is really a family of assemblers. If you use (or have +used) the GNU assembler on one architecture, you should find a fairly +similar environment when you use it on another architecture. Each +version has much in common with the others, including object file +formats, most assembler directives (often called "pseudo-ops") and +assembler syntax. `as' is primarily intended to assemble the output of the GNU C compiler `gcc' for use by the linker `ld'. Nevertheless, we've tried @@ -841,10 +842,10 @@  File: as.info, Node: Object Formats, Next: Command Line, Prev: GNU Assembler, Up: Overview -1.3 Object File Formats -======================= +Object File Formats +=================== -The GNU assembler can be configured to produce several alternative + The GNU assembler can be configured to produce several alternative object file formats. For the most part, this does not affect how you write assembly language programs; but directives for debugging symbols are typically different in different file formats. *Note Symbol @@ -853,12 +854,12 @@  File: as.info, Node: Command Line, Next: Input Files, Prev: Object Formats, Up: Overview -1.4 Command Line -================ +Command Line +============ -After the program name `as', the command line may contain options and -file names. Options may appear in any order, and may be before, after, -or between file names. The order of file names is significant. + After the program name `as', the command line may contain options +and file names. Options may appear in any order, and may be before, +after, or between file names. The order of file names is significant. `--' (two hyphens) by itself names the standard input file explicitly, as one of the files for `as' to assemble. @@ -880,13 +881,13 @@  File: as.info, Node: Input Files, Next: Object, Prev: Command Line, Up: Overview -1.5 Input Files -=============== +Input Files +=========== -We use the phrase "source program", abbreviated "source", to describe -the program input to one run of `as'. The program may be in one or -more files; how the source is partitioned into files doesn't change the -meaning of the source. + We use the phrase "source program", abbreviated "source", to +describe the program input to one run of `as'. The program may be in +one or more files; how the source is partitioned into files doesn't +change the meaning of the source. The source program is a concatenation of the text in all the files, in the order specified. @@ -912,9 +913,9 @@ Filenames and Line-numbers -------------------------- -There are two ways of locating a line in the input file (or files) and -either may be used in reporting error messages. One way refers to a -line number in a physical file; the other refers to a line number in a + There are two ways of locating a line in the input file (or files) +and either may be used in reporting error messages. One way refers to +a line number in a physical file; the other refers to a line number in a "logical" file. *Note Error and Warning Messages: Errors. "Physical files" are those files named in the command line given to @@ -930,10 +931,10 @@  File: as.info, Node: Object, Next: Errors, Prev: Input Files, Up: Overview -1.6 Output (Object) File -======================== +Output (Object) File +==================== -Every time you run `as' it produces an output file, which is your + Every time you run `as' it produces an output file, which is your assembly language program translated into numbers. This file is the object file. Its default name is `a.out', or `b.out' when `as' is configured for the Intel 80960. You can give it another name by using @@ -951,14 +952,14 @@  File: as.info, Node: Errors, Prev: Object, Up: Overview -1.7 Error and Warning Messages -============================== +Error and Warning Messages +========================== -`as' may write warnings and error messages to the standard error file -(usually your terminal). This should not happen when a compiler runs -`as' automatically. Warnings report an assumption made so that `as' -could keep assembling a flawed program; errors report a grave problem -that stops the assembly. + `as' may write warnings and error messages to the standard error +file (usually your terminal). This should not happen when a compiler +runs `as' automatically. Warnings report an assumption made so that +`as' could keep assembling a flawed program; errors report a grave +problem that stops the assembly. Warning messages have the format @@ -981,12 +982,12 @@  File: as.info, Node: Invoking, Next: Syntax, Prev: Overview, Up: Top -2 Command-Line Options -********************** +Command-Line Options +******************** -This chapter describes command-line options available in _all_ versions -of the GNU assembler; *note Machine Dependencies::, for options specific -to particular machine architectures. + This chapter describes command-line options available in _all_ +versions of the GNU assembler; *note Machine Dependencies::, for +options specific to particular machine architectures. If you are invoking `as' via the GNU C compiler, you can use the `-Wa' option to pass arguments through to the assembler. The assembler @@ -1030,10 +1031,10 @@  File: as.info, Node: a, Next: alternate, Up: Invoking -2.1 Enable Listings: `-a[cdhlns]' -================================= +Enable Listings: `-a[cdhlns]' +============================= -These options enable listing output from the assembler. By itself, + These options enable listing output from the assembler. By itself, `-a' requests high-level, assembly, and symbols listing. You can use other letters to select specific options for the list: `-ah' requests a high-level language listing, `-al' requests an output-program assembly @@ -1069,27 +1070,28 @@  File: as.info, Node: alternate, Next: D, Prev: a, Up: Invoking -2.2 `--alternate' -================= +`--alternate' +============= -Begin in alternate macro mode, see *Note `.altmacro': Altmacro. + Begin in alternate macro mode, see *Note `.altmacro': Altmacro.  File: as.info, Node: D, Next: f, Prev: alternate, Up: Invoking -2.3 `-D' -======== +`-D' +==== -This option has no effect whatsoever, but it is accepted to make it more -likely that scripts written for other assemblers also work with `as'. + This option has no effect whatsoever, but it is accepted to make it +more likely that scripts written for other assemblers also work with +`as'.  File: as.info, Node: f, Next: I, Prev: D, Up: Invoking -2.4 Work Faster: `-f' -===================== +Work Faster: `-f' +================= -`-f' should only be used when assembling programs written by a + `-f' should only be used when assembling programs written by a (trusted) compiler. `-f' stops the assembler from doing whitespace and comment preprocessing on the input file(s) before assembling them. *Note Preprocessing: Preprocessing. @@ -1101,34 +1103,34 @@  File: as.info, Node: I, Next: K, Prev: f, Up: Invoking -2.5 `.include' Search Path: `-I' PATH -===================================== +`.include' Search Path: `-I' PATH +================================= -Use this option to add a PATH to the list of directories `as' searches -for files specified in `.include' directives (*note `.include': -Include.). You may use `-I' as many times as necessary to include a -variety of paths. The current working directory is always searched -first; after that, `as' searches any `-I' directories in the same order -as they were specified (left to right) on the command line. + Use this option to add a PATH to the list of directories `as' +searches for files specified in `.include' directives (*note +`.include': Include.). You may use `-I' as many times as necessary to +include a variety of paths. The current working directory is always +searched first; after that, `as' searches any `-I' directories in the +same order as they were specified (left to right) on the command line.  File: as.info, Node: K, Next: L, Prev: I, Up: Invoking -2.6 Difference Tables: `-K' -=========================== +Difference Tables: `-K' +======================= -`as' sometimes alters the code emitted for directives of the form -`.word SYM1-SYM2'; *note `.word': Word. You can use the `-K' option if -you want a warning issued when this is done. + `as' sometimes alters the code emitted for directives of the form +`.word SYM1-SYM2'; *note `.word': Word.. You can use the `-K' option +if you want a warning issued when this is done.  File: as.info, Node: L, Next: listing, Prev: K, Up: Invoking -2.7 Include Local Labels: `-L' -============================== +Include Local Labels: `-L' +========================== -Labels beginning with `L' (upper case only) are called "local labels". -*Note Symbol Names::. Normally you do not see such labels when + Labels beginning with `L' (upper case only) are called "local +labels". *Note Symbol Names::. Normally you do not see such labels when debugging, because they are intended for the use of programs (like compilers) that compose assembler programs, not for your notice. Normally both `as' and `ld' discard such labels, so you do not normally @@ -1145,10 +1147,10 @@  File: as.info, Node: listing, Next: M, Prev: L, Up: Invoking -2.8 Configuring listing output: `--listing' -=========================================== +Configuring listing output: `--listing' +======================================= -The listing feature of the assembler can be enabled via the command + The listing feature of the assembler can be enabled via the command line switch `-a' (*note a::). This feature combines the input source file(s) with a hex dump of the corresponding locations in the output object file, and displays them as a listing file. The format of this @@ -1182,10 +1184,10 @@  File: as.info, Node: M, Next: MD, Prev: listing, Up: Invoking -2.9 Assemble in MRI Compatibility Mode: `-M' -============================================ +Assemble in MRI Compatibility Mode: `-M' +======================================== -The `-M' or `--mri' option selects MRI compatibility mode. This + The `-M' or `--mri' option selects MRI compatibility mode. This changes the syntax and pseudo-op handling of `as' to make it compatible with the `ASM68K' or the `ASM960' (depending upon the configured target) assembler from Microtec Research. The exact nature of the MRI @@ -1313,11 +1315,11 @@  File: as.info, Node: MD, Next: o, Prev: M, Up: Invoking -2.10 Dependency Tracking: `--MD' -================================ +Dependency Tracking: `--MD' +=========================== -`as' can generate a dependency file for the file it creates. This file -consists of a single rule suitable for `make' describing the + `as' can generate a dependency file for the file it creates. This +file consists of a single rule suitable for `make' describing the dependencies of the main source file. The rule is written to the file named in its argument. @@ -1327,13 +1329,13 @@  File: as.info, Node: o, Next: R, Prev: MD, Up: Invoking -2.11 Name the Object File: `-o' -=============================== +Name the Object File: `-o' +========================== -There is always one object file output when you run `as'. By default -it has the name `a.out' (or `b.out', for Intel 960 targets only). You -use this option (which takes exactly one filename) to give the object -file a different name. + There is always one object file output when you run `as'. By +default it has the name `a.out' (or `b.out', for Intel 960 targets +only). You use this option (which takes exactly one filename) to give +the object file a different name. Whatever the object file is called, `as' overwrites any existing file of the same name. @@ -1341,10 +1343,10 @@  File: as.info, Node: R, Next: statistics, Prev: o, Up: Invoking -2.12 Join Data and Text Sections: `-R' -====================================== +Join Data and Text Sections: `-R' +================================= -`-R' tells `as' to write the object file as if all data-section data + `-R' tells `as' to write the object file as if all data-section data lives in the text section. This is only done at the very last moment: your binary data are the same, but data section parts are relocated differently. The data section part of your object file is zero bytes @@ -1365,23 +1367,23 @@  File: as.info, Node: statistics, Next: traditional-format, Prev: R, Up: Invoking -2.13 Display Assembly Statistics: `--statistics' -================================================ +Display Assembly Statistics: `--statistics' +=========================================== -Use `--statistics' to display two statistics about the resources used by -`as': the maximum amount of space allocated during the assembly (in -bytes), and the total execution time taken for the assembly (in CPU + Use `--statistics' to display two statistics about the resources +used by `as': the maximum amount of space allocated during the assembly +(in bytes), and the total execution time taken for the assembly (in CPU seconds).  File: as.info, Node: traditional-format, Next: v, Prev: statistics, Up: Invoking -2.14 Compatible Output: `--traditional-format' -============================================== +Compatible Output: `--traditional-format' +========================================= -For some targets, the output of `as' is different in some ways from the -output of some existing assembler. This switch requests `as' to use -the traditional format instead. + For some targets, the output of `as' is different in some ways from +the output of some existing assembler. This switch requests `as' to +use the traditional format instead. For example, it disables the exception frame optimizations which `as' normally does by default on `gcc' output. @@ -1389,19 +1391,20 @@  File: as.info, Node: v, Next: W, Prev: traditional-format, Up: Invoking -2.15 Announce Version: `-v' -=========================== +Announce Version: `-v' +====================== -You can find out what version of as is running by including the option -`-v' (which you can also spell as `-version') on the command line. + You can find out what version of as is running by including the +option `-v' (which you can also spell as `-version') on the command +line.  File: as.info, Node: W, Next: Z, Prev: v, Up: Invoking -2.16 Control Warnings: `-W', `--warn', `--no-warn', `--fatal-warnings' -====================================================================== +Control Warnings: `-W', `--warn', `--no-warn', `--fatal-warnings' +================================================================= -`as' should never give a warning or error message when assembling + `as' should never give a warning or error message when assembling compiler output. But programs written by people often cause `as' to give a warning that a particular assumption was made. All such warnings are directed to the standard error file. @@ -1420,23 +1423,23 @@  File: as.info, Node: Z, Prev: W, Up: Invoking -2.17 Generate Object File in Spite of Errors: `-Z' -================================================== +Generate Object File in Spite of Errors: `-Z' +============================================= -After an error message, `as' normally produces no output. If for some -reason you are interested in object file output even after `as' gives -an error message on your program, use the `-Z' option. If there are -any errors, `as' continues anyways, and writes an object file after a -final warning message of the form `N errors, M warnings, generating bad -object file.' + After an error message, `as' normally produces no output. If for +some reason you are interested in object file output even after `as' +gives an error message on your program, use the `-Z' option. If there +are any errors, `as' continues anyways, and writes an object file after +a final warning message of the form `N errors, M warnings, generating +bad object file.'  File: as.info, Node: Syntax, Next: Sections, Prev: Invoking, Up: Top -3 Syntax -******** +Syntax +****** -This chapter describes the machine-independent syntax allowed in a + This chapter describes the machine-independent syntax allowed in a source file. `as' syntax is similar to what many other assemblers use; it is inspired by the BSD 4.2 assembler, except that `as' does not assemble Vax bit-fields. @@ -1453,10 +1456,10 @@  File: as.info, Node: Preprocessing, Next: Whitespace, Up: Syntax -3.1 Preprocessing -================= +Preprocessing +============= -The `as' internal preprocessor: + The `as' internal preprocessor: * adjusts and removes extra whitespace. It leaves one space or tab before the keywords on a line, and turns any other whitespace on the line into a single space. @@ -1489,21 +1492,22 @@  File: as.info, Node: Whitespace, Next: Comments, Prev: Preprocessing, Up: Syntax -3.2 Whitespace -============== +Whitespace +========== -"Whitespace" is one or more blanks or tabs, in any order. Whitespace -is used to separate symbols, and to make programs neater for people to -read. Unless within character constants (*note Character Constants: -Characters.), any whitespace means the same as exactly one space. + "Whitespace" is one or more blanks or tabs, in any order. +Whitespace is used to separate symbols, and to make programs neater for +people to read. Unless within character constants (*note Character +Constants: Characters.), any whitespace means the same as exactly one +space.  File: as.info, Node: Comments, Next: Symbol Intro, Prev: Whitespace, Up: Syntax -3.3 Comments -============ +Comments +======== -There are two ways of rendering comments to `as'. In both cases the + There are two ways of rendering comments to `as'. In both cases the comment is equivalent to one space. Anything from `/*' through the next `*/' is a comment. This means @@ -1513,7 +1517,7 @@ The only way to include a newline ('\n') in a comment is to use this sort of comment. */ - + /* This sort of comment does not nest. */ Anything from the "line comment" character to the next newline is @@ -1555,33 +1559,33 @@  File: as.info, Node: Symbol Intro, Next: Statements, Prev: Comments, Up: Syntax -3.4 Symbols -=========== +Symbols +======= -A "symbol" is one or more characters chosen from the set of all letters -(both upper and lower case), digits and the three characters `_.$'. On -most machines, you can also use `$' in symbol names; exceptions are -noted in *Note Machine Dependencies::. No symbol may begin with a -digit. Case is significant. There is no length limit: all characters -are significant. Symbols are delimited by characters not in that set, -or by the beginning of a file (since the source program must end with a -newline, the end of a file is not a possible symbol delimiter). *Note -Symbols::. + A "symbol" is one or more characters chosen from the set of all +letters (both upper and lower case), digits and the three characters +`_.$'. On most machines, you can also use `$' in symbol names; +exceptions are noted in *Note Machine Dependencies::. No symbol may +begin with a digit. Case is significant. There is no length limit: +all characters are significant. Symbols are delimited by characters +not in that set, or by the beginning of a file (since the source +program must end with a newline, the end of a file is not a possible +symbol delimiter). *Note Symbols::.  File: as.info, Node: Statements, Next: Constants, Prev: Symbol Intro, Up: Syntax -3.5 Statements -============== +Statements +========== -A "statement" ends at a newline character (`\n') or line separator + A "statement" ends at a newline character (`\n') or line separator character. (The line separator is usually `;', unless this conflicts with the comment character; *note Machine Dependencies::.) The newline or separator character is considered part of the preceding statement. Newlines and separators within character constants are an exception: they do not end statements. -It is an error to end any statement with end-of-file: the last + It is an error to end any statement with end-of-file: the last character of any input file should be a newline. An empty statement is allowed, and may include whitespace. It is @@ -1613,10 +1617,10 @@  File: as.info, Node: Constants, Prev: Statements, Up: Syntax -3.6 Constants -============= +Constants +========= -A constant is a number, written so that its value is known by + A constant is a number, written so that its value is known by inspection, without knowing any context. Like this: .byte 74, 0112, 092, 0x4A, 0X4a, 'J, '\J # All the same value. .ascii "Ring the bell\7" # A string constant. @@ -1632,11 +1636,11 @@  File: as.info, Node: Characters, Next: Numbers, Up: Constants -3.6.1 Character Constants -------------------------- +Character Constants +------------------- -There are two kinds of character constants. A "character" stands for -one character in one byte and its value may be used in numeric + There are two kinds of character constants. A "character" stands +for one character in one byte and its value may be used in numeric expressions. String constants (properly called string _literals_) are potentially many bytes and their values may not be used in arithmetic expressions. @@ -1649,10 +1653,10 @@  File: as.info, Node: Strings, Next: Chars, Up: Characters -3.6.1.1 Strings -............... +Strings +....... -A "string" is written between double-quotes. It may contain + A "string" is written between double-quotes. It may contain double-quotes or null characters. The way to get special characters into a string is to "escape" these characters: precede them with a backslash `\' character. For example `\\' represents one backslash: @@ -1709,10 +1713,10 @@  File: as.info, Node: Chars, Prev: Strings, Up: Characters -3.6.1.2 Characters -.................. +Characters +.......... -A single character may be written as a single quote immediately + A single character may be written as a single quote immediately followed by that character. The same escapes apply to characters as to strings. So if you want to write the character backslash, you must write `'\\' where the first `\' escapes the second `\'. As you can @@ -1726,10 +1730,10 @@  File: as.info, Node: Numbers, Prev: Characters, Up: Constants -3.6.2 Number Constants ----------------------- +Number Constants +---------------- -`as' distinguishes three kinds of numbers according to how they are + `as' distinguishes three kinds of numbers according to how they are stored in the target machine. _Integers_ are numbers that would fit into an `int' in the C language. _Bignums_ are integers, but they are stored in more than 32 bits. _Flonums_ are floating point numbers, @@ -1744,11 +1748,11 @@  File: as.info, Node: Integers, Next: Bignums, Up: Numbers -3.6.2.1 Integers -................ +Integers +........ -A binary integer is `0b' or `0B' followed by zero or more of the binary -digits `01'. + A binary integer is `0b' or `0B' followed by zero or more of the +binary digits `01'. An octal integer is `0' followed by zero or more of the octal digits (`01234567'). @@ -1766,21 +1770,21 @@  File: as.info, Node: Bignums, Next: Flonums, Prev: Integers, Up: Numbers -3.6.2.2 Bignums -............... +Bignums +....... -A "bignum" has the same syntax and semantics as an integer except that -the number (or its negative) takes more than 32 bits to represent in -binary. The distinction is made because in some places integers are + A "bignum" has the same syntax and semantics as an integer except +that the number (or its negative) takes more than 32 bits to represent +in binary. The distinction is made because in some places integers are permitted while bignums are not.  File: as.info, Node: Flonums, Prev: Bignums, Up: Numbers -3.6.2.3 Flonums -............... +Flonums +....... -A "flonum" represents a floating point number. The translation is + A "flonum" represents a floating point number. The translation is indirect: a decimal floating point number from the text is converted by `as' to a generic binary floating point number of more than sufficient precision. This generic floating point number is converted to a @@ -1831,8 +1835,8 @@  File: as.info, Node: Sections, Next: Symbols, Prev: Syntax, Up: Top -4 Sections and Relocation -************************* +Sections and Relocation +*********************** * Menu: @@ -1845,12 +1849,12 @@  File: as.info, Node: Secs Background, Next: Ld Sections, Up: Sections -4.1 Background -============== +Background +========== -Roughly, a section is a range of addresses, with no gaps; all data "in" -those addresses is treated the same for some particular purpose. For -example there may be a "read only" section. + Roughly, a section is a range of addresses, with no gaps; all data +"in" those addresses is treated the same for some particular purpose. +For example there may be a "read only" section. The linker `ld' reads many object files (partial programs) and combines their contents to form a runnable program. When `as' emits an @@ -1912,7 +1916,8 @@ In fact, every address `as' ever uses is expressed as (SECTION) + (OFFSET INTO SECTION) - Further, most expressions `as' computes have this section-relative + +Further, most expressions `as' computes have this section-relative nature. (For some object formats, such as SOM for the HPPA, some expressions are symbol-relative instead.) @@ -1950,10 +1955,10 @@  File: as.info, Node: Ld Sections, Next: As Sections, Prev: Secs Background, Up: Sections -4.2 Linker Sections -=================== +Linker Sections +=============== -`ld' deals with just four kinds of sections, summarized below. + `ld' deals with just four kinds of sections, summarized below. *named sections* *text section* @@ -1994,28 +1999,28 @@ +-----+----+--+ partial program # 1: |ttttt|dddd|00| +-----+----+--+ - + text data bss seg. seg. seg. - + +---+---+---+ partial program # 2: |TTT|DDD|000| +---+---+---+ - + +--+---+-----+--+----+---+-----+~~ linked program: | |TTT|ttttt| |dddd|DDD|00000| +--+---+-----+--+----+---+-----+~~ - + addresses: 0 ...  File: as.info, Node: As Sections, Next: Sub-Sections, Prev: Ld Sections, Up: Sections -4.3 Assembler Internal Sections -=============================== +Assembler Internal Sections +=========================== -These sections are meant only for the internal use of `as'. They have -no meaning at run-time. You do not really need to know about these + These sections are meant only for the internal use of `as'. They +have no meaning at run-time. You do not really need to know about these sections for most purposes; but they can be mentioned in `as' warning messages, so it might be helpful to have an idea of their meanings to `as'. These sections are used to permit the value of every expression @@ -2033,10 +2038,10 @@  File: as.info, Node: Sub-Sections, Next: bss, Prev: As Sections, Up: Sections -4.4 Sub-Sections -================ +Sub-Sections +============ -Assembled bytes conventionally fall into two sections: text and data. + Assembled bytes conventionally fall into two sections: text and data. You may have separate groups of data in named sections that you want to end up near to each other in the object file, even though they are not contiguous in the assembler source. `as' allows you to use @@ -2049,7 +2054,7 @@ compiler could issue a `.text 0' before each section of code being output, and a `.text 1' before each group of constants being output. -Subsections are optional. If you do not use subsections, everything + Subsections are optional. If you do not use subsections, everything goes in subsection number zero. Each subsection is zero-padded up to a multiple of four bytes. @@ -2096,10 +2101,10 @@  File: as.info, Node: bss, Prev: Sub-Sections, Up: Sections -4.5 bss Section -=============== +bss Section +=========== -The bss section is used for local common variable storage. You may + The bss section is used for local common variable storage. You may allocate address space in the bss section, but you may not dictate data to load into it before your program executes. When your program starts running, all the contents of the bss section are zeroed bytes. @@ -2119,10 +2124,10 @@  File: as.info, Node: Symbols, Next: Expressions, Prev: Sections, Up: Top -5 Symbols -********* +Symbols +******* -Symbols are a central concept: the programmer uses symbols to name + Symbols are a central concept: the programmer uses symbols to name things, the linker uses symbols to link, and the debugger uses symbols to debug. @@ -2140,14 +2145,14 @@  File: as.info, Node: Labels, Next: Setting Symbols, Up: Symbols -5.1 Labels -========== +Labels +====== -A "label" is written as a symbol immediately followed by a colon `:'. -The symbol then represents the current value of the active location -counter, and is, for example, a suitable instruction operand. You are -warned if you use the same symbol to represent two different locations: -the first definition overrides any other definitions. + A "label" is written as a symbol immediately followed by a colon +`:'. The symbol then represents the current value of the active +location counter, and is, for example, a suitable instruction operand. +You are warned if you use the same symbol to represent two different +locations: the first definition overrides any other definitions. On the HPPA, the usual form for a label need not be immediately followed by a colon, but instead must start in column zero. Only one @@ -2158,20 +2163,21 @@  File: as.info, Node: Setting Symbols, Next: Symbol Names, Prev: Labels, Up: Symbols -5.2 Giving Symbols Other Values -=============================== +Giving Symbols Other Values +=========================== -A symbol can be given an arbitrary value by writing a symbol, followed -by an equals sign `=', followed by an expression (*note Expressions::). -This is equivalent to using the `.set' directive. *Note `.set': Set. + A symbol can be given an arbitrary value by writing a symbol, +followed by an equals sign `=', followed by an expression (*note +Expressions::). This is equivalent to using the `.set' directive. +*Note `.set': Set.  File: as.info, Node: Symbol Names, Next: Dot, Prev: Setting Symbols, Up: Symbols -5.3 Symbol Names -================ +Symbol Names +============ -Symbol names begin with a letter or with one of `._'. On most + Symbol names begin with a letter or with one of `._'. On most machines, you can also use `$' in symbol names; exceptions are noted in *Note Machine Dependencies::. That character may be followed by any string of digits, letters, dollar signs (unless otherwise noted in @@ -2179,8 +2185,8 @@ family, `?' is also allowed in the body of a symbol name, though not at its beginning. -Case of letters is significant: `foo' is a different symbol name than -`Foo'. + Case of letters is significant: `foo' is a different symbol name +than `Foo'. Each symbol has exactly one name. Each name in an assembly language program refers to exactly one symbol. You may use that symbol name any @@ -2189,7 +2195,7 @@ Local Symbol Names ------------------ -Local symbols help compilers and programmers use names temporarily. + Local symbols help compilers and programmers use names temporarily. They create symbols which are guaranteed to be unique over the entire scope of the input source code and which can be referred to by a simple notation. To define a local symbol, write a label of the form `N:' @@ -2258,7 +2264,7 @@ Dollar Local Labels ------------------- -`as' also supports an even more local form of local labels called + `as' also supports an even more local form of local labels called dollar labels. These labels go out of scope (ie they become undefined) as soon as a non-local label is defined. Thus they remain valid for only a small region of the input source code. Normal local labels, by @@ -2277,10 +2283,10 @@  File: as.info, Node: Dot, Next: Symbol Attributes, Prev: Symbol Names, Up: Symbols -5.4 The Special Dot Symbol -========================== +The Special Dot Symbol +====================== -The special symbol `.' refers to the current address that `as' is + The special symbol `.' refers to the current address that `as' is assembling into. Thus, the expression `melvin: .long .' defines `melvin' to contain its own address. Assigning a value to `.' is treated the same as a `.org' directive. Thus, the expression `.=.+4' @@ -2289,10 +2295,10 @@  File: as.info, Node: Symbol Attributes, Prev: Dot, Up: Symbols -5.5 Symbol Attributes -===================== +Symbol Attributes +================= -Every symbol has, as well as its name, the attributes "Value" and + Every symbol has, as well as its name, the attributes "Value" and "Type". Depending on output format, symbols can also have auxiliary attributes. @@ -2315,12 +2321,12 @@  File: as.info, Node: Symbol Value, Next: Symbol Type, Up: Symbol Attributes -5.5.1 Value ------------ +Value +----- -The value of a symbol is (usually) 32 bits. For a symbol which labels a -location in the text, data, bss or absolute sections the value is the -number of addresses from the start of that section to the label. + The value of a symbol is (usually) 32 bits. For a symbol which +labels a location in the text, data, bss or absolute sections the value +is the number of addresses from the start of that section to the label. Naturally for text, data and bss sections the value of a symbol changes as `ld' changes section base addresses during linking. Absolute symbols' values do not change during linking: that is why they are @@ -2338,10 +2344,10 @@  File: as.info, Node: Symbol Type, Next: a.out Symbols, Prev: Symbol Value, Up: Symbol Attributes -5.5.2 Type ----------- +Type +---- -The type attribute of a symbol contains relocation (section) + The type attribute of a symbol contains relocation (section) information, any flag settings indicating that a symbol is external, and (optionally), other information for linkers and debuggers. The exact format depends on the object-code output format in use. @@ -2349,8 +2355,8 @@  File: as.info, Node: a.out Symbols, Next: COFF Symbols, Prev: Symbol Type, Up: Symbol Attributes -5.5.3 Symbol Attributes: `a.out' --------------------------------- +Symbol Attributes: `a.out' +-------------------------- * Menu: @@ -2360,51 +2366,51 @@  File: as.info, Node: Symbol Desc, Next: Symbol Other, Up: a.out Symbols -5.5.3.1 Descriptor -.................. +Descriptor +.......... -This is an arbitrary 16-bit value. You may establish a symbol's + This is an arbitrary 16-bit value. You may establish a symbol's descriptor value by using a `.desc' statement (*note `.desc': Desc.). A descriptor value means nothing to `as'.  File: as.info, Node: Symbol Other, Prev: Symbol Desc, Up: a.out Symbols -5.5.3.2 Other -............. +Other +..... -This is an arbitrary 8-bit value. It means nothing to `as'. + This is an arbitrary 8-bit value. It means nothing to `as'.  File: as.info, Node: COFF Symbols, Next: SOM Symbols, Prev: a.out Symbols, Up: Symbol Attributes -5.5.4 Symbol Attributes for COFF --------------------------------- +Symbol Attributes for COFF +-------------------------- -The COFF format supports a multitude of auxiliary symbol attributes; + The COFF format supports a multitude of auxiliary symbol attributes; like the primary symbol attributes, they are set between `.def' and `.endef' directives. -5.5.4.1 Primary Attributes -.......................... +Primary Attributes +.................. -The symbol name is set with `.def'; the value and type, respectively, -with `.val' and `.type'. + The symbol name is set with `.def'; the value and type, +respectively, with `.val' and `.type'. -5.5.4.2 Auxiliary Attributes -............................ +Auxiliary Attributes +.................... -The `as' directives `.dim', `.line', `.scl', `.size', `.tag', and + The `as' directives `.dim', `.line', `.scl', `.size', `.tag', and `.weak' can generate auxiliary symbol table information for COFF.  File: as.info, Node: SOM Symbols, Prev: COFF Symbols, Up: Symbol Attributes -5.5.5 Symbol Attributes for SOM -------------------------------- +Symbol Attributes for SOM +------------------------- -The SOM format for the HPPA supports a multitude of symbol attributes -set with the `.EXPORT' and `.IMPORT' directives. + The SOM format for the HPPA supports a multitude of symbol +attributes set with the `.EXPORT' and `.IMPORT' directives. The attributes are described in `HP9000 Series 800 Assembly Language Reference Manual' (HP 92432-90001) under the `IMPORT' and `EXPORT' @@ -2413,11 +2419,11 @@  File: as.info, Node: Expressions, Next: Pseudo Ops, Prev: Symbols, Up: Top -6 Expressions -************* +Expressions +*********** -An "expression" specifies an address or numeric value. Whitespace may -precede and/or follow an expression. + An "expression" specifies an address or numeric value. Whitespace +may precede and/or follow an expression. The result of an expression must be an absolute number, or else an offset into a particular section. If an expression is not absolute, @@ -2434,10 +2440,10 @@  File: as.info, Node: Empty Exprs, Next: Integer Exprs, Up: Expressions -6.1 Empty Expressions -===================== +Empty Expressions +================= -An empty expression has no value: it is just whitespace or null. + An empty expression has no value: it is just whitespace or null. Wherever an absolute expression is required, you may omit the expression, and `as' assumes a value of (absolute) 0. This is compatible with other assemblers. @@ -2445,10 +2451,10 @@  File: as.info, Node: Integer Exprs, Prev: Empty Exprs, Up: Expressions -6.2 Integer Expressions -======================= +Integer Expressions +=================== -An "integer expression" is one or more _arguments_ delimited by + An "integer expression" is one or more _arguments_ delimited by _operators_. * Menu: @@ -2461,15 +2467,15 @@  File: as.info, Node: Arguments, Next: Operators, Up: Integer Exprs -6.2.1 Arguments ---------------- +Arguments +--------- -"Arguments" are symbols, numbers or subexpressions. In other contexts -arguments are sometimes called "arithmetic operands". In this manual, -to avoid confusing them with the "instruction operands" of the machine -language, we use the term "argument" to refer to parts of expressions -only, reserving the word "operand" to refer only to machine instruction -operands. + "Arguments" are symbols, numbers or subexpressions. In other +contexts arguments are sometimes called "arithmetic operands". In this +manual, to avoid confusing them with the "instruction operands" of the +machine language, we use the term "argument" to refer to parts of +expressions only, reserving the word "operand" to refer only to machine +instruction operands. Symbols are evaluated to yield {SECTION NNN} where SECTION is one of text, data, bss, absolute, or undefined. NNN is a signed, 2's @@ -2489,10 +2495,10 @@  File: as.info, Node: Operators, Next: Prefix Ops, Prev: Arguments, Up: Integer Exprs -6.2.2 Operators ---------------- +Operators +--------- -"Operators" are arithmetic functions, like `+' or `%'. Prefix + "Operators" are arithmetic functions, like `+' or `%'. Prefix operators are followed by an argument. Infix operators appear between their arguments. Operators may be preceded and/or followed by whitespace. @@ -2500,10 +2506,10 @@  File: as.info, Node: Prefix Ops, Next: Infix Ops, Prev: Operators, Up: Integer Exprs -6.2.3 Prefix Operator ---------------------- +Prefix Operator +--------------- -`as' has the following "prefix operators". They each take one + `as' has the following "prefix operators". They each take one argument, which must be absolute. `-' @@ -2515,10 +2521,10 @@  File: as.info, Node: Infix Ops, Prev: Prefix Ops, Up: Integer Exprs -6.2.4 Infix Operators ---------------------- +Infix Operators +--------------- -"Infix operators" take two arguments, one on either side. Operators + "Infix operators" take two arguments, one on either side. Operators have precedence, but operations with equal precedence are performed left to right. Apart from `+' or `-', both arguments must be absolute, and the result is absolute. @@ -2614,10 +2620,10 @@  File: as.info, Node: Pseudo Ops, Next: Machine Dependencies, Prev: Expressions, Up: Top -7 Assembler Directives -********************** +Assembler Directives +******************** -All assembler directives have names that begin with a period (`.'). + All assembler directives have names that begin with a period (`.'). The rest of the name is letters, usually in lower case. This chapter discusses directives that are available regardless of @@ -2768,22 +2774,22 @@  File: as.info, Node: Abort, Next: ABORT, Up: Pseudo Ops -7.1 `.abort' -============ +`.abort' +======== -This directive stops the assembly immediately. It is for compatibility -with other assemblers. The original idea was that the assembly -language source would be piped into the assembler. If the sender of -the source quit, it could use this directive tells `as' to quit also. -One day `.abort' will not be supported. + This directive stops the assembly immediately. It is for +compatibility with other assemblers. The original idea was that the +assembly language source would be piped into the assembler. If the +sender of the source quit, it could use this directive tells `as' to +quit also. One day `.abort' will not be supported.  File: as.info, Node: ABORT, Next: Align, Prev: Abort, Up: Pseudo Ops -7.2 `.ABORT' -============ +`.ABORT' +======== -When producing COFF output, `as' accepts this directive as a synonym + When producing COFF output, `as' accepts this directive as a synonym for `.abort'. When producing `b.out' output, `as' accepts this directive, but @@ -2792,10 +2798,10 @@  File: as.info, Node: Align, Next: Altmacro, Prev: ABORT, Up: Pseudo Ops -7.3 `.align ABS-EXPR, ABS-EXPR, ABS-EXPR' -========================================= +`.align ABS-EXPR, ABS-EXPR, ABS-EXPR' +===================================== -Pad the location counter (in the current subsection) to a particular + Pad the location counter (in the current subsection) to a particular storage boundary. The first expression (which must be absolute) is the alignment required, as described below. @@ -2837,29 +2843,29 @@  File: as.info, Node: Ascii, Next: Asciz, Prev: Altmacro, Up: Pseudo Ops -7.4 `.ascii "STRING"'... -======================== +`.ascii "STRING"'... +==================== -`.ascii' expects zero or more string literals (*note Strings::) + `.ascii' expects zero or more string literals (*note Strings::) separated by commas. It assembles each string (with no automatic trailing zero byte) into consecutive addresses.  File: as.info, Node: Asciz, Next: Balign, Prev: Ascii, Up: Pseudo Ops -7.5 `.asciz "STRING"'... -======================== +`.asciz "STRING"'... +==================== -`.asciz' is just like `.ascii', but each string is followed by a zero -byte. The "z" in `.asciz' stands for "zero". + `.asciz' is just like `.ascii', but each string is followed by a +zero byte. The "z" in `.asciz' stands for "zero".  File: as.info, Node: Balign, Next: Byte, Prev: Asciz, Up: Pseudo Ops -7.6 `.balign[wl] ABS-EXPR, ABS-EXPR, ABS-EXPR' -============================================== +`.balign[wl] ABS-EXPR, ABS-EXPR, ABS-EXPR' +========================================== -Pad the location counter (in the current subsection) to a particular + Pad the location counter (in the current subsection) to a particular storage boundary. The first expression (which must be absolute) is the alignment request in bytes. For example `.balign 8' advances the location counter until it is a multiple of 8. If the location counter @@ -2892,21 +2898,21 @@  File: as.info, Node: Byte, Next: Comm, Prev: Balign, Up: Pseudo Ops -7.7 `.byte EXPRESSIONS' -======================= +`.byte EXPRESSIONS' +=================== -`.byte' expects zero or more expressions, separated by commas. Each + `.byte' expects zero or more expressions, separated by commas. Each expression is assembled into the next byte.  File: as.info, Node: Comm, Next: CFI directives, Prev: Byte, Up: Pseudo Ops -7.8 `.comm SYMBOL , LENGTH ' -============================ +`.comm SYMBOL , LENGTH ' +======================== -`.comm' declares a common symbol named SYMBOL. When linking, a common -symbol in one object file may be merged with a defined or common symbol -of the same name in another object file. If `ld' does not see a + `.comm' declares a common symbol named SYMBOL. When linking, a +common symbol in one object file may be merged with a defined or common +symbol of the same name in another object file. If `ld' does not see a definition for the symbol-just one or more common symbols-then it will allocate LENGTH bytes of uninitialized memory. LENGTH must be an absolute expression. If `ld' sees multiple common symbols with the @@ -2929,89 +2935,90 @@  File: as.info, Node: CFI directives, Next: Data, Prev: Comm, Up: Pseudo Ops -7.9 `.cfi_startproc' -==================== +`.cfi_startproc' +================ -`.cfi_startproc' is used at the beginning of each function that should -have an entry in `.eh_frame'. It initializes some internal data + `.cfi_startproc' is used at the beginning of each function that +should have an entry in `.eh_frame'. It initializes some internal data structures and emits architecture dependent initial CFI instructions. Don't forget to close the function by `.cfi_endproc'. -7.10 `.cfi_endproc' -=================== +`.cfi_endproc' +============== -`.cfi_endproc' is used at the end of a function where it closes its + `.cfi_endproc' is used at the end of a function where it closes its unwind entry previously opened by `.cfi_startproc'. and emits it to `.eh_frame'. -7.11 `.cfi_def_cfa REGISTER, OFFSET' -==================================== +`.cfi_def_cfa REGISTER, OFFSET' +=============================== -`.cfi_def_cfa' defines a rule for computing CFA as: take address from -REGISTER and add OFFSET to it. + `.cfi_def_cfa' defines a rule for computing CFA as: take address +from REGISTER and add OFFSET to it. -7.12 `.cfi_def_cfa_register REGISTER' -===================================== +`.cfi_def_cfa_register REGISTER' +================================ -`.cfi_def_cfa_register' modifies a rule for computing CFA. From now on -REGISTER will be used instead of the old one. Offset remains the same. + `.cfi_def_cfa_register' modifies a rule for computing CFA. From now +on REGISTER will be used instead of the old one. Offset remains the +same. -7.13 `.cfi_def_cfa_offset OFFSET' -================================= +`.cfi_def_cfa_offset OFFSET' +============================ -`.cfi_def_cfa_offset' modifies a rule for computing CFA. Register + `.cfi_def_cfa_offset' modifies a rule for computing CFA. Register remains the same, but OFFSET is new. Note that it is the absolute offset that will be added to a defined register to compute CFA address. -7.14 `.cfi_adjust_cfa_offset OFFSET' -==================================== +`.cfi_adjust_cfa_offset OFFSET' +=============================== -Same as `.cfi_def_cfa_offset' but OFFSET is a relative value that is + Same as `.cfi_def_cfa_offset' but OFFSET is a relative value that is added/substracted from the previous offset. -7.15 `.cfi_offset REGISTER, OFFSET' -=================================== +`.cfi_offset REGISTER, OFFSET' +============================== -Previous value of REGISTER is saved at offset OFFSET from CFA. + Previous value of REGISTER is saved at offset OFFSET from CFA. -7.16 `.cfi_rel_offset REGISTER, OFFSET' -======================================= +`.cfi_rel_offset REGISTER, OFFSET' +================================== -Previous value of REGISTER is saved at offset OFFSET from the current -CFA register. This is transformed to `.cfi_offset' using the known -displacement of the CFA register from the CFA. This is often easier to -use, because the number will match the code it's annotating. + Previous value of REGISTER is saved at offset OFFSET from the +current CFA register. This is transformed to `.cfi_offset' using the +known displacement of the CFA register from the CFA. This is often +easier to use, because the number will match the code it's annotating. -7.17 `.cfi_window_save' -======================= +`.cfi_window_save' +================== -SPARC register window has been saved. + SPARC register window has been saved. -7.18 `.cfi_escape' EXPRESSION[, ...] -==================================== +`.cfi_escape' EXPRESSION[, ...] +=============================== -Allows the user to add arbitrary bytes to the unwind info. One might -use this to add OS-specific CFI opcodes, or generic CFI opcodes that -GAS does not yet support. + Allows the user to add arbitrary bytes to the unwind info. One +might use this to add OS-specific CFI opcodes, or generic CFI opcodes +that GAS does not yet support.  File: as.info, Node: Data, Next: Def, Prev: CFI directives, Up: Pseudo Ops -7.19 `.data SUBSECTION' -======================= +`.data SUBSECTION' +================== -`.data' tells `as' to assemble the following statements onto the end of -the data subsection numbered SUBSECTION (which is an absolute + `.data' tells `as' to assemble the following statements onto the end +of the data subsection numbered SUBSECTION (which is an absolute expression). If SUBSECTION is omitted, it defaults to zero.  File: as.info, Node: Def, Next: Desc, Prev: Data, Up: Pseudo Ops -7.20 `.def NAME' -================ +`.def NAME' +=========== -Begin defining debugging information for a symbol NAME; the definition -extends until the `.endef' directive is encountered. + Begin defining debugging information for a symbol NAME; the +definition extends until the `.endef' directive is encountered. This directive is only observed when `as' is configured for COFF format output; when producing `b.out', `.def' is recognized, but @@ -3020,10 +3027,10 @@  File: as.info, Node: Desc, Next: Dim, Prev: Def, Up: Pseudo Ops -7.21 `.desc SYMBOL, ABS-EXPRESSION' -=================================== +`.desc SYMBOL, ABS-EXPRESSION' +============================== -This directive sets the descriptor of the symbol (*note Symbol + This directive sets the descriptor of the symbol (*note Symbol Attributes::) to the low 16 bits of an absolute expression. The `.desc' directive is not available when `as' is configured for @@ -3034,11 +3041,11 @@  File: as.info, Node: Dim, Next: Double, Prev: Desc, Up: Pseudo Ops -7.22 `.dim' -=========== +`.dim' +====== -This directive is generated by compilers to include auxiliary debugging -information in the symbol table. It is only permitted inside + This directive is generated by compilers to include auxiliary +debugging information in the symbol table. It is only permitted inside `.def'/`.endef' pairs. `.dim' is only meaningful when generating COFF format output; when @@ -3047,10 +3054,10 @@  File: as.info, Node: Double, Next: Eject, Prev: Dim, Up: Pseudo Ops -7.23 `.double FLONUMS' -====================== +`.double FLONUMS' +================= -`.double' expects zero or more flonums, separated by commas. It + `.double' expects zero or more flonums, separated by commas. It assembles floating point numbers. The exact kind of floating point numbers emitted depends on how `as' is configured. *Note Machine Dependencies::. @@ -3058,47 +3065,48 @@  File: as.info, Node: Eject, Next: Else, Prev: Double, Up: Pseudo Ops -7.24 `.eject' -============= +`.eject' +======== -Force a page break at this point, when generating assembly listings. + Force a page break at this point, when generating assembly listings.  File: as.info, Node: Else, Next: Elseif, Prev: Eject, Up: Pseudo Ops -7.25 `.else' -============ +`.else' +======= -`.else' is part of the `as' support for conditional assembly; *note -`.if': If. It marks the beginning of a section of code to be assembled -if the condition for the preceding `.if' was false. + `.else' is part of the `as' support for conditional assembly; *note +`.if': If.. It marks the beginning of a section of code to be +assembled if the condition for the preceding `.if' was false.  File: as.info, Node: Elseif, Next: End, Prev: Else, Up: Pseudo Ops -7.26 `.elseif' -============== +`.elseif' +========= -`.elseif' is part of the `as' support for conditional assembly; *note -`.if': If. It is shorthand for beginning a new `.if' block that would -otherwise fill the entire `.else' section. + `.elseif' is part of the `as' support for conditional assembly; +*note `.if': If.. It is shorthand for beginning a new `.if' block that +would otherwise fill the entire `.else' section.  File: as.info, Node: End, Next: Endef, Prev: Elseif, Up: Pseudo Ops -7.27 `.end' -=========== +`.end' +====== -`.end' marks the end of the assembly file. `as' does not process + `.end' marks the end of the assembly file. `as' does not process anything in the file past the `.end' directive.  File: as.info, Node: Endef, Next: Endfunc, Prev: End, Up: Pseudo Ops -7.28 `.endef' -============= +`.endef' +======== -This directive flags the end of a symbol definition begun with `.def'. + This directive flags the end of a symbol definition begun with +`.def'. `.endef' is only meaningful when generating COFF format output; if `as' is configured to generate `b.out', it accepts this directive but @@ -3107,39 +3115,39 @@  File: as.info, Node: Endfunc, Next: Endif, Prev: Endef, Up: Pseudo Ops -7.29 `.endfunc' -=============== +`.endfunc' +========== -`.endfunc' marks the end of a function specified with `.func'. + `.endfunc' marks the end of a function specified with `.func'.  File: as.info, Node: Endif, Next: Equ, Prev: Endfunc, Up: Pseudo Ops -7.30 `.endif' -============= +`.endif' +======== -`.endif' is part of the `as' support for conditional assembly; it marks -the end of a block of code that is only assembled conditionally. *Note -`.if': If. + `.endif' is part of the `as' support for conditional assembly; it +marks the end of a block of code that is only assembled conditionally. +*Note `.if': If.  File: as.info, Node: Equ, Next: Equiv, Prev: Endif, Up: Pseudo Ops -7.31 `.equ SYMBOL, EXPRESSION' -============================== +`.equ SYMBOL, EXPRESSION' +========================= -This directive sets the value of SYMBOL to EXPRESSION. It is -synonymous with `.set'; *note `.set': Set. + This directive sets the value of SYMBOL to EXPRESSION. It is +synonymous with `.set'; *note `.set': Set.. The syntax for `equ' on the HPPA is `SYMBOL .equ EXPRESSION'.  File: as.info, Node: Equiv, Next: Err, Prev: Equ, Up: Pseudo Ops -7.32 `.equiv SYMBOL, EXPRESSION' -================================ +`.equiv SYMBOL, EXPRESSION' +=========================== -The `.equiv' directive is like `.equ' and `.set', except that the + The `.equiv' directive is like `.equ' and `.set', except that the assembler will signal an error if SYMBOL is already defined. Note a symbol which has been referenced but not actually defined is considered to be undefined. @@ -3154,22 +3162,22 @@  File: as.info, Node: Err, Next: Error, Prev: Equiv, Up: Pseudo Ops -7.33 `.err' -=========== +`.err' +====== -If `as' assembles a `.err' directive, it will print an error message + If `as' assembles a `.err' directive, it will print an error message and, unless the `-Z' option was used, it will not generate an object file. This can be used to signal error an conditionally compiled code.  File: as.info, Node: Error, Next: Exitm, Prev: Err, Up: Pseudo Ops -7.34 `.error "STRING"' -====================== +`.error "STRING"' +================= -Similarly to `.err', this directive emits an error, but you can specify -a string that will be emitted as the error message. If you don't -specify the message, it defaults to `".error directive invoked in + Similarly to `.err', this directive emits an error, but you can +specify a string that will be emitted as the error message. If you +don't specify the message, it defaults to `".error directive invoked in source file"'. *Note Error and Warning Messages: Errors. .error "This code has not been assembled and tested." @@ -3177,40 +3185,40 @@  File: