1
Fork 0

Correctly handle UEFI targets as Windows-like when emitting sections for LLVM bitcode

This commit is contained in:
Isaac Woods 2020-05-04 16:27:46 +01:00
parent d6823ba166
commit 6e77729ed5
No known key found for this signature in database
GPG key ID: E9238FD487D4A63A

View file

@ -853,7 +853,9 @@ unsafe fn embed_bitcode(
|| cgcx.opts.target_triple.triple().starts_with("asmjs")
{
// nothing to do here
} else if cgcx.opts.target_triple.triple().contains("windows") {
} else if cgcx.opts.target_triple.triple().contains("windows")
|| cgcx.opts.target_triple.triple().contains("uefi")
{
let asm = "
.section .llvmbc,\"n\"
.section .llvmcmd,\"n\"