Skip to content

Commit

Permalink
fix: avoid generating .eh_frame sections
Browse files Browse the repository at this point in the history
Signed-off-by: Hanyuan Zhao <hanyuan-z@qq.com>
  • Loading branch information
gtxzsxxk committed Nov 19, 2023
1 parent e9ee3cf commit 4e24739
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/riscv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ KBUILD_CFLAGS_MODULE += $(call cc-option,-mno-relax)
# architectures. It's faster to have GCC emit only aligned accesses.
KBUILD_CFLAGS += $(call cc-option,-mstrict-align)

# Avoid generating .eh_frame sections.
KBUILD_CFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables

# arch specific predefines for sparse
CHECKFLAGS += -D__riscv -D__riscv_xlen=$(BITS)

Expand Down

0 comments on commit 4e24739

Please sign in to comment.