From 44c40eaa9c923e070ab628ae759bcc01d9431aec Mon Sep 17 00:00:00 2001 From: José Bollo Date: Thu, 6 Feb 2020 09:17:52 +0100 Subject: Improves compatibility with AddressSanitizers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Address sanitizers is expecting shared objects loaded without the flag RTLD_DEEPBIND. This can be achieved by setting the environment variable AFB_NO_RTLD_DEEPBIND to the value 1 (exactly). This implies that the binder takes care of not clashing the namespaces by defining the symbol afbBindingV3root in both environment: the binder and the bindings. Bug-AGL: SPEC-3040 Bug-AGL: SPEC-3162 Signed-off-by: José Bollo Change-Id: Ic064590178d4cf8b34b939e4c9ecd587668f71b8 --- src/afb-trace.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/afb-trace.c') diff --git a/src/afb-trace.c b/src/afb-trace.c index 79c7e035..954cba77 100644 --- a/src/afb-trace.c +++ b/src/afb-trace.c @@ -34,6 +34,7 @@ #endif #define AFB_BINDING_VERSION 3 +#define AFB_BINDING_NO_ROOT #include #include "afb-hook.h" -- cgit 1.2.3-korg