diff options
| author | Rafael Ávila de Espíndola <[email protected]> | 2011-04-15 19:29:13 -0400 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <[email protected]> | 2011-04-15 19:29:13 -0400 |
| commit | 099e09476577aca9c7365d99e69ccde29aec9940 (patch) | |
| tree | 6c4acb78cecbf8793816bba56b14d464ec43b3e8 /src/rustllvm | |
| parent | rustc: Remove the "boxed" check, and make the static_size_of_tag recursion-el... (diff) | |
| download | rust-099e09476577aca9c7365d99e69ccde29aec9940.tar.xz rust-099e09476577aca9c7365d99e69ccde29aec9940.zip | |
Produce PIC code and use -S in the Makefile.
Diffstat (limited to 'src/rustllvm')
| -rw-r--r-- | src/rustllvm/RustWrapper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp index 81b8cbc9..b2dcd065 100644 --- a/src/rustllvm/RustWrapper.cpp +++ b/src/rustllvm/RustWrapper.cpp @@ -46,6 +46,7 @@ extern "C" void LLVMRustWriteAssembly(LLVMPassManagerRef PMR, LLVMModuleRef M, const char *triple, const char *path) { InitializeAllTargets(); InitializeAllAsmPrinters(); + TargetMachine::setRelocationModel(Reloc::PIC_); std::string Err; const Target *TheTarget = TargetRegistry::lookupTarget(triple, Err); std::string FeaturesStr; |