mirror of https://github.com/acidanthera/audk.git
02a5421f57
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 |
||
---|---|---|
.. | ||
Elf32Convert.c | ||
Elf32Convert.h | ||
Elf64Convert.c | ||
Elf64Convert.h | ||
ElfConvert.c | ||
ElfConvert.h | ||
GNUmakefile | ||
GenFw.c | ||
GenFw.h | ||
Makefile | ||
elf32.h | ||
elf64.h | ||
elf_common.h |