]> Git Repo - uclibc-ng.git/commitdiff
Atsushi Nemoto writes:
authorEric Andersen <[email protected]>
Sat, 14 Feb 2004 12:33:19 +0000 (12:33 -0000)
committerEric Andersen <[email protected]>
Sat, 14 Feb 2004 12:33:19 +0000 (12:33 -0000)
Also, if you are to enable SUPPORT_LD_DEBUG on MIPS, I think this
patch is needed too.

ldso/ldso/mips/elfinterp.c

index 97923caa3843629c0b06eb6c3c43a590ac414feb..3cb7fdb608ad785d767ffa056301073565284bfd 100644 (file)
@@ -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
 
This page took 0.028875 seconds and 4 git commands to generate.