[PATCH] libdl: add option for controlling dl_cleanup

Richard Braun rbraun at sceen.net
Sun Jul 24 08:43:38 UTC 2011


On Sat, Jul 09, 2011 at 02:06:52PM +0200, Richard Braun wrote:
> 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 at sceen.net>
> ---
>  extra/Configs/Config.in |   12 ++++++++++++
>  ldso/libdl/Makefile.in  |    6 +++++-
>  ldso/libdl/libdl.c      |    2 ++
>  3 files changed, 19 insertions(+), 1 deletions(-)

Could someone have a look please ? It's a really small patch that should
take little time to review.

-- 
Richard Braun


More information about the uClibc mailing list