]>
Commit | Line | Data |
---|---|---|
5bc513b4 DE |
1 | /* BFD support for the SPARC architecture. |
2 | Copyright (C) 1992, 1995, 1996 Free Software Foundation, Inc. | |
3 | ||
4 | This file is part of BFD, the Binary File Descriptor library. | |
5 | ||
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. | |
10 | ||
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. | |
15 | ||
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. */ | |
19 | ||
20 | #include "bfd.h" | |
21 | #include "sysdep.h" | |
22 | #include "libbfd.h" | |
23 | ||
24 | static const bfd_arch_info_type arch_info_struct[] = | |
25 | { | |
5bc513b4 | 26 | { |
e8bea13f DE |
27 | 64, /* bits in a word */ |
28 | 64, /* bits in an address */ | |
5bc513b4 DE |
29 | 8, /* bits in a byte */ |
30 | bfd_arch_sparc, | |
e8bea13f | 31 | bfd_mach_sparc_v9, |
5bc513b4 | 32 | "sparc", |
e8bea13f | 33 | "sparc:v9", |
5bc513b4 DE |
34 | 3, |
35 | false, | |
36 | bfd_default_compatible, | |
37 | bfd_default_scan, | |
38 | &arch_info_struct[1], | |
39 | }, | |
e8bea13f | 40 | /* start-sanitize-v8plus */ |
5bc513b4 DE |
41 | { |
42 | 32, /* bits in a word */ | |
43 | 32, /* bits in an address */ | |
44 | 8, /* bits in a byte */ | |
45 | bfd_arch_sparc, | |
e8bea13f | 46 | bfd_mach_sparc_v8plus, |
5bc513b4 | 47 | "sparc", |
e8bea13f | 48 | "sparc:v8plus", |
5bc513b4 DE |
49 | 3, |
50 | false, | |
51 | bfd_default_compatible, | |
52 | bfd_default_scan, | |
53 | &arch_info_struct[2], | |
54 | }, | |
5bc513b4 | 55 | { |
e8bea13f DE |
56 | 32, /* bits in a word */ |
57 | 32, /* bits in an address */ | |
5bc513b4 DE |
58 | 8, /* bits in a byte */ |
59 | bfd_arch_sparc, | |
e8bea13f | 60 | bfd_mach_sparc_v8plusa, |
5bc513b4 | 61 | "sparc", |
e8bea13f | 62 | "sparc:v8plusa", |
5bc513b4 DE |
63 | 3, |
64 | false, | |
65 | bfd_default_compatible, | |
66 | bfd_default_scan, | |
67 | &arch_info_struct[3], | |
68 | }, | |
e8bea13f | 69 | /* end-sanitize-v8plus */ |
5bc513b4 DE |
70 | { |
71 | 64, /* bits in a word */ | |
72 | 64, /* bits in an address */ | |
73 | 8, /* bits in a byte */ | |
74 | bfd_arch_sparc, | |
75 | bfd_mach_sparc_v9a, | |
76 | "sparc", | |
77 | "sparc:v9a", | |
78 | 3, | |
79 | false, | |
80 | bfd_default_compatible, | |
81 | bfd_default_scan, | |
82 | 0, | |
83 | } | |
84 | }; | |
85 | ||
86 | const bfd_arch_info_type bfd_sparc_arch = | |
87 | { | |
88 | 32, /* bits in a word */ | |
89 | 32, /* bits in an address */ | |
90 | 8, /* bits in a byte */ | |
91 | bfd_arch_sparc, | |
92 | bfd_mach_sparc, | |
93 | "sparc", | |
94 | "sparc", | |
95 | 3, | |
96 | true, /* the default */ | |
97 | bfd_default_compatible, | |
98 | bfd_default_scan, | |
99 | &arch_info_struct[0], | |
100 | }; |