summaryrefslogtreecommitdiff
path: root/EmbeddedPkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-07-27 13:50:09 +0000
committerabiesheuvel <abiesheuvel@Edk2>2015-07-27 13:50:09 +0000
commit02a5421f57cd76daf2544ecd2b35ea0d4d65337a (patch)
treee397e192523a96603b1038f528e639d8fb961b0c /EmbeddedPkg
parent0192b71ca322265099ca0e75da5b668d69d8667d (diff)
downloadedk2-platforms-02a5421f57cd76daf2544ecd2b35ea0d4d65337a.tar.xz
BaseTools/GenFw: move PE/COFF header closer to payload
The secondary header (not the DOS header) of a PE/COFF binary does not reside at a fixed offset. Instead, its offset into the file is recorded in the DOS header. This gives us the flexibility to move it, along with the section headers, to right before the first section if there is considerable space before it, i.e., when the PE/COFF file alignment is substantially larger than the size of the header. Since the PE/COFF to TE conversion replaces everything before the section headers with a simple TE header, this change removes all the header padding from such images, leading to smaller files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Yingke Liu <yingke.d.liu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18078 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg')
0 files changed, 0 insertions, 0 deletions