From 6ac83250f28be17add6324129cf5890ca9920701 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 31 Mar 2011 00:20:50 +0200 Subject: ldso: use _dl_strdup and _dl_dprintf only in ld-uClibc.so Add support for %p to _dl_dprintf for later corrections in debug messages. Disable _dl_debug_file if LD debugging is not enabled and change it's use to 2. The use of dprintf in elfinterp.c will spit out warnings, will be fixed in the reworked ldso. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- ldso/ldso/sparc/elfinterp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ldso/ldso/sparc') diff --git a/ldso/ldso/sparc/elfinterp.c b/ldso/ldso/sparc/elfinterp.c index e3f0e470a..bb61be9eb 100644 --- a/ldso/ldso/sparc/elfinterp.c +++ b/ldso/ldso/sparc/elfinterp.c @@ -275,8 +275,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; #if defined USE_TLS && USE_TLS case R_SPARC_TLS_DTPMOD32: -- cgit v1.2.3