ldso: fix compilation for !LD_DEBUG

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
Bernhard Reutner-Fischer 2012-02-09 10:02:53 +01:00
parent cd73f451aa
commit 38c29ff319
4 changed files with 14 additions and 5 deletions

View File

@ -77,9 +77,9 @@ unsigned long _dl_linux_resolver(struct elf_resolve *tpnt, int reloc_entry)
_dl_exit(1);
}
#if defined (__SUPPORT_LD_DEBUG__)
#if !defined __SUPPORT_LD_DEBUG_EARLY__
# if !defined __SUPPORT_LD_DEBUG_EARLY__
if ((unsigned long) got_addr < 0x40000000)
#endif
# endif
{
if (_dl_debug_bindings)
{

View File

@ -237,8 +237,11 @@ _dl_do_reloc(struct elf_resolve *tpnt, struct dyn_elf *scope,
_dl_memcpy ((void *) reloc_addr,
(void *) 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:

View File

@ -271,8 +271,11 @@ _dl_do_reloc(struct elf_resolve *tpnt, struct dyn_elf *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:

View File

@ -264,8 +264,11 @@ _dl_do_reloc(struct elf_resolve *tpnt, struct dyn_elf *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: