Skip to content

Commit 684d142

Browse files
committed
Set .llvmbc and .llvmcmd sections as allocatable
1 parent f42692b commit 684d142

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_codegen_llvm/src/back

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_llvm/src/back/write.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -936,8 +936,8 @@ unsafe fn embed_bitcode(
936936
llvm::LLVMRustAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len());
937937
} else {
938938
let asm = "
939-
.section .llvmbc,\"e\"
940-
.section .llvmcmd,\"e\"
939+
.section .llvmbc,\"a\"
940+
.section .llvmcmd,\"a\"
941941
";
942942
llvm::LLVMRustAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len());
943943
}

0 commit comments

Comments
 (0)