aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.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/elf.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/elf.c')
-rw-r--r--bfd/elf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index f434fcf..2f81105 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -3306,6 +3306,9 @@ prep_headers (abfd)
i_ehdrp->e_machine = EM_S370;
break;
case bfd_arch_i386:
+ if (bfd_get_arch_size (abfd) == 64)
+ i_ehdrp->e_machine = EM_X86_64;
+ else
i_ehdrp->e_machine = EM_386;
break;
case bfd_arch_ia64: