]> sourceware.org Git - glibc.git/commitdiff
Wed Sep 6 19:41:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
authorRoland McGrath <roland@gnu.org>
Thu, 7 Sep 1995 09:00:05 +0000 (09:00 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 7 Sep 1995 09:00:05 +0000 (09:00 +0000)
* 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.

ChangeLog
elf/dl-lookup.c

index e8d36d3d13e2510ebd0154456b4a47e98b1ebb53..2b307d66a66944e8490ccf413d6faa9d9854e4f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index ca0f03489dcba0917d0d5eb0a15059c355d502d7..62802ddea7901eb09ea35b87393eecbe4d21ea60 100644 (file)
@@ -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;
This page took 0.049636 seconds and 5 git commands to generate.