]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
MIPS: properly stop .eh_frame generation
authorAlexander Lobakin <alobakin@pm.me>
Sun, 10 Jan 2021 11:56:28 +0000 (11:56 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Apr 2021 16:31:26 +0000 (18:31 +0200)
commit6c4fc59067330e1868920931209e1cbbef7fdac8
tree193032933d076c80e362298335fad6104284c53c
parent3f5cf604f51285fd56f4af4b0c849d79b21b48bf
MIPS: properly stop .eh_frame generation

BugLink: https://bugs.launchpad.net/bugs/1918974
[ Upstream commit 894ef530012fb5078466efdfb2c15d8b2f1565cd ]

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 <keescook@chromium.org>
Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
arch/mips/include/asm/asm.h
arch/mips/kernel/vmlinux.lds.S