From: Jordan Justen Date: Fri, 23 Mar 2012 16:35:04 +0000 (-0700) Subject: x86, efi: Fix issue of overlapping .reloc section for EFI_STUB X-Git-Tag: v3.5-rc1~128^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e064b1e131eba262c0ba4268cb79dbc72edeece;p=pandora-kernel.git 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 Link: http://lkml.kernel.org/r/1332520506-6472-2-git-send-email-jordan.l.justen@intel.com Acked-by: Matt Fleming Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed