[LLVMdev] gold and debug information

Guoliang Jin jingl1345 at gmail.com
Mon Jul 19 23:06:54 PDT 2010


  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 with debug 
information using gold plugin?

Thanks,
Guoliang



More information about the llvm-dev mailing list