diff options
| author | Bin Meng <[email protected]> | 2018-10-02 07:39:34 -0700 |
|---|---|---|
| committer | Alexander Graf <[email protected]> | 2018-12-02 21:59:36 +0100 |
| commit | a33a4efd2785dfda23216bc97e7b636cfd29b9f8 (patch) | |
| tree | 03c555f0d61d55faf55a743e2820343ec730b552 /include/linux | |
| parent | fb8ebf52a4518e9355957b8815b0493e7900170d (diff) | |
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 <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
