summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/pe_driver_ctx.c8
-rw-r--r--src/internal/perk_driver_impl.h2
-rw-r--r--src/skin/pe_skin_default.c7
3 files changed, 17 insertions, 0 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c
index 36df61b..add9113 100644
--- a/src/driver/pe_driver_ctx.c
+++ b/src/driver/pe_driver_ctx.c
@@ -181,6 +181,14 @@ int pe_get_driver_ctx(
case TAG_IMPSYMS:
cctx.fmtflags |= PERK_OUTPUT_IMPORT_SYMS;
break;
+
+ case TAG_DSOLIBS:
+ cctx.fmtflags |= PERK_OUTPUT_MDSO_LIBS;
+ break;
+
+ case TAG_DSOSYMS:
+ cctx.fmtflags |= PERK_OUTPUT_MDSO_SYMS;
+ break;
}
} else
nunits++;
diff --git a/src/internal/perk_driver_impl.h b/src/internal/perk_driver_impl.h
index 6fe5513..25edf37 100644
--- a/src/internal/perk_driver_impl.h
+++ b/src/internal/perk_driver_impl.h
@@ -24,6 +24,8 @@ enum app_tags {
TAG_EXPSYMS,
TAG_IMPLIBS,
TAG_IMPSYMS,
+ TAG_DSOLIBS,
+ TAG_DSOSYMS,
};
struct pe_driver_ctx_impl {
diff --git a/src/skin/pe_skin_default.c b/src/skin/pe_skin_default.c
index 95b2cfc..60663ea 100644
--- a/src/skin/pe_skin_default.c
+++ b/src/skin/pe_skin_default.c
@@ -33,5 +33,12 @@ const struct argv_option pe_default_options[] = {
"list .idata dependency libraries "
"along with imported symbols"},
+ {"dsolibs", 'd',TAG_DSOLIBS,ARGV_OPTARG_NONE,0,0,0,
+ "list .dsometa (mdso) dependency libraries"},
+
+ {"dsosyms", 'D',TAG_DSOSYMS,ARGV_OPTARG_NONE,0,0,0,
+ "list .dsometa (mdso) dependency libraries "
+ "along with referenced symbols"},
+
{0,0,0,0,0,0,0,0}
};