Mark global with hidden attribute
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 22 Jul 2015 10:35:47 +0000 (03:35 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 22 Jul 2015 10:37:50 +0000 (03:37 -0700)
commitcd78ea777c35c497fcc0f20d162789296dc0a44d
tree02bc776750cce865c4b9f7007677b23035201bea
parentbb854a36d192bfa6609da9e3b1342e33da445598
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.
gold/ChangeLog
gold/testsuite/ifuncdep2.c
gold/testsuite/ifuncmod1.c
gold/testsuite/ifuncmod5.c