summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorGregory Fong <gregory.0xf0@gmail.com>2014-04-21 11:41:59 -0700
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-04-23 13:40:50 +0200
commit33a59d1c1b9b33bad34e627e9e09035e5e7035f3 (patch)
tree26ba11c6377f839d23be596e69e256d250761590 /ldso
parent75cc39f89b366257d51ad3dbdf1ffd66e52c1a09 (diff)
ldso/mips: actually print results of each relocation
The patched line was outside of the body of the loop over relocations and so would only print the results of the last relocation, fix that. Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/mips/elfinterp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldso/ldso/mips/elfinterp.c b/ldso/ldso/mips/elfinterp.c
index a90e1636b..8bcdddb17 100644
--- a/ldso/ldso/mips/elfinterp.c
+++ b/ldso/ldso/mips/elfinterp.c
@@ -325,11 +325,11 @@ int _dl_parse_relocation_information(struct dyn_elf *xpnt,
_dl_exit(1);
}
}
- }
#if defined (__SUPPORT_LD_DEBUG__)
- if (_dl_debug_reloc && _dl_debug_detail && reloc_addr)
- _dl_dprintf(_dl_debug_file, "\tpatched: %x ==> %x @ %x\n", old_val, *reloc_addr, reloc_addr);
+ if (_dl_debug_reloc && _dl_debug_detail && reloc_addr)
+ _dl_dprintf(_dl_debug_file, "\tpatched: %x ==> %x @ %x\n", old_val, *reloc_addr, reloc_addr);
#endif
+ }
return 0;
}