x86, efi: Fix NumberOfRvaAndSizes field in PE32 header for EFI_STUB
authorMatt Fleming <matt.fleming@intel.com>
Fri, 23 Mar 2012 16:35:06 +0000 (09:35 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 26 Mar 2012 20:10:02 +0000 (13:10 -0700)
commite47bb0bda46bf50f81671db502d0c903e0a32604
treeb39c3f842e45763290b91e111637a5e13e18682b
parente31be363df3092821bf179cf4baa076f501b8ae6
x86, efi: Fix NumberOfRvaAndSizes field in PE32 header for EFI_STUB

We've actually got six data directories in the header, not one. Even
though the firmware loader doesn't seem to mind, when we come to sign
the kernel image the signing tool thinks that there is no Certificate
Table data directory, even though we've allocated space for one.

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