From dc10161a9e0663c005fffb038e697306ca224482 Mon Sep 17 00:00:00 2001 From: gensokyo-dev Date: Sat, 21 Nov 2026 18:54:27 +0000 Subject: [PATCH] docs(ghidra): link the native build steps for Linux arm64 The Ghidra requirements said official archives may require building the Linux arm64 decompiler but gave no steps, so doctor's new pointer to that section led nowhere. Ghidra's own guide lists Linux ARM64 among the platforms that need user-built natives; link its Building Native Components section and state it plainly in the remediation too. Refs #7018 Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> --- docs/getting-started/installation.md | 6 ++++-- src/ghidra/GhidraInstallation.ts | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index b1d0cbefdc..ea36e445c3 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -1237,8 +1237,10 @@ until a release is known to clear it. Each installation must include the native decompiler for the host architecture in `Ghidra/Features/Decompiler/os//` or the corresponding -`build/os//` directory. Linux ARM64 uses `linux_arm_64`; official -release archives may require you to build that native component separately. +`build/os//` directory. Linux ARM64 uses `linux_arm_64`. Official +release archives ship native binaries only for Windows and Linux x64, so on +Linux ARM64 build them with the release's +[native component instructions](https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.2_build/GhidraDocs/GettingStarted.md#building-native-components). REA checks the executable prerequisite by inspecting the file's own executable header, so a native component built for another platform or architecture is reported as incompatible instead of being admitted from its directory name, and diff --git a/src/ghidra/GhidraInstallation.ts b/src/ghidra/GhidraInstallation.ts index 48bd43725d..f4ceadda17 100644 --- a/src/ghidra/GhidraInstallation.ts +++ b/src/ghidra/GhidraInstallation.ts @@ -986,8 +986,8 @@ const nativeDecompilerCheck = ({ /** * Where to get a decompiler that official release archives omit. Ghidra's - * official archives ship no macOS decompiler, and may ship none for Linux - * arm64; the archive's decompiler source builds it. + * official archives ship native binaries only for Windows and Linux x64; the + * archive's decompiler source builds the others. */ const nativeDecompilerBuildHint = ( platform: NodeJS.Platform, @@ -996,7 +996,7 @@ const nativeDecompilerBuildHint = ( platform === "darwin" && (architecture === "x64" || architecture === "arm64") ? ` Official Ghidra release archives include no macOS decompiler; build it from the archive's decompiler source as described in docs/getting-started/installation.md#${architecture === "arm64" ? "macos-arm64-native-decompiler" : "missing-macos-native-decompiler"}.` : platform === "linux" && architecture === "arm64" - ? " Official Ghidra release archives may not include a Linux arm64 decompiler; build Ghidra's native components for this host as described in docs/getting-started/installation.md#ghidra." + ? " Official Ghidra release archives include no Linux arm64 decompiler; build Ghidra's native components for this host as described in docs/getting-started/installation.md#ghidra." : ""; /**