https://sourceware.org/bugzilla/show_bug.cgi?id=18866

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-6 pr18866]$ cat foo.c
int
pthread_create (void)
{
  return 0;
}
[hjl@gnu-6 pr18866]$ cat main.c
int main() 
{
  return 0;
}
[hjl@gnu-6 pr18866]$ make
gcc -B./ -g -Wall   -c -o foo.o foo.c
ar rv libfoo.a foo.o
ar: creating libfoo.a
a - foo.o
gcc -B./ -g -Wall   -c -o main.o main.c
gcc -B./  -o main -Wl,-whole-archive libfoo.a -Wl,-no-whole-archive main.o
-lpthread -lrt
./ld: internal error in is_default, at
/export/gnu/import/git/sources/binutils-gdb/gold/symtab.h:134
collect2: error: ld returned 1 exit status
Makefile:20: recipe for target 'main' failed
make: *** [main] Error 1
[hjl@gnu-6 pr18866]$

-- 
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