Skip to content

Commit

Permalink
Rollup merge of #78307 - rust-lang:revert-77961-embed-bitcode, r=tmandry
Browse files Browse the repository at this point in the history
Revert "Set .llvmbc and .llvmcmd sections as allocatable"

Reverts #77961, see discussion starting from #77961 (comment)
  • Loading branch information
jonas-schievink authored Oct 24, 2020
2 parents da48646 + 6640a62 commit 1ac137b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_codegen_llvm/src/back/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 1ac137b

Please sign in to comment.