diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-07-22 03:35:47 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-07-22 03:37:50 -0700 |
commit | cd78ea777c35c497fcc0f20d162789296dc0a44d (patch) | |
tree | 02bc776750cce865c4b9f7007677b23035201bea /gold/testsuite/ifuncmod1.c | |
parent | bb854a36d192bfa6609da9e3b1342e33da445598 (diff) | |
download | fsf-binutils-gdb-cd78ea777c35c497fcc0f20d162789296dc0a44d.zip fsf-binutils-gdb-cd78ea777c35c497fcc0f20d162789296dc0a44d.tar.gz fsf-binutils-gdb-cd78ea777c35c497fcc0f20d162789296dc0a44d.tar.bz2 |
Mark global with hidden attribute
GCC 5 will generate a relocation for protected symbol:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248
when compiling for a shared library. It is undefined to access protected
symbol in IFUNC selector function inside a shared library.
PR gold/18628
* testsuite/ifuncdep2.c (global): Change protected to hidden.
* testsuite/ifuncmod1.c (global): Likewise.
* testsuite/ifuncmod5.c (global): Likewise.
Diffstat (limited to 'gold/testsuite/ifuncmod1.c')
-rw-r--r-- | gold/testsuite/ifuncmod1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/testsuite/ifuncmod1.c b/gold/testsuite/ifuncmod1.c index e3b37cb..8ee11f1 100644 --- a/gold/testsuite/ifuncmod1.c +++ b/gold/testsuite/ifuncmod1.c @@ -6,7 +6,7 @@ */ #include "ifunc-sel.h" -int global __attribute__ ((visibility ("protected"))) = -1; +int global __attribute__ ((visibility ("hidden"))) = -1; static int one (void) |