1 |
/* BFD support for the Intel 386 architecture. |
/* BFD support for the Intel 386 architecture. |
2 |
Copyright 1992, 1994, 1995, 1996, 1998, 2000, 2001, 2002 |
Copyright 1992, 1994, 1995, 1996, 1998, 2000, 2001, 2002, 2004 |
3 |
Free Software Foundation, Inc. |
Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of BFD, the Binary File Descriptor library. |
This file is part of BFD, the Binary File Descriptor library. |
22 |
#include "sysdep.h" |
#include "sysdep.h" |
23 |
#include "libbfd.h" |
#include "libbfd.h" |
24 |
|
|
|
const bfd_arch_info_type bfd_i386_arch_intel_syntax = |
|
|
{ |
|
|
32, /* 32 bits in a word */ |
|
|
32, /* 32 bits in an address */ |
|
|
8, /* 8 bits in a byte */ |
|
|
bfd_arch_i386, |
|
|
bfd_mach_i386_i386_intel_syntax, |
|
|
"i386:intel", |
|
|
"i386:intel", |
|
|
3, |
|
|
true, |
|
|
bfd_default_compatible, |
|
|
bfd_default_scan , |
|
|
0, |
|
|
}; |
|
25 |
const bfd_arch_info_type bfd_x86_64_arch_intel_syntax = |
const bfd_arch_info_type bfd_x86_64_arch_intel_syntax = |
26 |
{ |
{ |
27 |
64, /* 64 bits in a word */ |
64, /* 64 bits in a word */ |
32 |
"i386:intel", |
"i386:intel", |
33 |
"i386:x86-64:intel", |
"i386:x86-64:intel", |
34 |
3, |
3, |
35 |
true, |
FALSE, |
36 |
|
bfd_default_compatible, |
37 |
|
bfd_default_scan, |
38 |
|
0 |
39 |
|
}; |
40 |
|
|
41 |
|
const bfd_arch_info_type bfd_i386_arch_intel_syntax = |
42 |
|
{ |
43 |
|
32, /* 32 bits in a word */ |
44 |
|
32, /* 32 bits in an address */ |
45 |
|
8, /* 8 bits in a byte */ |
46 |
|
bfd_arch_i386, |
47 |
|
bfd_mach_i386_i386_intel_syntax, |
48 |
|
"i386:intel", |
49 |
|
"i386:intel", |
50 |
|
3, |
51 |
|
TRUE, |
52 |
bfd_default_compatible, |
bfd_default_compatible, |
53 |
bfd_default_scan , |
bfd_default_scan, |
54 |
&bfd_i386_arch_intel_syntax, |
&bfd_x86_64_arch_intel_syntax |
55 |
}; |
}; |
56 |
static const bfd_arch_info_type i8086_arch = |
|
57 |
|
const bfd_arch_info_type i8086_arch = |
58 |
{ |
{ |
59 |
32, /* 32 bits in a word */ |
32, /* 32 bits in a word */ |
60 |
32, /* 32 bits in an address (well, not really) */ |
32, /* 32 bits in an address (well, not really) */ |
64 |
"i8086", |
"i8086", |
65 |
"i8086", |
"i8086", |
66 |
3, |
3, |
67 |
false, |
FALSE, |
68 |
bfd_default_compatible, |
bfd_default_compatible, |
69 |
bfd_default_scan , |
bfd_default_scan, |
70 |
&bfd_x86_64_arch_intel_syntax, |
&bfd_i386_arch_intel_syntax |
71 |
}; |
}; |
72 |
|
|
73 |
const bfd_arch_info_type bfd_x86_64_arch = |
const bfd_arch_info_type bfd_x86_64_arch = |
80 |
"i386", |
"i386", |
81 |
"i386:x86-64", |
"i386:x86-64", |
82 |
3, |
3, |
83 |
true, |
FALSE, |
84 |
bfd_default_compatible, |
bfd_default_compatible, |
85 |
bfd_default_scan , |
bfd_default_scan, |
86 |
&i8086_arch, |
&i8086_arch |
87 |
}; |
}; |
88 |
|
|
89 |
const bfd_arch_info_type bfd_i386_arch = |
const bfd_arch_info_type bfd_i386_arch = |
96 |
"i386", |
"i386", |
97 |
"i386", |
"i386", |
98 |
3, |
3, |
99 |
true, |
TRUE, |
100 |
bfd_default_compatible, |
bfd_default_compatible, |
101 |
bfd_default_scan , |
bfd_default_scan, |
102 |
&bfd_x86_64_arch |
&bfd_x86_64_arch |
103 |
}; |
}; |