[LLVMdev] getting gold plugin to work?
Sandeep Patel
deeppatel1987 at gmail.com
Sun Oct 4 18:42:51 PDT 2009
Attached is the start of a patch to make the gold plugin work on
Darwin for use as a cross-compiler. There needs to be a build step
somewhere in llvm-gcc that copies it into libexec/<gcc
poop>/libLLVMgold.so, but I've been doing that manually for now.
It doesn't seem that simple use of -O4 results in the plugin learning
what subtarget is desired. I presume that the llvm-gcc driver needs to
pass -mcpu down through collect2 into ld somehow. Has anybody solved
this already? Perhaps we should finally just put the feature string
into the bitcode?
deep
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gold-plugin-darwin-cross.diff
Type: application/octet-stream
Size: 446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091005/1f60368e/attachment.obj>
More information about the llvm-dev
mailing list