mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-18 02:44:37 +00:00
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>
This commit is contained in:
parent
6b0520c939
commit
ee9f9d6a41
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue