<div>Hi all,</div><div><br></div><div>Following the example from <a href="http://llvm.org/docs/GoldPlugin.html#example1">http://llvm.org/docs/GoldPlugin.html#example1</a> gives the following error on Ubuntu Karmic:</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>

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

<div>collect2: ld returned 1 exit status</div><div><br></div><div>I suppose this is due to missing "--plugin libLLVMgold.so" option.</div><div>Attached is a documentation patch that corrects this (also for nm).</div>

<div><br></div><div>Best regards,</div><div>Victor</div>