1 /* BFD back-end for rs6000 support
2 Copyright (C) 1990-2019 Free Software Foundation, Inc.
3 Written by Mimi Phuong-Thao Vo of IBM
4 and John Gilmore of Cygnus Support.
6 This file is part of BFD, the Binary File Descriptor library.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21 MA 02110-1301, USA. */
27 /* The RS/6000 architecture is compatible with the PowerPC common
30 static const bfd_arch_info_type *
31 rs6000_compatible (const bfd_arch_info_type *a,
32 const bfd_arch_info_type *b)
34 BFD_ASSERT (a->arch == bfd_arch_rs6000);
40 return bfd_default_compatible (a, b);
41 case bfd_arch_powerpc:
42 if (a->mach == bfd_mach_rs6k)
49 static const bfd_arch_info_type arch_info_struct[] =
52 32, /* 32 bits in a word */
53 32, /* 32 bits in an address */
54 8, /* 8 bits in a byte */
60 FALSE, /* not the default */
63 bfd_arch_default_fill,
67 32, /* 32 bits in a word */
68 32, /* 32 bits in an address */
69 8, /* 8 bits in a byte */
75 FALSE, /* not the default */
78 bfd_arch_default_fill,
82 32, /* 32 bits in a word */
83 32, /* 32 bits in an address */
84 8, /* 8 bits in a byte */
90 FALSE, /* not the default */
93 bfd_arch_default_fill,
98 const bfd_arch_info_type bfd_rs6000_arch =
100 32, /* 32 bits in a word */
101 32, /* 32 bits in an address */
102 8, /* 8 bits in a byte */
104 bfd_mach_rs6k, /* POWER common architecture */
108 TRUE, /* the default */
111 bfd_arch_default_fill,