summaryrefslogtreecommitdiff
path: root/test/tls
AgeCommit message (Collapse)Author
2016-07-31test: reorganize tls macros in separate architecture filesWaldemar Brodkorb
To be more consistent separate all TLS macros in separate files and remove obsolete macros for not supported architectures. Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
2016-02-17increase timeouts to successfully run on slower hardware/emulation, f.e. xtensaWaldemar Brodkorb
2015-12-17test/tls: tls-macros*.h fixes from glibcWaldemar Brodkorb
glibc commits 4822a2a520 Add x32 support to TLS_LE/TLS_IE/TLS_GD 63fb881a04 tls-macros-mips.h: Load $gp as required. Merge 32-bit and 64-bit versions. Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com> Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
2015-12-10disable always failing tst-tls16, until someone unbreak itWaldemar Brodkorb
2015-11-13tests/tls: Implement TLS macros for metagJames Hogan
Implement the TLS macros in tls-macros.h for metag. Signed-off-by: James Hogan <james.hogan@imgtec.com>
2015-10-08xtensa: support call0 ABIMax Filippov
Most changes are mechanical replacement of 'retw' instruction with 'abi_ret' macro, defined to 'retw' or 'ret' according to ABI. Assembly code that makes calls is duplicated for call0 ABI with changed register numbers for parameters/return value and call instruction. 'entry' instructions are replaced with 'abi_entry' macro. More interesting changes: - non-leaf assembly functions (e.g. _dl_tlsdesc_dynamic, _dl_linux_resolve, SYSCALL_ERROR_HANDLER, PSEUDO) now need to preserve registers around intermediate calls they make, use temporary stack frame for that; - setjmp/longjmp only need to save and restore return address, stack pointer and callee-saved registers in the jmpbuf; - __clone and syscall functions had hardcoded offsets to parameter passed on stack, on call0 ABI they don't need stack frame, so the offset is different. Replace these offsets with FRAMESIZE macro. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2015-07-03test/tls: xtensa: fix TLS_LD definitionMax Filippov
TLS_LD should use linker-provided symbol _TLS_MODULE_BASE_ instead of symbol it resolves to get thread pointer, otherwise linker relaxation doesn't work correctly, adding extra offset to thread-local variable address. This fixes most of tls/tst-tls* tests. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2015-04-24disabled ARC tests working nowWaldemar Brodkorb
As reported by Alexey Brodkin <Alexey.Brodkin@synopsys.com> these tests do not fail anymore. After upgrading binutils/gcc tests compile fine.
2014-09-23testsuite: fix xtensa macrosWaldemar Brodkorb
2014-09-23add tls test macros for xtensaWaldemar Brodkorb
http://lists.linux-xtensa.org/pipermail/linux-xtensa/Week-of-Mon-20130819/001153.html
2014-09-20disable tests for arc as long as binutils is buggyWaldemar Brodkorb
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
2014-08-18ARC/NPTL: Add testsVineet Gupta
Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-02-15test/tls/tst-tls[6-8]: Fix build errorsVineet Gupta
Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2013-11-06test: tls: fix build with newer binutilsBaruch Siach
Fix the following build failures: ld: tst-tls10.o: undefined reference to symbol 'f2a' ld: tst-tls12.o: undefined reference to symbol 'a1' binutils ld defaults to --no-copy-dt-needed-entries since version 2.22. Add library dependencies explicitly. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-04-18test: fix tst-tls13 expected result and timeoutSalvatore Cro
tst-tls13 is expected to return 0 when passing. Set higher timeout to avoid failure on slow archs. Signed-off-by: Salvatore Cro <salvatore.cro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2010-06-24use uniform form of C99 keywordsBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-05-09powerpc: Add TLS and NPTL supportKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-02-09nptl_test: sysdep headers re-factoringCarmelo Amoroso
Update nptl and tls Makefiles according to new sysdep headers structure Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2010-01-23test: fix static build of nptl and tls testsAustin Foxley
also add needed -lpthread lines to timer_* tests, since the implementation uses pthread functions Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-12-16build: Get rids of PIC macro using compiler flag __PIC__ insteadCarmelo Amoroso
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>
2009-12-03ldso_tls: Refetch dtv from memory if THREAD_DTV has changedCarmelo Amoroso
_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>
2009-12-03test_tls: Add two new tests for tls tst-tls{16,17} taken from glibcCarmelo Amoroso
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2009-12-03test_tls: Rename tst-tls16 to tst-tls-at-ctorCarmelo Amoroso
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>
2009-11-29test/: compile fixes for nptl and tls testsAustin Foxley
* 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>
2009-11-29test: nptl and tls tests need main include dirAustin Foxley
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-11-22make tls and nptl test buildBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-10-17whitespace fixesAustin Foxley
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-10-17test/tls/: tests for thread local storage functionalityAustin Foxley
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>