This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/55592] New: linking with -flto always links in libgcc:s.so
- From: "doko at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Dec 2012 12:02:59 +0000
- Subject: [Bug lto/55592] New: linking with -flto always links in libgcc:s.so
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55592
Bug #: 55592
Summary: linking with -flto always links in libgcc:s.so
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: doko@gcc.gnu.org
$ cat foo.c
int main() { }
$ gcc foo.c && ldd a.out |grep libgcc_s
$ gcc -flto foo.c && ldd a.out |grep libgcc_s
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fb214381000)
gcc.c (pass_through_libs_spec_func) doesn't pass the --as-needed/--no-as-needed
flags to the plugin. if these are passed, how should the plugin handle these?