summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-02-02 00:48:33 -0500
committermidipix <writeonce@midipix.org>2019-02-02 01:03:03 -0500
commitf16f6109f1a4d3bca6e48ba043e665f1f7ec99e3 (patch)
tree40e4566ffb785eddcde777f7fc54a88777831e42 /gcc/config/i386
parent023e5ba41c59c0d898686a60f1d88cf0d460e113 (diff)
downloadcbb-gcc-4.6.4-f16f6109f1a4d3bca6e48ba043e665f1f7ec99e3.tar.bz2
cbb-gcc-4.6.4-f16f6109f1a4d3bca6e48ba043e665f1f7ec99e3.tar.xz
midipix targets: generate the .got entry only for default visibility symbols.
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/midipix.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/i386/midipix.c b/gcc/config/i386/midipix.c
index 30a7ff91f..b194a33c3 100644
--- a/gcc/config/i386/midipix.c
+++ b/gcc/config/i386/midipix.c
@@ -138,6 +138,13 @@ static void midipix_pe_create_got_entry(FILE * stream, const char * name, tree d
? winnt_ptrsize_quad
: winnt_ptrsize_long;
+ if (decl->decl_with_vis.visibility == VISIBILITY_DEFAULT)
+ if (default_visibility != VISIBILITY_DEFAULT)
+ return;
+
+ if (decl->decl_with_vis.visibility != VISIBILITY_DEFAULT)
+ return;
+
fputs("\n",stream);
fputs(GAS_SECTION,stream);