From fb848e15854db60732536c0767ad529b6206311c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 12 Sep 2002 05:16:00 +0000 Subject: * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of l_map_start to adjust l_tls_initimage. --- elf/dl-load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf') 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. */ -- cgit v1.2.3-65-gdbad