mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 14:35:45 +00:00
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:
12 files changed
+109
-21
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user