fix(native): preserve numeric Mach-O identities and CodeView path bytes (#12458)

This commit is contained in:
morluto authored and GitHub committed 2026-11-19 18:12:35 +00:00
1 parent 11c014f022
commit a627952bd5
20 files changed
+493 -179

No files matched your search

+17 -4
View File
@@ -41,13 +41,26 @@ export interface ElfFamilyMetadata {
readonly hasInterpreter?: boolean;
}
/** Prefix shared by CodeView RVA mapping and both payload readers. */
export const PE_CODEVIEW_PREFIX_BYTES = 4096;
export type PeCodeViewPath =
| {
readonly pdbPath: string;
readonly pdbFileName: string;
}
| {
readonly pdbPath: null;
readonly pdbFileName: null;
/** Exact bytes before the record's NUL terminator, with unknown text decoding. */
readonly pdbPathBytesHex: string;
};
/** Referenced CodeView debug symbols from a PE debug directory. */
export interface PeCodeViewRecord {
readonly pdbPath: string;
readonly pdbFileName: string;
export type PeCodeViewRecord = PeCodeViewPath & {
readonly guid: string | null;
readonly age: number;
}
};
/** Families whose parsed target variant carries `ElfFamilyMetadata`. */
export const ELF_METADATA_ARCHITECTURES = [