http://sourceware.org/bugzilla/show_bug.cgi?id=12758

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-14 04:52:06 
UTC ---
[hjl@gnu-6 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)
   break;
 return res;
}
[hjl@gnu-6 foo]$ cat y.s
    .text
    .globl _start
_start:
    call memcmp
[hjl@gnu-6 foo]$ make
as   -o y.o y.s
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -nostdlib -o x1 y.o
-Wl,--start-group libx.a -Wl,--end-group
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-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
-Wl,--end-group
libx.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [x2] Error 1
[hjl@gnu-6 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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to