From 39a2a3eb35ceb8cad11677c221caca751c9838c7 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 1 Aug 2002 06:24:53 +0000 Subject: [PATCH] Enable x86-64 for Linux/i386 if 64bit BFD is selected. --- bfd/ChangeLog | 5 +++++ bfd/config.bfd | 1 + ld/ChangeLog | 5 +++++ ld/configure.tgt | 3 +++ 4 files changed, 14 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 51647a51e2..97f906527f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-07-31 H.J. Lu + + * config.bfd: Add x86-64 vector to Linux/i386 if 64bit BFD is + selected. + 2002-07-31 H.J. Lu * config.bfd: Add n32 vectors to 32bit Linux/mips if 64bit BFD diff --git a/bfd/config.bfd b/bfd/config.bfd index 1974a385d6..bfd26f1504 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -420,6 +420,7 @@ case "${targ}" in i[3456]86-*-linux-gnu*) targ_defvec=bfd_elf32_i386_vec targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec" + targ64_selvecs=bfd_elf64_x86_64_vec ;; #ifdef BFD64 x86_64-*-freebsd*) diff --git a/ld/ChangeLog b/ld/ChangeLog index 7ecca11c51..10237f17a1 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2002-07-31 H.J. Lu + + * configure.tgt: Enable x86-64 emulation for Linux/i386 if + 64bit BFD is selected. + 2002-07-31 H.J. Lu * configure.tgt: Enable 64bit emulations for 32bit Linux/mips diff --git a/ld/configure.tgt b/ld/configure.tgt index 6217f65f15..88e7eb1b3f 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -144,6 +144,9 @@ i[3456]86-*-linux*aout*) targ_emul=i386linux i[3456]86-*-linux*oldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;; i[3456]86-*-linux-gnu*) targ_emul=elf_i386 targ_extra_emuls=i386linux + if test x${want64} = xtrue; then + targ_extra_emuls="$targ_extra_emuls elf_x86_64" + fi tdir_i386linux=${targ_alias}aout ;; x86_64-*-linux-gnu*) targ_emul=elf_x86_64 -- 2.34.1