public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] riscv: Enforce DWARF4 output
@ 2023-04-07  5:44 Bin Meng
  2023-04-20  8:01 ` Leo Liang
  0 siblings, 1 reply; 2+ messages in thread
From: Bin Meng @ 2023-04-07  5:44 UTC (permalink / raw)
  To: Leo, Rick Chen, u-boot

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 <bmeng@tinylab.org>
---

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

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
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] riscv: Enforce DWARF4 output
  2023-04-07  5:44 [PATCH] riscv: Enforce DWARF4 output Bin Meng
@ 2023-04-20  8:01 ` Leo Liang
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Liang @ 2023-04-20  8:01 UTC (permalink / raw)
  To: Bin Meng; +Cc: Rick Chen, u-boot

On Fri, Apr 07, 2023 at 01:44:59PM +0800, Bin Meng wrote:
> 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 <bmeng@tinylab.org>
> ---
> 
>  arch/riscv/config.mk | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-20  8:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-07  5:44 [PATCH] riscv: Enforce DWARF4 output Bin Meng
2023-04-20  8:01 ` Leo Liang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox