mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 14:35:45 +00:00
fix(native): preserve numeric Mach-O identities and CodeView path bytes (#12458)
This commit is contained in:
1 parent
11c014f022
commit
a627952bd5
20 files changed
+493
-179
No files matched your search
@@ -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 = [
|
||||
|
||||
Reference in new issue
Block a user