summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-06-04 08:00:56 -0400
committermidipix <writeonce@midipix.org>2018-06-04 08:00:56 -0400
commit313f34ae264eaf73988d16b66d963ef771e96e36 (patch)
tree79bc3b35fae09ce79747b09fc260e2d6e4c9abd7 /src/driver
parent9bfad0da72fbc4e30bbe48e5a2a88c811ac2a375 (diff)
downloadmdso-313f34ae264eaf73988d16b66d963ef771e96e36.tar.bz2
mdso-313f34ae264eaf73988d16b66d963ef771e96e36.tar.xz
mdso flags: added MDSO_FLAG_LDSO_LIB as a reference to the loader lib. itself.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/mdso_driver_ctx.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c
index ef08600..c7950d5 100644
--- a/src/driver/mdso_driver_ctx.c
+++ b/src/driver/mdso_driver_ctx.c
@@ -21,6 +21,7 @@
#include "argv/argv.h"
#define MDSO_LOADER_FLAGS_MASK (MDSO_FLAG_LOADER_PATH \
+ | MDSO_FLAG_LDSO_LIB \
| MDSO_FLAG_PEB_PATH \
| MDSO_FLAG_SYSTEM32)
@@ -234,9 +235,14 @@ int mdso_get_driver_ctx(
if (!(strcmp(entry->arg,"loader")))
cctx.dsoflags |= MDSO_FLAG_LOADER_PATH;
- if (!(strcmp(entry->arg,"peb")))
+
+ else if (!(strcmp(entry->arg,"ldso")))
+ cctx.dsoflags |= MDSO_FLAG_LDSO_LIB;
+
+ else if (!(strcmp(entry->arg,"peb")))
cctx.dsoflags |= MDSO_FLAG_PEB_PATH;
- if (!(strcmp(entry->arg,"system32")))
+
+ else if (!(strcmp(entry->arg,"system32")))
cctx.dsoflags |= MDSO_FLAG_SYSTEM32;
break;