about summary refs log tree commit diff
path: root/elf/dl-reloc.c
diff options
context:
space:
mode:
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 911ce397f2..2c878fc58e 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -51,9 +51,6 @@ _dl_allocate_static_tls (struct link_map *map)
   size_t offset;
   size_t used;
   size_t check;
-  size_t freebytes;
-  size_t n;
-  size_t blsize;
 
   /* If the alignment requirements are too high fail.  */
   if (map->l_tls_align > GL(dl_tls_static_align))
@@ -64,6 +61,10 @@ cannot allocate memory in static TLS block"));
     }
 
 # if TLS_TCB_AT_TP
+  size_t freebytes;
+  size_t n;
+  size_t blsize;
+
   freebytes = GL(dl_tls_static_size) - GL(dl_tls_static_used) - TLS_TCB_SIZE;
 
   blsize = map->l_tls_blocksize + map->l_tls_firstbyte_offset;