aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorBin Meng <bmeng@tinylab.org>2023-04-07 13:44:59 +0800
committerLeo Yu-Chi Liang <ycliang@andestech.com>2023-04-20 20:45:08 +0800
commitdb9a7e51bf40e1b60fede560d50afb6c1e830a99 (patch)
tree8b3c9bc2d613805d454772c1acf6da4fde9f272f /arch
parent16f53be076512e888a572297df10484df7a32849 (diff)
downloadu-boot-db9a7e51bf40e1b60fede560d50afb6c1e830a99.zip
u-boot-db9a7e51bf40e1b60fede560d50afb6c1e830a99.tar.gz
u-boot-db9a7e51bf40e1b60fede560d50afb6c1e830a99.tar.bz2
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 <bmeng@tinylab.org> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/config.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk
index a8ed3fa..f74c3f3 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