[newlib-cygwin/main] Cygwin: GetArm64ProcAddress: drop unsupported __i386__ code branch
Corinna Vinschen
corinna@sourceware.org
Thu Jul 3 15:21:54 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6555247a453e05f8e014092bf1df9447c11fd6ed
commit 6555247a453e05f8e014092bf1df9447c11fd6ed
Author: Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Thu Jul 3 17:15:58 2025 +0200
Commit: Corinna Vinschen <corinna@vinschen.de>
CommitDate: Thu Jul 3 17:15:58 2025 +0200
Cygwin: GetArm64ProcAddress: drop unsupported __i386__ code branch
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/aarch64/fastcwd.cc | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/winsup/cygwin/aarch64/fastcwd.cc b/winsup/cygwin/aarch64/fastcwd.cc
index e53afc00467e..17ce6bbf3dee 100644
--- a/winsup/cygwin/aarch64/fastcwd.cc
+++ b/winsup/cygwin/aarch64/fastcwd.cc
@@ -23,10 +23,7 @@ GetArm64ProcAddress (HMODULE hModule, LPCSTR procname)
#if defined (__aarch64__)
return proc;
#else
-#if defined (__i386__)
- static const BYTE thunk[] = "\x8b\xff\x55\x8b\xec\x5d\x90\xe9";
- static const BYTE thunk2[0];
-#elif defined (__x86_64__)
+#if defined (__x86_64__)
/* see
https://learn.microsoft.com/en-us/windows/arm/arm64ec-abi#fast-forward-sequences */
static const BYTE thunk[] = "\x48\x8b\xc4\x48\x89\x58\x20\x55\x5d\xe9";
More information about the Cygwin-cvs
mailing list