git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b0520c
)
riscv: Support building with Clang
author
kleines Filmröllchen
<malu.bertsch@gmail.com>
Thu, 25 Jan 2024 14:06:59 +0000
(15:06 +0100)
committer
Leo Yu-Chi Liang
<ycliang@andestech.com>
Wed, 31 Jan 2024 08:52:36 +0000
(16:52 +0800)
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>
arch/riscv/config.mk
patch
|
blob
|
history
diff --git
a/arch/riscv/config.mk
b/arch/riscv/config.mk
index
9cf2aef
..
9f16dda
100644
(file)
--- 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