From: Jeremy Soller Date: Wed, 11 Jan 2017 15:05:53 +0000 (+0000) Subject: Add support for x86/64 redox target. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2e2d2f54b462db40efac449f4d7724ae4728fe5;p=binutils-gdb.git Add support for x86/64 redox target. bfd * config.bfd: Add entries for i686-redox and x86_64-redox. gas * configure.tgt: Add entry for i386-redox. ld * configure.tgt: Add entries for x86-redox and x86_64-redox. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c45022bae38..d4c973b9bc6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2017-01-11 Jeremy Soller + + * config.bfd: Add entries for i686-redox and x86_64-redox. + 2017-01-10 H.J. Lu * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section diff --git a/bfd/config.bfd b/bfd/config.bfd index 6b93b511b3c..d8240655aa7 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -760,6 +760,11 @@ case "${targ}" in targ64_selvecs="x86_64_elf64_nacl_vec x86_64_elf32_nacl_vec" targ_archs="$targ_archs bfd_arm_arch" ;; + i[3-7]86-*-redox*) + targ_defvec=i386_elf32_vec + targ_selvecs= + targ64_selvecs=x86_64_elf64_vec + ;; #ifdef BFD64 x86_64-*-cloudabi*) targ_defvec=x86_64_elf64_cloudabi_vec @@ -817,6 +822,11 @@ case "${targ}" in targ_defvec=x86_64_elf64_vec want64=true ;; + x86_64-*-redox*) + targ_defvec=x86_64_elf64_vec + targ_selvecs=i386_elf32_vec + want64=true + ;; #endif i[3-7]86-*-lynxos*) targ_defvec=i386_elf32_vec diff --git a/gas/ChangeLog b/gas/ChangeLog index 696d493d6cf..580cc18bc38 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2017-01-11 Jeremy Soller + + * configure.tgt: Add entry for i386-redox. + 2017-01-10 Nick Clifton * po/sv.po: Updated Swedish translation. diff --git a/gas/configure.tgt b/gas/configure.tgt index 251401560b6..9760b18fd26 100644 --- a/gas/configure.tgt +++ b/gas/configure.tgt @@ -251,6 +251,7 @@ case ${generic_target} in x86_64*-linux-gnux32) arch=x86_64:32 ;; esac ;; i386-*-lynxos*) fmt=elf em=lynx ;; + i386-*-redox*) fmt=elf ;; i386-*-sysv[45]*) fmt=elf ;; i386-*-solaris*) fmt=elf em=solaris ;; i386-*-freebsdaout*) fmt=aout em=386bsd ;; diff --git a/ld/ChangeLog b/ld/ChangeLog index 96158cdcab4..0a72581d70d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2017-01-11 Jeremy Soller + + * configure.tgt: Add entries for x86-redox and x86_64-redox. + 2017-01-10 H.J. Lu * testsuite/ld-x86-64/pr20830b.d: Updated. diff --git a/ld/configure.tgt b/ld/configure.tgt index 7eb53ce5b2d..f373ee506fa 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -274,6 +274,10 @@ x86_64-*-linux-*) targ_emul=elf_x86_64 targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om" tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'` tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` ;; +i[3-7]86-*-redox*) targ_emul=elf_i386 + targ_extra_emuls=elf_x86_64 ;; +x86_64-*-redox*) targ_emul=elf_x86_64 + targ_extra_emuls=elf_i386 ;; i[3-7]86-*-sysv[45]*) targ_emul=elf_i386 targ_extra_emuls=elf_iamcu ;; i[3-7]86-*-solaris2*) targ_emul=elf_i386_sol2