$ touch 1.c
$ gcc -c -flto 1.c
$ objdump -h 1.o | grep -c lto
$ ld.gold -r 1.o
$ objdump -h a.out | grep -c lto
This test works for me with current gold sources. Please reopen this bug report if it continues to fail for you.
Still happens with current GOLD (i686-pc-linux-gnu).
I can not recreate this. Please attach the object file 1.o which shows this problem.
Created attachment 5851 [details]
Object file with .gnu.lto_.* sections
I can't reproduce it with recent ld.gold.