similar to: [LLVMdev] Difficulties in using gold plugin. ("ar" not working properly)

Displaying 20 results from an estimated 4000 matches similar to: "[LLVMdev] Difficulties in using gold plugin. ("ar" not working properly)"

2011 Jun 15
0
[LLVMdev] Difficulties in using gold plugin. ("ar" not working properly)
On 11-06-15 09:03 AM, Istvan Haller wrote: > Dear all, > I'm trying to use the gold plugin to make it easier to generate LLVM bitcode > from complex applications. I did the steps mentioned on > "http://llvm.org/docs/GoldPlugin.html". Both linking and LLVM generation seem to > work properly, however when using the tool ar, the symbol table is lost. "no > archive
2011 Jun 15
2
[LLVMdev] Difficulties in using gold plugin. (
Executing nm --plugin /usr/lib/bfd-plugins/LLVMgold.so test.a Gives: 00000000 W _ZN6tester4dumpEv 00000000 W _ZN6tester7readArgEPc 00000000 W _ZN6testerC1Ev 00000000 W _ZN6testerD1Ev And and more entries Without the plugin command "File format not recognized". So it seems like nm is using the plugin. Istvan
2011 Jun 15
0
[LLVMdev] Difficulties in using gold plugin. (
On 11-06-15 03:32 PM, Istvan Haller wrote: > Executing > nm --plugin /usr/lib/bfd-plugins/LLVMgold.so test.a > Gives: > 00000000 W _ZN6tester4dumpEv > 00000000 W _ZN6tester7readArgEPc > 00000000 W _ZN6testerC1Ev > 00000000 W _ZN6testerD1Ev > And and more entries > Without the plugin command "File format not recognized". > > So it seems like nm is using
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
2016 Jul 21
3
[llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
Hi, unfortunately, my build somehow hangs when linking clang binary and my system is in an unusable state. My toolchain is clang-3.8, gold-1.11 and LLVMgold.so from binutils v2.26.1 (both selfmade) and LTO-flag is enabled. My buildsystem uses cmake-3.6.0 and ninja-1.7.1 (both prebuilt). I have 52 last steps left in my 3rd build. My Linux-kernel is v3.13.0-92 from official Ubuntu repositories.
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
2016 Jul 23
2
[llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
How big is your project? LTO eats RAM even faster than chrome. For example linking clang with LTO could take 16GB of ram. Have you tried using LTO on your project on that machine, or is it your first time? Piotr On Sat, Jul 23, 2016 at 2:42 AM, Sedat Dilek via llvm-dev < llvm-dev at lists.llvm.org> wrote: > On Thu, Jul 21, 2016 at 12:01 PM, Sedat Dilek <sedat.dilek at
2015 Jun 22
2
[LLVMdev] Enabling the gold linker on freebsd
I have been trying to enable the gold linker on FreeBSD to use the link time optimizations. I made gold from the binutils under /usr/ports. After building binutils using make -k install clean i got ld under /usr/bin and in the directory /usr/local/bin i got ld, ld.gold and ld.bfd. Now while trying to use link time optimization for the simple example programs
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
2012 Aug 02
3
[LLVMdev] LLVM LTO
Hi, I am trying to use LLVM LTO. I read http://llvm.org/docs/GoldPlugin.html and have some questions. Could anyone help? 1. Can LLVMgold.so work with BFD LD instead of gold? In the description of changes in binutils 2.20, "* The plugin target has been added to bfd. It can load the same shared objects used by gold and uses them to provide basic support for new file formats.".
2013 Oct 11
2
[LLVMdev] LLVM LTO
Rafael, Rui, This is obviously an old thread, but in case there is interest, I've been able to get this to work (using the LLVM gold plugin with the ld.bfd linker). This requires some additional logic in the ld.bfd linker (and a small change to the bfd library). I've attached the patch (against binutils HEAD from 2013-09-17) in case anyone finds this useful. The core issue is that ld.bfd
2016 Jul 23
3
[llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
> On Jul 23, 2016, at 1:53 PM, Sedat Dilek via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote: > > On Sat, Jul 23, 2016 at 7:48 PM, Piotr Padlewski <prazek at google.com <mailto:prazek at google.com>> wrote: >> How big is your project? >> LTO eats RAM even faster than chrome. For example linking clang with LTO >>
2012 Aug 02
0
[LLVMdev] LLVM LTO
On 1 August 2012 23:00, Sun, Rui <rui.sun at intel.com> wrote: > Hi, > > > > I am trying to use LLVM LTO. I read http://llvm.org/docs/GoldPlugin.html and > have some questions. Could anyone help? > > > > 1. Can LLVMgold.so work with BFD LD instead of gold? In the > description of changes in binutils 2.20, “* The plugin target has been added > to bfd.
2013 Oct 11
0
[LLVMdev] LLVM LTO
Quick update: the previous patch only worked for static linking; this version should work for both static and dynamic linking. I'm not going to send any more updated patches to this list, but please feel free to e-mail me off-list, and I'll be happy to share any updates I have at any point in the future. -Hal ----- Original Message ----- > Rafael, Rui, > > This is obviously
2013 Oct 11
1
[LLVMdev] LLVM LTO
You should probably send them for review/inclusion in bfd. On 11 October 2013 12:39, Hal Finkel <hfinkel at anl.gov> wrote: > Quick update: the previous patch only worked for static linking; this version should work for both static and dynamic linking. > > I'm not going to send any more updated patches to this list, but please feel free to e-mail me off-list, and I'll be
2015 Jun 23
3
[LLVMdev] Enabling the gold linker on freebsd
the symlink ld is already pointing to /usr/bin/ld. Also -fuse-ld=gold does not works on clang in freebsd. I am not sure where is the problem?should I remove /usr/bin/ld and create a new symlink to /usr/local/bin/ld.gold? Regards Aditya Verma Junior Undergraduate IDD Computer Sc & Engg IIT(BHU), Varanasi(UP) On Mon, Jun 22, 2015 at 5:25 AM, Rafael Espíndola < rafael.espindola at
2010 Mar 11
0
[LLVMdev] gold plugin use
Swarup Kumar Sahoo wrote: >>> Yes, ar and nm actually take -plugin option and if I pass this option, then I don't get these errors. But, llvm-gcc doesn't automatically pass this option to ar. >>> >> You probably just need to copy the gold plugin to >> $PREFIX/lib/bfd-plugins. Let me know if that works. If not I will >> check if there is a bug in
2016 Oct 02
3
(Thin)LTO llvm build
bfd linker 2.26 works fine with LLVMgold.so. As I mentioned in a previous email, 2.26 ar and ranlib also works fine as long as LLVMgold.so is put in a path binutils know about : $(bindir)/../lib/bfd-plugins/ David On Sun, Oct 2, 2016 at 3:59 AM, Carsten Mattner <carstenmattner at gmail.com> wrote: > On Sun, Oct 2, 2016 at 6:52 AM, Teresa Johnson <tejohnson at google.com> >
2011 Jun 16
2
[LLVMdev] Difficulties in using gold plugin. (
Rafael Avila de Espindola <rafael.espindola <at> gmail.com> writes: > But only if explicitly told to do so. It should search the bfd-plugins > directory automatically. Is the nm you are using installed in /usr/bin? > Cheers, > Rafael > It seems like I also had one in /usr/local/bin with the same version and it was the default to be used. Now I copied my bfd-plugins
2012 May 01
2
[LLVMdev] Gold plugin and LLVM tools documentation
Hi, I've been following the instructions on how to use the LLVM Gold plugin at http://llvm.org/docs/GoldPlugin.html while building an multiple versions of WebKit. The documentation hasn't been updated since 2010 and hasn't really matched my experiences, so I'd like to ask if I'm doing these steps incorrectly. What I'm trying to do is force all compilation steps to