svn commit: trunk/uClibc/ldso/ldso

vapier at uclibc.org vapier at uclibc.org
Mon Oct 8 02:03:49 UTC 2007


Author: vapier
Date: 2007-10-07 19:03:48 -0700 (Sun, 07 Oct 2007)
New Revision: 20204

Log:
Do string comparisos as late as possible during symbol lookup.

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-10-07 21:06:51 UTC (rev 20203)
+++ trunk/uClibc/ldso/ldso/dl-hash.c	2007-10-08 02:03:48 UTC (rev 20204)
@@ -175,12 +175,12 @@
 
 			if (type_class & (sym->st_shndx == SHN_UNDEF))
 				continue;
-			if (_dl_strcmp(strtab + sym->st_name, name) != 0)
-				continue;
 			if (sym->st_value == 0)
 				continue;
 			if (ELF_ST_TYPE(sym->st_info) > STT_FUNC)
 				continue;
+			if (_dl_strcmp(strtab + sym->st_name, name) != 0)
+				continue;
 
 			switch (ELF_ST_BIND(sym->st_info)) {
 			case STB_WEAK:




More information about the uClibc-cvs mailing list