Also, if you are to enable SUPPORT_LD_DEBUG on MIPS, I think this
patch is needed too.
#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) {
};
#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