summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-11-26 11:46:46 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:27 -0500
commit9c5807c7cadf7219a32f3b2c081a8d21aceb4837 (patch)
tree05b106b7f8119bd7bd0e1ab6116ef2ee2b4285b8 /src/driver
parent949bb3ba304be9bd80cda27c37c2d0d0da6a67dd (diff)
downloadperk-9c5807c7cadf7219a32f3b2c081a8d21aceb4837.tar.bz2
perk-9c5807c7cadf7219a32f3b2c081a8d21aceb4837.tar.xz
output import libraries and dependency symbols: initial implementation.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/pe_driver_ctx.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c
index a463e9a..990738b 100644
--- a/src/driver/pe_driver_ctx.c
+++ b/src/driver/pe_driver_ctx.c
@@ -9,6 +9,8 @@ enum app_tags {
TAG_VERSION,
TAG_OUTPUT,
TAG_EXPSYMS,
+ TAG_IMPLIBS,
+ TAG_IMPSYMS,
};
static const struct argv_option options[] = {
@@ -24,6 +26,13 @@ static const struct argv_option options[] = {
{"expsyms", 'e',TAG_EXPSYMS,ARGV_OPTARG_NONE, 0,0,
"print exported symbols" },
+
+ {"implibs", 'i',TAG_IMPLIBS,ARGV_OPTARG_NONE, 0,0,
+ "list direct dependency libraries"},
+
+ {"impsyms", 'I',TAG_IMPSYMS,ARGV_OPTARG_NONE, 0,0,
+ "list direct dependency libraries "
+ "along with required symbols"},
{0}
};
@@ -139,6 +148,14 @@ int pe_get_driver_ctx(
case TAG_EXPSYMS:
fflags |= PERK_OUTPUT_EXPORT_SYMS;
break;
+
+ case TAG_IMPLIBS:
+ fflags |= PERK_OUTPUT_IMPORT_LIBS;
+ break;
+
+ case TAG_IMPSYMS:
+ fflags |= PERK_OUTPUT_IMPORT_SYMS;
+ break;
}
} else
nunits++;