summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/pe_driver_ctx.c2
-rw-r--r--src/output/pe_output_export_symbols.c8
-rw-r--r--src/skin/pe_skin_default.c2
3 files changed, 8 insertions, 4 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c
index bf55e5e..6d02c69 100644
--- a/src/driver/pe_driver_ctx.c
+++ b/src/driver/pe_driver_ctx.c
@@ -169,6 +169,8 @@ int pe_get_driver_ctx(
if (pretty && !strcmp(pretty,"yaml"))
cctx.fmtflags |= PERK_PRETTY_YAML;
+ else if (pretty && !strcmp(pretty,"dlltool"))
+ cctx.fmtflags |= PERK_PRETTY_DLLTOOL;
if (!(ctx = pe_driver_ctx_alloc(meta,&cctx,nunits)) && cctx.output)
close(fdout);
diff --git a/src/output/pe_output_export_symbols.c b/src/output/pe_output_export_symbols.c
index 642d539..0ab3539 100644
--- a/src/output/pe_output_export_symbols.c
+++ b/src/output/pe_output_export_symbols.c
@@ -16,9 +16,11 @@
static int pretty_header(const struct pe_common_ctx * cctx, FILE * fout)
{
- return (cctx->fmtflags & PERK_PRETTY_YAML)
- ? fputs("exports:\n",fout)
- : 0;
+ if (cctx->fmtflags & PERK_PRETTY_YAML)
+ return fputs("exports:\n",fout);
+ else if (cctx->fmtflags & PERK_PRETTY_DLLTOOL)
+ return fputs("EXPORTS\n",fout);
+ return 0;
}
static int pretty_export_item(const struct pe_common_ctx * cctx, const char * name, FILE * fout)
diff --git a/src/skin/pe_skin_default.c b/src/skin/pe_skin_default.c
index c9e374d..21fab05 100644
--- a/src/skin/pe_skin_default.c
+++ b/src/skin/pe_skin_default.c
@@ -11,7 +11,7 @@ const struct argv_option pe_default_options[] = {
{"output", 'o',TAG_OUTPUT,ARGV_OPTARG_REQUIRED,0,0,"<file>",
"write output to %s"},
- {"pretty", 'p',TAG_PRETTY,ARGV_OPTARG_REQUIRED,0,"yaml",0,
+ {"pretty", 'p',TAG_PRETTY,ARGV_OPTARG_REQUIRED,0,"yaml|dlltool",0,
"format output for parsing by %s"},
{"expsyms", 'e',TAG_EXPSYMS,ARGV_OPTARG_NONE,0,0,0,