Skip to content

Commit eadb9fa

Browse files
committed
Merge tag 'efi-fixes-for-v6.16-1' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi
Pull EFI fixes from Ard Biesheuvel: - Drop preprocessor macros in zboot.lds which is not preprocessed - Fix zboot .data section size and raw size when SBAT is enabled * tag 'efi-fixes-for-v6.16-1' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi: efi: Fix .data section size calculations when .sbat is present efi: Drop preprocessor directives from zboot.lds
2 parents 6e9128f + f8b53cc commit eadb9fa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/firmware/efi/libstub/zboot.lds

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@ SECTIONS
2929
. = _etext;
3030
}
3131

32-
#ifdef CONFIG_EFI_SBAT
3332
.sbat : ALIGN(4096) {
3433
_sbat = .;
3534
*(.sbat)
3635
_esbat = ALIGN(4096);
3736
. = _esbat;
3837
}
39-
#endif
4038

4139
.data : ALIGN(4096) {
4240
_data = .;
@@ -60,6 +58,6 @@ SECTIONS
6058
PROVIDE(__efistub__gzdata_size =
6159
ABSOLUTE(__efistub__gzdata_end - __efistub__gzdata_start));
6260

63-
PROVIDE(__data_rawsize = ABSOLUTE(_edata - _etext));
64-
PROVIDE(__data_size = ABSOLUTE(_end - _etext));
61+
PROVIDE(__data_rawsize = ABSOLUTE(_edata - _data));
62+
PROVIDE(__data_size = ABSOLUTE(_end - _data));
6563
PROVIDE(__sbat_size = ABSOLUTE(_esbat - _sbat));

0 commit comments

Comments
 (0)