Revert "Set .llvmbc and .llvmcmd sections as allocatable"

This commit is contained in:
Tyler Mandry 2020-10-23 12:54:00 -07:00 committed by GitHub
parent 7bade6ef73
commit 6640a62e0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,\"a\" .section .llvmbc,\"e\"
.section .llvmcmd,\"a\" .section .llvmcmd,\"e\"
"; ";
llvm::LLVMRustAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len()); llvm::LLVMRustAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len());
} }