diff options
Diffstat (limited to 'open_issues')
-rw-r--r-- | open_issues/glibc_tls_segment_tcbhead_t_dtv_offset.mdwn | 8 |
1 files changed, 8 insertions, 0 deletions
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. <youpi> what you don't know is that DTV_OFFSET is not relative to __pthread, but to the tls segment <tschwinge> Oh, aha. Thanks. <youpi> 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 |