From af81020e98934823e8a67fd1c8477b081e167e92 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 13 Mar 2005 09:09:05 +0000 Subject: [PATCH] * 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. --- ChangeLog | 6 ++++++ elf/tls-macros.h | 4 +++- sysdeps/generic/tls-macros.h | 12 ++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 sysdeps/generic/tls-macros.h diff --git a/ChangeLog b/ChangeLog index 27b822f..7aa2154 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-03-13 Roland McGrath + + * 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. + 2005-03-10 GOTO Masanori * sysdeps/hppa/configure.in: Remove old Makefile leftovers. diff --git a/elf/tls-macros.h b/elf/tls-macros.h index bed2e14..c6626c2 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 diff --git a/sysdeps/generic/tls-macros.h b/sysdeps/generic/tls-macros.h new file mode 100644 index 0000000..0a08f7c --- /dev/null +++ b/sysdeps/generic/tls-macros.h @@ -0,0 +1,12 @@ +/* Macros to support TLS testing in times of missing compiler support. + Stub version. + + These macros should yield int * expressions for the TLS symbol X + accessed using the various TLS access models. Macros for some machines + are defined in elf/tls-macros.h, but ports can instead provide this file. + +#define TLS_LE(x) +#define TLS_IE(x) +#define TLS_LD(x) +#define TLS_GD(x) +*/ -- 2.7.4