History log of /freebsd-9.3-release/lib/libc/gen/tls.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 237395 21-Jun-2012 marius

MFC: r232582 (partial)

- Switch ARM to TLS Variant I.
- Fix TLS allocation for Variant I: both rtld and libc allocators
assume that tls_static_space includes space for TLS structure.
So increment calculated static size by the size of it.


# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 203946 16-Feb-2010 marcel

The static TLS size as given by tls_static_space includes TLS_TCB_SIZE
bytes of TCB in variant I.


# 178684 29-Apr-2008 gonzo

o Add MIPS to the list of architectures with defined TLS_TCB_ALIGN
o Stick with TLS Variant II for MIPS for the moment.

Approved by: imp


# 166995 25-Feb-2007 kientzle

Don't assert() the TLS allocation requested is big enough; just
fix the argument.

In particular, this is a step towards breaking crt1's dependence on stdio.


# 163118 08-Oct-2006 kmacy

Fix TLS on sparc64 for statically and dynamically linked binaries
Approved by: rwatson (mentor)
Reviewed by: jmg and marcel


# 161827 01-Sep-2006 marcel

Fix style(9) in code copied from rtld.


# 161800 01-Sep-2006 marcel

Fix the variant I allocation for KSE: Allow a larger TCB and assume
that the documented TCB is at the tail of the extended TCB. In other
words, the base of the TCB has a negative offset from the TLS.


# 160711 26-Jul-2006 imp

Remove stale comment about arm


# 157198 28-Mar-2006 davidxu

Allocate space for thread pointer, this allows thread library to access
its pointer from begin, and simplifies _get_curthread() in libthr.


# 143921 21-Mar-2005 davidxu

Use __weak_reference macro to define weak symbols.


# 142959 01-Mar-2005 davidxu

Fix incorrect comment.


# 142560 26-Feb-2005 davidxu

Mark _rtld_allocate_tls and _rtld_free_tls as weak symbols for Variant I
tls.

Reviewed by: dfr


# 135686 23-Sep-2004 cognet

Arbitraly choose the Variant II for arm.


# 134212 23-Aug-2004 dfr

Make sure we allocate at least enough space for the TCB for variant I TLS.

MFC after: 3 days


# 133949 18-Aug-2004 dfr

Always allocate a TLS area even if its empty - libpthread relies on
having a valid %gs when it initialises.

MFC after: 2 days


# 133754 15-Aug-2004 dfr

Add support for TLS in statically linked programs.


# 133064 03-Aug-2004 dfr

Add stubs for TLS functions. These will be replaced at runtime by the
functional versions in rtld.