summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2020-10-23 12:54:00 -0700
committerGitHub <noreply@github.com>2020-10-23 12:54:00 -0700
commit6640a62e0e9d14f521fcfed5edb001968f7c6f63 (patch)
tree38289ff1bca04bf4bb9947239a7c708f36f1149d
parent7bade6ef730cff83f3591479a98916920f66decd (diff)
downloadrust-revert-77961-embed-bitcode.tar.gz
Revert "Set .llvmbc and .llvmcmd sections as allocatable"revert-77961-embed-bitcode
-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 092d1cea295..ea1a7cfa5d3 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,\"a\"
- .section .llvmcmd,\"a\"
+ .section .llvmbc,\"e\"
+ .section .llvmcmd,\"e\"
";
llvm::LLVMRustAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len());
}