Back to index

cell-binutils  2.17cvs20070401
aout-arm.c
Go to the documentation of this file.
00001 /* BFD back-end for raw ARM a.out binaries.
00002    Copyright 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005,
00003    2007 Free Software Foundation, Inc.
00004    Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
00005 
00006    This file is part of BFD, the Binary File Descriptor library.
00007 
00008    This program is free software; you can redistribute it and/or modify
00009    it under the terms of the GNU General Public License as published by
00010    the Free Software Foundation; either version 2 of the License, or
00011    (at your option) any later version.
00012 
00013    This program is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016    GNU General Public License for more details.
00017 
00018    You should have received a copy of the GNU General Public License
00019    along with this program; if not, write to the Free Software
00020    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00021 
00022 #include "bfd.h"
00023 #include "sysdep.h"
00024 
00025 /* Avoid multiple definitions from aoutx if supporting standard a.out
00026    as well as our own.  */
00027 /* Do not "beautify" the CONCAT* macro args.  Traditional C will not
00028    remove whitespace added here, and thus will fail to concatenate
00029    the tokens.  */
00030 #define NAME(x,y) CONCAT3 (aoutarm,_32_,y)
00031 
00032 #define N_TXTADDR(x)                                    \
00033   ((N_MAGIC (x) == NMAGIC)                              \
00034    ? (bfd_vma) 0x8000                                          \
00035    : ((N_MAGIC (x) != ZMAGIC)                                  \
00036       ? (bfd_vma) 0                                     \
00037       : ((N_SHARED_LIB (x))                             \
00038         ? ((x).a_entry & ~(bfd_vma) (TARGET_PAGE_SIZE - 1))    \
00039         : (bfd_vma) TEXT_START_ADDR)))
00040 
00041 #define TEXT_START_ADDR 0x8000
00042 #define TARGET_PAGE_SIZE 0x8000
00043 #define SEGMENT_SIZE TARGET_PAGE_SIZE
00044 #define DEFAULT_ARCH bfd_arch_arm
00045 
00046 #define MY(OP) CONCAT2 (aoutarm_,OP)
00047 #define N_BADMAG(x) ((((x).a_info & ~007200) != ZMAGIC) && \
00048                      (((x).a_info & ~006000) != OMAGIC) && \
00049                      ((x).a_info != NMAGIC))
00050 #define N_MAGIC(x) ((x).a_info & ~07200)
00051 
00052 #define MY_bfd_reloc_type_lookup aoutarm_bfd_reloc_type_lookup
00053 #define MY_bfd_reloc_name_lookup aoutarm_bfd_reloc_name_lookup
00054 
00055 #include "libaout.h"
00056 #include "aout/aout64.h"
00057 
00058 
00059 static bfd_reloc_status_type
00060   MY (fix_pcrel_26) (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
00061 static bfd_reloc_status_type
00062   MY (fix_pcrel_26_done) (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
00063 
00064 reloc_howto_type MY (howto_table)[] =
00065 {
00066   /* Type rs size bsz pcrel bitpos ovrf sf name part_inpl
00067      readmask setmask pcdone.  */
00068   HOWTO (0, 0, 0, 8, FALSE, 0, complain_overflow_bitfield, 0, "8", TRUE,
00069         0x000000ff, 0x000000ff, FALSE),
00070   HOWTO (1, 0, 1, 16, FALSE, 0, complain_overflow_bitfield, 0, "16", TRUE,
00071         0x0000ffff, 0x0000ffff, FALSE),
00072   HOWTO (2, 0, 2, 32, FALSE, 0, complain_overflow_bitfield, 0, "32", TRUE,
00073         0xffffffff, 0xffffffff, FALSE),
00074   HOWTO (3, 2, 2, 26, TRUE, 0, complain_overflow_signed, MY (fix_pcrel_26),
00075         "ARM26", TRUE, 0x00ffffff, 0x00ffffff, TRUE),
00076   HOWTO (4, 0, 0, 8, TRUE, 0, complain_overflow_signed, 0, "DISP8", TRUE,
00077         0x000000ff, 0x000000ff, TRUE),
00078   HOWTO (5, 0, 1, 16, TRUE, 0, complain_overflow_signed, 0, "DISP16", TRUE,
00079         0x0000ffff, 0x0000ffff, TRUE),
00080   HOWTO (6, 0, 2, 32, TRUE, 0, complain_overflow_signed, 0, "DISP32", TRUE,
00081         0xffffffff, 0xffffffff, TRUE),
00082   HOWTO (7, 2, 2, 26, FALSE, 0, complain_overflow_signed,
00083         MY (fix_pcrel_26_done), "ARM26D", TRUE, 0x0, 0x0,
00084         FALSE),
00085   EMPTY_HOWTO (-1),
00086   HOWTO (9, 0, -1, 16, FALSE, 0, complain_overflow_bitfield, 0, "NEG16", TRUE,
00087         0x0000ffff, 0x0000ffff, FALSE),
00088   HOWTO (10, 0, -2, 32, FALSE, 0, complain_overflow_bitfield, 0, "NEG32", TRUE,
00089         0xffffffff, 0xffffffff, FALSE)
00090 };
00091 
00092 #define RELOC_ARM_BITS_NEG_BIG      ((unsigned int) 0x08)
00093 #define RELOC_ARM_BITS_NEG_LITTLE   ((unsigned int) 0x10)
00094 
00095 static reloc_howto_type *
00096 MY (reloc_howto) (bfd *abfd,
00097                 struct reloc_std_external *rel,
00098                 int *r_index,
00099                 int *r_extern,
00100                 int *r_pcrel)
00101 {
00102   unsigned int r_length;
00103   unsigned int r_pcrel_done;
00104   unsigned int r_neg;
00105   int index;
00106 
00107   *r_pcrel = 0;
00108   if (bfd_header_big_endian (abfd))
00109     {
00110       *r_index     =  ((rel->r_index[0] << 16)
00111                      | (rel->r_index[1] << 8)
00112                      | rel->r_index[2]);
00113       *r_extern    = (0 != (rel->r_type[0] & RELOC_STD_BITS_EXTERN_BIG));
00114       r_pcrel_done = (0 != (rel->r_type[0] & RELOC_STD_BITS_PCREL_BIG));
00115       r_neg      = (0 != (rel->r_type[0] & RELOC_ARM_BITS_NEG_BIG));
00116       r_length     = ((rel->r_type[0] & RELOC_STD_BITS_LENGTH_BIG)
00117                     >> RELOC_STD_BITS_LENGTH_SH_BIG);
00118     }
00119   else
00120     {
00121       *r_index     = ((rel->r_index[2] << 16)
00122                     | (rel->r_index[1] << 8)
00123                     | rel->r_index[0]);
00124       *r_extern    = (0 != (rel->r_type[0] & RELOC_STD_BITS_EXTERN_LITTLE));
00125       r_pcrel_done = (0 != (rel->r_type[0] & RELOC_STD_BITS_PCREL_LITTLE));
00126       r_neg      = (0 != (rel->r_type[0] & RELOC_ARM_BITS_NEG_LITTLE));
00127       r_length     = ((rel->r_type[0] & RELOC_STD_BITS_LENGTH_LITTLE)
00128                     >> RELOC_STD_BITS_LENGTH_SH_LITTLE);
00129     }
00130   index = r_length + 4 * r_pcrel_done + 8 * r_neg;
00131   if (index == 3)
00132     *r_pcrel = 1;
00133 
00134   return MY (howto_table) + index;
00135 }
00136 
00137 #define MY_reloc_howto(BFD, REL, IN, EX, PC) \
00138        MY (reloc_howto) (BFD, REL, &IN, &EX, &PC)
00139 
00140 static void
00141 MY (put_reloc) (bfd *abfd,
00142               int r_extern,
00143               int r_index,
00144               bfd_vma value,
00145               reloc_howto_type *howto,
00146               struct reloc_std_external *reloc)
00147 {
00148   unsigned int r_length;
00149   int r_pcrel;
00150   int r_neg;
00151 
00152   PUT_WORD (abfd, value, reloc->r_address);
00153   /* Size as a power of two.  */
00154   r_length = howto->size;
00155 
00156   /* Special case for branch relocations.  */
00157   if (howto->type == 3 || howto->type == 7)
00158     r_length = 3;
00159 
00160   r_pcrel  = howto->type & 4;      /* PC Relative done?  */
00161   r_neg = howto->type & 8;  /* Negative relocation.  */
00162 
00163   if (bfd_header_big_endian (abfd))
00164     {
00165       reloc->r_index[0] = r_index >> 16;
00166       reloc->r_index[1] = r_index >> 8;
00167       reloc->r_index[2] = r_index;
00168       reloc->r_type[0] =
00169        ((r_extern ?     RELOC_STD_BITS_EXTERN_BIG : 0)
00170         | (r_pcrel ?    RELOC_STD_BITS_PCREL_BIG : 0)
00171         | (r_neg ?    RELOC_ARM_BITS_NEG_BIG : 0)
00172         | (r_length <<  RELOC_STD_BITS_LENGTH_SH_BIG));
00173     }
00174   else
00175     {
00176       reloc->r_index[2] = r_index >> 16;
00177       reloc->r_index[1] = r_index >> 8;
00178       reloc->r_index[0] = r_index;
00179       reloc->r_type[0] =
00180        ((r_extern ?     RELOC_STD_BITS_EXTERN_LITTLE : 0)
00181         | (r_pcrel ?    RELOC_STD_BITS_PCREL_LITTLE : 0)
00182         | (r_neg ?    RELOC_ARM_BITS_NEG_LITTLE : 0)
00183         | (r_length <<  RELOC_STD_BITS_LENGTH_SH_LITTLE));
00184     }
00185 }
00186 
00187 #define MY_put_reloc(BFD, EXT, IDX, VAL, HOWTO, RELOC) \
00188   MY (put_reloc) (BFD, EXT, IDX, VAL, HOWTO, RELOC)
00189 
00190 static void
00191 MY (relocatable_reloc) (reloc_howto_type *howto,
00192                      bfd *abfd,
00193                      struct reloc_std_external *reloc,
00194                      bfd_vma *amount,
00195                      bfd_vma r_addr)
00196 {
00197   if (howto->type == 3)
00198     {
00199       if (reloc->r_type[0]
00200          & (bfd_header_big_endian (abfd)
00201             ? RELOC_STD_BITS_EXTERN_BIG : RELOC_STD_BITS_EXTERN_LITTLE))
00202        /* The reloc is still external, so don't modify anything.  */
00203        *amount = 0;
00204       else
00205        {
00206          *amount -= r_addr;
00207          /* Change the r_pcrel value -- on the ARM, this bit is set once the
00208             relocation is done.  */
00209          if (bfd_header_big_endian (abfd))
00210            reloc->r_type[0] |= RELOC_STD_BITS_PCREL_BIG;
00211          else
00212            reloc->r_type[0] |= RELOC_STD_BITS_PCREL_LITTLE;
00213        }
00214     }
00215   else if (howto->type == 7)
00216     *amount = 0;
00217 }
00218 
00219 #define MY_relocatable_reloc(HOW, BFD, REL, AMOUNT, ADDR) \
00220   MY (relocatable_reloc) (HOW, BFD, REL, &(AMOUNT), ADDR)
00221 
00222 static bfd_reloc_status_type
00223 MY (fix_pcrel_26_done) (bfd *abfd ATTRIBUTE_UNUSED,
00224                      arelent *reloc_entry ATTRIBUTE_UNUSED,
00225                      asymbol *symbol ATTRIBUTE_UNUSED,
00226                      void * data ATTRIBUTE_UNUSED,
00227                      asection *input_section ATTRIBUTE_UNUSED,
00228                      bfd *output_bfd ATTRIBUTE_UNUSED,
00229                      char **error_message ATTRIBUTE_UNUSED)
00230 {
00231   /* This is dead simple at present.  */
00232   return bfd_reloc_ok;
00233 }
00234 
00235 static bfd_reloc_status_type
00236 MY (fix_pcrel_26) (bfd *abfd,
00237                  arelent *reloc_entry,
00238                  asymbol *symbol,
00239                  void * data,
00240                  asection *input_section,
00241                  bfd *output_bfd,
00242                  char **error_message ATTRIBUTE_UNUSED)
00243 {
00244   bfd_vma relocation;
00245   bfd_size_type addr = reloc_entry->address;
00246   bfd_vma target = bfd_get_32 (abfd, (bfd_byte *) data + addr);
00247   bfd_reloc_status_type flag = bfd_reloc_ok;
00248 
00249   /* If this is an undefined symbol, return error.  */
00250   if (symbol->section == &bfd_und_section
00251       && (symbol->flags & BSF_WEAK) == 0)
00252     return output_bfd ? bfd_reloc_ok : bfd_reloc_undefined;
00253 
00254   /* If the sections are different, and we are doing a partial relocation,
00255      just ignore it for now.  */
00256   if (symbol->section->name != input_section->name
00257       && output_bfd != NULL)
00258     return bfd_reloc_ok;
00259 
00260   relocation = (target & 0x00ffffff) << 2;
00261   relocation = (relocation ^ 0x02000000) - 0x02000000; /* Sign extend.  */
00262   relocation += symbol->value;
00263   relocation += symbol->section->output_section->vma;
00264   relocation += symbol->section->output_offset;
00265   relocation += reloc_entry->addend;
00266   relocation -= input_section->output_section->vma;
00267   relocation -= input_section->output_offset;
00268   relocation -= addr;
00269   if (relocation & 3)
00270     return bfd_reloc_overflow;
00271 
00272   /* Check for overflow.  */
00273   if (relocation & 0x02000000)
00274     {
00275       if ((relocation & ~ (bfd_vma) 0x03ffffff) != ~ (bfd_vma) 0x03ffffff)
00276        flag = bfd_reloc_overflow;
00277     }
00278   else if (relocation & ~ (bfd_vma) 0x03ffffff)
00279     flag = bfd_reloc_overflow;
00280 
00281   target &= ~ (bfd_vma) 0x00ffffff;
00282   target |= (relocation >> 2) & 0x00ffffff;
00283   bfd_put_32 (abfd, target, (bfd_byte *) data + addr);
00284 
00285   /* Now the ARM magic... Change the reloc type so that it is marked as done.
00286      Strictly this is only necessary if we are doing a partial relocation.  */
00287   reloc_entry->howto = &MY (howto_table)[7];
00288 
00289   return flag;
00290 }
00291 
00292 static reloc_howto_type *
00293 MY (bfd_reloc_type_lookup) (bfd *abfd,
00294                          bfd_reloc_code_real_type code)
00295 {
00296 #define ASTD(i,j)       case i: return & MY (howto_table)[j]
00297 
00298   if (code == BFD_RELOC_CTOR)
00299     switch (bfd_get_arch_info (abfd)->bits_per_address)
00300       {
00301       case 32:
00302         code = BFD_RELOC_32;
00303         break;
00304       default:
00305        return NULL;
00306       }
00307 
00308   switch (code)
00309     {
00310       ASTD (BFD_RELOC_16, 1);
00311       ASTD (BFD_RELOC_32, 2);
00312       ASTD (BFD_RELOC_ARM_PCREL_BRANCH, 3);
00313       ASTD (BFD_RELOC_8_PCREL, 4);
00314       ASTD (BFD_RELOC_16_PCREL, 5);
00315       ASTD (BFD_RELOC_32_PCREL, 6);
00316     default:
00317       return NULL;
00318     }
00319 }
00320 
00321 static reloc_howto_type *
00322 MY (bfd_reloc_name_lookup) (bfd *abfd ATTRIBUTE_UNUSED,
00323                          const char *r_name)
00324 {
00325   unsigned int i;
00326 
00327   for (i = 0;
00328        i < sizeof (MY (howto_table)) / sizeof (MY (howto_table)[0]);
00329        i++)
00330     if (MY (howto_table)[i].name != NULL
00331        && strcasecmp (MY (howto_table)[i].name, r_name) == 0)
00332       return &MY (howto_table)[i];
00333 
00334   return NULL;
00335 }
00336 
00337 #define MY_swap_std_reloc_in     MY (swap_std_reloc_in)
00338 #define MY_swap_std_reloc_out    MY (swap_std_reloc_out)
00339 #define MY_get_section_contents  _bfd_generic_get_section_contents
00340 
00341 void MY_swap_std_reloc_in (bfd *, struct reloc_std_external *, arelent *, asymbol **, bfd_size_type);
00342 void MY_swap_std_reloc_out (bfd *, arelent *, struct reloc_std_external *);
00343 
00344 #include "aoutx.h"
00345 
00346 void
00347 MY_swap_std_reloc_in (bfd *abfd,
00348                     struct reloc_std_external *bytes,
00349                     arelent *cache_ptr,
00350                     asymbol **symbols,
00351                     bfd_size_type symcount ATTRIBUTE_UNUSED)
00352 {
00353   int r_index;
00354   int r_extern;
00355   int r_pcrel;
00356   struct aoutdata *su = &(abfd->tdata.aout_data->a);
00357 
00358   cache_ptr->address = H_GET_32 (abfd, bytes->r_address);
00359 
00360   cache_ptr->howto = MY_reloc_howto (abfd, bytes, r_index, r_extern, r_pcrel);
00361 
00362   MOVE_ADDRESS (0);
00363 }
00364 
00365 void
00366 MY_swap_std_reloc_out (bfd *abfd,
00367                      arelent *g,
00368                      struct reloc_std_external *natptr)
00369 {
00370   int r_index;
00371   asymbol *sym = *(g->sym_ptr_ptr);
00372   int r_extern;
00373   int r_length;
00374   int r_pcrel;
00375   int r_neg = 0;     /* Negative relocs use the BASEREL bit.  */
00376   asection *output_section = sym->section->output_section;
00377 
00378   PUT_WORD (abfd, g->address, natptr->r_address);
00379 
00380   r_length = g->howto->size ;   /* Size as a power of two.  */
00381   if (r_length < 0)
00382     {
00383       r_length = -r_length;
00384       r_neg = 1;
00385     }
00386 
00387   r_pcrel  = (int) g->howto->pc_relative; /* Relative to PC?  */
00388 
00389   /* For RISC iX, in pc-relative relocs the r_pcrel bit means that the
00390      relocation has been done already (Only for the 26-bit one I think).  */
00391   if (g->howto->type == 3)
00392     {
00393       r_length = 3;
00394       r_pcrel = 0;
00395     }
00396   else if (g->howto->type == 7)
00397     {
00398       r_length = 3;
00399       r_pcrel = 1;
00400     }
00401 
00402   /* Name was clobbered by aout_write_syms to be symbol index.  */
00403 
00404   /* If this relocation is relative to a symbol then set the
00405      r_index to the symbols index, and the r_extern bit.
00406 
00407      Absolute symbols can come in in two ways, either as an offset
00408      from the abs section, or as a symbol which has an abs value.
00409      check for that here.  */
00410 
00411   if (bfd_is_com_section (output_section)
00412       || output_section == &bfd_abs_section
00413       || output_section == &bfd_und_section)
00414     {
00415       if (bfd_abs_section.symbol == sym)
00416        {
00417          /* Whoops, looked like an abs symbol, but is really an offset
00418             from the abs section.  */
00419          r_index = 0;
00420          r_extern = 0;
00421        }
00422       else
00423        {
00424          /* Fill in symbol.  */
00425          r_extern = 1;
00426          r_index = (*(g->sym_ptr_ptr))->KEEPIT;
00427        }
00428     }
00429   else
00430     {
00431       /* Just an ordinary section.  */
00432       r_extern = 0;
00433       r_index  = output_section->target_index;
00434     }
00435 
00436   /* Now the fun stuff.  */
00437   if (bfd_header_big_endian (abfd))
00438     {
00439       natptr->r_index[0] = r_index >> 16;
00440       natptr->r_index[1] = r_index >> 8;
00441       natptr->r_index[2] = r_index;
00442       natptr->r_type[0] =
00443        (  (r_extern ?   RELOC_STD_BITS_EXTERN_BIG: 0)
00444         | (r_pcrel  ?   RELOC_STD_BITS_PCREL_BIG: 0)
00445         | (r_neg    ?   RELOC_ARM_BITS_NEG_BIG: 0)
00446         | (r_length <<  RELOC_STD_BITS_LENGTH_SH_BIG));
00447     }
00448   else
00449     {
00450       natptr->r_index[2] = r_index >> 16;
00451       natptr->r_index[1] = r_index >> 8;
00452       natptr->r_index[0] = r_index;
00453       natptr->r_type[0] =
00454        (  (r_extern ?   RELOC_STD_BITS_EXTERN_LITTLE: 0)
00455         | (r_pcrel  ?   RELOC_STD_BITS_PCREL_LITTLE: 0)
00456         | (r_neg    ?   RELOC_ARM_BITS_NEG_LITTLE: 0)
00457         | (r_length <<  RELOC_STD_BITS_LENGTH_SH_LITTLE));
00458     }
00459 }
00460 
00461 #define MY_BFD_TARGET
00462 
00463 #include "aout-target.h"
00464 
00465 extern const bfd_target aout_arm_big_vec;
00466 
00467 const bfd_target aout_arm_little_vec =
00468 {
00469   "a.out-arm-little",           /* Name.  */
00470   bfd_target_aout_flavour,
00471   BFD_ENDIAN_LITTLE,            /* Target byte order (little).  */
00472   BFD_ENDIAN_LITTLE,            /* Target headers byte order (little).  */
00473   (HAS_RELOC | EXEC_P |         /* Object flags.  */
00474    HAS_LINENO | HAS_DEBUG |
00475    HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT | D_PAGED),
00476   (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_CODE | SEC_DATA),
00477   MY_symbol_leading_char,
00478   AR_PAD_CHAR,                  /* AR_pad_char.  */
00479   15,                           /* AR_max_namelen.  */
00480   bfd_getl64, bfd_getl_signed_64, bfd_putl64,
00481   bfd_getl32, bfd_getl_signed_32, bfd_putl32,
00482   bfd_getl16, bfd_getl_signed_16, bfd_putl16,    /* Data.  */
00483   bfd_getl64, bfd_getl_signed_64, bfd_putl64,
00484   bfd_getl32, bfd_getl_signed_32, bfd_putl32,
00485   bfd_getl16, bfd_getl_signed_16, bfd_putl16,    /* Headers.  */
00486   {_bfd_dummy_target, MY_object_p,        /* bfd_check_format.  */
00487    bfd_generic_archive_p, MY_core_file_p},
00488   {bfd_false, MY_mkobject,                /* bfd_set_format.  */
00489    _bfd_generic_mkarchive, bfd_false},
00490   {bfd_false, MY_write_object_contents,          /* bfd_write_contents.  */
00491    _bfd_write_archive_contents, bfd_false},
00492 
00493   BFD_JUMP_TABLE_GENERIC (MY),
00494   BFD_JUMP_TABLE_COPY (MY),
00495   BFD_JUMP_TABLE_CORE (MY),
00496   BFD_JUMP_TABLE_ARCHIVE (MY),
00497   BFD_JUMP_TABLE_SYMBOLS (MY),
00498   BFD_JUMP_TABLE_RELOCS (MY),
00499   BFD_JUMP_TABLE_WRITE (MY),
00500   BFD_JUMP_TABLE_LINK (MY),
00501   BFD_JUMP_TABLE_DYNAMIC (MY),
00502 
00503   & aout_arm_big_vec,
00504 
00505   (void *) MY_backend_data,
00506 };
00507 
00508 const bfd_target aout_arm_big_vec =
00509 {
00510   "a.out-arm-big",              /* Name.  */
00511   bfd_target_aout_flavour,
00512   BFD_ENDIAN_BIG,               /* Target byte order (big).  */
00513   BFD_ENDIAN_BIG,               /* Target headers byte order (big).  */
00514   (HAS_RELOC | EXEC_P |         /* Object flags.  */
00515    HAS_LINENO | HAS_DEBUG |
00516    HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT | D_PAGED),
00517   (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_CODE | SEC_DATA),
00518   MY_symbol_leading_char,
00519   AR_PAD_CHAR,                            /* AR_pad_char.  */
00520   15,                                     /* AR_max_namelen.  */
00521   bfd_getb64, bfd_getb_signed_64, bfd_putb64,
00522   bfd_getb32, bfd_getb_signed_32, bfd_putb32,
00523   bfd_getb16, bfd_getb_signed_16, bfd_putb16,    /* Data.  */
00524   bfd_getb64, bfd_getb_signed_64, bfd_putb64,
00525   bfd_getb32, bfd_getb_signed_32, bfd_putb32,
00526   bfd_getb16, bfd_getb_signed_16, bfd_putb16,    /* Headers.  */
00527   {_bfd_dummy_target, MY_object_p,        /* bfd_check_format.  */
00528    bfd_generic_archive_p, MY_core_file_p},
00529   {bfd_false, MY_mkobject,                /* bfd_set_format.  */
00530    _bfd_generic_mkarchive, bfd_false},
00531   {bfd_false, MY_write_object_contents,          /* bfd_write_contents.  */
00532    _bfd_write_archive_contents, bfd_false},
00533 
00534   BFD_JUMP_TABLE_GENERIC (MY),
00535   BFD_JUMP_TABLE_COPY (MY),
00536   BFD_JUMP_TABLE_CORE (MY),
00537   BFD_JUMP_TABLE_ARCHIVE (MY),
00538   BFD_JUMP_TABLE_SYMBOLS (MY),
00539   BFD_JUMP_TABLE_RELOCS (MY),
00540   BFD_JUMP_TABLE_WRITE (MY),
00541   BFD_JUMP_TABLE_LINK (MY),
00542   BFD_JUMP_TABLE_DYNAMIC (MY),
00543 
00544   & aout_arm_little_vec,
00545 
00546   (void *) MY_backend_data,
00547 };