[cfe-dev] LLVM-Gold-Plugin

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Jan 15 18:22:40 PST 2013


On 15 January 2013 17:19, Behrooz Shafiee <shafiee01 at gmail.com> wrote:
> Oh, I think you mean this:
> g++ -I/path/to/llvm-2.9/tools/gold  -D_DEBUG -D_GNU_SOURCE
> -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3 -fomit-frame-pointer
> -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
> -I/path/to/binutilsGold/src/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -lLTO -O3 -Wl,-R -Wl,'$ORIGIN'
> -L/path/to/llvm-2.9/Release+Asserts/lib
> -L/path/to/llvm-2.9/Release+Asserts/lib     -pedantic -Wno-long-long -Wall
> -W -Wno-unused-parameter -Wwrite-strings    -shared -o
> /path/to//llvm-2.9/Release+Asserts/lib/LLVMgold.so
> /path/to/llvm-2.9/tools/gold/Release+Asserts/gold-plugin.o \
>

Yes, and here is the bug: It is passing -lLTO before the
gold-plugin.o, so it is not included. This was fixed in r162652. You
might be able to backport the patch.

Cheers,
Rafael



More information about the cfe-dev mailing list