OSDN Git Service

libdl: add option for controlling dl_cleanup
authorRichard Braun <rbraun@sceen.net>
Sat, 9 Jul 2011 12:06:52 +0000 (14:06 +0200)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Mon, 25 Jul 2011 07:09:03 +0000 (09:09 +0200)
commit3d5cec4ff704c2dec151f3cdbcc426d746d37fcc
tree81210e286c1fb3a86f7c4dcbc9d9e29319c39903
parent63e61626c1e052c55d76861b771eda6602a14477
libdl: add option for controlling dl_cleanup

When debugging memory leaks with Valgrind, it is required that
dynamically loaded shared objects are not unloaded when a process exits,
otherwise symbols from those files aren't correctly resolved in
allocation traces. This patch adds the LDSO_NO_CLEANUP configuration
option to control this behaviour.

Signed-off-by: Richard Braun <rbraun@sceen.net>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
extra/Configs/Config.in
ldso/libdl/Makefile.in
ldso/libdl/libdl.c