x86/vmlinux: Drop unneeded linker script discard of .eh_frame
authorArvind Sankar <nivedita@alum.mit.edu>
Mon, 24 Feb 2020 23:21:29 +0000 (18:21 -0500)
committerBorislav Petkov <bp@suse.de>
Tue, 25 Feb 2020 13:51:29 +0000 (14:51 +0100)
commit6f8f0dc980028e98ae339876a8403edae4d20e39
treef86a20da751cc3115543bc366d5c373f85b82cb8
parent003602ad5516e59940de42e44c8d8033387bb363
x86/vmlinux: Drop unneeded linker script discard of .eh_frame

Now that .eh_frame sections for the files in setup.elf and realmode.elf
are not generated anymore, the linker scripts don't need the special
output section name /DISCARD/ any more.

Remove the one in the main kernel linker script as well, since there are
no .eh_frame sections already, and fix up a comment referencing .eh_frame.

Update the comment in asm/dwarf2.h referring to .eh_frame so it continues
to make sense, as well as being more specific.

 [ bp: Touch up commit message. ]

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
Link: https://lkml.kernel.org/r/20200224232129.597160-3-nivedita@alum.mit.edu
arch/x86/boot/compressed/vmlinux.lds.S
arch/x86/boot/setup.ld
arch/x86/include/asm/dwarf2.h
arch/x86/kernel/vmlinux.lds.S
arch/x86/realmode/rm/realmode.lds.S