1 /* BFD support for the SPARC architecture.
2 Copyright (C) 1992, 94, 95, 96, 1997 Free Software Foundation, Inc.
4 This file is part of BFD, the Binary File Descriptor library.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
24 /* Don't mix 32 bit and 64 bit files. */
26 static const bfd_arch_info_type *sparc_compatible
27 PARAMS ((const bfd_arch_info_type *, const bfd_arch_info_type *));
29 static const bfd_arch_info_type *
30 sparc_compatible (a, b)
31 const bfd_arch_info_type *a;
32 const bfd_arch_info_type *b;
34 if (a->bits_per_word != b->bits_per_word)
37 return bfd_default_compatible (a, b);
40 static const bfd_arch_info_type arch_info_struct[] =
43 32, /* bits in a word */
44 32, /* bits in an address */
45 8, /* bits in a byte */
47 bfd_mach_sparc_sparclet,
57 32, /* bits in a word */
58 32, /* bits in an address */
59 8, /* bits in a byte */
61 bfd_mach_sparc_sparclite,
71 32, /* bits in a word */
72 32, /* bits in an address */
73 8, /* bits in a byte */
75 bfd_mach_sparc_v8plus,
85 32, /* bits in a word */
86 32, /* bits in an address */
87 8, /* bits in a byte */
89 bfd_mach_sparc_v8plusa,
99 32, /* bits in a word */
100 32, /* bits in an address */
101 8, /* bits in a byte */
103 bfd_mach_sparc_sparclite_le,
105 "sparc:sparclite_le",
110 &arch_info_struct[5],
113 64, /* bits in a word */
114 64, /* bits in an address */
115 8, /* bits in a byte */
124 &arch_info_struct[6],
127 64, /* bits in a word */
128 64, /* bits in an address */
129 8, /* bits in a byte */
142 const bfd_arch_info_type bfd_sparc_arch =
144 32, /* bits in a word */
145 32, /* bits in an address */
146 8, /* bits in a byte */
152 true, /* the default */
155 &arch_info_struct[0],