aboutsummaryrefslogtreecommitdiff
path: root/elf/ifuncdep2.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/ifuncdep2.c')
-rw-r--r--elf/ifuncdep2.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/elf/ifuncdep2.c b/elf/ifuncdep2.c
index 99d1926..6e66d31 100644
--- a/elf/ifuncdep2.c
+++ b/elf/ifuncdep2.c
@@ -2,7 +2,13 @@
#include "ifunc-sel.h"
-int global __attribute__ ((visibility ("protected"))) = -1;
+int global = -1;
+/* Can't use __attribute__((visibility("protected"))) until the GCC bug:
+
+ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248
+
+ is fixed. */
+asm (".protected global");
static int
one (void)