diff options
Diffstat (limited to 'src/mapi/entry_x86_tsd.h')
-rw-r--r-- | src/mapi/entry_x86_tsd.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mapi/entry_x86_tsd.h b/src/mapi/entry_x86_tsd.h index ea7bacb43e4..03d973520fe 100644 --- a/src/mapi/entry_x86_tsd.h +++ b/src/mapi/entry_x86_tsd.h @@ -25,6 +25,11 @@ * Chia-I Wu <[email protected]> */ +#ifdef HAVE_FUNC_ATTRIBUTE_VISIBIITY +#define HIDDEN __attribute__((visibility("hidden"))) +#else +#define HIDDEN +#endif #define X86_ENTRY_SIZE 32 @@ -58,8 +63,8 @@ __asm__(".balign 32\n" #include <string.h> #include "u_execmem.h" -static const char x86_entry_start[]; -static const char x86_entry_end[]; +extern const char x86_entry_start[] HIDDEN; +extern const char x86_entry_end[] HIDDEN; void entry_patch_public(void) |