[LLVMdev] write shared object file in memory

Redmond, Paul paul.redmond at intel.com
Sat Sep 24 11:59:04 PDT 2011


Hi,

I'd like to take a llvm::Module and emit it as a shared object file in memory. I've been browsing the tools/ source for clues but it's not clear to me how I get the behavior of the -relocation-model=pic.

I see that the function TargetMachine::addPassesToEmitFile can be used to write an object file. What can I do to emit a shared object?

Thanks,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110924/a5cff50b/attachment.html>


More information about the llvm-dev mailing list