x86/efi: Implement support for embedding SBAT data for x86
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 3 Jun 2025 09:19:51 +0000 (11:19 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sat, 21 Jun 2025 11:53:44 +0000 (13:53 +0200)
commit61b57d35396a4b4bcca9944644b24fc6015976b5
tree6badc9fac4501e292ca57755c8fbb8eabe33a7e2
parentce2c403c26c1ed0e28fc541ab30fe13ff50236be
x86/efi: Implement support for embedding SBAT data for x86

Similar to zboot architectures, implement support for embedding SBAT data
for x86. Put '.sbat' section in between '.data' and '.text' as the former
also covers '.bss' and '.pgtable' and thus must be the last one in the
file.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/20250603091951.57775-1-vkuznets@redhat.com
arch/x86/boot/Makefile
arch/x86/boot/compressed/Makefile
arch/x86/boot/compressed/sbat.S [new file with mode: 0644]
arch/x86/boot/compressed/vmlinux.lds.S
arch/x86/boot/header.S
drivers/firmware/efi/Kconfig