Ghidra is a software reverse engineering (SRE) framework
GP-4738: Ghidra native components (decompiler, GNU demangler, etc) now run properly on Windows ARM using x86 emulation
Ryan Kurtz1b10ce468978
diff --git a/Ghidra/Framework/Generic/src/main/java/ghidra/framework/Application.java b/Ghidra/Framework/Generic/src/main/java/ghidra/framework/Application.javaindex d3dbcf7be1..f9b3f10800 100644--- a/Ghidra/Framework/Generic/src/main/java/ghidra/framework/Application.java+++ b/Ghidra/Framework/Generic/src/main/java/ghidra/framework/Application.java@@ -474,13 +474,13 @@ public class Application {exactFilename);}- // Allow win_x86_32 to be used for win_x86_64 as fallback- if (file == null && Platform.CURRENT_PLATFORM == Platform.WIN_X86_64) {- file = getModuleFile(module, "build/os/" + Platform.WIN_X86_32.getDirectoryName(),+ // Allow win_x86_64 to be used for win_arm_64 as fallback (requires Windows emulation)+ if (file == null && Platform.CURRENT_PLATFORM == Platform.WIN_ARM_64) {+ file = getModuleFile(module, "build/os/" + Platform.WIN_X86_64.getDirectoryName(),exactFilename);}- if (file == null && Platform.CURRENT_PLATFORM == Platform.WIN_X86_64) {- file = getModuleFile(module, "os/" + Platform.WIN_X86_32.getDirectoryName(),+ if (file == null && Platform.CURRENT_PLATFORM == Platform.WIN_ARM_64) {+ file = getModuleFile(module, "os/" + Platform.WIN_X86_64.getDirectoryName(),exactFilename);}@@ -520,12 +520,12 @@ public class Application {file = findModuleFile("os/" + Platform.CURRENT_PLATFORM.getDirectoryName(), path);}- // Allow win_x86_32 to be used for win_x86_64 as fallback- if (file == null && Platform.CURRENT_PLATFORM == Platform.WIN_X86_64) {- file = findModuleFile("build/os/" + Platform.WIN_X86_32.getDirectoryName(), path);+ // Allow win_x86_64 to be used for win_arm_64 as fallback (requires Windows emulation)+ if (file == null && Platform.CURRENT_PLATFORM == Platform.WIN_ARM_64) {+ file = findModuleFile("build/os/" + Platform.WIN_X86_64.getDirectoryName(), path);}- if (file == null && Platform.CURRENT_PLATFORM == Platform.WIN_X86_64) {- file = findModuleFile("os/" + Platform.WIN_X86_32.getDirectoryName(), path);+ if (file == null && Platform.CURRENT_PLATFORM == Platform.WIN_ARM_64) {+ file = findModuleFile("os/" + Platform.WIN_X86_64.getDirectoryName(), path);}// Allow mac_x86_64 to be used for mac_arm_64 as fallback (requires macOS Rosetta 2)diff --git a/Ghidra/Framework/Generic/src/main/java/ghidra/framework/Platform.java b/Ghidra/Framework/Generic/src/main/java/ghidra/framework/Platform.javaindex a283cdb953..06e37c2afe 100644--- a/Ghidra/Framework/Generic/src/main/java/ghidra/framework/Platform.java+++ b/Ghidra/Framework/Generic/src/main/java/ghidra/framework/Platform.java@@ -34,6 +34,11 @@ public enum Platform {* Identifies a Windows x86 64-bit OS.*/WIN_X86_64(OperatingSystem.WINDOWS, Architecture.X86_64, "win_x86_64", ".dll", ".exe"),++ /**+ * Identifies a Windows ARM 64-bit OS.+ */+ WIN_ARM_64(OperatingSystem.WINDOWS, Architecture.ARM_64, "win_arm_64", ".dll", ".exe"),/*** Identifies a Linux x86 32-bit OS.diff --git a/GhidraDocs/InstallationGuide.html b/GhidraDocs/InstallationGuide.htmlindex 22bcd35509..4b5bbeb88d 100644--- a/GhidraDocs/InstallationGuide.html+++ b/GhidraDocs/InstallationGuide.html@@ -19,7 +19,7 @@<h1>Ghidra Installation Guide</h1><p>-The installation information provided is effective as of Ghidra 11.1 and is subject to change with+The installation information provided is effective as of Ghidra 11.1.2 and is subject to change withfuture releases.</p>@@ -68,7 +68,7 @@ future releases.<h2><a name="Platforms"></a>Platforms Supported</h2><ul>- <li>Windows 10 or later (x86 64-bit)</li>+ <li>Windows 10 or later (64-bit)</li><li>Linux (64-bit)</li><li>macOS 10.13 or later</li></ul>@@ -318,6 +318,7 @@ public Ghidra release includes native binaries for the following platforms.<p>NOTE: For some non-public Ghidra releases macOS natives may be omitted.</p><ul><li>Windows 10 or later, x86 64-bit</li>+ <li>Windows 10 or later, ARM 64-bit (using x86 emulation)</li><li>Linux x86 64-bit</li><li>macOS x86 64-bit</li><li>macOS ARM 64-bit</li>@@ -330,7 +331,7 @@ public Ghidra release includes native binaries for the following platforms.<li>FreeBSD ARM 64-bit (no debugger support)</li></ul><p>For supported systems where native binaries have not been supplied, or those that are supplied-fail to run properly, it may be neccessary to build the native Ghidra binaries.+fail to run properly, it may be necessary to build the native Ghidra binaries.In order to build native binaries for your platform, you will need the following installed on yoursystem:</p><ul>