Back to index

cell-binutils  2.17cvs20070401
cpu-score.c
Go to the documentation of this file.
00001 /* BFD support for the score processor
00002    Copyright 2006 Free Software Foundation, Inc.   
00003    Contributed by
00004    Mei Ligang (ligang@sunnorth.com.cn)
00005    Pei-Lin Tsai (pltsai@sunplus.com)  
00006 
00007    This file is part of BFD, the Binary File Descriptor library.
00008 
00009    This program is free software; you can redistribute it and/or modify
00010    it under the terms of the GNU General Public License as published by
00011    the Free Software Foundation; either version 2 of the License, or
00012    (at your option) any later version.
00013 
00014    This program is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017    GNU General Public License for more details.
00018 
00019    You should have received a copy of the GNU General Public License
00020    along with this program; if not, write to the Free Software
00021    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00022 
00023 #include "bfd.h"
00024 #include "sysdep.h"
00025 #include "libbfd.h"
00026 
00027 const bfd_arch_info_type
00028 bfd_score_arch =
00029 {
00030   32,                       /* There's 32 bits_per_word.  */
00031   32,                       /* There's 32 bits_per_address.  */
00032   8,                        /* There's 8 bits_per_byte.  */
00033   bfd_arch_score,           /* One of enum bfd_architecture, defined
00034                                in archures.c and provided in
00035                                generated header files.  */
00036   0,                        /* Only 1 machine, but #255 for
00037                                historical reasons.  */
00038   "score",                  /* The arch_name.  */
00039   "score",                  /* The printable name is the same.  */
00040   4,                        /* Section alignment power; each section
00041                                is aligned to (only) 2^4 bytes.  */
00042   TRUE,                            /* This is the default "machine", since
00043                                there's only one.  */
00044   bfd_default_compatible,   /* A default function for testing
00045                                "machine" compatibility of two
00046                                bfd_arch_info_type.  */
00047   bfd_default_scan,         /* Check if an bfd_arch_info_type is a
00048                                match.  */
00049   NULL                      /* Pointer to next bfd_arch_info_type in
00050                                the same family.  */
00051 };