]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
arm64/build: Remove .eh_frame* sections due to unwind tables
authorKees Cook <keescook@chromium.org>
Fri, 21 Aug 2020 19:42:51 +0000 (12:42 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Sep 2020 07:50:36 +0000 (09:50 +0200)
commit6e0a66d10c5b629369afa47b753d0ec46fa812dd
tree5cec7b527455b68a4fc7a4db89307cf803376d69
parent34b4a5c54c429d12bcc783a27650752237c49a36
arm64/build: Remove .eh_frame* sections due to unwind tables

Avoid .eh_frame* section generation by making sure both CFLAGS and AFLAGS
contain -fno-asychronous-unwind-tables and -fno-unwind-tables.

With all sources of .eh_frame now removed from the build, drop this
DISCARD so we can be alerted in the future if it returns unexpectedly
once orphan section warnings have been enabled.

Suggested-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200821194310.3089815-11-keescook@chromium.org
arch/arm64/Makefile
arch/arm64/kernel/vmlinux.lds.S