]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: efi: Generate Microsoft PE format compliant images
authorBin Meng <bmeng.cn@gmail.com>
Tue, 2 Oct 2018 14:39:33 +0000 (07:39 -0700)
committerAlexander Graf <agraf@suse.de>
Sun, 2 Dec 2018 20:59:36 +0000 (21:59 +0100)
commitfb8ebf52a4518e9355957b8815b0493e7900170d
tree9ab351c159a2719de7888ce4dc8a0a62df3e8e4f
parent16c3da3fe965a43f8395472e335677c19c846468
arm: efi: Generate Microsoft PE format compliant images

Per Microsoft PE Format documentation [1], PointerToSymbolTable and
NumberOfSymbols should be zero for an image in the COFF file header.
Currently the COFF file header is hardcoded on ARM and these two
members are not zero.

This updates the hardcoded structure to clear these two members, as
well as setting the flag IMAGE_FILE_LOCAL_SYMS_STRIPPED so that we
can generate compliant *.efi images.

[1] https://docs.microsoft.com/zh-cn/windows/desktop/Debug/pe-format

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/arm/lib/crt0_aarch64_efi.S
arch/arm/lib/crt0_arm_efi.S