OSDN Git Service

libdl: fix dlclose handling of symbol scope
authorCarmelo Amoroso <carmelo.amoroso@st.com>
Tue, 17 Jan 2012 17:23:43 +0000 (18:23 +0100)
committerKhem Raj <raj.khem@gmail.com>
Tue, 24 Jan 2012 00:21:18 +0000 (16:21 -0800)
commit99d28cc0860e240357c02483f0c4016a6b30aad0
tree3e72ca9bcf6d3481b4fee8302b53a98ff800cd0b
parentb18b4210a84f87f7155683d73a0ab924c34fa3f2
libdl: fix dlclose handling of symbol scope

Defer removal of the local scope of a dl-opened library after
all the destructors (of itself and related dependencies) are actually
get unloaded, otherwise any function registered via atexit()
won't be resolved.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
ldso/libdl/libdl.c