From 9f77c300337e38a52e31775e3e49a19aa30a49c3 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 13 Jun 1996 06:50:11 +0000 Subject: [PATCH] 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. --- elf/dl-lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c index 7ceffa23e1..a1a964fa6a 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: "; -- 2.11.4.GIT