Improves compatibility with AddressSanitizers 41/23941/1 9.0.0 icefish/9.0.0 icefish_9.0.0
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 6 Feb 2020 08:17:52 +0000 (09:17 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 12 Feb 2020 13:37:19 +0000 (13:37 +0000)
commit44c40eaa9c923e070ab628ae759bcc01d9431aec
tree816554ab0266cc77312b97b761a0dcd501fbf917
parent00b0c28ff1c4a111a86175ac945c519315082229
Improves compatibility with AddressSanitizers

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
include/afb/afb-binding-v3.h
src/afb-api-so.c
src/afb-monitor.c
src/afb-supervision.c
src/afb-trace.c
src/afs-supervisor.c