From b99157573bd36c1d72c818c3196e58513cbd1d53 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 30 Jul 2010 15:11:29 +0200 Subject: open_issues/glibc_tls_segment_tcbhead_t_dtv_offset: More info. --- open_issues/glibc_tls_segment_tcbhead_t_dtv_offset.mdwn | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'open_issues') diff --git a/open_issues/glibc_tls_segment_tcbhead_t_dtv_offset.mdwn b/open_issues/glibc_tls_segment_tcbhead_t_dtv_offset.mdwn index 0d856e1e..47f104c6 100644 --- a/open_issues/glibc_tls_segment_tcbhead_t_dtv_offset.mdwn +++ b/open_issues/glibc_tls_segment_tcbhead_t_dtv_offset.mdwn @@ -18,3 +18,11 @@ IRC, unknown channel, unknown date. what you don't know is that DTV_OFFSET is not relative to __pthread, but to the tls segment Oh, aha. Thanks. and drepper abused the fact that in nptl __pthread appears at the start of the tls segment + +kFreeBSD, glibc: + + ++#if 0 + + DTV_OFFSET offsetof(struct pthread, header.dtv) + ++#else + ++DTV_OFFSET offsetof(struct _pthread_descr_struct, p_header.data.dtvp) + ++#endif -- cgit v1.2.3