diff options
author | Filippo Arcidiacono <filippo.arcidiacono@st.com> | 2011-01-26 18:33:31 +0100 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2011-01-27 16:03:14 +0100 |
commit | fd3120fb9ec9fe01d458962dca510eb81d06fcc8 (patch) | |
tree | 26bd6aa93bf4a091ee8403e4adffea001dc2d4f3 /ldso | |
parent | c0e02109219a857fc94a26a9eb07d60527730073 (diff) |
ldso: fix _dl_debug_lookup to handle protected symbols
Initialize symbol_ref.sym field before calling _dl_find_hash to correctly
handle protected symbols when tracing objects in the prelink stage.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Salvatore Cro <salvatore.cro@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/dl-debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/dl-debug.c b/ldso/ldso/dl-debug.c index 8a548195f..1758bc387 100644 --- a/ldso/ldso/dl-debug.c +++ b/ldso/ldso/dl-debug.c @@ -117,7 +117,7 @@ _dl_debug_lookup (const char *undef_name, struct elf_resolve *undef_map, if (_dl_trace_prelink) { int conflict = 0; - struct symbol_ref val = { NULL, NULL }; + struct symbol_ref val = { ref, NULL }; if ((_dl_trace_prelink_map == NULL || _dl_trace_prelink_map == _dl_loaded_modules) |