summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-20 04:10:09 -0500
committermidipix <writeonce@midipix.org>2016-11-11 00:22:30 -0500
commitd8c2b3247afc7f837b7d24ec2c93f0fbdc40c584 (patch)
tree1d7f0afce3bfee5a43d3fbfb655c99488f3689ce /src
parent8cfad6a6b15e97d7a753558ebd34f8a9798196f6 (diff)
downloadmdso-d8c2b3247afc7f837b7d24ec2c93f0fbdc40c584.tar.bz2
mdso-d8c2b3247afc7f837b7d24ec2c93f0fbdc40c584.tar.xz
libname,dstdir: added interface.
Diffstat (limited to 'src')
-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
3 files changed, 16 insertions, 0 deletions
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"},