svn commit: branches/uClibc_0_9_29/ldso/ldso

vapier at uclibc.org vapier at uclibc.org
Sat Jan 5 17:39:56 UTC 2008


Author: vapier
Date: 2008-01-05 09:39:56 -0800 (Sat, 05 Jan 2008)
New Revision: 20774

Log:
Merge r20095 by vapier from trunk:
Make sure that the DSO has an hash table into its elf, otherwise skip
the lookup over next DSO.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>


Modified:
   branches/uClibc_0_9_29/ldso/ldso/dl-hash.c


Changeset:
Modified: branches/uClibc_0_9_29/ldso/ldso/dl-hash.c
===================================================================
--- branches/uClibc_0_9_29/ldso/ldso/dl-hash.c	2008-01-05 17:39:23 UTC (rev 20773)
+++ branches/uClibc_0_9_29/ldso/ldso/dl-hash.c	2008-01-05 17:39:56 UTC (rev 20774)
@@ -161,6 +161,10 @@
 		if ((type_class &  ELF_RTYPE_CLASS_COPY) && tpnt->libtype == elf_executable)
 			continue;
 
+		/* If the hash table is empty there is nothing to do here.  */
+		if (tpnt->nbucket == 0)
+			continue;
+
 		/* Avoid calling .urem here. */
 		do_rem(hn, elf_hash_number, tpnt->nbucket);
 		symtab = (ElfW(Sym) *) tpnt->dynamic_info[DT_SYMTAB];




More information about the uClibc-cvs mailing list