]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix passing symbol value to pltexit callbacks when ld.so auditing.
authorUlrich Drepper <drepper@gmail.com>
Wed, 2 Feb 2011 16:50:49 +0000 (11:50 -0500)
committerPetr Baudis <pasky@suse.cz>
Thu, 3 Feb 2011 23:35:03 +0000 (00:35 +0100)
(cherry picked from commit 8517b15ee8e39fed11afb784fd0e249d977849f4)

ChangeLog
elf/dl-runtime.c

index 6f3a19b118c4aad4155467d68350ea093fd0a992..3d76b4de1a0953ffc3a876a76492817195241502 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-02-02  Ulrich Drepper  <drepper@gmail.com>
+
+       * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
+       function to the callback.
+       Patch partly by Jiri Olsa <jolsa@redhat.com>.
+
 2011-02-02  Andreas Schwab  <schwab@redhat.com>
 
        * shadow/sgetspent.c: Check return value of __sgetspent_r instead
index 6847edafc6940e849e1bc340163e150e901fc6af..ae2d05c7760c16ea7667106b978725d09eddbd41 100644 (file)
@@ -1,5 +1,5 @@
 /* On-demand PLT fixup for shared objects.
-   Copyright (C) 1995-2009, 2010 Free Software Foundation, Inc.
+   Copyright (C) 1995-2009, 2010, 2011 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
@@ -446,6 +446,7 @@ _dl_call_pltexit (struct link_map *l, ElfW(Word) reloc_arg,
 
   /* Set up the sym parameter.  */
   ElfW(Sym) sym = *defsym;
+  sym.st_value = DL_FIXUP_VALUE_ADDR (reloc_result->addr);
 
   /* Get the symbol name.  */
   const char *strtab = (const void *) D_PTR (reloc_result->bound,