This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Add 'clean' x86_64-elf target-support
- From: Mikkel Krautz <krautz at gmail dot com>
- To: binutils at sources dot redhat dot com
- Date: Sun, 13 Mar 2005 18:37:03 +0100
- Subject: [PATCH] Add 'clean' x86_64-elf target-support
Hi!
I have already sent this one once before, but it never
seemed to show up in the archive. Is this list subscribers-only?
Please excuse this, if it got through the first time.
--
This patch makes it possible to build a 'clean' x86_64-elf toolchain,
i.e. without any Linux or *BSD specific hooks.
I have also sent a patch to the gcc-patches mailing list, which allows
GCC to build with a x86_64-elf-target too.
Anyhow, this was all I needed to get binutils to build.
Regards,
Mikkel
bfd/config.bfd | 5 +++++
ld/configure.tgt | 4 ++++
2 files changed, 9 insertions(+)
--- clean/ld/configure.tgt
+++ dirty/ld/configure.tgt
@@ -202,6 +202,10 @@
;;
i[3-7]86-*-netware) targ_emul=i386nw ;;
i[3-7]86-*-elf*) targ_emul=elf_i386 ;;
+x86_64-*-elf*)
+ targ_emul=elf_x86_64
+ targ_extra_emuls=elf_i386
+ ;;
i[3-7]86-*-kaos*) targ_emul=elf_i386 ;;
i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | i[3-7]86-*-freebsd[12])
targ_emul=i386bsd ;;
--- clean/bfd/config.bfd
+++ dirty/bfd/config.bfd
@@ -535,6 +535,11 @@
targ64_selvecs=bfd_elf64_x86_64_vec
;;
#ifdef BFD64
+
+ x86_64-*-elf*)
+ targ_defvec=bfd_elf64_x86_64_vec
+ targ_selvecs="bfd_elf32_i386_vec i386coff_vec"
+ ;;
x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
targ_defvec=bfd_elf64_x86_64_vec
targ_selvecs="bfd_elf32_i386_vec i386coff_vec bfd_efi_app_ia32_vec"