aboutsummaryrefslogtreecommitdiff
path: root/bfd/cpu-i386.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-11-30 19:16:54 +0000
committerNick Clifton <nickc@redhat.com>2000-11-30 19:16:54 +0000
commit8d88c4ca53bf3be481587f21611576ff82f38ed5 (patch)
treef88d76c0bcfe6592dd0e356e8d6196fc1c084d49 /bfd/cpu-i386.c
parentabf1d184bdd1ddb2e6c4d9d95e3807cbe9fd5c26 (diff)
downloadgdb-8d88c4ca53bf3be481587f21611576ff82f38ed5.zip
gdb-8d88c4ca53bf3be481587f21611576ff82f38ed5.tar.gz
gdb-8d88c4ca53bf3be481587f21611576ff82f38ed5.tar.bz2
Add support for x86_64-*-linux-gnu* target
Diffstat (limited to 'bfd/cpu-i386.c')
-rw-r--r--bfd/cpu-i386.c35
1 files changed, 33 insertions, 2 deletions
diff --git a/bfd/cpu-i386.c b/bfd/cpu-i386.c
index a881470..4fbf523 100644
--- a/bfd/cpu-i386.c
+++ b/bfd/cpu-i386.c
@@ -36,6 +36,21 @@ const bfd_arch_info_type bfd_i386_arch_intel_syntax =
bfd_default_scan ,
0,
};
+const bfd_arch_info_type bfd_x86_64_arch_intel_syntax =
+{
+ 64, /* 64 bits in a word */
+ 64, /* 64 bits in an address */
+ 8, /* 8 bits in a byte */
+ bfd_arch_i386,
+ bfd_mach_x86_64_intel_syntax,
+ "x86_64:intel",
+ "x86_64:intel",
+ 3,
+ true,
+ bfd_default_compatible,
+ bfd_default_scan ,
+ &bfd_i386_arch_intel_syntax,
+};
static const bfd_arch_info_type i8086_arch =
{
32, /* 32 bits in a word */
@@ -49,7 +64,23 @@ static const bfd_arch_info_type i8086_arch =
false,
bfd_default_compatible,
bfd_default_scan ,
- &bfd_i386_arch_intel_syntax,
+ &bfd_x86_64_arch_intel_syntax,
+};
+
+const bfd_arch_info_type bfd_x86_64_arch =
+{
+ 64, /* 32 bits in a word */
+ 64, /* 32 bits in an address */
+ 8, /* 8 bits in a byte */
+ bfd_arch_i386,
+ bfd_mach_x86_64,
+ "x86_64",
+ "x86_64",
+ 3,
+ true,
+ bfd_default_compatible,
+ bfd_default_scan ,
+ &i8086_arch,
};
const bfd_arch_info_type bfd_i386_arch =
@@ -65,6 +96,6 @@ const bfd_arch_info_type bfd_i386_arch =
true,
bfd_default_compatible,
bfd_default_scan ,
- &i8086_arch,
+ &bfd_x86_64_arch
};