diff options
author | Michael Brown <mbrown@fensystems.co.uk> | 2014-07-10 16:59:23 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2014-07-18 21:24:02 +0100 |
commit | aeffc4928ea21aab3c7be72f00e257799b661c29 (patch) | |
tree | 5187b2015ed3bf43b67507fe67293b8932f3cb7a /include/xen | |
parent | fb86b2440de0ec10fe0272eb19d262ae7a01adb8 (diff) |
x86/efi: Request desired alignment via the PE/COFF headers
The EFI boot stub goes to great pains to relocate the kernel image to
an appropriately aligned address, as indicated by the ->kernel_alignment
field in the bzImage header. However, for the PE stub entry case, we
can request that the EFI PE/COFF loader do the work for us.
Fix by exposing the desired alignment via the SectionAlignment field
in the PE/COFF headers. Despite its name, this field provides an
overall alignment requirement for the loaded file. (Naturally, the
FileAlignment field describes the alignment for individual sections.)
There is no way in the PE/COFF headers to express the concept of
min_alignment; we therefore do not expose the minimum (as opposed to
preferred) alignment.
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'include/xen')
0 files changed, 0 insertions, 0 deletions