mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
The PE/COFF headers currently describe only the initialised-data portions of the image, and result in no space being allocated for the uninitialised-data portions. Consequently, the EFI boot stub will end up overwriting unexpected areas of memory, with unpredictable results. Fix by including a .bss section in the PE/COFF headers (functionally equivalent to the init_size field in the bzImage header). Signed-off-by: Michael Brown <[email protected]> Cc: Thomas Bächler <[email protected]> Cc: Josh Boyer <[email protected]> Cc: <[email protected]> Signed-off-by: Matt Fleming <[email protected]>