summaryrefslogtreecommitdiffstats
path: root/src/mapi/entry_x86-64_tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapi/entry_x86-64_tls.h')
-rw-r--r--src/mapi/entry_x86-64_tls.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mapi/entry_x86-64_tls.h b/src/mapi/entry_x86-64_tls.h
index 38facccc870..c5262a18ddb 100644
--- a/src/mapi/entry_x86-64_tls.h
+++ b/src/mapi/entry_x86-64_tls.h
@@ -25,6 +25,11 @@
* Chia-I Wu <[email protected]>
*/
+#ifdef HAVE_FUNC_ATTRIBUTE_VISIBIITY
+#define HIDDEN __attribute__((visibility("hidden")))
+#else
+#define HIDDEN
+#endif
__asm__(".text\n"
".balign 32\n"
@@ -54,8 +59,8 @@ entry_patch_public(void)
{
}
-static char
-x86_64_entry_start[];
+extern char
+x86_64_entry_start[] HIDDEN;
mapi_func
entry_get_public(int slot)