1 /* BFD support for the SPARC architecture.
2 Copyright 1992, 1995, 1996, 1998, 2000 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 */
138 &arch_info_struct
[7],
141 32, /* bits in a word */
142 32, /* bits in an address */
143 8, /* bits in a byte */
145 bfd_mach_sparc_v8plusb
,
152 &arch_info_struct
[8],
155 64, /* bits in a word */
156 64, /* bits in an address */
157 8, /* bits in a byte */
170 const bfd_arch_info_type bfd_sparc_arch
=
172 32, /* bits in a word */
173 32, /* bits in an address */
174 8, /* bits in a byte */
180 true, /* the default */
183 &arch_info_struct
[0],