[PATCH] Replace __attribute__((visibility("protected")))
Andreas Schwab
schwab@linux-m68k.org
Fri Mar 6 20:11:00 GMT 2015
"H.J. Lu" <hongjiu.lu@intel.com> writes:
> diff --git a/elf/ifuncdep2.c b/elf/ifuncdep2.c
> index 99d1926..599eba7 100644
> --- a/elf/ifuncdep2.c
> +++ b/elf/ifuncdep2.c
> @@ -2,7 +2,8 @@
>
> #include "ifunc-sel.h"
>
> -int global __attribute__ ((visibility ("protected"))) = -1;
> +int global = -1;
> +asm (".protected global");
Some architectures use a symbol prefix.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list