[git commit] ldso: fix _dl_debug_lookup to handle protected symbols
Filippo Arcidiacono
filippo.arcidiacono at st.com
Fri Jul 1 07:49:47 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=fd3120fb9ec9fe01d458962dca510eb81d06fcc8
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
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 at st.com>
Signed-off-by: Salvatore Cro <salvatore.cro at st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>
---
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 8a54819..1758bc3 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)
--
1.7.3.4
More information about the uClibc-cvs
mailing list