From aac7ae599a19c80cafb0eba4a52d2500aabcbaeb Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sun, 25 Dec 2022 20:20:58 -0500 Subject: [PATCH] Add support for x86_64-*-gnu-* targets to build x86_64 gnumach/hurd --- bfd/config.bfd | 5 +++++ ld/configure.tgt | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/bfd/config.bfd b/bfd/config.bfd index 0bc27fdce97..d1839a586eb 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -731,6 +731,11 @@ case "${targ}" in targ_selvecs=i386_elf32_vec want64=true ;; + x86_64-*-gnu*) + targ_defvec=x86_64_elf64_vec + targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec" + want64=true + ;; #endif i[3-7]86-*-lynxos*) targ_defvec=i386_elf32_vec diff --git a/ld/configure.tgt b/ld/configure.tgt index 5971866fb61..c2f3ede37ef 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -1058,6 +1058,11 @@ x86_64-*-mingw*) targ_emul=i386pep ; targ_extra_emuls=i386pe targ_extra_ofiles="deffilep.o pdb.o pep-dll.o pe-dll.o" ;; +x86_64-*-gnu*) targ_emul=elf_x86_64 + targ_extra_emuls="elf32_x86_64 elf_iamcu elf_i386" + targ_extra_libpath="elf_i386 elf32_x86_64" + tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` + ;; xgate-*-*) targ_emul=xgateelf targ_extra_ofiles=ldelfgen.o ;; -- 2.30.2