Back to index

cell-binutils  2.17cvs20070401
cpu-i386.c
Go to the documentation of this file.
00001 /* BFD support for the Intel 386 architecture.
00002    Copyright 1992, 1994, 1995, 1996, 1998, 2000, 2001, 2002, 2004
00003    Free Software Foundation, Inc.
00004 
00005 This file is part of BFD, the Binary File Descriptor library.
00006 
00007 This program is free software; you can redistribute it and/or modify
00008 it under the terms of the GNU General Public License as published by
00009 the Free Software Foundation; either version 2 of the License, or
00010 (at your option) any later version.
00011 
00012 This program is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this program; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 #include "bfd.h"
00022 #include "sysdep.h"
00023 #include "libbfd.h"
00024 
00025 const bfd_arch_info_type bfd_x86_64_arch_intel_syntax =
00026 {
00027   64, /* 64 bits in a word */
00028   64, /* 64 bits in an address */
00029   8,  /* 8 bits in a byte */
00030   bfd_arch_i386,
00031   bfd_mach_x86_64_intel_syntax,
00032   "i386:intel",
00033   "i386:x86-64:intel",
00034   3,
00035   FALSE,
00036   bfd_default_compatible,
00037   bfd_default_scan,
00038   0
00039 };
00040 
00041 const bfd_arch_info_type bfd_i386_arch_intel_syntax =
00042 {
00043   32,  /* 32 bits in a word */
00044   32,  /* 32 bits in an address */
00045   8,   /* 8 bits in a byte */
00046   bfd_arch_i386,
00047   bfd_mach_i386_i386_intel_syntax,
00048   "i386:intel",
00049   "i386:intel",
00050   3,
00051   TRUE,
00052   bfd_default_compatible,
00053   bfd_default_scan,
00054   &bfd_x86_64_arch_intel_syntax
00055 };
00056 
00057 const bfd_arch_info_type i8086_arch =
00058 {
00059   32,  /* 32 bits in a word */
00060   32,  /* 32 bits in an address (well, not really) */
00061   8,   /* 8 bits in a byte */
00062   bfd_arch_i386,
00063   bfd_mach_i386_i8086,
00064   "i8086",
00065   "i8086",
00066   3,
00067   FALSE,
00068   bfd_default_compatible,
00069   bfd_default_scan,
00070   &bfd_i386_arch_intel_syntax
00071 };
00072 
00073 const bfd_arch_info_type bfd_x86_64_arch =
00074 {
00075   64, /* 32 bits in a word */
00076   64, /* 32 bits in an address */
00077   8,  /* 8 bits in a byte */
00078   bfd_arch_i386,
00079   bfd_mach_x86_64,
00080   "i386",
00081   "i386:x86-64",
00082   3,
00083   FALSE,
00084   bfd_default_compatible,
00085   bfd_default_scan,
00086   &i8086_arch
00087 };
00088 
00089 const bfd_arch_info_type bfd_i386_arch =
00090 {
00091   32,  /* 32 bits in a word */
00092   32,  /* 32 bits in an address */
00093   8,   /* 8 bits in a byte */
00094   bfd_arch_i386,
00095   bfd_mach_i386_i386,
00096   "i386",
00097   "i386",
00098   3,
00099   TRUE,
00100   bfd_default_compatible,
00101   bfd_default_scan,
00102   &bfd_x86_64_arch
00103 };