aboutsummaryrefslogtreecommitdiff
path: root/ld/configure.tgt
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2024-01-01 14:53:09 +0300
committerNick Clifton <nickc@redhat.com>2024-01-08 09:51:58 +0000
commit950b68acd41db8383c98a48607741771a9131127 (patch)
treeabf92999ae0067bfa20f83ece2ab35ad471ae19f /ld/configure.tgt
parent09f5e4ed86bfa9a08f35a059fe978cf2211c7b3e (diff)
downloadbinutils-950b68acd41db8383c98a48607741771a9131127.zip
binutils-950b68acd41db8383c98a48607741771a9131127.tar.gz
binutils-950b68acd41db8383c98a48607741771a9131127.tar.bz2
Add support for the aarch64-gnu target (GNU/Hurd on AArch64)
Also recognized are aarch64-*-gnu tagrets, e.g. aarch64-pc-gnu or aarch64-unknown-gnu. The ld/emulparams/aarch64gnu.sh file is (for now) identical to aarch64fbsd.sh, or to aarch64linux.sh with Linux-specific logic removed; and mainly different from the generic aarch64elf.sh in that it does not set EMBEDDED=yes. Coupled with a corresponding GCC patch, this produces a toolchain that can sucessfully build working binaries targeting aarch64-gnu. Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Diffstat (limited to 'ld/configure.tgt')
-rw-r--r--ld/configure.tgt5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 43535c7..f937f78 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -116,6 +116,11 @@ aarch64-*-linux*) targ_emul=aarch64linux
targ_extra_libpath="aarch64linuxb aarch64linux32 aarch64linux32b armelfb_linux_eabi armelf_linux_eabi"
targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb $targ_extra_libpath"
;;
+# This has to come after aarch64-*-linux* for aarch64-*-linux-gnu to hit the Linux branch.
+aarch64-*-gnu*)
+ targ_emul=aarch64gnu
+ targ_extra_emuls="aarch64elf aarch64elfb armelf armelfb"
+ ;;
aarch64-*-haiku*) targ_emul=aarch64haiku
targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb armelf_haiku $targ_extra_libpath"
;;