* [PATCH] riscv: disable generation of unwind tables
@ 2023-02-01 9:29 Andreas Schwab
2023-02-02 17:30 ` patchwork-bot+linux-riscv
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2023-02-01 9:29 UTC (permalink / raw)
To: linux-riscv; +Cc: Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-kernel
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>
---
arch/riscv/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
index faf2c2177094..82153960ac00 100644
--- a/arch/riscv/Makefile
+++ b/arch/riscv/Makefile
@@ -80,6 +80,9 @@ ifeq ($(CONFIG_PERF_EVENTS),y)
KBUILD_CFLAGS += -fno-omit-frame-pointer
endif
+# Avoid generating .eh_frame sections.
+KBUILD_CFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables
+
KBUILD_CFLAGS_MODULE += $(call cc-option,-mno-relax)
KBUILD_AFLAGS_MODULE += $(call as-option,-Wa$(comma)-mno-relax)
--
2.39.1
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] riscv: disable generation of unwind tables
2023-02-01 9:29 [PATCH] riscv: disable generation of unwind tables Andreas Schwab
@ 2023-02-02 17:30 ` patchwork-bot+linux-riscv
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+linux-riscv @ 2023-02-02 17:30 UTC (permalink / raw)
To: Andreas Schwab; +Cc: linux-riscv, paul.walmsley, palmer, aou, linux-kernel
Hello:
This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@rivosinc.com>:
On Wed, 01 Feb 2023 10:29:45 +0100 you wrote:
> 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>
>
> [...]
Here is the summary with links:
- riscv: disable generation of unwind tables
https://git.kernel.org/riscv/c/2f394c0e7d11
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-02 17:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-01 9:29 [PATCH] riscv: disable generation of unwind tables Andreas Schwab
2023-02-02 17:30 ` patchwork-bot+linux-riscv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox