diff options
author | midipix <writeonce@midipix.org> | 2015-12-23 00:22:03 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-11 00:22:31 -0500 |
commit | 6848b7f8ed9521f9c4c36b62d4d204e693194cee (patch) | |
tree | c0146d23c021f7e49e4d618f1b7f1d101f15ba3c /src/driver | |
parent | 6691d883d212073b429b940edc8756b0179b4218 (diff) | |
download | mdso-6848b7f8ed9521f9c4c36b62d4d204e693194cee.tar.bz2 mdso-6848b7f8ed9521f9c4c36b62d4d204e693194cee.tar.xz |
driver: added --libpath option.
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/mdso_driver_ctx.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c index 44eb61b..61cd77f 100644 --- a/src/driver/mdso_driver_ctx.c +++ b/src/driver/mdso_driver_ctx.c @@ -15,6 +15,7 @@ #include <mdso/mdso.h> #include <mdso/mdso_output.h> +#include <mdso/mdso_specs.h> #include "mdso_driver_impl.h" #include "argv/argv.h" @@ -177,6 +178,15 @@ int mdso_get_driver_ctx( cctx.drvflags |= MDSO_DRIVER_QUAD_PTR; break; + case TAG_LIBPATH: + if (!(strcmp(entry->arg,"loader"))) + cctx.dsoflags |= MDSO_FLAG_LOADER_PATH; + if (!(strcmp(entry->arg,"peb"))) + cctx.dsoflags |= MDSO_FLAG_PEB_PATH; + if (!(strcmp(entry->arg,"system32"))) + cctx.dsoflags |= MDSO_FLAG_SYSTEM32; + break; + case TAG_LIBNAME: cctx.libname = entry->arg; break; |