summary refs log tree commit diff
path: root/elf/dl-reloc.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-02-22 01:58:38 +0000
committerUlrich Drepper <drepper@redhat.com>2005-02-22 01:58:38 +0000
commitaf272d4fa88306ec6a9c112cae6ebbb45f0b296e (patch)
tree1483cd90adb37e8e6e25622bfeca38d003a95c1b /elf/dl-reloc.c
parent777bc09586f66bbc38741dcad44a56db74e90e3b (diff)
downloadglibc-af272d4fa88306ec6a9c112cae6ebbb45f0b296e.tar.gz
glibc-af272d4fa88306ec6a9c112cae6ebbb45f0b296e.tar.xz
glibc-af272d4fa88306ec6a9c112cae6ebbb45f0b296e.zip
* elf/dl-reloc.c (_dl_nothread_init_static_tls): Avoid using
	THREAD_DTV multiple times, this minimally reduces code size on
	some archs.
Diffstat (limited to 'elf/dl-reloc.c')
-rw-r--r--elf/dl-reloc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
index b680683198..c3a58dd921 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -1,5 +1,5 @@
 /* Relocate a shared object and resolve its references to other loaded objects.
-   Copyright (C) 1995-2002, 2003, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1995-2004, 2005 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
@@ -124,8 +124,9 @@ _dl_nothread_init_static_tls (struct link_map *map)
 # endif
 
   /* Fill in the DTV slot so that a later LD/GD access will find it.  */
-  THREAD_DTV ()[map->l_tls_modid].pointer.val = dest;
-  THREAD_DTV ()[map->l_tls_modid].pointer.is_static = true;
+  dtv_t *dtv = THREAD_DTV ();
+  dtv[map->l_tls_modid].pointer.val = dest;
+  dtv[map->l_tls_modid].pointer.is_static = true;
 
   /* Initialize the memory.  */
   memset (__mempcpy (dest, map->l_tls_initimage, map->l_tls_initimage_size),