2002-02-10 18:58:00 +00:00
|
|
|
/* Macros to support TLS testing in times of missing compiler support. */
|
|
|
|
|
|
|
|
#define COMMON_INT_DEF(x) \
|
|
|
|
asm (".tls_common " #x ",4,4")
|
2002-02-11 01:49:22 +00:00
|
|
|
/* XXX Until we get compiler support we don't need declarations. */
|
|
|
|
#define COMMON_INT_DECL(x)
|
2002-02-10 18:58:00 +00:00
|
|
|
|
|
|
|
/* XXX This definition will probably be machine specific, too. */
|
|
|
|
#define VAR_INT_DEF(x) \
|
|
|
|
asm (".section .tdata\n\t" \
|
|
|
|
".globl " #x "\n" \
|
2003-07-31 07:42:20 +00:00
|
|
|
".balign 4\n" \
|
2002-02-10 18:58:00 +00:00
|
|
|
#x ":\t.long 0\n\t" \
|
2002-02-11 01:49:22 +00:00
|
|
|
".size " #x ",4\n\t" \
|
2002-02-10 18:58:00 +00:00
|
|
|
".previous")
|
2002-02-11 01:49:22 +00:00
|
|
|
/* XXX Until we get compiler support we don't need declarations. */
|
|
|
|
#define VAR_INT_DECL(x)
|
2002-02-10 18:58:00 +00:00
|
|
|
|
2005-03-13 09:09:05 +00:00
|
|
|
#include_next <tls-macros.h>
|
2002-02-10 18:58:00 +00:00
|
|
|
|
|
|
|
/* XXX Each architecture must have its own asm for now. */
|
2012-07-17 11:30:58 +00:00
|
|
|
#if !defined TLS_LE || !defined TLS_IE \
|
2005-03-27 20:06:13 +00:00
|
|
|
|| !defined TLS_LD || !defined TLS_GD
|
2002-02-10 18:58:00 +00:00
|
|
|
# error "No support for this architecture so far."
|
|
|
|
#endif
|