Thread (22 messages) 22 messages, 4 authors, 2021-01-09

Re: [PATCH v4 mips-next 3/7] MIPS: properly stop .eh_frame generation

From: Kees Cook <hidden>
Date: 2021-01-07 21:49:35
Also in: linux-arch, lkml, stable

On Thu, Jan 07, 2021 at 12:35:01PM +0000, Alexander Lobakin wrote:
Commit 866b6a89c6d1 ("MIPS: Add DWARF unwinding to assembly") added
-fno-asynchronous-unwind-tables to KBUILD_CFLAGS to prevent compiler
from emitting .eh_frame symbols.
However, as MIPS heavily uses CFI, that's not enough. Use the
approach taken for x86 (as it also uses CFI) and explicitly put CFI
symbols into the .debug_frame section (except for VDSO).
This allows us to drop .eh_frame from DISCARDS as it's no longer
being generated.

Fixes: 866b6a89c6d1 ("MIPS: Add DWARF unwinding to assembly")
Suggested-by: Kees Cook <redacted>
Signed-off-by: Alexander Lobakin <redacted>
Reviewed-by: Kees Cook <redacted>

-- 
Kees Cook
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help