[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/12758] LTO doesn't work with --start-group and archive

From: hjl.tools at gmail dot com
Subject: [Bug ld/12758] LTO doesn't work with --start-group and archive
Date: Sat, 14 May 2011 04:52:37 +0000


--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-14 04:52:06 
UTC ---
address@hidden foo]$ cat x.i
int memcmp(const void *cs, const void *ct, unsigned long count)
 const unsigned char *su1, *su2;
 int res = 0;

 for (su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--)
  if ((res = *su1 - *su2) != 0)
 return res;
address@hidden foo]$ cat y.s
    .globl _start
    call memcmp
address@hidden foo]$ make
as   -o y.o y.s
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -nostdlib -o x1 y.o
-Wl,--start-group libx.a -Wl,--end-group
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -nostdlib -O2
-fuse-linker-plugin -flto=jobserver -o x2 y.o -Wl,--start-group libx.a
libx.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [x2] Error 1
address@hidden foo]$

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]