Skip to content

fix: detect ARM64 architecture on Linux#24

Merged
0xeb merged 1 commit into
mainfrom
fix/linux-arm64-arch-detection
Mar 18, 2026
Merged

fix: detect ARM64 architecture on Linux#24
0xeb merged 1 commit into
mainfrom
fix/linux-arm64-arch-detection

Conversation

@0xeb

@0xeb 0xeb commented Mar 18, 2026

Copy link
Copy Markdown
Member

Summary

  • The Linux block in platform.cmake hardcodes IDA_ARCH to "x64", ignoring ARM64 hosts
  • On aarch64 Linux, the build system selects x64_linux_64/libida.so instead of arm64_linux_64/libida.so, causing "file in wrong format" linker errors
  • The macOS block already has this check (line 71) — this adds the same pattern to Linux

Test plan

  • Build an IDA SDK plugin on ARM64 Linux (e.g., Raspberry Pi 5, AWS Graviton) and verify it links against arm64_linux_64/ libraries
  • Verify x64 Linux builds are unaffected (falls through to the else branch)

The Linux block hardcoded IDA_ARCH to "x64", ignoring aarch64 hosts.
This caused the build system to select x64 libraries on ARM64 Linux,
resulting in "file in wrong format" linker errors.

Add the same CMAKE_SYSTEM_PROCESSOR check that already exists in the
macOS block (line 71). The SDK ships arm64_linux_64/ libraries since
v9.3.0-sdk.2, but they were unreachable without this fix.
@0xeb 0xeb merged commit 5418e39 into main Mar 18, 2026
8 checks passed
@0xeb 0xeb deleted the fix/linux-arm64-arch-detection branch March 18, 2026 23:01
0xeb added a commit to HexRaysSA/ida-sdk that referenced this pull request Mar 18, 2026
Pulls allthingsida/ida-cmake#24 which adds ARM64 architecture
detection to the Linux platform block in platform.cmake.
adybov-hexrays pushed a commit to HexRaysSA/ida-sdk that referenced this pull request Mar 20, 2026
Pulls allthingsida/ida-cmake#24 which adds ARM64 architecture
detection to the Linux platform block in platform.cmake.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant