* [parisc-linux] TLS added relocations. @ 2005-04-05 16:15 Carlos O'Donell 2005-04-05 16:26 ` Randolph Chung 0 siblings, 1 reply; 7+ messages in thread From: Carlos O'Donell @ 2005-04-05 16:15 UTC (permalink / raw) To: parisc-linux, Randolph Chung Randolph, Is DTPMOD32 and DTPOFF32 all I need to add to glibc for some initial TLS testing? Recommended tests to make sure this is working? c. _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] TLS added relocations. 2005-04-05 16:15 [parisc-linux] TLS added relocations Carlos O'Donell @ 2005-04-05 16:26 ` Randolph Chung 2005-04-05 16:34 ` Carlos O'Donell 0 siblings, 1 reply; 7+ messages in thread From: Randolph Chung @ 2005-04-05 16:26 UTC (permalink / raw) To: Carlos O'Donell; +Cc: parisc-linux > Is DTPMOD32 and DTPOFF32 all I need to add to glibc for some initial TLS > testing? Well, plus the setting up of the THREAD_DTV() stuff. > Recommended tests to make sure this is working? I haven't really looked, but glibc has a bunch of TLS tests. It'll also pretty easy to write our own test cases. randolph -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/ _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] TLS added relocations. 2005-04-05 16:26 ` Randolph Chung @ 2005-04-05 16:34 ` Carlos O'Donell 2005-04-05 19:16 ` Carlos O'Donell 0 siblings, 1 reply; 7+ messages in thread From: Carlos O'Donell @ 2005-04-05 16:34 UTC (permalink / raw) To: Randolph Chung; +Cc: parisc-linux On Tue, Apr 05, 2005 at 09:26:43AM -0700, Randolph Chung wrote: > > Is DTPMOD32 and DTPOFF32 all I need to add to glibc for some initial TLS > > testing? > > Well, plus the setting up of the THREAD_DTV() stuff. Oh, and TPREL32. > > Recommended tests to make sure this is working? > > I haven't really looked, but glibc has a bunch of TLS tests. It'll also > pretty easy to write our own test cases. I can't turn that machinery on yet. I have to test with TLS off but handling the relocations first to see if it works :) c. _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] TLS added relocations. 2005-04-05 16:34 ` Carlos O'Donell @ 2005-04-05 19:16 ` Carlos O'Donell 2005-04-05 19:39 ` Carlos O'Donell 2005-04-10 10:48 ` Randolph Chung 0 siblings, 2 replies; 7+ messages in thread From: Carlos O'Donell @ 2005-04-05 19:16 UTC (permalink / raw) To: Randolph Chung; +Cc: parisc-linux On Tue, Apr 05, 2005 at 12:34:01PM -0400, Carlos O'Donell wrote: > I can't turn that machinery on yet. I have to test with TLS off but > handling the relocations first to see if it works :) To hell with it, I'm turing it all one just to see what I need. One thing, I'm writing some configure.in asm to test gas and such. What do you think of this as a test: gcc -c only. ---- ; Setup tls data .section ".tdata","awT",@progbits foo: .data 32 .text ; Test general dyanmic relocations test0: addil LT'foo-$tls_gdidx$, %r19 ldo RT'foo-$tls_gdidx$(%r1), %r26 b __tls_get_addr nop ; Test local dynamic relocations test1: addil LT'foo-$tls_ldidx$, %r19 b __tls_get_addr ldo RT'foo-$tls_ldidx$(%r1), %r26 ldo RR'foo-$tls_dtpoff$(%r1), %r25 ; More variables can be loaded... ; Test initial exec reloctiosn test2: mfctl %cr27, %r26 addil LT'foo-$tls_ieoff$, %r19 ldw RT'foo-$tls_ieoff$(%r1), %r25 add %r26, %r25, %r24 ; Test local exec relocations test3: mfctl %cr27, %r26 addil LR'foo-$tls_leoff$, %r26 ldo RR'foo-$tls_leoff$(%r1), %r25 ; Done all the TLS tests. --- If it can compile this then it's cool. Normal gcc/binutils chokes but the tls-toolchain works just fine :) Please update your documentation, the symbols used for relocation don't match (e.g. $tls_dtlndx$ is really $tls_gdix$)? c. _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] TLS added relocations. 2005-04-05 19:16 ` Carlos O'Donell @ 2005-04-05 19:39 ` Carlos O'Donell 2005-04-05 20:44 ` Carlos O'Donell 2005-04-10 10:48 ` Randolph Chung 1 sibling, 1 reply; 7+ messages in thread From: Carlos O'Donell @ 2005-04-05 19:39 UTC (permalink / raw) To: Randolph Chung; +Cc: parisc-linux On Tue, Apr 05, 2005 at 03:16:12PM -0400, Carlos O'Donell wrote: > On Tue, Apr 05, 2005 at 12:34:01PM -0400, Carlos O'Donell wrote: > > I can't turn that machinery on yet. I have to test with TLS off but > > handling the relocations first to see if it works :) > > To hell with it, I'm turing it all one just to see what I need. > One thing, I'm writing some configure.in asm to test gas and such. > What do you think of this as a test: > > gcc -c only. This turns on HAVE_TLS_SUPPORT in glibc btw. c. _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] TLS added relocations. 2005-04-05 19:39 ` Carlos O'Donell @ 2005-04-05 20:44 ` Carlos O'Donell 0 siblings, 0 replies; 7+ messages in thread From: Carlos O'Donell @ 2005-04-05 20:44 UTC (permalink / raw) To: Randolph Chung; +Cc: parisc-linux On Tue, Apr 05, 2005 at 03:39:59PM -0400, Carlos O'Donell wrote: > On Tue, Apr 05, 2005 at 03:16:12PM -0400, Carlos O'Donell wrote: > > On Tue, Apr 05, 2005 at 12:34:01PM -0400, Carlos O'Donell wrote: > > > I can't turn that machinery on yet. I have to test with TLS off but > > > handling the relocations first to see if it works :) > > > > To hell with it, I'm turing it all one just to see what I need. > > One thing, I'm writing some configure.in asm to test gas and such. > > What do you think of this as a test: > > > > gcc -c only. > > This turns on HAVE_TLS_SUPPORT in glibc btw. glibc with TLS is sorta building, still running into some build problems here and there. glibc without TLS is down to the following tessuite failures: make[2]: *** [/math/test-float.out] Error 1 make[2]: *** [/math/test-double.out] Error 1 make[2]: *** [/math/test-ifloat.out] Error 1 make[2]: *** [/math/test-idouble.out] Error 1 make[1]: *** [math/tests] Error 2 make[2]: *** [/stdlib/tst-strtod.out] Error 1 make[2]: *** [/stdlib/bug-strtod.out] Error 1 make[1]: *** [stdlib/tests] Error 2 make[2]: [/posix/annexc.out] Error 1 (ignored) make[2]: *** [/elf/tst-audit1.out] Error 139 make[1]: *** [elf/tests] Error 2 make: *** [check] Error 2 The only regression is 'tst-audit1' which is because I haven't finished the auditing support, but the non-audit code works. c. _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] TLS added relocations. 2005-04-05 19:16 ` Carlos O'Donell 2005-04-05 19:39 ` Carlos O'Donell @ 2005-04-10 10:48 ` Randolph Chung 1 sibling, 0 replies; 7+ messages in thread From: Randolph Chung @ 2005-04-10 10:48 UTC (permalink / raw) To: Carlos O'Donell; +Cc: parisc-linux > If it can compile this then it's cool. Normal gcc/binutils chokes but > the tls-toolchain works just fine :) > > Please update your documentation, the symbols used for relocation don't > match (e.g. $tls_dtlndx$ is really $tls_gdix$)? Which documentation are you using? Please work off of http://wiki.parisc-linux.org/ThreadLocalStorage I've been keeping that up to date as I find bugs in the original design. Once we get it sorted out we can go back to fix the PDF. randolph -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/ _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-04-10 10:48 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-04-05 16:15 [parisc-linux] TLS added relocations Carlos O'Donell 2005-04-05 16:26 ` Randolph Chung 2005-04-05 16:34 ` Carlos O'Donell 2005-04-05 19:16 ` Carlos O'Donell 2005-04-05 19:39 ` Carlos O'Donell 2005-04-05 20:44 ` Carlos O'Donell 2005-04-10 10:48 ` Randolph Chung
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.