Skip to contentSkip to conversation

riscv: Enforce DWARF4 output

PATCH In review Bin Meng 2 participants 2 messages Apr 7, 2023 – Apr 20, 2023 RISC-V

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/1 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.

---

 arch/riscv/config.mk | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/riscv/config.mk +1 -2
index a8ed3faf28..f74c3f37e6 100644
@@ -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
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Bin Meng

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.

---

 arch/riscv/config.mk | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)