[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25618] use of gcc lto breaks --exclude-libs
From: |
sergeev917 at gmail dot com |
Subject: |
[Bug ld/25618] use of gcc lto breaks --exclude-libs |
Date: |
Sun, 01 Mar 2020 17:16:19 +0000 |
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.