Files
rea/src/application/binaryDiagnostics/ElfNotesPort.ts
T
Matt Van Horn 2edf3b23c1 feat(elf): inspect PT_NOTE and SHT_NOTE tables (#4837)
Inspect selected ELF32/ELF64 PT_NOTE and SHT_NOTE declarations without executing
the artifact, retaining independent table identities, source ranges, descriptor
digests, GNU build-id/ABI fields and explicit coverage limitations.

Integrate mvanhorn's implementation and hardening with current main while
preserving byte-entropy registration and the Windows curated regression suite.
The maintainer follow-up uses ordinary merges/pushes, not history rewriting.

Executed validation: 96 focused/shared/docs tests, complete static/docs checks,
eleven real CLI/MCP pairs including GCC ELF32 and Clang big-endian PowerPC64,
and two actual Codex task traces checked against their Evidence. Full costs,
grader correction and verification limits are recorded in PR #4837.

Refs #6262.
2026-10-22 15:02:23 +08:00

21 lines
616 B
TypeScript

import type {
ExecutionOptions,
ProviderIdentity,
} from "../AnalysisProvider.js";
import type { AnalysisError } from "../../domain/analysisErrorBase.js";
import type {
InspectElfNotesInput,
ElfNotes,
} from "../../domain/native/elfNotes.js";
import type { Result } from "../../domain/result.js";
/** Stable read and ELF note-table decoding, independent of a disassembler session. */
export interface ElfNotesPort {
readonly identity: ProviderIdentity;
close?(): Promise<void>;
inspect(
input: InspectElfNotesInput,
options?: ExecutionOptions,
): Promise<Result<ElfNotes, AnalysisError>>;
}