diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-10-17 03:27:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-17 03:27:20 +0200 |
| commit | 55f9676c47a97e5e4622b41ca37d96c159b7333f (patch) | |
| tree | 7c911ab44ea875b1ade51f27d3e60abca4ee989d /compiler/rustc_codegen_llvm/src | |
| parent | 16b878fd0fff7bcd69cbecf692e71281fe0117a7 (diff) | |
| parent | 684d142e700cf52ee2fe0405e43568ddd324c57c (diff) | |
| download | rust-55f9676c47a97e5e4622b41ca37d96c159b7333f.tar.gz rust-55f9676c47a97e5e4622b41ca37d96c159b7333f.zip | |
Rollup merge of #77961 - glandium:embed-bitcode, r=nagisa
Set .llvmbc and .llvmcmd sections as allocatable This marks both sections as allocatable rather than excluded, which matches what clang does with the equivalent `-fembed-bitcode` flag.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -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 ea1a7cfa5d3..092d1cea295 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()); } |
