diff options
author | midipix <writeonce@midipix.org> | 2015-12-20 04:10:09 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-11 00:22:30 -0500 |
commit | d8c2b3247afc7f837b7d24ec2c93f0fbdc40c584 (patch) | |
tree | 1d7f0afce3bfee5a43d3fbfb655c99488f3689ce | |
parent | 8cfad6a6b15e97d7a753558ebd34f8a9798196f6 (diff) | |
download | mdso-d8c2b3247afc7f837b7d24ec2c93f0fbdc40c584.tar.bz2 mdso-d8c2b3247afc7f837b7d24ec2c93f0fbdc40c584.tar.xz |
libname,dstdir: added interface.
-rw-r--r-- | include/mdso/mdso.h | 2 | ||||
-rw-r--r-- | src/driver/mdso_driver_ctx.c | 8 | ||||
-rw-r--r-- | src/internal/mdso_driver_impl.h | 2 | ||||
-rw-r--r-- | src/skin/mdso_skin_default.c | 6 |
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"}, |