about summary refs log tree commit diff
path: root/elf/dl-load.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-09-12 05:16:00 +0000
committerRoland McGrath <roland@gnu.org>2002-09-12 05:16:00 +0000
commitfb848e15854db60732536c0767ad529b6206311c (patch)
treeb67647e047a4d8a70103ebb5513eae8a7fc9a53e /elf/dl-load.c
parent9bfce4bf2865c2981a8d790ae7f6c50c4e87dd97 (diff)
downloadglibc-fb848e15854db60732536c0767ad529b6206311c.tar.gz
glibc-fb848e15854db60732536c0767ad529b6206311c.tar.xz
glibc-fb848e15854db60732536c0767ad529b6206311c.zip
* elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
	l_map_start to adjust l_tls_initimage.
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r--elf/dl-load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index e7747faf22..1d10541f52 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -1131,7 +1131,7 @@ _dl_map_object_from_fd (const char *name, int fd, struct filebuf *fbp,
 #ifdef USE_TLS
     /* Adjust the address of the TLS initialization image.  */
     if (l->l_tls_initimage != NULL)
-      l->l_tls_initimage = (char *) l->l_tls_initimage + l->l_map_start;
+      l->l_tls_initimage = (char *) l->l_tls_initimage + l->l_addr;
 #endif
 
   /* We are done mapping in the file.  We no longer need the descriptor.  */