diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-31 00:20:50 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:35 +0200 |
commit | 6ac83250f28be17add6324129cf5890ca9920701 (patch) | |
tree | 85f1198326934961fd1875a1638f784fd1d0a700 /ldso/ldso/sparc/elfinterp.c | |
parent | 41494ee200f2d4f038b0fe7c79e83a7f45f8b4cd (diff) |
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 <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'ldso/ldso/sparc/elfinterp.c')
-rw-r--r-- | ldso/ldso/sparc/elfinterp.c | 5 |
1 files changed, 4 insertions, 1 deletions
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: |