summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-02-14 12:33:19 +0000
committerEric Andersen <andersen@codepoet.org>2004-02-14 12:33:19 +0000
commit2056e1e1a2670183e2fd9deb08ec3f0e0a7814d0 (patch)
tree357acb4dbf01cb510be41fbfffe41a2b7377d678 /ldso
parentdcaf1062a9cfada3a53f4247035643fd9fb5a412 (diff)
Atsushi Nemoto writes:
Also, if you are to enable SUPPORT_LD_DEBUG on MIPS, I think this patch is needed too.
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/mips/elfinterp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldso/ldso/mips/elfinterp.c b/ldso/ldso/mips/elfinterp.c
index 97923caa3..3cb7fdb60 100644
--- a/ldso/ldso/mips/elfinterp.c
+++ b/ldso/ldso/mips/elfinterp.c
@@ -208,7 +208,8 @@ int _dl_parse_relocation_information(struct dyn_elf *xpnt,
#if defined (__SUPPORT_LD_DEBUG__)
debug_sym(symtab,strtab,symtab_index);
debug_reloc(symtab,strtab,rpnt);
- old_val = *reloc_addr;
+ if (reloc_addr)
+ old_val = *reloc_addr;
#endif
switch (reloc_type) {
@@ -248,7 +249,7 @@ int _dl_parse_relocation_information(struct dyn_elf *xpnt,
};
#if defined (__SUPPORT_LD_DEBUG__)
- if(_dl_debug_reloc && _dl_debug_detail)
+ 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