From af81020e98934823e8a67fd1c8477b081e167e92 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 13 Mar 2005 09:09:05 +0000 Subject: * elf/tls-macros.h: #include_next to get a sysdeps version if there is one. Only #error if macros are then undefined. * sysdeps/generic/tls-macros.h: New file. --- elf/tls-macros.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'elf') diff --git a/elf/tls-macros.h b/elf/tls-macros.h index bed2e14899..c6626c2e75 100644 --- a/elf/tls-macros.h +++ b/elf/tls-macros.h @@ -16,6 +16,7 @@ /* XXX Until we get compiler support we don't need declarations. */ #define VAR_INT_DECL(x) +#include_next /* XXX Each architecture must have its own asm for now. */ #ifdef __i386__ @@ -731,6 +732,7 @@ register void *__gp __asm__("$29"); __result; \ }) -#else +#elif !defined TLS_LE || !defined TLS_IE \ + || !defined TLS_LD || !defined TLS_GD(x) # error "No support for this architecture so far." #endif -- cgit v1.2.3