summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
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++;