]> git.dujemihanovic.xyz Git - linux.git/commit
riscv: disable generation of unwind tables
authorAndreas Schwab <schwab@suse.de>
Wed, 1 Feb 2023 09:29:45 +0000 (10:29 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 2 Feb 2023 04:51:57 +0000 (20:51 -0800)
commit2f394c0e7d1129a35156e492bc8f445fb20f43ac
treebed4be3f0ba40fa01c47a962226d8ef7f0cf5510
parent87f48c7ccc73afc78630530d9af51f458f58cab8
riscv: disable generation of unwind tables

GCC 13 will enable -fasynchronous-unwind-tables by default on riscv.  In
the kernel, we don't have any use for unwind tables yet, so disable them.
More importantly, the .eh_frame section brings relocations
(R_RISC_32_PCREL, R_RISCV_SET{6,8,16}, R_RISCV_SUB{6,8,16}) into modules
that we are not prepared to handle.

Signed-off-by: Andreas Schwab <schwab@suse.de>
Link: https://lore.kernel.org/r/mvmzg9xybqu.fsf@suse.de
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Makefile