Back to index

cell-binutils  2.17cvs20070401
coff-or32.c
Go to the documentation of this file.
00001 /* BFD back-end for OpenRISC 1000 COFF binaries.
00002    Copyright 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
00003    Contributed by Ivan Guzvinec  <ivang@opencores.org>
00004 
00005    This file is part of BFD, the Binary File Descriptor library.
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 2 of the License, or
00010    (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program; if not, write to the Free Software
00019    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 #define OR32 1
00022 
00023 #include "bfd.h"
00024 #include "sysdep.h"
00025 #include "libbfd.h"
00026 #include "coff/or32.h"
00027 #include "coff/internal.h"
00028 #include "libcoff.h"
00029 
00030 static long get_symbol_value
00031   PARAMS ((asymbol *));
00032 static bfd_reloc_status_type or32_reloc
00033   PARAMS ((bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **));
00034 static bfd_boolean coff_or32_relocate_section
00035   PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
00036           struct internal_reloc *, struct internal_syment *, asection **));
00037 static bfd_boolean coff_or32_adjust_symndx
00038   PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *,
00039           struct internal_reloc *, bfd_boolean *));
00040 static void reloc_processing
00041   PARAMS ((arelent *, struct internal_reloc *, asymbol **, bfd *, asection *));
00042 
00043 #define COFF_DEFAULT_SECTION_ALIGNMENT_POWER (2)
00044 
00045 #define INSERT_HWORD(WORD,HWORD)              \
00046     (((WORD) & 0xffff0000) | ((HWORD)& 0x0000ffff))
00047 #define EXTRACT_HWORD(WORD)                   \
00048     ((WORD) & 0x0000ffff)
00049 #define SIGN_EXTEND_HWORD(HWORD)              \
00050     ((HWORD) & 0x8000 ? (HWORD)|(~0xffffL) : (HWORD))
00051 
00052 #define INSERT_JUMPTARG(WORD,JT)              \
00053     (((WORD) & 0xfc000000) | ((JT)& 0x03ffffff))
00054 #define EXTRACT_JUMPTARG(WORD)                   \
00055     ((WORD) & 0x03ffffff)
00056 #define SIGN_EXTEND_JUMPTARG(JT)              \
00057     ((JT) & 0x04000000 ? (JT)|(~0x03ffffffL) : (JT))
00058 
00059 /* Provided the symbol, returns the value reffed.  */
00060 
00061 static long
00062 get_symbol_value (symbol)
00063      asymbol *symbol;
00064 {
00065   long relocation = 0;
00066 
00067   if (bfd_is_com_section (symbol->section))
00068     relocation = 0;
00069   else
00070     relocation = symbol->value +
00071       symbol->section->output_section->vma +
00072       symbol->section->output_offset;
00073 
00074   return relocation;
00075 }
00076 
00077 /* This function is in charge of performing all the or32 relocations.  */
00078 
00079 static bfd_reloc_status_type
00080 or32_reloc (abfd, reloc_entry, symbol_in, data, input_section, output_bfd,
00081             error_message)
00082      bfd *abfd;
00083      arelent *reloc_entry;
00084      asymbol *symbol_in;
00085      PTR data;
00086      asection *input_section;
00087      bfd *output_bfd;
00088      char **error_message;
00089 {
00090   /* The consth relocation comes in two parts, we have to remember
00091      the state between calls, in these variables.  */
00092   static bfd_boolean part1_consth_active = FALSE;
00093   static unsigned long part1_consth_value;
00094 
00095   unsigned long insn;
00096   unsigned long sym_value;
00097   unsigned long unsigned_value;
00098   unsigned short r_type;
00099   long signed_value;
00100 
00101   unsigned long addr = reloc_entry->address ;   /*+ input_section->vma*/
00102   bfd_byte *hit_data =addr + (bfd_byte *)(data);
00103 
00104   r_type = reloc_entry->howto->type;
00105 
00106   if (output_bfd)
00107     {
00108       /* Partial linking - do nothing.  */
00109       reloc_entry->address += input_section->output_offset;
00110       return bfd_reloc_ok;
00111     }
00112 
00113   if (symbol_in != NULL
00114       && bfd_is_und_section (symbol_in->section))
00115     {
00116       /* Keep the state machine happy in case we're called again.  */
00117       if (r_type == R_IHIHALF)
00118         {
00119           part1_consth_active = TRUE;
00120           part1_consth_value  = 0;
00121         }
00122 
00123       return bfd_reloc_undefined;
00124     }
00125 
00126   if ((part1_consth_active) && (r_type != R_IHCONST))
00127     {
00128       part1_consth_active = FALSE;
00129       *error_message = (char *) "Missing IHCONST";
00130 
00131       return bfd_reloc_dangerous;
00132     }
00133 
00134   sym_value = get_symbol_value (symbol_in);
00135 
00136   switch (r_type)
00137     {
00138     case R_IREL:
00139       insn = bfd_get_32(abfd, hit_data);
00140 
00141       /* Take the value in the field and sign extend it.  */
00142       signed_value = EXTRACT_JUMPTARG (insn);
00143       signed_value = SIGN_EXTEND_JUMPTARG (signed_value);
00144       signed_value <<= 2;
00145 
00146       /* See the note on the R_IREL reloc in coff_or32_relocate_section.  */
00147       if (signed_value == - (long) reloc_entry->address)
00148         signed_value = 0;
00149 
00150       signed_value += sym_value + reloc_entry->addend;
00151       /* Relative jmp/call, so subtract from the value the
00152         address of the place we're coming from.  */
00153       signed_value -= (reloc_entry->address
00154                      + input_section->output_section->vma
00155                      + input_section->output_offset);
00156       if (signed_value > 0x7ffffff || signed_value < -0x8000000)
00157        return bfd_reloc_overflow;
00158 
00159       signed_value >>= 2;
00160       insn = INSERT_JUMPTARG (insn, signed_value);
00161       bfd_put_32 (abfd, insn, hit_data);
00162       break;
00163 
00164     case R_ILOHALF:
00165       insn = bfd_get_32 (abfd, hit_data);
00166       unsigned_value = EXTRACT_HWORD (insn);
00167       unsigned_value +=  sym_value + reloc_entry->addend;
00168       insn = INSERT_HWORD (insn, unsigned_value);
00169       bfd_put_32 (abfd, insn, hit_data);
00170       break;
00171 
00172     case R_IHIHALF:
00173       insn = bfd_get_32 (abfd, hit_data);
00174 
00175       /* consth, part 1
00176          Just get the symbol value that is referenced.  */
00177       part1_consth_active = TRUE;
00178       part1_consth_value = sym_value + reloc_entry->addend;
00179 
00180       /* Don't modify insn until R_IHCONST.  */
00181       break;
00182 
00183     case R_IHCONST:
00184       insn = bfd_get_32 (abfd, hit_data);
00185 
00186       /* consth, part 2
00187          Now relocate the reference.  */
00188       if (! part1_consth_active)
00189         {
00190           *error_message = (char *) "Missing IHIHALF";
00191           return bfd_reloc_dangerous;
00192         }
00193 
00194       /* sym_ptr_ptr = r_symndx, in coff_slurp_reloc_table() */
00195       unsigned_value = 0;   /*EXTRACT_HWORD(insn) << 16;*/
00196       unsigned_value += reloc_entry->addend; /* r_symndx */
00197       unsigned_value += part1_consth_value;
00198       unsigned_value = unsigned_value >> 16;
00199       insn = INSERT_HWORD (insn, unsigned_value);
00200       part1_consth_active = FALSE;
00201       bfd_put_32 (abfd, insn, hit_data);
00202       break;
00203 
00204     case R_BYTE:
00205       insn = bfd_get_8 (abfd, hit_data);
00206       unsigned_value = insn + sym_value + reloc_entry->addend;
00207       if (unsigned_value & 0xffffff00)
00208         return bfd_reloc_overflow;
00209       bfd_put_8 (abfd, unsigned_value, hit_data);
00210       break;
00211 
00212     case R_HWORD:
00213       insn = bfd_get_16 (abfd, hit_data);
00214       unsigned_value = insn + sym_value + reloc_entry->addend;
00215       if (unsigned_value & 0xffff0000)
00216         return bfd_reloc_overflow;
00217       bfd_put_16 (abfd, insn, hit_data);
00218       break;
00219 
00220     case R_WORD:
00221       insn = bfd_get_32 (abfd, hit_data);
00222       insn += sym_value + reloc_entry->addend;
00223       bfd_put_32 (abfd, insn, hit_data);
00224       break;
00225 
00226     default:
00227       *error_message = _("Unrecognized reloc");
00228       return bfd_reloc_dangerous;
00229     }
00230 
00231   return bfd_reloc_ok;
00232 }
00233 
00234 /*      type     rightshift
00235            size
00236         bitsize
00237              pc-relative
00238              bitpos
00239            absolute
00240                complain_on_overflow
00241               special_function
00242                 relocation name
00243                      partial_inplace
00244                       src_mask
00245 */
00246 
00247 /* FIXME: I'm not real sure about this table.  */
00248 static reloc_howto_type howto_table[] =
00249 {
00250   { R_ABS,      0, 3, 32, FALSE,  0, complain_overflow_bitfield,  or32_reloc, "ABS",     TRUE, 0xffffffff,0xffffffff, FALSE },
00251     EMPTY_HOWTO (1),
00252     EMPTY_HOWTO (2),
00253     EMPTY_HOWTO (3),
00254     EMPTY_HOWTO (4),
00255     EMPTY_HOWTO (5),
00256     EMPTY_HOWTO (6),
00257     EMPTY_HOWTO (7),
00258     EMPTY_HOWTO (8),
00259     EMPTY_HOWTO (9),
00260     EMPTY_HOWTO (10),
00261     EMPTY_HOWTO (11),
00262     EMPTY_HOWTO (12),
00263     EMPTY_HOWTO (13),
00264     EMPTY_HOWTO (14),
00265     EMPTY_HOWTO (15),
00266     EMPTY_HOWTO (16),
00267     EMPTY_HOWTO (17),
00268     EMPTY_HOWTO (18),
00269     EMPTY_HOWTO (19),
00270     EMPTY_HOWTO (20),
00271     EMPTY_HOWTO (21),
00272     EMPTY_HOWTO (22),
00273     EMPTY_HOWTO (23),
00274   { R_IREL,     0, 3, 32, TRUE,   0, complain_overflow_signed,    or32_reloc, "IREL",    TRUE, 0xffffffff,0xffffffff, FALSE },
00275   { R_IABS,     0, 3, 32, FALSE,  0, complain_overflow_bitfield,  or32_reloc, "IABS",    TRUE, 0xffffffff,0xffffffff, FALSE },
00276   { R_ILOHALF,  0, 3, 16, TRUE,   0, complain_overflow_signed,    or32_reloc, "ILOHALF", TRUE, 0x0000ffff,0x0000ffff, FALSE },
00277   { R_IHIHALF,  0, 3, 16, TRUE,   16,complain_overflow_signed,    or32_reloc, "IHIHALF", TRUE, 0xffff0000,0xffff0000, FALSE },
00278   { R_IHCONST,  0, 3, 16, TRUE,   0, complain_overflow_signed,    or32_reloc, "IHCONST", TRUE, 0xffff0000,0xffff0000, FALSE },
00279   { R_BYTE,     0, 0, 8,  FALSE,  0, complain_overflow_bitfield,  or32_reloc, "BYTE",    TRUE, 0x000000ff,0x000000ff, FALSE },
00280   { R_HWORD,    0, 1, 16, FALSE,  0, complain_overflow_bitfield,  or32_reloc, "HWORD",   TRUE, 0x0000ffff,0x0000ffff, FALSE },
00281   { R_WORD,     0, 2, 32, FALSE,  0, complain_overflow_bitfield,  or32_reloc, "WORD",    TRUE, 0xffffffff,0xffffffff, FALSE },
00282 };
00283 
00284 #define BADMAG(x) OR32BADMAG (x)
00285 
00286 #define RELOC_PROCESSING(relent, reloc, symbols, abfd, section) \
00287   reloc_processing (relent, reloc, symbols, abfd, section)
00288 
00289 static void
00290 reloc_processing (relent,reloc, symbols, abfd, section)
00291      arelent *relent;
00292      struct internal_reloc *reloc;
00293      asymbol **symbols;
00294      bfd *abfd;
00295      asection *section;
00296 {
00297   static bfd_vma ihihalf_vaddr = (bfd_vma) -1;
00298 
00299   relent->address = reloc->r_vaddr;
00300   relent->howto = howto_table + reloc->r_type;
00301 
00302   if (reloc->r_type == R_IHCONST)
00303     {
00304       /* The address of an R_IHCONST should always be the address of
00305         the immediately preceding R_IHIHALF.  relocs generated by gas
00306         are correct, but relocs generated by High C are different (I
00307         can't figure out what the address means for High C).  We can
00308         handle both gas and High C by ignoring the address here, and
00309         simply reusing the address saved for R_IHIHALF.  */
00310       if (ihihalf_vaddr == (bfd_vma) -1)
00311        abort ();
00312 
00313       relent->address = ihihalf_vaddr;
00314       ihihalf_vaddr = (bfd_vma) -1;
00315       relent->addend = reloc->r_symndx;
00316       relent->sym_ptr_ptr= bfd_abs_section_ptr->symbol_ptr_ptr;
00317     }
00318   else
00319     {
00320       relent->sym_ptr_ptr = symbols + obj_convert (abfd)[reloc->r_symndx];
00321       relent->addend = 0;
00322       relent->address-= section->vma;
00323 
00324       if (reloc->r_type == R_IHIHALF)
00325        ihihalf_vaddr = relent->address;
00326       else if (ihihalf_vaddr != (bfd_vma) -1)
00327        abort ();
00328     }
00329 }
00330 
00331 /* The reloc processing routine for the optimized COFF linker.  */
00332 
00333 static bfd_boolean
00334 coff_or32_relocate_section (output_bfd, info, input_bfd, input_section,
00335                             contents, relocs, syms, sections)
00336      bfd *output_bfd ATTRIBUTE_UNUSED;
00337      struct bfd_link_info *info;
00338      bfd *input_bfd;
00339      asection *input_section;
00340      bfd_byte *contents;
00341      struct internal_reloc *relocs;
00342      struct internal_syment *syms;
00343      asection **sections;
00344 {
00345   struct internal_reloc *rel;
00346   struct internal_reloc *relend;
00347   bfd_boolean hihalf;
00348   bfd_vma hihalf_val;
00349 
00350   /* If we are performing a relocatable link, we don't need to do a
00351      thing.  The caller will take care of adjusting the reloc
00352      addresses and symbol indices.  */
00353   if (info->relocatable)
00354     return TRUE;
00355 
00356   hihalf = FALSE;
00357   hihalf_val = 0;
00358 
00359   rel = relocs;
00360   relend = rel + input_section->reloc_count;
00361 
00362   for (; rel < relend; rel++)
00363     {
00364       long symndx;
00365       bfd_byte *loc;
00366       struct coff_link_hash_entry *h;
00367       struct internal_syment *sym;
00368       asection *sec;
00369       bfd_vma val;
00370       bfd_boolean overflow;
00371       unsigned long insn;
00372       long signed_value;
00373       unsigned long unsigned_value;
00374       bfd_reloc_status_type rstat;
00375 
00376       symndx = rel->r_symndx;
00377       loc = contents + rel->r_vaddr - input_section->vma;
00378 
00379       if (symndx == -1 || rel->r_type == R_IHCONST)
00380         h = NULL;
00381       else
00382         h = obj_coff_sym_hashes (input_bfd)[symndx];
00383 
00384       sym = NULL;
00385       sec = NULL;
00386       val = 0;
00387 
00388       /* An R_IHCONST reloc does not have a symbol.  Instead, the
00389          symbol index is an addend.  R_IHCONST is always used in
00390          conjunction with R_IHHALF.  */
00391       if (rel->r_type != R_IHCONST)
00392         {
00393           if (h == NULL)
00394             {
00395               if (symndx == -1)
00396                 sec = bfd_abs_section_ptr;
00397               else
00398                 {
00399                   sym = syms + symndx;
00400                   sec = sections[symndx];
00401                   val = (sec->output_section->vma
00402                          + sec->output_offset
00403                          + sym->n_value
00404                          - sec->vma);
00405                 }
00406             }
00407           else
00408             {
00409               if (h->root.type == bfd_link_hash_defined
00410                   || h->root.type == bfd_link_hash_defweak)
00411                 {
00412                   sec = h->root.u.def.section;
00413                   val = (h->root.u.def.value
00414                          + sec->output_section->vma
00415                          + sec->output_offset);
00416                 }
00417               else
00418                 {
00419                   if (! ((*info->callbacks->undefined_symbol)
00420                          (info, h->root.root.string, input_bfd, input_section,
00421                           rel->r_vaddr - input_section->vma, TRUE)))
00422                     return FALSE;
00423                 }
00424             }
00425 
00426           if (hihalf)
00427             {
00428               if (! ((*info->callbacks->reloc_dangerous)
00429                      (info, "missing IHCONST reloc", input_bfd,
00430                       input_section, rel->r_vaddr - input_section->vma)))
00431                 return FALSE;
00432               hihalf = FALSE;
00433             }
00434         }
00435 
00436       overflow = FALSE;
00437 
00438       switch (rel->r_type)
00439         {
00440         default:
00441           bfd_set_error (bfd_error_bad_value);
00442           return FALSE;
00443 
00444         case R_IREL:
00445           insn = bfd_get_32 (input_bfd, loc);
00446 
00447           /* Extract the addend.  */
00448           signed_value = EXTRACT_JUMPTARG (insn);
00449           signed_value = SIGN_EXTEND_JUMPTARG (signed_value);
00450           signed_value <<= 2;
00451 
00452           /* Determine the destination of the jump.  */
00453           signed_value += val;
00454 
00455          /* Make the destination PC relative.  */
00456          signed_value -= (input_section->output_section->vma
00457                         + input_section->output_offset
00458                         + (rel->r_vaddr - input_section->vma));
00459          if (signed_value > 0x7ffffff || signed_value < - 0x8000000)
00460            {
00461              overflow = TRUE;
00462              signed_value = 0;
00463            }
00464 
00465           /* Put the adjusted value back into the instruction.  */
00466           signed_value >>= 2;
00467           insn = INSERT_JUMPTARG(insn, signed_value);
00468 
00469           bfd_put_32 (input_bfd, (bfd_vma) insn, loc);
00470           break;
00471 
00472         case R_ILOHALF:
00473           insn = bfd_get_32 (input_bfd, loc);
00474           unsigned_value = EXTRACT_HWORD (insn);
00475           unsigned_value += val;
00476           insn = INSERT_HWORD (insn, unsigned_value);
00477           bfd_put_32 (input_bfd, insn, loc);
00478           break;
00479 
00480         case R_IHIHALF:
00481           /* Save the value for the R_IHCONST reloc.  */
00482           hihalf = TRUE;
00483           hihalf_val = val;
00484           break;
00485 
00486         case R_IHCONST:
00487           if (! hihalf)
00488             {
00489               if (! ((*info->callbacks->reloc_dangerous)
00490                      (info, "missing IHIHALF reloc", input_bfd,
00491                       input_section, rel->r_vaddr - input_section->vma)))
00492                 return FALSE;
00493               hihalf_val = 0;
00494             }
00495 
00496           insn = bfd_get_32 (input_bfd, loc);
00497           unsigned_value = rel->r_symndx + hihalf_val;
00498           unsigned_value >>= 16;
00499           insn = INSERT_HWORD (insn, unsigned_value);
00500           bfd_put_32 (input_bfd, (bfd_vma) insn, loc);
00501 
00502           hihalf = FALSE;
00503           break;
00504 
00505         case R_BYTE:
00506         case R_HWORD:
00507         case R_WORD:
00508           rstat = _bfd_relocate_contents (howto_table + rel->r_type,
00509                                           input_bfd, val, loc);
00510           if (rstat == bfd_reloc_overflow)
00511             overflow = TRUE;
00512           else if (rstat != bfd_reloc_ok)
00513             abort ();
00514           break;
00515         }
00516 
00517       if (overflow)
00518         {
00519           const char *name;
00520           char buf[SYMNMLEN + 1];
00521 
00522           if (symndx == -1)
00523             name = "*ABS*";
00524           else if (h != NULL)
00525             name = NULL;
00526           else if (sym == NULL)
00527             name = "*unknown*";
00528           else if (sym->_n._n_n._n_zeroes == 0
00529                    && sym->_n._n_n._n_offset != 0)
00530             name = obj_coff_strings (input_bfd) + sym->_n._n_n._n_offset;
00531           else
00532             {
00533               strncpy (buf, sym->_n._n_name, SYMNMLEN);
00534               buf[SYMNMLEN] = '\0';
00535               name = buf;
00536             }
00537 
00538           if (! ((*info->callbacks->reloc_overflow)
00539                  (info, (h ? &h->root : NULL), name,
00540                 howto_table[rel->r_type].name, (bfd_vma) 0, input_bfd,
00541                 input_section, rel->r_vaddr - input_section->vma)))
00542             return FALSE;
00543         }
00544     }
00545 
00546   return TRUE;
00547 }
00548 
00549 #define coff_relocate_section coff_or32_relocate_section
00550 
00551 /* We don't want to change the symndx of a R_IHCONST reloc, since it
00552    is actually an addend, not a symbol index at all.  */
00553 
00554 static bfd_boolean
00555 coff_or32_adjust_symndx (obfd, info, ibfd, sec, irel, adjustedp)
00556      bfd *obfd ATTRIBUTE_UNUSED;
00557      struct bfd_link_info *info ATTRIBUTE_UNUSED;
00558      bfd *ibfd ATTRIBUTE_UNUSED;
00559      asection *sec ATTRIBUTE_UNUSED;
00560      struct internal_reloc *irel;
00561      bfd_boolean *adjustedp;
00562 {
00563   if (irel->r_type == R_IHCONST)
00564     *adjustedp = TRUE;
00565   else
00566     *adjustedp = FALSE;
00567   return TRUE;
00568 }
00569 
00570 #define coff_adjust_symndx coff_or32_adjust_symndx
00571 
00572 #include "coffcode.h"
00573 
00574 const bfd_target or32coff_big_vec =
00575 {
00576   "coff-or32-big",  /* Name.  */
00577   bfd_target_coff_flavour,
00578   BFD_ENDIAN_BIG,   /* Data byte order is big.  */
00579   BFD_ENDIAN_BIG,   /* Header byte order is big.  */
00580 
00581   (HAS_RELOC  | EXEC_P |    /* Object flags.  */
00582    HAS_LINENO | HAS_DEBUG |
00583    HAS_SYMS   | HAS_LOCALS | WP_TEXT),
00584 
00585   (SEC_HAS_CONTENTS | SEC_ALLOC | /* Section flags.  */
00586    SEC_LOAD | SEC_RELOC |
00587    SEC_READONLY ),
00588   '_',        /* Leading underscore.  */
00589   '/',        /* ar_pad_char.  */
00590   15,         /* ar_max_namelen.  */
00591 
00592   /* Data.  */
00593   bfd_getb64, bfd_getb_signed_64, bfd_putb64,
00594   bfd_getb32, bfd_getb_signed_32, bfd_putb32,
00595   bfd_getb16, bfd_getb_signed_16, bfd_putb16,
00596 
00597   /* Headers.  */
00598   bfd_getb64, bfd_getb_signed_64, bfd_putb64,
00599   bfd_getb32, bfd_getb_signed_32, bfd_putb32,
00600   bfd_getb16, bfd_getb_signed_16, bfd_putb16,
00601 
00602   {
00603     _bfd_dummy_target,
00604     coff_object_p,
00605     bfd_generic_archive_p,
00606     _bfd_dummy_target
00607   },
00608   {
00609     bfd_false,
00610     coff_mkobject,
00611     _bfd_generic_mkarchive,
00612     bfd_false
00613   },
00614   {
00615     bfd_false,
00616     coff_write_object_contents,
00617     _bfd_write_archive_contents,
00618     bfd_false
00619   },
00620 
00621   BFD_JUMP_TABLE_GENERIC (coff),
00622   BFD_JUMP_TABLE_COPY (coff),
00623   BFD_JUMP_TABLE_CORE (_bfd_nocore),
00624   BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff),
00625   BFD_JUMP_TABLE_SYMBOLS (coff),
00626   BFD_JUMP_TABLE_RELOCS (coff),
00627   BFD_JUMP_TABLE_WRITE (coff),
00628   BFD_JUMP_TABLE_LINK (coff),
00629   BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
00630 
00631  /* Alternative_target.  */
00632 #ifdef TARGET_LITTLE_SYM
00633   & TARGET_LITTLE_SYM,
00634 #else
00635   NULL,
00636 #endif
00637 
00638   COFF_SWAP_TABLE
00639 };