[uClibc] Re: [BusyBox] shared lib problem, on MIPS

Atsushi Nemoto anemo at mba.ocn.ne.jp
Tue Nov 25 04:07:46 UTC 2003


>>>>> On Mon, 24 Nov 2003 12:51:29 -0500, "Bradley D. LaRonde" <brad at ltc.com> said:
brad> No, there really was a problem and it was fixed in uClibc CVS a
brad> couple days ago, so the current snapshot has it fixed.

This is not a real FIX, isn't it?  The problem will remain if you
enabled SUPPORT_LD_DEBUG (or DODEBUG, previously).

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

--- uClibc-0.9.23/ldso/ldso/mips/elfinterp.c	Fri Aug 22 16:04:16 2003
+++ uClibc/ldso/ldso/mips/elfinterp.c	Tue Nov 25 12:21:43 2003
@@ -199,7 +199,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) {
@@ -239,7 +240,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
 
---
Atsushi Nemoto



More information about the uClibc mailing list