summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-16 09:41:57 -0500
committermidipix <writeonce@midipix.org>2016-11-16 09:50:42 -0500
commit016925a048e34c3eeb2815d6830d61771f0ed999 (patch)
tree701bc47cb86ab0f4da049f2a9b955de3424b812d /src
parent39af3cb59a5bc2dff1fa1429623e1219d002a4b2 (diff)
downloadperk-016925a048e34c3eeb2815d6830d61771f0ed999.tar.bz2
perk-016925a048e34c3eeb2815d6830d61771f0ed999.tar.xz
driver: added --symbols support (list symbols found in coff symbol table).
Diffstat (limited to 'src')
-rw-r--r--src/driver/pe_driver_ctx.c4
-rw-r--r--src/internal/perk_driver_impl.h1
-rw-r--r--src/skin/pe_skin_default.c3
3 files changed, 8 insertions, 0 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c
index 8bc1706..accb9c1 100644
--- a/src/driver/pe_driver_ctx.c
+++ b/src/driver/pe_driver_ctx.c
@@ -162,6 +162,10 @@ int pe_get_driver_ctx(
cctx.fmtflags |= PERK_OUTPUT_IMAGE_SECTIONS;
break;
+ case TAG_SYMBOLS:
+ cctx.fmtflags |= PERK_OUTPUT_IMAGE_SYMBOLS;
+ break;
+
case TAG_EXPSYMS:
cctx.fmtflags |= PERK_OUTPUT_EXPORT_SYMS;
break;
diff --git a/src/internal/perk_driver_impl.h b/src/internal/perk_driver_impl.h
index 0386d81..4229977 100644
--- a/src/internal/perk_driver_impl.h
+++ b/src/internal/perk_driver_impl.h
@@ -17,6 +17,7 @@ enum app_tags {
TAG_PRETTY,
TAG_CATEGORY,
TAG_SECTIONS,
+ TAG_SYMBOLS,
TAG_EXPSYMS,
TAG_IMPLIBS,
TAG_IMPSYMS,
diff --git a/src/skin/pe_skin_default.c b/src/skin/pe_skin_default.c
index aee0cc3..e33b8c0 100644
--- a/src/skin/pe_skin_default.c
+++ b/src/skin/pe_skin_default.c
@@ -17,6 +17,9 @@ const struct argv_option pe_default_options[] = {
{"sections", 'c',TAG_SECTIONS,ARGV_OPTARG_NONE,0,0,0,
"list image sections"},
+ {"symbols", 's',TAG_SYMBOLS,ARGV_OPTARG_NONE,0,0,0,
+ "list symbols found in the coff symbol table"},
+
{"expsyms", 'e',TAG_EXPSYMS,ARGV_OPTARG_NONE,0,0,0,
"list exported symbols" },