u-boot-brain/arch/riscv
Bin Meng a33a4efd27 riscv: 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 RISC-V 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>
2018-12-02 21:59:36 +01:00
..
cpu riscv: cache: Implement i/dcache [status, enable, disable] 2018-11-26 13:58:01 +08:00
dts riscv: dts: Add ae350_32.dts for RV32I 2018-11-26 13:57:55 +08:00
include/asm riscv: cache: Implement i/dcache [status, enable, disable] 2018-11-26 13:58:01 +08:00
lib riscv: efi: Generate Microsoft PE format compliant images 2018-12-02 21:59:36 +01:00
config.mk riscv: enable -fdata-sections 2018-11-26 13:57:29 +08:00
Kconfig riscv: cache: Implement i/dcache [status, enable, disable] 2018-11-26 13:58:01 +08:00
Makefile riscv: set -march and -mabi based on the Kconfig configuration 2018-11-26 13:57:29 +08:00