beginnings of full TLS support in shared libraries

this code will not work yet because the necessary relocations are not
supported, and cannot be supported without some internal changes to
how relocation processing works (coming soon).
This commit is contained in:
Rich Felker 2012-10-04 21:01:56 -04:00
commit 9b153c043e
4 changed files with 19 additions and 1 deletions

8
src/thread/i386/tls.s Normal file
View file

@ -0,0 +1,8 @@
.text
.global ___tls_get_addr
.type ___tls_get_addr,@function
___tls_get_addr:
push %eax
call __tls_get_addr
pop %edx
ret

0
src/thread/tls.c Normal file
View file