summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2011-07-09 14:06:52 +0200
committerCarmelo Amoroso <carmelo.amoroso@st.com>2011-07-25 09:09:03 +0200
commit3d5cec4ff704c2dec151f3cdbcc426d746d37fcc (patch)
tree81210e286c1fb3a86f7c4dcbc9d9e29319c39903 /extra
parent63e61626c1e052c55d76861b771eda6602a14477 (diff)
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>
Diffstat (limited to 'extra')
-rw-r--r--extra/Configs/Config.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in
index 2fa0b076d..af4c0380f 100644
--- a/extra/Configs/Config.in
+++ b/extra/Configs/Config.in
@@ -417,6 +417,18 @@ config LDSO_SEARCH_INTERP_PATH
If unsure, simply say Y here.
+config LDSO_NO_CLEANUP
+ bool "Disable automatic unloading of dynamically loaded shared objects"
+ depends on HAVE_SHARED
+ default n
+ help
+ If you need complete allocation traces when debugging memory leaks
+ using Valgrind in a process that dynamically loads shared objects,
+ then answer Y here. Unlike glibc, uClibc unloads all dynamically
+ loaded shared objects when a process exits, which prevents Valgrind
+ from correctly resolving the symbols from the unloaded shared objects.
+ Unless you know you need this, you should answer N.
+
config UCLIBC_CTOR_DTOR
bool "Support global constructors and destructors"
default y