diff options
author | midipix <writeonce@midipix.org> | 2015-12-22 23:23:45 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-11 00:22:30 -0500 |
commit | 7c0ec476c20697b2744dfe2d35732413fe04978d (patch) | |
tree | 02374fc89f927584d905468ef088ac6ec42a35d8 /src | |
parent | 3b42f99f60194a4afea5bf04b9f1439ffde4d666 (diff) | |
download | mdso-7c0ec476c20697b2744dfe2d35732413fe04978d.tar.bz2 mdso-7c0ec476c20697b2744dfe2d35732413fe04978d.tar.xz |
driver: added --machine option.
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/mdso_driver_ctx.c | 4 | ||||
-rw-r--r-- | src/internal/mdso_driver_impl.h | 1 | ||||
-rw-r--r-- | src/skin/mdso_skin_default.c | 3 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c index 21715fb..44eb61b 100644 --- a/src/driver/mdso_driver_ctx.c +++ b/src/driver/mdso_driver_ctx.c @@ -173,6 +173,10 @@ int mdso_get_driver_ctx( cctx.drvflags |= MDSO_DRIVER_VERSION; break; + case TAG_QUAD_PTR: + cctx.drvflags |= MDSO_DRIVER_QUAD_PTR; + break; + case TAG_LIBNAME: cctx.libname = entry->arg; break; diff --git a/src/internal/mdso_driver_impl.h b/src/internal/mdso_driver_impl.h index 09f082a..440ff1e 100644 --- a/src/internal/mdso_driver_impl.h +++ b/src/internal/mdso_driver_impl.h @@ -10,6 +10,7 @@ enum app_tags { TAG_HELP, TAG_VERSION, + TAG_QUAD_PTR, TAG_LIBNAME, TAG_DSTDIR, TAG_PRETTY, diff --git a/src/skin/mdso_skin_default.c b/src/skin/mdso_skin_default.c index a6a4793..8969023 100644 --- a/src/skin/mdso_skin_default.c +++ b/src/skin/mdso_skin_default.c @@ -8,6 +8,9 @@ const struct argv_option mdso_default_options[] = { {"help", 'h',TAG_HELP,ARGV_OPTARG_OPTIONAL,"short|long",0, "show usage information [listing %s options only]"}, + {"machine", 'm',TAG_QUAD_PTR,ARGV_OPTARG_REQUIRED,"32|64",0, + "set machine bits to %s"}, + {"libname", 'n',TAG_LIBNAME,ARGV_OPTARG_REQUIRED,0,"<libname>", "set dependency library name to %s"}, |