summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-02-03 01:12:25 -0500
committermidipix <writeonce@midipix.org>2017-02-03 01:12:25 -0500
commit95a9547d60251ead96dd241b8ee9b6c7c31df2c6 (patch)
treeb76b2ddd3aa6cf3f6dcbd56418c2f4b6897683b1
parente8cdf6b3d3182e64e84be26281bdc22b6eaa9f58 (diff)
downloadmdso-95a9547d60251ead96dd241b8ee9b6c7c31df2c6.tar.bz2
mdso-95a9547d60251ead96dd241b8ee9b6c7c31df2c6.tar.xz
driver: flags: properly initialize the MDSO_DRIVER_QUAD_PTR bit.
-rw-r--r--src/driver/mdso_driver_ctx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c
index 096c918..a80f99a 100644
--- a/src/driver/mdso_driver_ctx.c
+++ b/src/driver/mdso_driver_ctx.c
@@ -193,7 +193,10 @@ int mdso_get_driver_ctx(
break;
case TAG_QUAD_PTR:
- cctx.drvflags |= MDSO_DRIVER_QUAD_PTR;
+ if (!(strcmp(entry->arg,"64")))
+ cctx.drvflags |= MDSO_DRIVER_QUAD_PTR;
+ else
+ cctx.drvflags &= ~(uint64_t)MDSO_DRIVER_QUAD_PTR;
break;
case TAG_LIBPATH: