efi: Fix PE header field rva_and_sizes_nr
commit8c9a43f9fbd69a022f4a0913192e7bbc847e1af5
authorSylvain Gault <sylvain.gault@gmail.com>
Mon, 3 Feb 2014 04:43:02 +0000 (3 05:43 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Sat, 15 Feb 2014 00:31:42 +0000 (14 16:31 -0800)
tree148ce42c285833d9cab306dee9966a47447c5d31
parent8c11d9231fa234ff30477ba9c958c9d3645abfa2
efi: Fix PE header field rva_and_sizes_nr

The value of the field rva_and_sizes_nr is used by OVMF to check the
consistency of the PE file with respect to the field optional_hdr_sz. It
now have the right value.

Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
efi/wrapper.c
efi/wrapper.h