From: kleines Filmröllchen Date: Thu, 25 Jan 2024 14:06:59 +0000 (+0100) Subject: riscv: Support building with Clang X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=ee9f9d6a41957d03ab414c0d86d68224693e1761;p=u-boot.git riscv: Support building with Clang The -ffixed-gp option of GCC has an exact equivalent of -ffixed-x3 in Clang. Signed-off-by: kleines Filmröllchen Reviewed-by: Tom Rini --- diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk index 9cf2aef0a4..9f16dda92a 100644 --- a/arch/riscv/config.mk +++ b/arch/riscv/config.mk @@ -25,7 +25,7 @@ EFI_LDS := elf_riscv64_efi.lds PLATFORM_ELFFLAGS += -B riscv -O elf64-littleriscv endif -PLATFORM_CPPFLAGS += -ffixed-gp -fpic +PLATFORM_CPPFLAGS += -ffixed-x3 -fpic PLATFORM_RELFLAGS += -fno-common -ffunction-sections -fdata-sections LDFLAGS_u-boot += --gc-sections -static -pie