If we match a symbol name, but it's undefined, do not continue searching the

hash chain.
This commit is contained in:
mycroft 2002-09-13 03:40:40 +00:00
parent bbe45a0623
commit 777a2b8bb0
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: symbol.c,v 1.18 2002/09/12 22:56:29 mycroft Exp $ */ /* $NetBSD: symbol.c,v 1.19 2002/09/13 03:40:40 mycroft Exp $ */
/* /*
* Copyright 1996 John D. Polstra. * Copyright 1996 John D. Polstra.
@ -134,9 +134,10 @@ _rtld_symlook_obj(name, hash, obj, in_plt)
|| (!in_plt && symp->st_value != 0 && || (!in_plt && symp->st_value != 0 &&
ELF_ST_TYPE(symp->st_info) == STT_FUNC) ELF_ST_TYPE(symp->st_info) == STT_FUNC)
#endif #endif
) { )
return symp; return symp;
} else
return NULL;
} }
symnum = obj->chains[symnum]; symnum = obj->chains[symnum];
} }