aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-close.c2
-rw-r--r--elf/tst-tls1.c5
-rw-r--r--elf/tst-tls2.c5
-rw-r--r--elf/tst-tls3.c5
4 files changed, 11 insertions, 6 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c
index 5c7e5dad38..8eefb351b2 100644
--- a/elf/dl-close.c
+++ b/elf/dl-close.c
@@ -333,6 +333,7 @@ _dl_close (void *_map)
}
+#ifdef USE_TLS
static bool
free_slotinfo (struct dtv_slotinfo_list *elemp)
{
@@ -355,6 +356,7 @@ free_slotinfo (struct dtv_slotinfo_list *elemp)
return true;
}
+#endif
static void
diff --git a/elf/tst-tls1.c b/elf/tst-tls1.c
index 74e9a915b3..478f5bbdcd 100644
--- a/elf/tst-tls1.c
+++ b/elf/tst-tls1.c
@@ -2,10 +2,11 @@
#include <stdio.h>
#include <tls.h>
-#include "tls-macros.h"
-
#ifdef USE_TLS
+# include "tls-macros.h"
+
+
/* Two common 'int' variables in TLS. */
COMMON_INT_DEF(foo);
COMMON_INT_DEF(bar);
diff --git a/elf/tst-tls2.c b/elf/tst-tls2.c
index a15c5f5fe8..417489968e 100644
--- a/elf/tst-tls2.c
+++ b/elf/tst-tls2.c
@@ -2,10 +2,11 @@
#include <stdio.h>
#include <tls.h>
-#include "tls-macros.h"
-
#ifdef USE_TLS
+# include "tls-macros.h"
+
+
/* Two 'int' variables in TLS. */
VAR_INT_DEF(foo);
VAR_INT_DEF(bar);
diff --git a/elf/tst-tls3.c b/elf/tst-tls3.c
index 58bb183c8d..84be43575b 100644
--- a/elf/tst-tls3.c
+++ b/elf/tst-tls3.c
@@ -2,10 +2,11 @@
#include <stdio.h>
#include <tls.h>
-#include "tls-macros.h"
-
#ifdef USE_TLS
+# include "tls-macros.h"
+
+
/* One define int variable, two externs. */
COMMON_INT_DECL(foo);
VAR_INT_DECL(bar);