[LLVMdev] llvm gold plugin example

Victor Zverovich victor.zverovich at googlemail.com
Mon Apr 5 06:24:43 PDT 2010


Hi all,

Following the example from http://llvm.org/docs/GoldPlugin.html#example1 gives
the following error on Ubuntu Karmic:

/usr/bin/ld: error: a.a: no archive symbol table (run ranlib)
/usr/bin/ld: /usr/lib/crt1.o:../sysdeps/i386/elf/start.S:115: error:
undefined reference to 'main'
/usr/bin/ld: b.o: in function foo1:b.c(.text+0x4): error: undefined
reference to 'foo2'
collect2: ld returned 1 exit status

I suppose this is due to missing "--plugin libLLVMgold.so" option.
Attached is a documentation patch that corrects this (also for nm).

Best regards,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100405/a5151f15/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: docs-gold-plugin.diff
Type: text/x-patch
Size: 1134 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100405/a5151f15/attachment.bin>


More information about the llvm-dev mailing list