https://sourceware.org/bugzilla/show_bug.cgi?id=25618

--- Comment #1 from Alexander Sergeyev <sergeev917 at gmail dot com> ---
A patch for the issue is proposed by H.J. Lu (see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93980#c4). 

diff --git a/ld/plugin.c b/ld/plugin.c
index 47c053e5a0a..5960df65243 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -1242,6 +1242,8 @@ plugin_object_p (bfd *ibfd)
       ibfd->plugin_format = bfd_plugin_yes;
       ibfd->plugin_dummy_bfd = abfd;
       bfd_make_readable (abfd);
+      if (ibfd->my_archive != NULL)
+  abfd->no_export = ibfd->my_archive->no_export;
       return abfd->xvec;
     }
   else

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to