From fcdd1d81586abb9d7ddf92963b7b7f8cbad47987 Mon Sep 17 00:00:00 2001 From: Tom Dohrmann Date: Tue, 4 Feb 2025 07:33:35 +0100 Subject: [PATCH] change rustc-abi in custom targets to x86-softfloat With the latest nightly, setting "+soft-float" in "features" is only allowed if "rustc-abi" is set to "x86-softfloat". --- example-kernel/x86_64-example-kernel.json | 3 ++- test-kernel/x86_64-test-kernel.json | 3 ++- x86_64-bootloader.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/example-kernel/x86_64-example-kernel.json b/example-kernel/x86_64-example-kernel.json index 7a0cd61a..6f5613c2 100644 --- a/example-kernel/x86_64-example-kernel.json +++ b/example-kernel/x86_64-example-kernel.json @@ -11,5 +11,6 @@ "linker": "rust-lld", "panic-strategy": "abort", "disable-redzone": true, - "features": "-mmx,-sse,+soft-float" + "features": "-mmx,-sse,+soft-float", + "rustc-abi": "x86-softfloat" } diff --git a/test-kernel/x86_64-test-kernel.json b/test-kernel/x86_64-test-kernel.json index 7a0cd61a..6f5613c2 100644 --- a/test-kernel/x86_64-test-kernel.json +++ b/test-kernel/x86_64-test-kernel.json @@ -11,5 +11,6 @@ "linker": "rust-lld", "panic-strategy": "abort", "disable-redzone": true, - "features": "-mmx,-sse,+soft-float" + "features": "-mmx,-sse,+soft-float", + "rustc-abi": "x86-softfloat" } diff --git a/x86_64-bootloader.json b/x86_64-bootloader.json index 35fc07a3..9f4a2591 100644 --- a/x86_64-bootloader.json +++ b/x86_64-bootloader.json @@ -18,5 +18,6 @@ "disable-redzone": true, "panic-strategy": "abort", "executables": true, - "relocation-model": "static" + "relocation-model": "static", + "rustc-abi": "x86-softfloat" }