about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back/write.rs
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2020-10-15 14:04:57 +0900
committerMike Hommey <mh@glandium.org>2020-10-15 14:04:57 +0900
commit684d142e700cf52ee2fe0405e43568ddd324c57c (patch)
tree30dd7eabaa9ee56c89fd71215f54b88523d314aa /compiler/rustc_codegen_llvm/src/back/write.rs
parentf42692b1cc1552abf905f9b6650061d246024252 (diff)
downloadrust-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.rs4
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());
     }