• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* BFD support for the s390 processor.
2    Copyright (C) 2000-2014 Free Software Foundation, Inc.
3    Contributed by Carl B. Pedersen and Martin Schwidefsky.
4 
5    This file is part of BFD, the Binary File Descriptor library.
6 
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 3 of the License, or
10    (at your option) any later version.
11 
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16 
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
20    02110-1301, USA.  */
21 
22 #include "sysdep.h"
23 #include "bfd.h"
24 #include "libbfd.h"
25 
26 const bfd_arch_info_type bfd_s390_64_arch =
27 {
28     64,        /* bits in a word */
29     64,        /* bits in an address */
30     8, /* bits in a byte */
31     bfd_arch_s390,
32     bfd_mach_s390_64,
33     "s390",
34     "s390:64-bit",
35     3, /* section alignment power */
36 #if BFD_DEFAULT_TARGET_SIZE == 64
37     TRUE, /* the default */
38 #else
39     FALSE, /* the default */
40 #endif
41     bfd_default_compatible,
42     bfd_default_scan,
43     bfd_arch_default_fill,
44     NULL
45 };
46 
47 const bfd_arch_info_type bfd_s390_arch =
48 {
49     32,	/* bits in a word */
50     32,	/* bits in an address */
51     8,	/* bits in a byte */
52     bfd_arch_s390,
53     bfd_mach_s390_31,
54     "s390",
55     "s390:31-bit",
56     3, /* section alignment power */
57 #if BFD_DEFAULT_TARGET_SIZE == 64
58     FALSE, /* the default */
59 #else
60     TRUE, /* the default */
61 #endif
62     bfd_default_compatible,
63     bfd_default_scan,
64     bfd_arch_default_fill,
65     &bfd_s390_64_arch
66 };
67