[uClibc-cvs] uClibc/ldso/ldso/mips elfinterp.c,1.11,1.12

Erik Andersen andersen at uclibc.org
Sat Feb 14 12:33:22 UTC 2004


Update of /var/cvs/uClibc/ldso/ldso/mips
In directory nail:/tmp/cvs-serv10462/mips

Modified Files:
	elfinterp.c 
Log Message:
Atsushi Nemoto writes:

Also, if you are to enable SUPPORT_LD_DEBUG on MIPS, I think this
patch is needed too.



Index: elfinterp.c
===================================================================
RCS file: /var/cvs/uClibc/ldso/ldso/mips/elfinterp.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- elfinterp.c	14 Feb 2004 11:54:01 -0000	1.11
+++ elfinterp.c	14 Feb 2004 12:33:19 -0000	1.12
@@ -208,7 +208,8 @@
 #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 @@
 
 	};
 #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
 




More information about the uClibc-cvs mailing list