From 2f68d97b647807738b8597b8a9d156642285db47 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Fri, 4 Aug 2023 15:56:01 +0100 Subject: [PATCH] Fix ELF flag for RISC-V targets without explicit ABI --- compiler/rustc_codegen_ssa/src/back/metadata.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_codegen_ssa/src/back/metadata.rs b/compiler/rustc_codegen_ssa/src/back/metadata.rs index 971fa1c7aa8..4c854740753 100644 --- a/compiler/rustc_codegen_ssa/src/back/metadata.rs +++ b/compiler/rustc_codegen_ssa/src/back/metadata.rs @@ -283,7 +283,7 @@ pub(crate) fn create_object_file(sess: &Session) -> Option (), + "" | "ilp32" | "lp64" => (), "ilp32f" | "lp64f" => e_flags |= elf::EF_RISCV_FLOAT_ABI_SINGLE, "ilp32d" | "lp64d" => e_flags |= elf::EF_RISCV_FLOAT_ABI_DOUBLE, "ilp32e" => e_flags |= elf::EF_RISCV_RVE,