diff options
author | Kees Cook <keescook@chromium.org> | 2020-08-21 12:42:51 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-09-01 09:50:36 +0200 |
commit | 6e0a66d10c5b629369afa47b753d0ec46fa812dd (patch) | |
tree | 5cec7b527455b68a4fc7a4db89307cf803376d69 /arch/arm64/kernel | |
parent | 34b4a5c54c429d12bcc783a27650752237c49a36 (diff) | |
download | linux-stable-6e0a66d10c5b629369afa47b753d0ec46fa812dd.tar.gz linux-stable-6e0a66d10c5b629369afa47b753d0ec46fa812dd.tar.bz2 linux-stable-6e0a66d10c5b629369afa47b753d0ec46fa812dd.zip |
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
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r-- | arch/arm64/kernel/vmlinux.lds.S | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S index 13fc2ec46aae..c2b8426bf4bd 100644 --- a/arch/arm64/kernel/vmlinux.lds.S +++ b/arch/arm64/kernel/vmlinux.lds.S @@ -94,7 +94,6 @@ SECTIONS *(.discard.*) *(.interp .dynamic) *(.dynsym .dynstr .hash .gnu.hash) - *(.eh_frame) } . = KIMAGE_VADDR + TEXT_OFFSET; |