mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-03 15:42:52 +00:00
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.
This commit is contained in:
parent
bb854a36d1
commit
cd78ea777c
@ -1,3 +1,10 @@
|
||||
2015-07-22 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR gold/18628
|
||||
* testsuite/ifuncdep2.c (global): Change protected to hidden.
|
||||
* testsuite/ifuncmod1.c (global): Likewise.
|
||||
* testsuite/ifuncmod5.c (global): Likewise.
|
||||
|
||||
2015-07-22 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* aarch64.cc (try_fix_erratum_843419_optimized): Warning fix.
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "ifunc-sel.h"
|
||||
|
||||
int global __attribute__ ((visibility ("protected"))) = -1;
|
||||
int global __attribute__ ((visibility ("hidden"))) = -1;
|
||||
|
||||
static int
|
||||
one (void)
|
||||
|
@ -6,7 +6,7 @@
|
||||
*/
|
||||
#include "ifunc-sel.h"
|
||||
|
||||
int global __attribute__ ((visibility ("protected"))) = -1;
|
||||
int global __attribute__ ((visibility ("hidden"))) = -1;
|
||||
|
||||
static int
|
||||
one (void)
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Test STT_GNU_IFUNC symbols without direct function call. */
|
||||
#include "ifunc-sel.h"
|
||||
|
||||
int global __attribute__ ((visibility ("protected"))) = -1;
|
||||
int global __attribute__ ((visibility ("hidden"))) = -1;
|
||||
|
||||
static int
|
||||
one (void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user