summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-03-05 19:47:26 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-03-07 16:37:12 -0600
commit79d38fafe77ab295dfafc19c04e7ea96b20cfe7d (patch)
tree19bc11d8e829fd1efae371fe094484b2d0c10ec0 /ldso
parent474700954dda085369a77e76c1c13a2c93b0a7e1 (diff)
fix non-thread compile for xtensa
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/xtensa/dl-tlsdesc.S4
-rw-r--r--ldso/ldso/xtensa/elfinterp.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/ldso/ldso/xtensa/dl-tlsdesc.S b/ldso/ldso/xtensa/dl-tlsdesc.S
index a6ebc949e..dee42581c 100644
--- a/ldso/ldso/xtensa/dl-tlsdesc.S
+++ b/ldso/ldso/xtensa/dl-tlsdesc.S
@@ -18,6 +18,9 @@
#include <sysdep.h>
#include <tls.h>
+
+#if defined(USE_TLS) && USE_TLS
+
#include "tlsdesc.h"
@@ -94,3 +97,4 @@ _dl_tlsdesc_dynamic:
.size _dl_tlsdesc_dynamic, .-_dl_tlsdesc_dynamic
#endif /* SHARED */
+#endif /* USE_TLS */
diff --git a/ldso/ldso/xtensa/elfinterp.c b/ldso/ldso/xtensa/elfinterp.c
index 1397e95c9..66deb63ab 100644
--- a/ldso/ldso/xtensa/elfinterp.c
+++ b/ldso/ldso/xtensa/elfinterp.c
@@ -31,8 +31,11 @@
*/
#include "ldso.h"
+
+#if defined(USE_TLS) && USE_TLS
#include "dl-tls.h"
#include "tlsdeschtab.h"
+#endif
unsigned long
_dl_linux_resolver (struct elf_resolve *tpnt, int reloc_entry)