[LLVMdev] Error with Gold Linker during LTO

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri May 30 11:05:27 PDT 2014


> clang++ -O1 -o weakMainO1.exe    -flto     -mcpu=cortex-a15 -mllvm
> -debug-only=inline    -static weakMain.cpp weakImpl.o -v
> -Wl,-plugin-opt=-debug-only=inline -Wl,-fuse-ld=gold
> -Wl,-plugin-opt=also-emit-llvm -Wl,-plugin-opt=obj-path=. >& O1.log

Those command line options don't exist on trunk.

The following works for me:

$ clang++ -O0 weakImpl.cpp -o weakImpl.o -c
$ clang++ -O1 -o weakMainO1.exe    -flto     -static weakMain.cpp weakImpl.o

Do you also see the issue with x86_64?

Cheers,
Rafael



More information about the llvm-dev mailing list