[binutils-gdb] aarch64: Introduce aarch64-pc-cygwin target
Jan Beulich
jbeulich@sourceware.org
Mon Nov 16 07:35:28 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5b2d13c68ca1a18cca346a1f6a4f621476bd50c3
commit 5b2d13c68ca1a18cca346a1f6a4f621476bd50c3
Author: Evgeny Karpov <evgeny.karpov@arm.com>
Date: Mon Nov 16 08:33:01 2026 +0100
aarch64: Introduce aarch64-pc-cygwin target
The patch adds support for aarch64-pc-cygwin target.
Co-authored-by: Radek Barton <radek.barton@microsoft.com>
Diff:
---
bfd/config.bfd | 2 +-
binutils/configure | 2 +-
binutils/configure.ac | 2 +-
gas/configure.tgt | 3 ++-
ld/configure.tgt | 4 ++--
ld/emultempl/pep.em | 6 +++++-
6 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 9900e5c7470..99e9bcd8316 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -254,7 +254,7 @@ case "${targ}" in
targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec aarch64_pei_le_vec aarch64_pe_le_vec"
want64=true
;;
- aarch64-*-pe* | aarch64-*-mingw* | aarch64-*-windows*)
+ aarch64-*-pe* | aarch64-*-mingw* | aarch64-*-windows* | aarch64-*-cygwin*)
targ_defvec=aarch64_pe_le_vec
targ_selvecs="aarch64_pe_le_vec aarch64_pei_le_vec aarch64_pe_bigobj_le_vec aarch64_elf64_le_vec aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec pdb_vec"
want64=true
diff --git a/binutils/configure b/binutils/configure
index c8202c3f3f0..c455cb4c0d9 100755
--- a/binutils/configure
+++ b/binutils/configure
@@ -16912,7 +16912,7 @@ do
esac
case $targ in
- aarch64-*-pe* | aarch64-*-mingw*)
+ aarch64-*-pe* | aarch64-*-mingw* | aarch64-*-cygwin*)
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
if test -z "$DLLTOOL_DEFAULT"; then
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_AARCH64"
diff --git a/binutils/configure.ac b/binutils/configure.ac
index ce6e85ac4a6..e9fda4f42bb 100644
--- a/binutils/configure.ac
+++ b/binutils/configure.ac
@@ -374,7 +374,7 @@ changequote([,])dnl
esac
case $targ in
- aarch64-*-pe* | aarch64-*-mingw*)
+ aarch64-*-pe* | aarch64-*-mingw* | aarch64-*-cygwin*)
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
if test -z "$DLLTOOL_DEFAULT"; then
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_AARCH64"
diff --git a/gas/configure.tgt b/gas/configure.tgt
index ba3d1194ae9..9e48e2ac55a 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -139,7 +139,8 @@ case ${generic_target} in
aarch64*-*-nto*) fmt=elf;;
aarch64*-*-openbsd*) fmt=elf;;
aarch64*-*-phoenix*) fmt=elf;;
- aarch64*-*-pe* | aarch64*-*-mingw*) fmt=coff em=pepaarch64 ;;
+ aarch64*-*-pe* | aarch64*-*-mingw* | aarch64*-*-cygwin*)
+ fmt=coff em=pepaarch64 ;;
alpha-*-*vms*) fmt=evax ;;
alpha-*-osf*) fmt=ecoff ;;
alpha-*-linux*ecoff*) fmt=ecoff ;;
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 55eb6e94b84..2496bc14659 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -125,7 +125,7 @@ aarch64-*-haiku*) targ_emul=aarch64haiku
aarch64-*-nto*) targ_emul=aarch64nto
targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb"
;;
-aarch64-*-pe* | aarch64-*-mingw*)
+aarch64-*-pe* | aarch64-*-mingw* | aarch64-*-cygwin*)
targ_emul=aarch64pe
targ_extra_emuls="arm64pe"
targ_extra_ofiles="deffilep.o pep-dll.o pe-dll.o pdb.o"
@@ -1055,7 +1055,7 @@ spu-*-elf*)
NATIVE_LIB_DIRS='/lib'
;;
-i[03-9x]86-*-cygwin* | x86_64-*-cygwin*)
+i[03-9x]86-*-cygwin* | x86_64-*-cygwin* | aarch64-*-cygwin*)
NATIVE_LIB_DIRS='/usr/lib /usr/lib/w32api'
;;
diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em
index 62d6d6b87a9..81e86054a57 100644
--- a/ld/emultempl/pep.em
+++ b/ld/emultempl/pep.em
@@ -7,6 +7,10 @@ else
fi
case ${target} in
+ aarch64-*-cygwin*)
+ move_default_addr_high=1
+ mingw_behavior=1
+ ;;
*-*-cygwin*)
move_default_addr_high=1
mingw_behavior=0
@@ -83,7 +87,7 @@ EOF
case ${target} in
x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin | \
- aarch64-*-mingw* | aarch64-*-pe* )
+ aarch64-*-mingw* | aarch64-*-pe* | aarch64-*-cygwin)
fragment <<EOF
#include "pdb.h"
EOF
More information about the Binutils-cvs
mailing list