[LLVMdev] gold and debug information

Guoliang Jin jingl1345 at gmail.com
Wed Jul 21 12:11:42 PDT 2010


  On 7/21/2010 1:59 PM, Rafael Espindola wrote:
>> I do not know how to get the ld invocation you need. If this command is not
>> what you need, please tell me how to get the ld invocation.
> Add -Wl,-debug to the llvm-gcc call. That should print the ld command
> line in the end.
/local.toadette/aliang/packages/llvm-2.7/llvm-gcc/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../i686-pc-linux-gnu/bin/ld 
-plugin 
/local.toadette/aliang/packages/llvm-2.7/llvm-gcc/libexec/gcc/i686-pc-linux-gnu/4.2.1/libLLVMgold.so 
-plugin-opt=as=/local.toadette/aliang/packages/llvm-2.7/llvm-gcc/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../i686-pc-linux-gnu/bin/as 
--eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o flex 
/usr/lib/crt1.o /usr/lib/crti.o 
/local.toadette/aliang/packages/llvm-2.7/llvm-gcc/lib/gcc/i686-pc-linux-gnu/4.2.1/crtbegin.o 
-L/local.toadette/aliang/packages/llvm-2.7/llvm-gcc/lib/gcc/i686-pc-linux-gnu/4.2.1 
-L/local.toadette/aliang/packages/llvm-2.7/llvm-gcc/lib/gcc/i686-pc-linux-gnu/4.2.1/../../.. 
-plugin-opt=also-emit-llvm ccl.o dfa.o ecs.o scanflags.o gen.o main.o 
misc.o nfa.o parse.o scan.o skel.o sym.o tblcmp.o yylex.o options.o 
scanopt.o buf.o tables.o tables_shared.o filter.o regex.o -lm -lgcc 
--as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s 
--no-as-needed 
/local.toadette/aliang/packages/llvm-2.7/llvm-gcc/lib/gcc/i686-pc-linux-gnu/4.2.1/crtend.o 
/usr/lib/crtn.o
>> http://pages.cs.wisc.edu/~aliang/goldAndDebugTest.tar.gz
> There is also something strange with these files, buf.o is actually a
> .tar.gz file :-)
Updated. Sorry about that.

Thanks,
Guoliang



More information about the llvm-dev mailing list