Skip to content

Commit

Permalink
Wed Sep 6 19:41:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Browse files Browse the repository at this point in the history
	* 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.
  • Loading branch information
Roland McGrath committed Sep 7, 1995
1 parent f405bed commit 1571a01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
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.

Fri Sep 1 16:16:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>

* sysdeps/mach/hurd/i386/longjmp-ts.c: Use new array format for
Expand Down
2 changes: 1 addition & 1 deletion elf/dl-lookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1571a01

Please sign in to comment.