On Mon, Jun 29, 2020 at 10:09:24AM -0400, Arvind Sankar wrote: > From: Ard Biesheuvel <[email protected]> > > In a previous patch, we have eliminated GOT entries from the decompressor > binary and added an assertion that the .got section is empty. This means > that the GOT fixup routines that exist in both the 32-bit and 64-bit > startup routines have become dead code, and can be removed. > > While at it, drop the KEEP() from the linker script, as it has no effect > on the contents of output sections that are created by the linker itself. > > Signed-off-by: Ard Biesheuvel <[email protected]> > Acked-by: Arvind Sankar <[email protected]> > Signed-off-by: Arvind Sankar <[email protected]> > From: Ard Biesheuvel <[email protected]> > Link: https://lore.kernel.org/r/[email protected] > --- > arch/x86/boot/compressed/head_32.S | 24 ++--------- > arch/x86/boot/compressed/head_64.S | 57 -------------------------- > arch/x86/boot/compressed/vmlinux.lds.S | 4 +- > 3 files changed, 5 insertions(+), 80 deletions(-)
This makes me very happy! This code always bugged me. ;) Reviewed-by: Kees Cook <[email protected]> -- Kees Cook

