aboutsummaryrefslogtreecommitdiff
path: root/elf/rtld.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-02-10 07:44:36 +0000
committerUlrich Drepper <drepper@redhat.com>2002-02-10 07:44:36 +0000
commitb123d06e21fbd622806df67951942605d879971e (patch)
tree2793b19baca280270087a29f9e3ebf97ec609c3d /elf/rtld.c
parent3065b0c799c01456e8b7095b51bc5b50ffab251f (diff)
downloadglibc-b123d06e21fbd622806df67951942605d879971e.tar
glibc-b123d06e21fbd622806df67951942605d879971e.tar.gz
glibc-b123d06e21fbd622806df67951942605d879971e.tar.bz2
glibc-b123d06e21fbd622806df67951942605d879971e.zip
Update.
* elf/Makefile (tests): Add tst-tls1. * elf/tst-tls1.c: New file. * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle alignment of TCB for now. * elf/rtld.c (dl_main): Use p_vaddr as address of TLS initialization image for the application itself. loop to initialize TLS block.
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index 2ebde4530a..f87462eda8 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -730,8 +730,7 @@ of this helper program; chances are you did not intend to run this program.\n\
GL(dl_loaded)->l_tls_blocksize = ph->p_memsz;
GL(dl_loaded)->l_tls_align = ph->p_align;
GL(dl_loaded)->l_tls_initimage_size = ph->p_filesz;
- GL(dl_loaded)->l_tls_initimage = (void *) (GL(dl_loaded)->l_addr
- + ph->p_offset);
+ GL(dl_loaded)->l_tls_initimage = (void *) ph->p_vaddr;
/* This is the first element of the initialization image list.
We create the list as circular since we have to append at
the end. */