summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ldso/ldso/sh/elfinterp.c3
-rw-r--r--ldso/libdl/libdl.c5
2 files changed, 2 insertions, 6 deletions
diff --git a/ldso/ldso/sh/elfinterp.c b/ldso/ldso/sh/elfinterp.c
index db86b0c0c..92199ef13 100644
--- a/ldso/ldso/sh/elfinterp.c
+++ b/ldso/ldso/sh/elfinterp.c
@@ -167,9 +167,8 @@ _dl_do_reloc (struct elf_resolve *tpnt,struct dyn_elf *scope,
#if defined (__SUPPORT_LD_DEBUG__)
unsigned long old_val;
#endif
-#if USE_TLS
+
struct elf_resolve *tls_tpnt = NULL;
-#endif
reloc_addr = (unsigned long *)(intptr_t) (tpnt->loadaddr + (unsigned long) rpnt->r_offset);
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index cd18729a9..e4f564bc2 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -606,10 +606,7 @@ void *dlsym(void *vhandle, const char *name)
struct dyn_elf *rpnt;
void *ret;
-#if defined USE_TLS
-struct elf_resolve *tls_tpnt = NULL;
-#endif
-
+ struct elf_resolve *tls_tpnt = NULL;
handle = (struct dyn_elf *) vhandle;