feat(domain): map the ppc64 reader name to the powerpc Evidence subject

Static readers report a 64-bit PowerPC ELF as ppc64, and the Evidence subject of those reports had no architecture because the name mapped to no family. With EM_PPC64 classified as powerpc, the subject now carries that family, as it does for ppc.

The Go verifier and the Go and Rust guides state the new mapping, and the boundary test keeps an unknown machine (s390) to show that unrecognized names still map to no family.

Refs morluto/rea#12085.
This commit is contained in:
Davmunrey committed 2026-11-18 18:09:20 +00:00
1 parent b029434bf6
commit bbd7f7f661
5 files changed
+15 -8

No files matched your search

+7 -3
View File
@@ -451,9 +451,13 @@ async function verify(
assert.equal(report.architecture, target[1]);
assert.equal(
evidence.subject.identity.architecture,
{ amd64: "x86_64", 386: "x86", arm64: "arm64", mips: "mips" }[
target[1]
] ?? null,
{
amd64: "x86_64",
386: "x86",
arm64: "arm64",
mips: "mips",
ppc64: "powerpc",
}[target[1]] ?? null,
);
assert.equal(report.bits, target[3]);
assert.equal(report.byte_order, target[4]);