From f73dbb0e48ef50d2743fed89b68530b731329f05 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 3 Apr 2015 19:08:27 -0500 Subject: [PATCH] Add x86_64-*-rtems* target ld/configure.tgt: Also add stanza for x86_64-*-elf. --- bfd/config.bfd | 2 +- gdb/configure.tgt | 3 +++ ld/configure.tgt | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bfd/config.bfd b/bfd/config.bfd index 23da3216023..dc9cae559e9 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -687,7 +687,7 @@ case "${targ}" in targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec" want64=true ;; - x86_64-*-elf*) + x86_64-*-elf* | x86_64-*-rtems*) targ_defvec=x86_64_elf64_vec targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec l1om_elf64_vec k1om_elf64_vec" want64=true diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 54245c3d552..25586d52867 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -650,6 +650,9 @@ x86_64-*-dicos*) gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \ dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o" ;; +x86_64-*-elf* | x86_64-*-rtems*) + gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o i386bsd-tdep.o" + ;; x86_64-*-linux*) # Target: GNU/Linux x86-64 gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o i386-tdep.o \ diff --git a/ld/configure.tgt b/ld/configure.tgt index 267138be897..71df2749acc 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -314,7 +314,8 @@ i[3-7]86-*-elfiamcu) targ_emul=elf_iamcu targ_extra_emuls=elf_i386 ;; i[3-7]86-*-elf*) targ_emul=elf_i386 targ_extra_emuls=elf_iamcu ;; -x86_64-*-elf*) targ_emul=elf_x86_64 +x86_64-*-elf* | x86_64-*-rtems*) + targ_emul=elf_x86_64 targ_extra_emuls="elf_i386 elf_iamcu elf32_x86_64 elf_l1om elf_k1om" targ_extra_libpath="elf_i386 elf_iamcu elf32_x86_64 elf_l1om elf_k1om" tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` -- 2.30.2