summaryrefslogtreecommitdiffstats
path: root/src/mapi/entry_x86_tls.h
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2016-07-11 10:44:25 -0700
committerMatt Turner <[email protected]>2016-07-21 10:45:28 -0700
commit5ec140c17b54c25920091501b665b9aa809cc5e8 (patch)
tree0184f313d78347a8d836e75412fb32cef300af3d /src/mapi/entry_x86_tls.h
parent6bc54911939e75245d94aed3b40082587c3b74b4 (diff)
mapi: Massage code to allow clang to compile.
According to https://llvm.org/bugs/show_bug.cgi?id=19778#c3 this code was violating the spec, resulting in it failing to compile. Cc: [email protected] Co-authored-by: Tomasz PaweÅ‚ Gajc <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89599 Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mapi/entry_x86_tls.h')
-rw-r--r--src/mapi/entry_x86_tls.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mapi/entry_x86_tls.h b/src/mapi/entry_x86_tls.h
index 46d2eced24f..231b4093fe6 100644
--- a/src/mapi/entry_x86_tls.h
+++ b/src/mapi/entry_x86_tls.h
@@ -27,6 +27,12 @@
#include <string.h>
+#ifdef HAVE_FUNC_ATTRIBUTE_VISIBIITY
+#define HIDDEN __attribute__((visibility("hidden")))
+#else
+#define HIDDEN
+#endif
+
__asm__(".text");
__asm__("x86_current_tls:\n\t"
@@ -71,8 +77,8 @@ __asm__(".text");
extern unsigned long
x86_current_tls();
-static char x86_entry_start[];
-static char x86_entry_end[];
+extern char x86_entry_start[] HIDDEN;
+extern char x86_entry_end[] HIDDEN;
void
entry_patch_public(void)