Skip to content

Commit aac7ae5

Browse files
flaviocamodra
authored andcommitted
Add support for x86_64-*-gnu-* targets to build x86_64 gnumach/hurd
1 parent 13cca00 commit aac7ae5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

bfd/config.bfd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,11 @@ case "${targ}" in
731731
targ_selvecs=i386_elf32_vec
732732
want64=true
733733
;;
734+
x86_64-*-gnu*)
735+
targ_defvec=x86_64_elf64_vec
736+
targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec"
737+
want64=true
738+
;;
734739
#endif
735740
i[3-7]86-*-lynxos*)
736741
targ_defvec=i386_elf32_vec

ld/configure.tgt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,11 @@ x86_64-*-mingw*) targ_emul=i386pep ;
10581058
targ_extra_emuls=i386pe
10591059
targ_extra_ofiles="deffilep.o pdb.o pep-dll.o pe-dll.o"
10601060
;;
1061+
x86_64-*-gnu*) targ_emul=elf_x86_64
1062+
targ_extra_emuls="elf32_x86_64 elf_iamcu elf_i386"
1063+
targ_extra_libpath="elf_i386 elf32_x86_64"
1064+
tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'`
1065+
;;
10611066
xgate-*-*) targ_emul=xgateelf
10621067
targ_extra_ofiles=ldelfgen.o
10631068
;;

0 commit comments

Comments
 (0)