efi: PE file size differ from in-memory size
commit9e49e29e08e3263599def58630adac9fb72a737f
authorSylvain Gault <sylvain.gault@gmail.com>
Mon, 3 Feb 2014 04:43:05 +0000 (3 05:43 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Sat, 15 Feb 2014 00:31:43 +0000 (14 16:31 -0800)
treeacdaa12de1bf118b42de2611d9311791d6002683
parent0468e14525caea143b4cad8082f2b91876a457ea
efi: PE file size differ from in-memory size

PE headers code_sz and image_sz indicate more or less, the size of the
file and the size of the in-memory image. They are now given the right
value.

In the ELF format, only the program headers are reliable to determine
the actually needed part of the file and the in-memory size.

The .bss section should always be marked as NOLOAD for ld since its
content shouldn't be included into the binary file.

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