diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-10-04 21:01:56 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-10-04 21:01:56 -0400 |
commit | 9b153c043ea486d28f96a7e01419f650fe0e1b26 (patch) | |
tree | 33472c9ec71eb7464d4fc97a168c0dba1b20ca5c /src/thread | |
parent | bc6a35fb7b02f068b901f22a56559996395cfd3b (diff) | |
download | musl-9b153c043ea486d28f96a7e01419f650fe0e1b26.tar.gz musl-9b153c043ea486d28f96a7e01419f650fe0e1b26.tar.xz musl-9b153c043ea486d28f96a7e01419f650fe0e1b26.zip |
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).
Diffstat (limited to 'src/thread')
-rw-r--r-- | src/thread/i386/tls.s | 8 | ||||
-rw-r--r-- | src/thread/tls.c | 0 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/thread/i386/tls.s b/src/thread/i386/tls.s new file mode 100644 index 00000000..e1f22629 --- /dev/null +++ b/src/thread/i386/tls.s @@ -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 diff --git a/src/thread/tls.c b/src/thread/tls.c new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/src/thread/tls.c |