Hello.

This patch allows to build winsup/utils/dumper.cc for AArch64.

Radek

---
>From 133c0eb7812c7b054e957f5706729fe38a99f066 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Radek=20Barto=C5=88?= <[email protected]>
Date: Wed, 11 Jun 2025 23:07:21 +0200
Subject: [PATCH] Cygwin: dumper: port to AArch64
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Radek BartoĊˆ <[email protected]>
---
 winsup/utils/dumper.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/winsup/utils/dumper.cc b/winsup/utils/dumper.cc
index 994f9b683..b3151e66d 100644
--- a/winsup/utils/dumper.cc
+++ b/winsup/utils/dumper.cc
@@ -700,8 +700,10 @@ dumper::init_core_dump ()
 {
   bfd_init ();

-#ifdef __x86_64__
+#if defined(__x86_64__)
   const char *target = "elf64-x86-64";
+#elif defined(__aarch64__)
+  const char *target = "elf64-aarch64";
 #else
 #error unimplemented for this target
 #endif
--
2.49.0.vfs.0.4

Attachment: 0001-Cygwin-dumper-port-to-AArch64.patch
Description: 0001-Cygwin-dumper-port-to-AArch64.patch

Reply via email to