summaryrefslogtreecommitdiffstats
path: root/test/tls
Commit message (Collapse)AuthorAgeFilesLines
* use uniform form of C99 keywordsBernhard Reutner-Fischer2010-06-242-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* powerpc: Add TLS and NPTL supportKhem Raj2010-05-091-1/+1
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl_test: sysdep headers re-factoringCarmelo Amoroso2010-02-092-2/+7
| | | | | | Update nptl and tls Makefiles according to new sysdep headers structure Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* test: fix static build of nptl and tls testsAustin Foxley2010-01-231-0/+6
| | | | | | | also add needed -lpthread lines to timer_* tests, since the implementation uses pthread functions Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* build: Get rids of PIC macro using compiler flag __PIC__ insteadCarmelo Amoroso2009-12-161-12/+12
| | | | | | | Based on Peter Mazinger's comments on a recent commit, I decided to get rids of all occurrences of PIC changing them to __PIC__ Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* ldso_tls: Refetch dtv from memory if THREAD_DTV has changedCarmelo Amoroso2009-12-033-1/+69
| | | | | | | | | | | | | | | _dl_update_slotinfo might change THREAD_DTV () (if it needs to reallocate it), but the caller (__tls_get_addr) doesn't refetch dtv from memory, it uses its cached copy. This may crash (if dtv[GET_ADDR_MODULE] is off the cliff, or might read uninitialized memory and return it. Typically dtv[GET_ADDR_MODULE].pointer.val is NULL and so __tls_get_addr returns NULL + offset_within_PT_TLS. The next time __tls_get_addr is called for the same library it will return correct address as _dl_update_slotinfo won't need to be called. Signed-off-by: Jakub Jelinek <jakub@redhat.com> Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* test_tls: Add two new tests for tls tst-tls{16,17} taken from glibcCarmelo Amoroso2009-12-037-2/+161
| | | | | Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* test_tls: Rename tst-tls16 to tst-tls-at-ctorCarmelo Amoroso2009-12-033-5/+5
| | | | | | | | Rename tst-tls16 to tst-tls-at-ctor (including main and related shared object) to avoid name clashing with new tests ported from glibc. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* test/: compile fixes for nptl and tls testsAustin Foxley2009-11-292-8/+13
| | | | | | | | | | * Add a GLIBC_TESTS_DISABLED var because many of these tests need internal uClibc stuff. This disables the HOSTCC build of these tests * Fix up tls test macros for x86 * Fix the linking of the tls tests Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* test: nptl and tls tests need main include dirAustin Foxley2009-11-291-0/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* make tls and nptl test buildBernhard Reutner-Fischer2009-11-222-104/+108
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* whitespace fixesAustin Foxley2009-10-171-1/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* test/tls/: tests for thread local storage functionalityAustin Foxley2009-10-1745-0/+2911
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>