Enable x32 for x86_64-*-elf*
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 24 Apr 2013 18:58:14 +0000 (18:58 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 24 Apr 2013 18:58:14 +0000 (18:58 +0000)
This patch enables x32 for x86_64-*-elf* for embedded target and disables
rex tests since it uses '/' as prefix separator which is `\' for
x86_64-*-elf*.

bfd/

* config.bfd (targ_selvecs): Add bfd_elf32_x86_64_vec for
x86_64-*-elf*.

gas/testsuite/

* gas/i386/rex.d: Skip x86_64-*-elf*.
* gas/i386/ilp32/rex.d: Likewise.

ld/

* configure.tgt (targ_extra_emuls): Adds elf32_x86_64 for
x86_64-*-elf*.
(targ_extra_libpath): Likewise.
(tdir_elf_i386): Replace x86_64 with i386 for x86_64-*-elf*.

bfd/ChangeLog
bfd/config.bfd
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/ilp32/rex.d
gas/testsuite/gas/i386/rex.d
ld/ChangeLog
ld/configure.tgt

index fd960e24fc7cae1fe03dfea2d3ca99dd648592a4..103c57c93da82fd1b251307f4dee5e1239f7e6d8 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config.bfd (targ_selvecs): Add bfd_elf32_x86_64_vec for
+       x86_64-*-elf*.
+
 2013-04-24  Roland McGrath  <mcgrathr@google.com>
 
        * elf32-arm.c (elf32_arm_allocate_plt_entry): If HTAB->nacl_p,
index 10820e2cba949ca16fc21c0109fc9bd5b30db45c..aef60c792b7690c2ff00c71e0ce6f70bd99b4b41 100644 (file)
@@ -644,7 +644,7 @@ case "${targ}" in
     ;;
   x86_64-*-elf*)
     targ_defvec=bfd_elf64_x86_64_vec
-    targ_selvecs="bfd_elf32_i386_vec bfd_elf64_l1om_vec bfd_elf64_k1om_vec i386coff_vec"
+    targ_selvecs="bfd_elf32_i386_vec bfd_elf32_x86_64_vec bfd_elf64_l1om_vec bfd_elf64_k1om_vec"
     want64=true
     ;;
   x86_64-*-dragonfly*)
index 546c2ab14aefaad5f40bace31c0a223d83e30f66..48ef178a59b687797dbbd9027d6c92d5b015f739 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gas/i386/rex.d: Skip x86_64-*-elf*.
+       * gas/i386/ilp32/rex.d: Likewise.
+
 2013-04-15  Julian Brown  <julian@codesourcery.com>
 
        * gas/all/gas.exp (sleb128-7): Don't run for tic4x, tic54x.
index 7c704c991769844957b2524e7686c640d68e2a17..36241c1d067135abab25e296b6d5ad32378f32e1 100644 (file)
@@ -1,6 +1,7 @@
 #source: ../rex.s
 #objdump: -dw
 #name: x86-64 (ILP32) manual rex prefix use
+#not-target: x86_64-*-elf*
 
 .*: +file format .*
 
index bf783c684f282f608fbdbdadb9bd3eae8f96651a..3c52e169da7de03a835fba3348e21bd89facb768 100644 (file)
@@ -1,5 +1,6 @@
 #objdump: -dw
 #name: x86-64 manual rex prefix use
+#not-target: x86_64-*-elf*
 
 .*: +file format .*
 
index 503243723458469ac8f8a83c3d8fa84696cd3643..5014b5f91ca25eb73a4a374b4a3d571b046b01a5 100644 (file)
@@ -1,3 +1,10 @@
+2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * configure.tgt (targ_extra_emuls): Adds elf32_x86_64 for
+       x86_64-*-elf*.
+       (targ_extra_libpath): Likewise.
+       (tdir_elf_i386): Replace x86_64 with i386 for x86_64-*-elf*.
+
 2013-04-24  Yufeng Zhang  <yufeng.zhang@arm.com>
 
        * emulparams/aarch64elf.sh: Define ELFSIZE=64.
index 3b06dd39d3b3d59d63f233f4dd68335587277980..cd840e94df4565ccb052a22a8ad35262d6cf4153 100644 (file)
@@ -278,7 +278,9 @@ x86_64-*-netbsd*)   targ_emul=elf_x86_64
 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 elf_l1om elf_k1om"
+                       targ_extra_emuls="elf_i386 elf32_x86_64 elf_l1om elf_k1om"
+                       targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om"
+                       tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/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])