From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id 1B0ED3858D32; Mon, 26 Dec 2022 12:21:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B0ED3858D32 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: bfd-cvs@sourceware.org Subject: [binutils-gdb] Add support for x86_64-*-gnu-* targets to build x86_64 gnumach/hurd X-Act-Checkin: binutils-gdb X-Git-Author: Flavio Cruz X-Git-Refname: refs/heads/master X-Git-Oldrev: 13cca0074bea87660276e8b9b9d54e7f2dd5c959 X-Git-Newrev: aac7ae599a19c80cafb0eba4a52d2500aabcbaeb Message-Id: <20221226122116.1B0ED3858D32@sourceware.org> Date: Mon, 26 Dec 2022 12:21:16 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2022 12:21:16 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Daac7ae599a19= c80cafb0eba4a52d2500aabcbaeb commit aac7ae599a19c80cafb0eba4a52d2500aabcbaeb Author: Flavio Cruz Date: Sun Dec 25 20:20:58 2022 -0500 Add support for x86_64-*-gnu-* targets to build x86_64 gnumach/hurd Diff: --- 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=3Di386_elf32_vec want64=3Dtrue ;; + x86_64-*-gnu*) + targ_defvec=3Dx86_64_elf64_vec + targ_selvecs=3D"i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec" + want64=3Dtrue + ;; #endif i[3-7]86-*-lynxos*) targ_defvec=3Di386_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=3Di386pep ; targ_extra_emuls=3Di386pe targ_extra_ofiles=3D"deffilep.o pdb.o pep-dll.o pe-dll.o" ;; +x86_64-*-gnu*) targ_emul=3Delf_x86_64 + targ_extra_emuls=3D"elf32_x86_64 elf_iamcu elf_i386" + targ_extra_libpath=3D"elf_i386 elf32_x86_64" + tdir_elf_i386=3D`echo ${targ_alias} | sed -e 's/x86_64/i386/'` + ;; xgate-*-*) targ_emul=3Dxgateelf targ_extra_ofiles=3Dldelfgen.o ;;