summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2002-05-20 21:53:30 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2002-05-20 21:53:30 +0000
commitd00911f4c7cd93388d8d23e4966d5aa6da949596 (patch)
tree0704a402ca5df1a6e43600d66812d17380fa979e /ldso
parentb91b4d00d0bdc9c29a43a3cf859f1444273495cd (diff)
Added more debug code.
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/mips/elfinterp.c7
1 files changed, 7 insertions, 0 deletions
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++;