Browse Source

x86_64/elfinterp.c: Protect missed debug _dl_printf with __SUPPORT_LD_DEBUG__

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Khem Raj 13 years ago
parent
commit
1537893ad3
1 changed files with 4 additions and 1 deletions
  1. 4 1
      ldso/ldso/x86_64/elfinterp.c

+ 4 - 1
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: