From fd3120fb9ec9fe01d458962dca510eb81d06fcc8 Mon Sep 17 00:00:00 2001 From: Filippo Arcidiacono Date: Wed, 26 Jan 2011 18:33:31 +0100 Subject: 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 Signed-off-by: Salvatore Cro Signed-off-by: Carmelo Amoroso --- ldso/ldso/dl-debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ldso') 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) -- cgit v1.2.3