From 803561cb74922892a0c22ea4ff0564f448796c1c Mon Sep 17 00:00:00 2001 From: Mark Harmstone Date: Fri, 9 Dec 2022 01:52:32 +0000 Subject: ld: Write DEBUG_S_FILECHKSMS entries in PDBs --- ld/pdb.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ld/pdb.h') diff --git a/ld/pdb.h b/ld/pdb.h index 611f710..e8f673c 100644 --- a/ld/pdb.h +++ b/ld/pdb.h @@ -156,6 +156,7 @@ struct optional_dbg_header #define CV_SIGNATURE_C13 4 #define DEBUG_S_STRINGTABLE 0xf3 +#define DEBUG_S_FILECHKSMS 0xf4 #define STRING_TABLE_SIGNATURE 0xeffeeffe #define STRING_TABLE_VERSION 1 @@ -200,6 +201,14 @@ struct module_info uint32_t pdb_file_path_name_index; }; +/* filedata in dumpsym7.cpp */ +struct file_checksum +{ + uint32_t file_id; + uint8_t checksum_length; + uint8_t checksum_type; +} ATTRIBUTE_PACKED; + extern bool create_pdb_file (bfd *, const char *, const unsigned char *); #endif -- cgit v1.1