[LLVMdev] Link time optimisation error?

Duncan Sands baldrick at free.fr
Wed Apr 21 03:02:43 PDT 2010


Hi Zheng,

> I followed the instruction given at:
> http://llvm.org/docs/LinkTimeOptimization.html#design, but got an
> error.
>
> Why it was that? Should I enable anything when configuring LLVM? I am
> using LLVM v2.6.
>
> $  llvm-gcc --emit-llvm -c a.c -o a.o
> $ llvm-gcc -c main.c -o main.o
> $ llvm-gcc a.o main.o -o main
> a.o: file not recognized: File format not recognized
> collect2: ld returned 1 exit status

this should help: http://llvm.org/docs/GoldPlugin.html

Ciao,

Duncan.



More information about the llvm-dev mailing list