Displaying 2 results from an estimated 2 matches for "x86_entry_start".
2015 Feb 17
7
[LLVMdev] [PATCH 0/2 v3] add visibility hidden to tls entry points
Patch 1 adds a check for the compilers visibility macro to configure.ac.
Patch 2 avoids redefined symbol errors in clang of the tls entry points.
Based on a suggestion from Rafael Ávila de Espíndola <rafael.espindola at gmail.com>
in http://llvm.org/bugs/show_bug.cgi?id=19778.
Tested with gcc 4.9 and clang 3.6(rc)
Marc Dietrich (2):
configure: add visibility macro detection to configure
2015 Feb 17
3
[LLVMdev] [PATCH 2/2 v3] add visibility hidden to tls entry points
...26,6 +26,7 @@
> */
>
> #include <string.h>
> +#include "macros.h"
> #include "u_macros.h"
>
> __asm__(".text");
> @@ -72,8 +73,8 @@ __asm__(".text");
> extern unsigned long
> x86_current_tls();
>
> -static char x86_entry_start[];
> -static char x86_entry_end[];
> +extern const char HIDDEN x86_entry_start[];
> +extern const char HIDDEN x86_entry_end[];
>
> void
> entry_patch_public(void)
> diff --git a/src/mapi/entry_x86_tsd.h b/src/mapi/entry_x86_tsd.h
> index ece00fa..1de2991 100644
> --- a/...