Thu Jun 13 00:02:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>

* elf/dl-lookup.c (_dl_lookup_symbol): If no value and *REF is
	null, consider it a strong reference and give the error.
This commit is contained in:
Roland McGrath 1996-06-13 06:50:11 +00:00
parent 4d6acc61fa
commit 8ab1a68d05

View File

@ -130,7 +130,7 @@ _dl_lookup_symbol (const char *undef_name, const ElfW(Sym) **ref,
}
if (weak_value.s == NULL &&
!*ref || ELFW(ST_BIND) ((*ref)->st_info) != STB_WEAK)
(*ref == NULL || ELFW(ST_BIND) ((*ref)->st_info) != STB_WEAK))
{
/* We could find no value for a strong reference. */
const char msg[] = "undefined symbol: ";