aboutsummaryrefslogtreecommitdiff
path: root/ld/pdb.h
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2022-12-09 01:52:32 +0000
committerAlan Modra <amodra@gmail.com>2022-12-23 19:37:57 +1030
commit803561cb74922892a0c22ea4ff0564f448796c1c (patch)
treedb918dc778815918fc7cd530d3ff7234fd45c339 /ld/pdb.h
parentf559276dc5f1ac25ca5c310135287dc20c2925e8 (diff)
downloadgdb-803561cb74922892a0c22ea4ff0564f448796c1c.zip
gdb-803561cb74922892a0c22ea4ff0564f448796c1c.tar.gz
gdb-803561cb74922892a0c22ea4ff0564f448796c1c.tar.bz2
ld: Write DEBUG_S_FILECHKSMS entries in PDBs
Diffstat (limited to 'ld/pdb.h')
-rw-r--r--ld/pdb.h9
1 files changed, 9 insertions, 0 deletions
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