[PATCH] Add 'clean' x86_64-elf target-support

Mikkel Krautz krautz@gmail.com
Sun Mar 13 17:36:00 GMT 2005


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"




More information about the Binutils mailing list