aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-09-07 09:00:05 +0000
committerRoland McGrath <roland@gnu.org>1995-09-07 09:00:05 +0000
commit1571a01695e14ec40bbfb41e15161797fa24df96 (patch)
tree438c3543c45595b0ba766df4f2530d56f6069d79 /elf
parentf405bed5ef3c228aa552afde9451048ec1a15129 (diff)
downloadglibc-1571a01695e14ec40bbfb41e15161797fa24df96.zip
glibc-1571a01695e14ec40bbfb41e15161797fa24df96.tar.gz
glibc-1571a01695e14ec40bbfb41e15161797fa24df96.tar.bz2
Wed Sep 6 19:41:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* elf/dl-lookup.c (_dl_lookup_symbol): Test WEAK_VALUE.s rather than WEAK_VALUE.a to see if a weak value has been set. A valid weak value may set WEAK_VALUE.a to 0.
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c
index ca0f034..62802dd 100644
--- a/elf/dl-lookup.c
+++ b/elf/dl-lookup.c
@@ -87,7 +87,7 @@ _dl_lookup_symbol (const char *undef_name, const Elf32_Sym **ref,
return map->l_addr;
case STB_WEAK:
/* Weak definition. Use this value if we don't find another. */
- if (weak_value.a == 0)
+ if (! weak_value.s)
{
weak_value.s = sym;
weak_value.a = map->l_addr;