diff options
author | kleines Filmröllchen <malu.bertsch@gmail.com> | 2024-01-25 15:06:59 +0100 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2024-01-31 16:52:36 +0800 |
commit | ee9f9d6a41957d03ab414c0d86d68224693e1761 (patch) | |
tree | f454d74c1a79d29a133065fd9b3eba90eb5139ab | |
parent | 6b0520c939e068aee9f367be951133c249447082 (diff) | |
download | u-boot-ee9f9d6a41957d03ab414c0d86d68224693e1761.zip u-boot-ee9f9d6a41957d03ab414c0d86d68224693e1761.tar.gz u-boot-ee9f9d6a41957d03ab414c0d86d68224693e1761.tar.bz2 |
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 <filmroellchen@serenityos.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | arch/riscv/config.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk index 9cf2aef..9f16dda 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 |