@@ -134,6 +134,6 @@ along with GCC; see the file COPYING3. If not see
/* i386 glibc provides __stack_chk_guard in %gs:0x14. */
#define TARGET_THREAD_SSP_OFFSET 0x14
-/* We steal the last transactional memory word. */
-#define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
+/* i386 glibc provides __private_ss in %gs:0x34. */
+#define TARGET_THREAD_SPLIT_STACK_OFFSET 0x34
#endif
@@ -86,9 +86,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define TARGET_THREAD_SSP_OFFSET \
(TARGET_64BIT ? (TARGET_X32 ? 0x18 : 0x28) : 0x14)
-/* We steal the last transactional memory word. */
+/* i386 glibc provides __private_ss in %gs:0x34,
+ x32 glibc provides it in %fs:0x40.
+ x86_64 glibc provides it in %fs:0x70. */
#define TARGET_THREAD_SPLIT_STACK_OFFSET \
- (TARGET_64BIT ? (TARGET_X32 ? 0x40 : 0x70) : 0x30)
+ (TARGET_64BIT ? (TARGET_X32 ? 0x40 : 0x70) : 0x34)
#endif
#undef WCHAR_TYPE