1 /* BFD back-end for rs6000 support
2 Copyright 1990, 1991, 1993, 1995, 2000, 2002, 2003, 2005, 2007
3 Free Software Foundation, Inc.
4 Written by Mimi Phuong-Thao Vo of IBM
5 and John Gilmore of Cygnus Support.
7 This file is part of BFD, the Binary File Descriptor library.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
22 MA 02110-1301, USA. */
28 /* The RS/6000 architecture is compatible with the PowerPC common
31 static const bfd_arch_info_type
*rs6000_compatible
32 PARAMS ((const bfd_arch_info_type
*, const bfd_arch_info_type
*));
34 static const bfd_arch_info_type
*
35 rs6000_compatible (a
,b
)
36 const bfd_arch_info_type
*a
;
37 const bfd_arch_info_type
*b
;
39 BFD_ASSERT (a
->arch
== bfd_arch_rs6000
);
45 return bfd_default_compatible (a
, b
);
46 case bfd_arch_powerpc
:
47 if (a
->mach
== bfd_mach_rs6k
)
54 static const bfd_arch_info_type arch_info_struct
[] =
57 32, /* 32 bits in a word */
58 32, /* 32 bits in an address */
59 8, /* 8 bits in a byte */
65 FALSE
, /* not the default */
71 32, /* 32 bits in a word */
72 32, /* 32 bits in an address */
73 8, /* 8 bits in a byte */
79 FALSE
, /* not the default */
85 32, /* 32 bits in a word */
86 32, /* 32 bits in an address */
87 8, /* 8 bits in a byte */
93 FALSE
, /* not the default */
100 const bfd_arch_info_type bfd_rs6000_arch
=
102 32, /* 32 bits in a word */
103 32, /* 32 bits in an address */
104 8, /* 8 bits in a byte */
106 bfd_mach_rs6k
, /* POWER common architecture */
110 TRUE
, /* the default */