From 95a9547d60251ead96dd241b8ee9b6c7c31df2c6 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 3 Feb 2017 01:12:25 -0500 Subject: driver: flags: properly initialize the MDSO_DRIVER_QUAD_PTR bit. --- src/driver/mdso_driver_ctx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3