[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/14918] New: linking with -flto always links in libgcc:s.so
From: |
doko at debian dot org |
Subject: |
[Bug ld/14918] New: linking with -flto always links in libgcc:s.so |
Date: |
Wed, 05 Dec 2012 04:58:26 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=14918
Bug #: 14918
Summary: linking with -flto always links in libgcc:s.so
Product: binutils
Version: 2.23
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: address@hidden
ReportedBy: address@hidden
Classification: Unclassified
checked with the 2.23 branch (and gcc-4.7), original report at
http://gcc.gnu.org/PR55592
$ 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)
works with gold:
$ gcc -B /usr/lib/gold-ld -flto foo.c && ldd a.out |grep libgcc_s
$
libgcc is linked as:
-lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s
--no-as-needed
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/14918] New: linking with -flto always links in libgcc:s.so,
doko at debian dot org <=