summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-12 16:20:21 -0500
committermidipix <writeonce@midipix.org>2016-11-12 16:20:21 -0500
commit665ac36fa8328a852876551140cd9fc6c4c22b94 (patch)
tree32e9d8daeee46d87b6158c02f8417c21324c5019 /src/driver
parentb697ef4ed3024d0198d379fe73aede5669fab5de (diff)
downloadperk-665ac36fa8328a852876551140cd9fc6c4c22b94.tar.bz2
perk-665ac36fa8328a852876551140cd9fc6c4c22b94.tar.xz
driver: added --type support (print image type).
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/pe_driver_ctx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c
index fdc2704..942291b 100644
--- a/src/driver/pe_driver_ctx.c
+++ b/src/driver/pe_driver_ctx.c
@@ -165,6 +165,10 @@ int pe_get_driver_ctx(
pretty = entry->arg;
break;
+ case TAG_IMGTYPE:
+ cctx.fmtflags |= PERK_OUTPUT_IMAGE_TYPE;
+ break;
+
case TAG_EXPSYMS:
cctx.fmtflags |= PERK_OUTPUT_EXPORT_SYMS;
break;