From 1537893ad3e5196facdfcbdbdd4223293edfc46d Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 7 Jul 2011 09:50:17 -0700 Subject: x86_64/elfinterp.c: Protect missed debug _dl_printf with __SUPPORT_LD_DEBUG__ Signed-off-by: Khem Raj --- ldso/ldso/x86_64/elfinterp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ldso/ldso/x86_64/elfinterp.c b/ldso/ldso/x86_64/elfinterp.c index dd9479987..c099fd6f4 100644 --- a/ldso/ldso/x86_64/elfinterp.c +++ b/ldso/ldso/x86_64/elfinterp.c @@ -266,8 +266,11 @@ _dl_do_reloc(struct elf_resolve *tpnt, struct r_scope_elem *scope, _dl_memcpy((char *)reloc_addr, (char *)symbol_addr, sym_ref.sym->st_size); - } else + } +#if defined (__SUPPORT_LD_DEBUG__) + else _dl_dprintf(_dl_debug_file, "no symbol_addr to copy !?\n"); +#endif break; default: -- cgit v1.2.3