From f16f6109f1a4d3bca6e48ba043e665f1f7ec99e3 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 2 Feb 2019 00:48:33 -0500 Subject: midipix targets: generate the .got entry only for default visibility symbols. --- gcc/config/i386/midipix.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/config') 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); -- cgit v1.2.3