OSDN Git Service

libdl: fix local symbol's address handling in dladdr
authorFilippo Arcidiacono <filippo.arcidiacono@st.com>
Fri, 6 May 2011 14:49:28 +0000 (16:49 +0200)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Tue, 10 May 2011 09:53:41 +0000 (11:53 +0200)
commit974d3140577ac740c8db2f1ad9635c4ba591361e
tree0bf1224803cd5d7e87bd03dabdb3694885e49871
parent3e68c52b941636714d2599ea8adda9520ec2de23
libdl: fix local symbol's address handling in dladdr

Fix dladdr to correctly handle local function's address so backtrace_symbols
print only the function address for these function, instead of showing the name
of nearest one.
Indeed the dladdr walk through the hash table to find the nearest symbol, that
doesn't contain local symbols.

Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
ldso/include/dl-defs.h
ldso/libdl/libdl.c