diff options
author | Sylvain Gault <sylvain.gault@gmail.com> | 2014-02-03 05:43:05 +0100 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-02-14 16:31:43 -0800 |
commit | 9e49e29e08e3263599def58630adac9fb72a737f (patch) | |
tree | acdaa12de1bf118b42de2611d9311791d6002683 /efi/i386 | |
parent | 0468e14525caea143b4cad8082f2b91876a457ea (diff) | |
download | syslinux-9e49e29e08e3263599def58630adac9fb72a737f.tar.gz |
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>
Diffstat (limited to 'efi/i386')
-rw-r--r-- | efi/i386/syslinux.ld | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/efi/i386/syslinux.ld b/efi/i386/syslinux.ld index 523a9b90..bab3fc74 100644 --- a/efi/i386/syslinux.ld +++ b/efi/i386/syslinux.ld @@ -136,7 +136,7 @@ SECTIONS *(.strtab) } - .bss : { + .bss (NOLOAD) : { /* the EFI loader doesn't seem to like a .bss section, so we stick it all into .data: */ __bss_start = .; @@ -153,7 +153,7 @@ SECTIONS __bss_dwords = (__bss_len + 3) >> 2; . = ALIGN(128); - + /* Very large objects which don't need to be zeroed */ .hugebss : { |