Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 7 Feb 2003 19:45:00 +0000 (19:45 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 7 Feb 2003 19:45:00 +0000 (19:45 +0000)
2003-02-07  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-runtime.c (fixup): Correct typo in version index computation.
(profile_fixup): Likewise.

ChangeLog
elf/dl-runtime.c

index a69d3b8..3846f74 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-07  Ulrich Drepper  <drepper@redhat.com>
+
+       * elf/dl-runtime.c (fixup): Correct typo in version index computation.
+       (profile_fixup): Likewise.
+
 2002-11-24  Robert Love  <rml@tech9.net>
 
        * posix/sched.h: Second parameter of sched_setaffinity and
index 911c541..58e4c6c 100644 (file)
@@ -1,5 +1,5 @@
 /* On-demand PLT fixup for shared objects.
-   Copyright (C) 1995-1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1995-2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -84,7 +84,7 @@ fixup (
          {
            const ElfW(Half) *vernum =
              (const void *) D_PTR (l, l_info[VERSYMIDX (DT_VERSYM)]);
-           ElfW(Half) ndx = vernum[ELFW(R_SYM) (reloc->r_info) & 0x7fff];
+           ElfW(Half) ndx = vernum[ELFW(R_SYM) (reloc->r_info)] & 0x7fff;
            const struct r_found_version *version = &l->l_versions[ndx];
 
            if (version->hash != 0)
@@ -179,7 +179,7 @@ profile_fixup (
              {
                const ElfW(Half) *vernum =
                  (const void *) D_PTR (l,l_info[VERSYMIDX (DT_VERSYM)]);
-               ElfW(Half) ndx = vernum[ELFW(R_SYM) (reloc->r_info) & 0x7fff];
+               ElfW(Half) ndx = vernum[ELFW(R_SYM) (reloc->r_info)] & 0x7fff;
                const struct r_found_version *version = &l->l_versions[ndx];
 
                if (version->hash != 0)