From: Bin Meng Date: Fri, 7 Apr 2023 05:44:59 +0000 (+0800) Subject: riscv: Enforce DWARF4 output X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=db9a7e51bf40e1b60fede560d50afb6c1e830a99;p=u-boot.git riscv: Enforce DWARF4 output Since commit 409e4b547872 ("Makefile: Enforce DWARF4 output") the whole U-Boot build switched to enforce DWARF4 output, but RISC-V is still on its own setting. Let's switch to use U-Boot's setting. Signed-off-by: Bin Meng Reviewed-by: Leo Yu-Chi Liang --- diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk index a8ed3faf28..f74c3f37e6 100644 --- a/arch/riscv/config.mk +++ b/arch/riscv/config.mk @@ -24,8 +24,7 @@ EFI_LDS := elf_riscv64_efi.lds endif PLATFORM_CPPFLAGS += -ffixed-gp -fpic -PLATFORM_RELFLAGS += -fno-common -gdwarf-2 -ffunction-sections \ - -fdata-sections +PLATFORM_RELFLAGS += -fno-common -ffunction-sections -fdata-sections LDFLAGS_u-boot += --gc-sections -static -pie EFI_CRT0 := crt0_riscv_efi.o