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.
This commit is contained in:
commit
55f9676c47
1 changed files with 2 additions and 2 deletions
|
@ -936,8 +936,8 @@ unsafe fn embed_bitcode(
|
||||||
llvm::LLVMRustAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len());
|
llvm::LLVMRustAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len());
|
||||||
} else {
|
} else {
|
||||||
let asm = "
|
let asm = "
|
||||||
.section .llvmbc,\"e\"
|
.section .llvmbc,\"a\"
|
||||||
.section .llvmcmd,\"e\"
|
.section .llvmcmd,\"a\"
|
||||||
";
|
";
|
||||||
llvm::LLVMRustAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len());
|
llvm::LLVMRustAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue