133965Sjdp/* BFD support for the Intel 386 architecture. 2218822Sdim Copyright 1992, 1994, 1995, 1996, 1998, 2000, 2001, 2002, 2004, 2007 378828Sobrien Free Software Foundation, Inc. 433965Sjdp 533965SjdpThis file is part of BFD, the Binary File Descriptor library. 633965Sjdp 733965SjdpThis program is free software; you can redistribute it and/or modify 833965Sjdpit under the terms of the GNU General Public License as published by 933965Sjdpthe Free Software Foundation; either version 2 of the License, or 1033965Sjdp(at your option) any later version. 1133965Sjdp 1233965SjdpThis program is distributed in the hope that it will be useful, 1333965Sjdpbut WITHOUT ANY WARRANTY; without even the implied warranty of 1433965SjdpMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1533965SjdpGNU General Public License for more details. 1633965Sjdp 1733965SjdpYou should have received a copy of the GNU General Public License 1833965Sjdpalong with this program; if not, write to the Free Software 19218822SdimFoundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 2033965Sjdp 21218822Sdim#include "sysdep.h" 2233965Sjdp#include "bfd.h" 2333965Sjdp#include "libbfd.h" 2433965Sjdp 25218822Sdimconst bfd_arch_info_type bfd_x86_64_arch_intel_syntax = 26218822Sdim{ 27218822Sdim 64, /* 64 bits in a word */ 28218822Sdim 64, /* 64 bits in an address */ 29218822Sdim 8, /* 8 bits in a byte */ 30218822Sdim bfd_arch_i386, 31218822Sdim bfd_mach_x86_64_intel_syntax, 32218822Sdim "i386:intel", 33218822Sdim "i386:x86-64:intel", 34218822Sdim 3, 35218822Sdim FALSE, 36218822Sdim bfd_default_compatible, 37218822Sdim bfd_default_scan, 38218822Sdim 0 39218822Sdim}; 40218822Sdim 4160484Sobrienconst bfd_arch_info_type bfd_i386_arch_intel_syntax = 4260484Sobrien{ 4360484Sobrien 32, /* 32 bits in a word */ 4460484Sobrien 32, /* 32 bits in an address */ 4560484Sobrien 8, /* 8 bits in a byte */ 4660484Sobrien bfd_arch_i386, 4760484Sobrien bfd_mach_i386_i386_intel_syntax, 4860484Sobrien "i386:intel", 4960484Sobrien "i386:intel", 5060484Sobrien 3, 51130561Sobrien TRUE, 5277298Sobrien bfd_default_compatible, 53218822Sdim bfd_default_scan, 54218822Sdim &bfd_x86_64_arch_intel_syntax 5560484Sobrien}; 56218822Sdim 57218822Sdimconst bfd_arch_info_type i8086_arch = 5877298Sobrien{ 5933965Sjdp 32, /* 32 bits in a word */ 6033965Sjdp 32, /* 32 bits in an address (well, not really) */ 6133965Sjdp 8, /* 8 bits in a byte */ 6233965Sjdp bfd_arch_i386, 6333965Sjdp bfd_mach_i386_i8086, 6433965Sjdp "i8086", 6533965Sjdp "i8086", 6633965Sjdp 3, 67130561Sobrien FALSE, 6877298Sobrien bfd_default_compatible, 69218822Sdim bfd_default_scan, 70218822Sdim &bfd_i386_arch_intel_syntax 7133965Sjdp}; 7233965Sjdp 7377298Sobrienconst bfd_arch_info_type bfd_x86_64_arch = 7477298Sobrien{ 7577298Sobrien 64, /* 32 bits in a word */ 7677298Sobrien 64, /* 32 bits in an address */ 7777298Sobrien 8, /* 8 bits in a byte */ 7877298Sobrien bfd_arch_i386, 7977298Sobrien bfd_mach_x86_64, 8092828Sobrien "i386", 8192828Sobrien "i386:x86-64", 8277298Sobrien 3, 83218822Sdim FALSE, 8477298Sobrien bfd_default_compatible, 85218822Sdim bfd_default_scan, 86218822Sdim &i8086_arch 8777298Sobrien}; 8877298Sobrien 8933965Sjdpconst bfd_arch_info_type bfd_i386_arch = 9033965Sjdp{ 9133965Sjdp 32, /* 32 bits in a word */ 9233965Sjdp 32, /* 32 bits in an address */ 9333965Sjdp 8, /* 8 bits in a byte */ 9433965Sjdp bfd_arch_i386, 9533965Sjdp bfd_mach_i386_i386, 9633965Sjdp "i386", 9733965Sjdp "i386", 9833965Sjdp 3, 99130561Sobrien TRUE, 10077298Sobrien bfd_default_compatible, 101218822Sdim bfd_default_scan, 10277298Sobrien &bfd_x86_64_arch 10333965Sjdp}; 104