diff options
author | Roland McGrath <roland@gnu.org> | 1996-06-13 06:50:11 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-06-13 06:50:11 +0000 |
commit | 8ab1a68d055e3f0eb27b6f02f586a75bec307ac4 (patch) | |
tree | 8818db15500687efbaee64e0416b850b0f4490ce | |
parent | 4d6acc61fa6892b40eaf94de4ff506ff83e37490 (diff) | |
download | glibc-cvs/libc-960613.zip glibc-cvs/libc-960613.tar.gz glibc-cvs/libc-960613.tar.bz2 |
Thu Jun 13 00:02:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>cvs/libc-960613
* elf/dl-lookup.c (_dl_lookup_symbol): If no value and *REF is
null, consider it a strong reference and give the error.
-rw-r--r-- | elf/dl-lookup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c index 7ceffa2..a1a964f 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: "; |