From b123d06e21fbd622806df67951942605d879971e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 10 Feb 2002 07:44:36 +0000 Subject: 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. --- elf/rtld.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'elf/rtld.c') 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. */ -- cgit 1.4.1