]> git.baikalelectronics.ru Git - kernel.git/commit
x86, efi: Fix issue of overlapping .reloc section for EFI_STUB
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 23 Mar 2012 16:35:04 +0000 (09:35 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 26 Mar 2012 20:08:33 +0000 (13:08 -0700)
commit145b4384905b49b191ec00877705ee884ca50c42
tree51948df7cca8591d0476b84594cb76c506c63431
parent9252ed1da912150b3ace334256782202ed39f297
x86, efi: Fix issue of overlapping .reloc section for EFI_STUB

Previously the .reloc section was embedded in the .text
section.

No relocations are required during the PE/COFF loading phase
for the kernel using the EFI_STUB UEFI loader. To fix the
issue of overlapping sections, create a .reloc section with a
zero length.

The .reloc section header must exist to make sure the image
will be loaded by the UEFI firmware, but a zero-length
section header seems to be sufficient.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Link: http://lkml.kernel.org/r/1332520506-6472-2-git-send-email-jordan.l.justen@intel.com
Acked-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/boot/header.S