From: Roland McGrath Date: Thu, 13 Jun 1996 06:50:11 +0000 (+0000) Subject: Thu Jun 13 00:02:25 1996 Roland McGrath X-Git-Tag: cvs/libc-960613 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ab1a68d055e3f0eb27b6f02f586a75bec307ac4;p=thirdparty%2Fglibc.git Thu Jun 13 00:02:25 1996 Roland McGrath * elf/dl-lookup.c (_dl_lookup_symbol): If no value and *REF is null, consider it a strong reference and give the error. --- diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c index 7ceffa23e11..a1a964fa6a0 100644 --- a/elf/dl-lookup.c +++ b/elf/dl-lookup.c @@ -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: ";