GP-6434 improve finding rust signature in Elf binaries

check the .comment section first before searching for byte signature.
This commit is contained in:
dev747368
2026-03-10 21:18:39 +00:00
parent 7794b998c8
commit 1c59d2e56d
18 changed files with 79 additions and 59 deletions
@@ -107,7 +107,7 @@ public class Lisa_ResolveX86orX64LinuxSyscallsScript extends GhidraScript {
@Override
protected void run() throws Exception {
if (!(currentProgram.getExecutableFormat().equals(ElfLoader.ELF_NAME) &&
if (!(ElfLoader.isElf(currentProgram) &&
currentProgram.getLanguage().getProcessor().toString().equals(X86))) {
popup("This script is intended for x86 or x64 Linux files");
return;