[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/13201] New: gcc -Wl,--as-needed -flto doesn't work with the BFD
From: |
doko at debian dot org |
Subject: |
[Bug ld/13201] New: gcc -Wl,--as-needed -flto doesn't work with the BFD linker, but with gold |
Date: |
Mon, 19 Sep 2011 21:21:24 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13201
Bug #: 13201
Summary: gcc -Wl,--as-needed -flto doesn't work with the BFD
linker, but with gold
Product: binutils
Version: 2.22 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: address@hidden
ReportedBy: address@hidden
Classification: Unclassified
$ cat test-flto.c
#include <math.h>
#include <stdio.h>
int main()
{
printf("%le\n", gamma(42));
return 0;
}
$ gcc -Wl,--as-needed -flto test-flto.c -lm
/tmp/ccXjDUDX.ltrans0.ltrans.o: In function `main':
ccXjDUDX.ltrans0.o:(.text+0xd): undefined reference to `gamma'
collect2: ld returned 1 exit status
$ gcc -B/usr/lib/gold-ld/ -Wl,--as-needed -flto -o test-flto test-flto.c -lm
does work
see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50367
--
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/13201] New: gcc -Wl,--as-needed -flto doesn't work with the BFD linker, but with gold,
doko at debian dot org <=
- [Bug ld/13201] gcc -Wl,--as-needed -flto doesn't work with the BFD linker, but with gold, amodra at gmail dot com, 2011/09/19
- [Bug ld/13201] gcc -Wl,--as-needed -flto doesn't work with the BFD linker, but with gold, amodra at gmail dot com, 2011/09/19
- [Bug ld/13201] gcc -Wl,--as-needed -flto doesn't work with the BFD linker, but with gold, amodra at gmail dot com, 2011/09/20
- [Bug ld/13201] gcc -Wl,--as-needed -flto doesn't work with the BFD linker, but with gold, hjl.tools at gmail dot com, 2011/09/23