From 7c0ec476c20697b2744dfe2d35732413fe04978d Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 22 Dec 2015 23:23:45 -0500 Subject: driver: added --machine option. --- include/mdso/mdso.h | 1 + src/driver/mdso_driver_ctx.c | 4 ++++ src/internal/mdso_driver_impl.h | 1 + src/skin/mdso_skin_default.c | 3 +++ 4 files changed, 9 insertions(+) diff --git a/include/mdso/mdso.h b/include/mdso/mdso.h index f809813..f912fe8 100644 --- a/include/mdso/mdso.h +++ b/include/mdso/mdso.h @@ -35,6 +35,7 @@ extern "C" { #define MDSO_DRIVER_VERSION 0x0010 #define MDSO_DRIVER_DRY_RUN 0x0020 +#define MDSO_DRIVER_QUAD_PTR 0x0040 /* unit action flags */ 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,"", "set dependency library name to %s"}, -- cgit v1.2.3