similar to: [LLVMdev] getting gold plugin to work?

Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] getting gold plugin to work?"

2009 Oct 05
0
[LLVMdev] getting gold plugin to work?
2009/10/4 Sandeep Patel <deeppatel1987 at gmail.com>: > Attached is the start of a patch to make the gold plugin work on > Darwin for use as a cross-compiler. Nice. I checked that it still builds correctly on linux. I think it is fine, but Nick should probably have a look. > There needs to be a build step > somewhere in llvm-gcc that copies it into libexec/<gcc >
2009 Oct 09
0
[LLVMdev] getting gold plugin to work?
Sandeep Patel wrote: > Attached is the start of a patch to make the gold plugin work on > Darwin for use as a cross-compiler. There needs to be a build step > somewhere in llvm-gcc that copies it into libexec/<gcc > poop>/libLLVMgold.so, but I've been doing that manually for now. With this patch, it seems that it produces a file named LLVMgold.so instead of libLLVMgold.so.
2009 Oct 05
2
[LLVMdev] getting gold plugin to work?
On Mon, Oct 5, 2009 at 2:21 PM, Rafael Espindola <espindola at google.com> wrote: > 2009/10/4 Sandeep Patel <deeppatel1987 at gmail.com>: >> There needs to be a build step >> somewhere in llvm-gcc that copies it into libexec/<gcc >> poop>/libLLVMgold.so, but I've been doing that manually for now. > > Yes, this is bad. The problem is that we build
2009 Oct 05
4
[LLVMdev] getting gold plugin to work?
On Mon, Oct 5, 2009 at 8:04 PM, Rafael Espindola <espindola at google.com> wrote: >> I have no idea how to reduce this. >> >> Configure llvm-gcc for "arm-eabi" and use "--with-cpu=cortex-a8 >> --with-fpu=neon --with-abi=aapcs --with-float=hard". The triple in the >> bitcode will be "armv7-eabi" but the actual CPU subtarget won't
2011 Mar 22
2
[LLVMdev] gold plugin example
Hi all, I got an error from the gold plugin example in the following link: http://llvm.org/docs/GoldPlugin.html#example1 Here is the error message: sangmin at sangmin-desktop:/tmp$ llvm-gcc -use-gold-plugin a.a b.o -o main /usr/bin/ld: error: a.a: no archive symbol table (run ranlib) /usr/bin/ld: /usr/lib/crt1.o:(.text+0x18): error: undefined reference to 'main' /usr/bin/ld: b.o: in
2010 Jul 20
3
[LLVMdev] gold and debug information
On Tue, Jul 20, 2010 at 8:49 AM, Rafael Espindola <espindola at google.com>wrote: > > export PATH="$LLVMPREFIX/bin:$LLVMGCCPREFIX/bin:$PATH" > > export CC="llvm-gcc -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" > > export CXX="llvm-g++ -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" > > export RANLIB=/bin/true > > export
2011 Mar 22
0
[LLVMdev] gold plugin example
Hi, I fixed error by using different version of ld with LLVM 2.7. I used ld.gold that comes with Ubuntu 10.04. Here is the version info: sangmin at sangmin-desktop:/tmp$ ld -v GNU gold (GNU Binutils for Ubuntu 2.20.1-system.20100303) 1.9 My experience of gold plugin is as follows: LLVM 2.7 (with libLLVMgold.so) + ld 2.20.1 (from Ubuntu 10.04) : O LLVM 2.7 (with libLLVMgold.so) + ld 2.21.51
2009 Oct 05
0
[LLVMdev] getting gold plugin to work?
> That would work for gold, but what about nm, etc.? You would still need to copy it :-( > I have no idea how to reduce this. > > Configure llvm-gcc for "arm-eabi" and use "--with-cpu=cortex-a8 > --with-fpu=neon --with-abi=aapcs --with-float=hard". The triple in the > bitcode will be "armv7-eabi" but the actual CPU subtarget won't be > known
2011 Mar 22
2
[LLVMdev] gold plugin example
On 11-03-21 10:35 PM, Sangmin Park wrote: > Hi, > > I fixed error by using different version of ld with LLVM 2.7. > I used ld.gold that comes with Ubuntu 10.04. > Here is the version info: > > sangmin at sangmin-desktop:/tmp$ ld -v > GNU gold (GNU Binutils for Ubuntu 2.20.1-system.20100303) 1.9 > > My experience of gold plugin is as follows: > > LLVM 2.7 (with
2010 Nov 17
7
[LLVMdev] Build Attributes Proposal
> Hi Duncan, > > This could work, but it's very limited. Besides, there's already an MC > build attribute infrastructure, one would have to interpret those > strings in the back-end to an MC construct then back again to ASM and > ELF. > > I don't see why having a magic global would be worse than using module asm... So, you mentioned that there should be no
2010 Jul 20
0
[LLVMdev] gold and debug information
> export PATH="$LLVMPREFIX/bin:$LLVMGCCPREFIX/bin:$PATH" > export CC="llvm-gcc -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" > export CXX="llvm-g++ -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" > export RANLIB=/bin/true > export CFLAGS="-O4 -g" > > then configure, make, and then hit the error. > > The error only happens if
2010 Jul 20
4
[LLVMdev] gold and debug information
On 7/20/2010 1:25 AM, Eli Friedman wrote: > On Mon, Jul 19, 2010 at 11:06 PM, Guoliang Jin<jingl1345 at gmail.com> wrote: >> Hi, >> >> I would like to get the whole program bitcode with debug information in it. >> >> I tried to use CFLAGS = "-O4 -g", but it ends with the following error: >> collect2: ld terminated with signal 6 [Aborted]
2010 Jul 20
3
[LLVMdev] gold and debug information
On Tue, Jul 20, 2010 at 6:49 AM, Rafael Espindola <espindola at google.com> wrote: >> export PATH="$LLVMPREFIX/bin:$LLVMGCCPREFIX/bin:$PATH" >> export CC="llvm-gcc -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" >> export CXX="llvm-g++ -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" >> export RANLIB=/bin/true >> export
2011 Mar 24
2
[LLVMdev] Instrumentation with liblto and gold
Hi, I need advice in instrumenting programs using liblto and gold plugin. Specifically, I added my pass in tools/lto/LTOCodeGenerator.cpp. My pass inserts functions (myLoad and myStore) for some load and store instructions. The functions exist in a library file. I found that the approach works for the example in the link: http://llvm.org/docs/GoldPlugin.html $ llvm-gcc -flto a.c -c -o a.o $ ar q
2010 Jul 20
2
[LLVMdev] gold and debug information
Hi, I would like to get the whole program bitcode with debug information in it. I tried to use CFLAGS = "-O4 -g", but it ends with the following error: collect2: ld terminated with signal 6 [Aborted] Unknown constant! UNREACHABLE executed at /local.toadette/aliang/fixing/llvm-2.7/llvm-2.7/lib/Bitcode/Writer/BitcodeWriter.cpp:895! What is the right way to get a whole program bitcode
2011 Mar 24
0
[LLVMdev] Instrumentation with liblto and gold
On 3/24/11 6:23 PM, Sangmin Park wrote: > Hi, > > I need advice in instrumenting programs using liblto and gold plugin. > Specifically, I added my pass in tools/lto/LTOCodeGenerator.cpp. > My pass inserts functions (myLoad and myStore) for some load and store > instructions. > The functions exist in a library file. > > I found that the approach works for the example in
2010 Jun 25
2
[LLVMdev] libLLVMgold.so: could not load plugin library
Hi there, I checked out the latest code from the repository, and wanna use the gold plugin, but I got the following: libLLVMgold.so: could not load plugin library Do you know why this is happening? Also I noticed the name of the library is changed to LLVMgold.so, and I just renamed it to libLLVMgold.so when I copied it. Is this the right thing to do? Thanks, Guoliang
2011 Mar 25
1
[LLVMdev] Instrumentation with liblto and gold
Hi John, Thank you for your advice. LIBS and LDFLAGS work for the configure script, but they gave errors in the make stage for apache and mysql. I used either of the following ones with other flags: - export LIBS="-L/home/sangmin/Dropbox/Falcon/bin/ -ldummy" - export LDFLAGS="-L/home/sangmin/Dropbox/Falcon/bin/ -ldummy" Here are the error messages: Compile error (apache):
2010 Oct 05
1
[LLVMdev] how to output the single bitcode file using gold plugin?
Hi, all. I want to get the single bitcode file after link-time optimizations. After doing some searching, I get commands as follows: *llvm-gcc -O4 -c xxx.c -o xxx.o llvm-gcc xxx.o -use-gold-plugin -Wl,-debug -Wl,-plugin-opt=also-emit-llvm -lm -o xxx* But these command don't give me the wanted bitcode file. The used version of llvm is 2.7. Do you have any idea of this problem or any other
2010 Jul 20
0
[LLVMdev] gold and debug information
On Mon, Jul 19, 2010 at 11:06 PM, Guoliang Jin <jingl1345 at gmail.com> wrote: >  Hi, > > I would like to get the whole program bitcode with debug information in it. > > I tried to use CFLAGS = "-O4 -g", but it ends with the following error: > collect2: ld terminated with signal 6 [Aborted] > Unknown constant! > UNREACHABLE executed at >