summaryrefslogtreecommitdiff
path: root/src/ldso/tlsdesc.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-06-19 02:01:06 -0400
committerRich Felker <dalias@aerifal.cx>2014-06-19 02:01:06 -0400
commit9d15d5e7533738f3e80f1aeecb4e30f8c9db1670 (patch)
treeed434d3c3e552d208220d9dfbe0d085c3745d884 /src/ldso/tlsdesc.c
parentcef0f289f666b6c963bfd11537a6d80916ff889e (diff)
downloadmusl-9d15d5e7533738f3e80f1aeecb4e30f8c9db1670.tar.gz
add arch-generic support for tlsdesc relocations to dynamic linker
this code is non-functional without further changes to link up the arch-specific reloc types for tlsdesc and add asm implementations of __tlsdesc_static and __tlsdesc_dynamic.
Diffstat (limited to 'src/ldso/tlsdesc.c')
-rw-r--r--src/ldso/tlsdesc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ldso/tlsdesc.c b/src/ldso/tlsdesc.c
new file mode 100644
index 00000000..031b5b80
--- /dev/null
+++ b/src/ldso/tlsdesc.c
@@ -0,0 +1,13 @@
+#ifdef SHARED
+
+#include <stddef.h>
+#include "libc.h"
+
+ptrdiff_t __tlsdesc_static()
+{
+ return 0;
+}
+
+weak_alias(__tlsdesc_static, __tlsdesc_dynamic);
+
+#endif