https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61052
Ilya Palachev <i.palachev at samsung dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |i.palachev at samsung dot com --- Comment #1 from Ilya Palachev <i.palachev at samsung dot com> --- Hi, I can see another error for the attached testcase. $ gcc -c -O2 -flto a.cc $ gcc -c -O2 -flto b.cc $ gcc -c -Os e.cc $ gcc -o a -fuse-ld=gold a.o e.o b.o /usr/local/bin/ld.gold: -plugin: unknown option /usr/local/bin/ld.gold: use the --help option for usage information collect2: error: ld returned 1 exit status $ ld -v GNU gold (GNU Binutils 2.24.51.20141003) 1.11 It seems that this error os related with option "-fuse-ld", since the error disappears if this option is not specified.