1 /* BFD back-end for rs6000 support
2 Copyright 1990, 1991, 1993, 1995, 2000, 2002, 2003
3 Free Software Foundation, Inc.
4 FIXME: Can someone provide a transliteration of this name into ASCII?
5 Using the following chars caused a compiler warning on HIUX (so I replaced
6 them with octal escapes), and isn't useful without an understanding of what
8 Written by Mimi Ph\373\364ng-Th\345o V\365 of IBM
9 and John Gilmore of Cygnus Support.
11 This file is part of BFD, the Binary File Descriptor library.
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2 of the License, or
16 (at your option) any later version.
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
31 /* The RS/6000 architecture is compatible with the PowerPC common
34 static const bfd_arch_info_type *rs6000_compatible
35 PARAMS ((const bfd_arch_info_type *, const bfd_arch_info_type *));
37 static const bfd_arch_info_type *
38 rs6000_compatible (a,b)
39 const bfd_arch_info_type *a;
40 const bfd_arch_info_type *b;
42 BFD_ASSERT (a->arch == bfd_arch_rs6000);
48 return bfd_default_compatible (a, b);
49 case bfd_arch_powerpc:
50 if (a->mach == bfd_mach_rs6k)
57 static const bfd_arch_info_type arch_info_struct[] =
60 32, /* 32 bits in a word */
61 32, /* 32 bits in an address */
62 8, /* 8 bits in a byte */
68 FALSE, /* not the default */
74 32, /* 32 bits in a word */
75 32, /* 32 bits in an address */
76 8, /* 8 bits in a byte */
82 FALSE, /* not the default */
88 32, /* 32 bits in a word */
89 32, /* 32 bits in an address */
90 8, /* 8 bits in a byte */
96 FALSE, /* not the default */
103 const bfd_arch_info_type bfd_rs6000_arch =
105 32, /* 32 bits in a word */
106 32, /* 32 bits in an address */
107 8, /* 8 bits in a byte */
109 bfd_mach_rs6k, /* POWER common architecture */
113 TRUE, /* the default */