[PATCH] Revert "riscv: disable generation of unwind tables"

From: Zong Li
Date: Mon Apr 15 2024 - 21:31:52 EST


This reverts commit 2f394c0e7d1129a35156e492bc8f445fb20f43ac.

RISC-V has supported the complete relocation types in module loader by
'8fd6c5142395 ("riscv: Add remaining module relocations")'.
Now RISC-V port can enable unwind tables in case eh_frame parsing is
needed.

Signed-off-by: Zong Li <zong.li@xxxxxxxxxx>
---
arch/riscv/Makefile | 3 ---
1 file changed, 3 deletions(-)

diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
index 5b3115a19852..9216bf8a2691 100644
--- a/arch/riscv/Makefile
+++ b/arch/riscv/Makefile
@@ -94,9 +94,6 @@ ifeq ($(CONFIG_CMODEL_MEDANY),y)
KBUILD_CFLAGS += -mcmodel=medany
endif

-# Avoid generating .eh_frame sections.
-KBUILD_CFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables
-
# The RISC-V attributes frequently cause compatibility issues and provide no
# information, so just turn them off.
KBUILD_CFLAGS += $(call cc-option,-mno-riscv-attribute)
--
2.17.1