[AArch64, ld] Support ILP32 triplet aarch64*-linux-gnu_ilp32
authorJiong Wang <jiong.wang@arm.com>
Mon, 22 May 2017 08:50:29 +0000 (09:50 +0100)
committerJiong Wang <jiong.wang@arm.com>
Mon, 22 May 2017 12:27:56 +0000 (13:27 +0100)
This patch allows AArch64 LD defaulting to ILP32 if it is configured with
aarch64*-linux-gnu_ilp32.

ld/
* configure.tgt: Set "targ_emul" to "aarch64linux32b" for
aarch64_be-*-linux-gnu_ilp32.  Set "targ_emul" to "aarch64linux32" for
aarch64-*-linux-gnu_ilp32.

ld/ChangeLog
ld/configure.tgt

index f6063f5337ed601ea2089ae27550eb14791d319c..3bfd4ce403b9f689495e6c266374bb44a45e1876 100644 (file)
@@ -1,3 +1,9 @@
+2017-05-22  Jiong Wang  <jiong.wang@arm.com>
+
+       * configure.tgt: Set "targ_emul" to "aarch64linux32b" for
+       aarch64_be-*-linux-gnu_ilp32.  Set "targ_emul" to "aarch64linux32" for
+       aarch64-*-linux-gnu_ilp32.
+
 2017-05-19  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-i386/i386.exp: Run property-x86-4a and
index 895f0fb6745c27b49d76cbdc647a4acecd0341cc..1b981d4f9b411491049e4c4e33ac0121c56bed48 100644 (file)
@@ -56,6 +56,14 @@ aarch64-*-freebsd*)  targ_emul=aarch64fbsd
                        targ_extra_emuls="aarch64fbsdb aarch64elf" ;;
 aarch64-*-fuchsia*)    targ_emul=aarch64elf
                        targ_extra_emuls="aarch64elfb armelf armelfb" ;;
+aarch64_be-*-linux-gnu_ilp32)
+                       targ_emul=aarch64linux32b
+                       targ_extra_libpath="aarch64linuxb aarch64linux aarch64linux32 armelfb_linux_eabi armelf_linux_eabi"
+                       targ_extra_emuls="aarch64elfb aarch64elf aarch64elf32 aarch64elf32b armelfb armelf $targ_extra_libpath" ;;
+aarch64-*-linux-gnu_ilp32)
+                       targ_emul=aarch64linux32
+                       targ_extra_libpath="aarch64linux aarch64linuxb aarch64linux32b armelfb_linux_eabi armelf_linux_eabi"
+                       targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb $targ_extra_libpath" ;;
 aarch64_be-*-linux*)   targ_emul=aarch64linuxb
                        targ_extra_libpath="aarch64linux aarch64linux32 aarch64linux32b armelfb_linux_eabi armelf_linux_eabi"
                        targ_extra_emuls="aarch64elfb aarch64elf aarch64elf32 aarch64elf32b armelfb armelf $targ_extra_libpath" ;;