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/cpu-z8k.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* BFD library support routines for the Z800n architecture.
    2    Copyright 1992, 1993, 1994, 2000 Free Software Foundation, Inc.
     2   Copyright 1992, 1993, 1994, 2000, 2001, 2002
     3   Free Software Foundation, Inc.
    34   Hacked by Steve Chamberlain of Cygnus Support.
    45
     
    2223#include "sysdep.h"
    2324#include "libbfd.h"
     25
     26static const bfd_arch_info_type *compatible
     27  PARAMS ((const bfd_arch_info_type *, const bfd_arch_info_type *));
    2428
    2529#if 0                           /* not used currently */
     
    118122
    119123static reloc_howto_type howto_16
    120 = NEWHOWTO (howto16_callback, "abs16", 1, false, false);
     124= NEWHOWTO (howto16_callback, "abs16", 1, FALSE, FALSE);
    121125static reloc_howto_type howto_8
    122 = NEWHOWTO (howto8_callback, "abs8", 0, false, false);
     126= NEWHOWTO (howto8_callback, "abs8", 0, FALSE, FALSE);
    123127
    124128static reloc_howto_type howto_8_FFnn
    125 = NEWHOWTO (howto8_FFnn_callback, "ff00+abs8", 0, false, false);
     129= NEWHOWTO (howto8_FFnn_callback, "ff00+abs8", 0, FALSE, FALSE);
    126130
    127131static reloc_howto_type howto_8_pcrel
    128 = NEWHOWTO (howto8_pcrel_callback, "pcrel8", 0, false, true);
     132= NEWHOWTO (howto8_pcrel_callback, "pcrel8", 0, FALSE, TRUE);
    129133
    130134static reloc_howto_type *
     
    149153#endif
    150154
    151 int bfd_default_scan_num_mach ();
    152 
    153 static boolean
    154 scan_mach (info, string)
    155      const struct bfd_arch_info *info;
    156      const char *string;
    157 {
    158   if (strcmp (string, "z8001") == 0 || strcmp (string, "z8k") == 0)
    159     {
    160       return bfd_mach_z8001 == info->mach;
    161     }
    162   if (strcmp (string, "z8002") == 0)
    163     {
    164       return bfd_mach_z8002 == info->mach;
    165     }
    166   return false;
    167 }
    168 
    169155/* This routine is provided two arch_infos and returns whether
    170156   they'd be compatible */
     
    182168static const bfd_arch_info_type arch_info_struct[] =
    183169{
    184   {32, 32, 8, bfd_arch_z8k, bfd_mach_z8001, "z8k", "z8001", 1, false, compatible, scan_mach, 0,},
     170  { 32, 16, 8, bfd_arch_z8k, bfd_mach_z8002, "z8k", "z8002", 1, FALSE,
     171    compatible, bfd_default_scan, 0 }
    185172};
    186173
    187174const bfd_arch_info_type bfd_z8k_arch =
    188175{
    189   32, 16, 8, bfd_arch_z8k, bfd_mach_z8002, "z8k", "z8002", 1, true, compatible, scan_mach, &arch_info_struct[0],
     176  32, 32, 8, bfd_arch_z8k, bfd_mach_z8001, "z8k", "z8001", 1, TRUE,
     177  compatible, bfd_default_scan, &arch_info_struct[0]
    190178};
Note: See TracChangeset for help on using the changeset viewer.