summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-09 07:01:53 +0000
committermidipix <writeonce@midipix.org>2021-04-09 07:11:47 +0000
commitd38fc0c36bc9530fdebf709316a73ad6db5e2db5 (patch)
treefc1fde9790611237ec46a7a4c9e70b35a7667d2d /include
parent44ba87393046804e3661da9cf9c8e639b82c5cf0 (diff)
downloadperk-d38fc0c36bc9530fdebf709316a73ad6db5e2db5.tar.bz2
perk-d38fc0c36bc9530fdebf709316a73ad6db5e2db5.tar.xz
driver: added --hdrdump support.
Diffstat (limited to 'include')
-rw-r--r--include/perk/perk.h1
-rw-r--r--include/perk/perk_output.h13
2 files changed, 14 insertions, 0 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h
index 4c444d8..712526b 100644
--- a/include/perk/perk.h
+++ b/include/perk/perk.h
@@ -164,6 +164,7 @@ struct pe_common_ctx {
uint64_t drvflags;
uint64_t actflags;
uint64_t fmtflags;
+ uint64_t hdrdump;
};
struct pe_driver_ctx {
diff --git a/include/perk/perk_output.h b/include/perk/perk_output.h
index a036ef9..d6e2529 100644
--- a/include/perk/perk_output.h
+++ b/include/perk/perk_output.h
@@ -16,6 +16,19 @@
#define PERK_OUTPUT_MDSO_LIBS 0x00000200
#define PERK_OUTPUT_MDSO_SYMS 0x00000400
+#define PERK_OUTPUT_HEADER_DUMP 0X00010000
+#define PERK_OUTPUT_HEADER_INFO 0X00020000
+#define PERK_OUTPUT_SECTION_DUMP 0X00040000
+#define PERK_OUTPUT_SECTION_INFO 0X00080000
+
+/* header dump constants */
+#define PERK_HDRDUMP_IMAGE_DOS_HEADER 0X00000001
+#define PERK_HDRDUMP_COFF_IMAGE_HEADER 0X00000002
+#define PERK_HDRDUMP_COFF_OBJECT_HEADER 0X00000004
+#define PERK_HDRDUMP_COFF_OPT_HEADER 0X00000008
+#define PERK_HDRDUMP_SECTION_TABLE 0X00000100
+#define PERK_HDRDUMP_EXPORT_HEADER 0X00001000
+#define PERK_HDRDUMP_IMPORT_TABLE 0X00010000
/* pretty-printer flags */
#define PERK_PRETTY_LIST PERK_PRETTY(0x00000001)