summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf/powerpc/rtld_machdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rtld-elf/powerpc/rtld_machdep.h')
-rw-r--r--libexec/rtld-elf/powerpc/rtld_machdep.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libexec/rtld-elf/powerpc/rtld_machdep.h b/libexec/rtld-elf/powerpc/rtld_machdep.h
index 534882b..38e105d 100644
--- a/libexec/rtld-elf/powerpc/rtld_machdep.h
+++ b/libexec/rtld-elf/powerpc/rtld_machdep.h
@@ -62,6 +62,14 @@ void _rtld_bind_start(void);
void _rtld_powerpc_pltresolve(void);
void _rtld_powerpc_pltcall(void);
+/*
+ * TLS
+ */
+
+#define TLS_TP_OFFSET 0x7000
+#define TLS_DTV_OFFSET 0x8000
+#define TLS_TCB_SIZE 8
+
#define round(size, align) \
(((size) + (align) - 1) & ~((align) - 1))
#define calculate_first_tls_offset(size, align) \
OpenPOWER on IntegriCloud