diff options
| author | Mike Hommey <mh@glandium.org> | 2020-10-15 14:04:57 +0900 |
|---|---|---|
| committer | Mike Hommey <mh@glandium.org> | 2020-10-15 14:04:57 +0900 |
| commit | 684d142e700cf52ee2fe0405e43568ddd324c57c (patch) | |
| tree | 30dd7eabaa9ee56c89fd71215f54b88523d314aa /compiler/rustc_codegen_llvm/src/back/write.rs | |
| parent | f42692b1cc1552abf905f9b6650061d246024252 (diff) | |
| download | rust-684d142e700cf52ee2fe0405e43568ddd324c57c.tar.gz rust-684d142e700cf52ee2fe0405e43568ddd324c57c.zip | |
Set .llvmbc and .llvmcmd sections as allocatable
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/write.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs index f35c1016f86..7236784853e 100644 --- a/compiler/rustc_codegen_llvm/src/back/write.rs +++ b/compiler/rustc_codegen_llvm/src/back/write.rs @@ -936,8 +936,8 @@ unsafe fn embed_bitcode( llvm::LLVMRustAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len()); } else { let asm = " - .section .llvmbc,\"e\" - .section .llvmcmd,\"e\" + .section .llvmbc,\"a\" + .section .llvmcmd,\"a\" "; llvm::LLVMRustAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len()); } |
