[LLVMdev] gold and debug information

Eli Friedman eli.friedman at gmail.com
Mon Jul 19 23:25:56 PDT 2010


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
> /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?

That looks like a bug; can you attach a testcase?

-Eli




More information about the llvm-dev mailing list