Symbols for TLS descriptor handling needed in asm code. i386 version.
authordrepper <drepper>
Tue, 13 May 2008 05:36:56 +0000 (05:36 +0000)
committerdrepper <drepper>
Tue, 13 May 2008 05:36:56 +0000 (05:36 +0000)
sysdeps/i386/tlsdesc.sym [new file with mode: 0644]

diff --git a/sysdeps/i386/tlsdesc.sym b/sysdeps/i386/tlsdesc.sym
new file mode 100644 (file)
index 0000000..3385497
--- /dev/null
@@ -0,0 +1,17 @@
+#include <stddef.h>
+#include <sysdep.h>
+#include <tls.h>
+#include <link.h>
+#include <dl-tlsdesc.h>
+
+--
+
+-- Abuse tls.h macros to derive offsets relative to the thread register.
+
+DTV_OFFSET                     offsetof(struct pthread, header.dtv)
+
+TLSDESC_ARG                    offsetof(struct tlsdesc, arg)
+
+TLSDESC_GEN_COUNT              offsetof(struct tlsdesc_dynamic_arg, gen_count)
+TLSDESC_MODID                  offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_module)
+TLSDESC_MODOFF                 offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_offset)