From d00911f4c7cd93388d8d23e4966d5aa6da949596 Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Mon, 20 May 2002 21:53:30 +0000 Subject: Added more debug code. --- ldso/ldso/mips/elfinterp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ldso/ldso/mips/elfinterp.c b/ldso/ldso/mips/elfinterp.c index 5b1192169..377c8fa61 100644 --- a/ldso/ldso/mips/elfinterp.c +++ b/ldso/ldso/mips/elfinterp.c @@ -167,6 +167,10 @@ void _dl_perform_mips_global_got_relocations(struct elf_resolve *tpnt) /* Relocate the global GOT entries for the object */ while(i--) { +#ifdef DL_DEBUG + _dl_dprintf(2,"BEFORE: %s=%x\n", strtab + sym->st_name, + *got_entry); +#endif if (sym->st_shndx == SHN_UNDEF) { if (ELF32_ST_TYPE(sym->st_info) == STT_FUNC && sym->st_value) *got_entry = sym->st_value + (unsigned long) tpnt->loadaddr; @@ -194,6 +198,9 @@ void _dl_perform_mips_global_got_relocations(struct elf_resolve *tpnt) #ifdef DL_DEBUG if (*got_entry == 0) _dl_dprintf(2,"ZERO: %s\n", strtab + sym->st_name); + else + _dl_dprintf(2," AFTER: %s=%x\n", strtab + sym->st_name, + *got_entry); #endif got_entry++; -- cgit v1.2.3