svn commit: trunk/uClibc/ldso/ldso
vapier at uclibc.org
vapier at uclibc.org
Fri Sep 28 20:14:37 UTC 2007
Author: vapier
Date: 2007-09-28 13:14:36 -0700 (Fri, 28 Sep 2007)
New Revision: 20095
Log:
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:
trunk/uClibc/ldso/ldso/dl-hash.c
Changeset:
Modified: trunk/uClibc/ldso/ldso/dl-hash.c
===================================================================
--- trunk/uClibc/ldso/ldso/dl-hash.c 2007-09-28 20:10:22 UTC (rev 20094)
+++ trunk/uClibc/ldso/ldso/dl-hash.c 2007-09-28 20:14:36 UTC (rev 20095)
@@ -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