diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-02-02 11:50:49 -0500 |
---|---|---|
committer | Petr Baudis <pasky@suse.cz> | 2011-02-04 00:35:03 +0100 |
commit | b72646ad0c414b7e81540de0a72945cd1c858668 (patch) | |
tree | b1435060b309e2478b745b7eded38c14e2f768f8 /elf | |
parent | b472343aa6febfb469b1022b4cf56d519ab30022 (diff) | |
download | glibc-b72646ad0c414b7e81540de0a72945cd1c858668.tar.gz |
Fix passing symbol value to pltexit callbacks when ld.so auditing.
(cherry picked from commit 8517b15ee8e39fed11afb784fd0e249d977849f4)
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-runtime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/dl-runtime.c b/elf/dl-runtime.c index 6847edafc6..ae2d05c776 100644 --- a/elf/dl-runtime.c +++ b/elf/dl-runtime.c @@ -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, |