Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/bfd/aout-cris.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* BFD backend for CRIS a.out binaries.
    2    Copyright 2000 Free Software Foundation, Inc.
     2   Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    33   Contributed by Axis Communications AB.
    44   Written by Hans-Peter Nilsson.
     
    2424
    2525#define N_HEADER_IN_TEXT(x) 0
    26 #define BYTES_IN_WORD 4
    2726#define N_TXTOFF(x) 32
    2827#define ENTRY_CAN_BE_ZERO
     
    3837   symbol info, and luckily there's no pressing need for correctness for
    3938   those vma:s at this time.  */
    40 #define N_TXTADDR(x) ((x).a_entry & ~0xffff)
     39#define N_TXTADDR(x) ((x).a_entry & ~(bfd_vma) 0xffff)
    4140
    4241/* If you change this to 4, you can not link to an address N*4+2.  */
     
    6564#define DEFAULT_ARCH bfd_arch_cris
    6665
    67 /* ??? Spacing might be essential for the parameters in this macro.
    68    Do Not Change.  */
    69 #define MY(OP) CAT (cris_aout_,OP)
    70 #define NAME(x,y) CAT3(cris_aout,_32_,y)
     66/* Do not "beautify" the CONCAT* macro args.  Traditional C will not
     67   remove whitespace added here, and thus will fail to concatenate
     68   the tokens.  */
     69#define MY(OP) CONCAT2 (cris_aout_,OP)
     70#define NAME(x, y) CONCAT3 (cris_aout,_32_,y)
    7171
    7272#include "bfd.h"
     
    7676
    7777#define MY_write_object_contents MY(write_object_contents)
    78 static boolean MY(write_object_contents) PARAMS ((bfd *));
     78static bfd_boolean MY(write_object_contents) PARAMS ((bfd *));
    7979
    8080/* Forward this, so we can use a pointer to it in PARAMS.  */
     
    9292
    9393#define MY_set_sizes MY(set_sizes)
    94 static boolean MY(set_sizes) PARAMS ((bfd *));
     94static bfd_boolean MY(set_sizes) PARAMS ((bfd *));
    9595
    9696/* To set back reloc_size to ext, we make MY(set_sizes) be called
     
    113113#endif
    114114
     115#define MACHTYPE_OK(mtype) ((mtype) == M_CRIS)
     116
    115117/* Include generic functions (some are overridden above).  */
    116118#include "aout32.c"
     
    119121/* We need our own version to set header flags.  */
    120122
    121 static boolean
     123static bfd_boolean
    122124MY(write_object_contents) (abfd)
    123125     bfd *abfd;
     
    141143  WRITE_HEADERS (abfd, execp);
    142144
    143   return true;
     145  return TRUE;
    144146}
    145147
     
    157159  int r_extern;
    158160  unsigned int r_type;
    159   unsigned int r_addend;
     161  bfd_vma r_addend;
    160162  asymbol *sym = *(g->sym_ptr_ptr);
    161163  asection *output_section = sym->section->output_section;
     
    248250    {
    249251      (*_bfd_error_handler) (_("%s: Invalid relocation type imported: %d"),
    250                              bfd_get_filename (abfd), r_type);
     252                             bfd_archive_filename (abfd), r_type);
    251253
    252254      bfd_set_error(bfd_error_wrong_format);
     
    259261      (*_bfd_error_handler)
    260262        (_("%s: Bad relocation record imported: %d"),
    261          bfd_get_filename (abfd), r_index);
     263         bfd_archive_filename (abfd), r_index);
    262264
    263265      bfd_set_error (bfd_error_wrong_format);
     
    277279   NAME (aout, set_arch_mach) in aoutx.  */
    278280
    279 static boolean
     281static bfd_boolean
    280282MY(set_sizes) (abfd)
    281283     bfd *abfd;
     
    295297  obj_reloc_entry_size (abfd) = RELOC_EXT_SIZE;
    296298
    297   return true;
     299  return TRUE;
    298300}
    299301
Note: See TracChangeset for help on using the changeset viewer.