summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/mdso/mdso.h2
-rw-r--r--src/driver/mdso_driver_ctx.c8
-rw-r--r--src/internal/mdso_driver_impl.h2
-rw-r--r--src/skin/mdso_skin_default.c6
4 files changed, 18 insertions, 0 deletions
diff --git a/include/mdso/mdso.h b/include/mdso/mdso.h
index 24159b4..ab887b7 100644
--- a/include/mdso/mdso.h
+++ b/include/mdso/mdso.h
@@ -47,6 +47,8 @@ struct mdso_common_ctx {
uint64_t drvflags;
uint64_t actflags;
uint64_t fmtflags;
+ const char * libname;
+ const char * dstdir;
};
struct mdso_driver_ctx {
diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c
index c1e34ba..cf37052 100644
--- a/src/driver/mdso_driver_ctx.c
+++ b/src/driver/mdso_driver_ctx.c
@@ -126,6 +126,14 @@ int mdso_get_driver_ctx(
cctx.drvflags |= MDSO_DRIVER_VERSION;
break;
+ case TAG_LIBNAME:
+ cctx.libname = entry->arg;
+ break;
+
+ case TAG_DSTDIR:
+ cctx.dstdir = entry->arg;
+ break;
+
case TAG_PRETTY:
pretty = entry->arg;
break;
diff --git a/src/internal/mdso_driver_impl.h b/src/internal/mdso_driver_impl.h
index d76f29e..4ce307d 100644
--- a/src/internal/mdso_driver_impl.h
+++ b/src/internal/mdso_driver_impl.h
@@ -10,6 +10,8 @@
enum app_tags {
TAG_HELP,
TAG_VERSION,
+ TAG_LIBNAME,
+ TAG_DSTDIR,
TAG_PRETTY,
TAG_EXPSYMS,
};
diff --git a/src/skin/mdso_skin_default.c b/src/skin/mdso_skin_default.c
index cf65a3f..a6a4793 100644
--- a/src/skin/mdso_skin_default.c
+++ b/src/skin/mdso_skin_default.c
@@ -8,6 +8,12 @@ const struct argv_option mdso_default_options[] = {
{"help", 'h',TAG_HELP,ARGV_OPTARG_OPTIONAL,"short|long",0,
"show usage information [listing %s options only]"},
+ {"libname", 'n',TAG_LIBNAME,ARGV_OPTARG_REQUIRED,0,"<libname>",
+ "set dependency library name to %s"},
+
+ {"dstdir", 'd',TAG_DSTDIR,ARGV_OPTARG_REQUIRED,0,"<dstdir>",
+ "save generated assembly files under %s"},
+
{"pretty", 'p',TAG_PRETTY,ARGV_OPTARG_REQUIRED,"yaml",0,
"format output for parsing by %s"},