fix(elf): admit Xtensa through canonical target contracts (#11178)

Admit ELF machine 94 as the canonical Xtensa family through Ghidra's header-selected import. Share generic-header exclusions between static target types and live CLI/MCP summaries, preserving ELF-only format constraints and other providers' decline paths.

Fixes #10765.
Adapted from #10774.

Co-authored-by: Josh <joshuakrishna21@gmail.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-11-15 22:09:41 +08:00
1 parent 104b1a35b4
commit 1995ab7fce
12 files changed
+109 -21

No files matched your search

+11
View File
@@ -70,6 +70,11 @@ export type ExecutableMetadata =
readonly architecture: "hexagon";
readonly availableArchitectures: readonly "hexagon"[];
}
| {
readonly format: "elf";
readonly architecture: "xtensa";
readonly availableArchitectures: readonly "xtensa"[];
}
| {
readonly format: "mach-o";
readonly architecture: "arm64_32";
@@ -534,6 +539,12 @@ const parseElf = (
architecture,
availableArchitectures: [architecture],
});
if (architecture === "xtensa")
return ok({
format: "elf",
architecture,
availableArchitectures: [architecture],
});
return ok({
format: "elf",
architecture,