aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-supervision.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2020-02-06 09:17:52 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-02-12 13:37:19 +0000
commit44c40eaa9c923e070ab628ae759bcc01d9431aec (patch)
tree816554ab0266cc77312b97b761a0dcd501fbf917 /src/afb-supervision.c
parent00b0c28ff1c4a111a86175ac945c519315082229 (diff)
Improves compatibility with AddressSanitizersicefish_9.0.0icefish/9.0.09.0.0
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 <jose.bollo@iot.bzh> Change-Id: Ic064590178d4cf8b34b939e4c9ecd587668f71b8
Diffstat (limited to 'src/afb-supervision.c')
-rw-r--r--src/afb-supervision.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afb-supervision.c b/src/afb-supervision.c
index 211c3fd0..6563d92b 100644
--- a/src/afb-supervision.c
+++ b/src/afb-supervision.c
@@ -32,6 +32,7 @@
#include <json-c/json.h>
#define AFB_BINDING_VERSION 3
+#define AFB_BINDING_NO_ROOT
#include <afb/afb-binding.h>
#include "afb-api.h"