]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: Complete efi header for RV32/64
authorLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 16 Nov 2020 09:07:41 +0000 (17:07 +0800)
committerAndes <uboot@andestech.com>
Mon, 14 Dec 2020 07:16:54 +0000 (15:16 +0800)
This patch depends on Atish's patch.
(https://patchwork.ozlabs.org/project/uboot/patch/20201013192331.3236458-1-atish.patra@wdc.com/)

Add fields to complete Optional Header "Data Directories" specified in the document.
(https://docs.microsoft.com/en-us/windows/win32/debug/pe-format)

Signed-off-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Cc: rick@andestech.com
Cc: alankao@andestech.com
Cc: atish.patra@wdc.com
Cc: xypron.glpk@gmx.de
Cc: bmeng.cn@gmail.com
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
arch/riscv/lib/crt0_riscv_efi.S

index 48ff89553b94509f6b191455bb8491d96edffcef..e7c4d99c21cceecf2f2db9d9d661f781ec4bb5fd 100644 (file)
@@ -107,6 +107,16 @@ extra_header_fields:
        .quad   0                               /* ExceptionTable */
        .quad   0                               /* CertificationTable */
        .quad   0                               /* BaseRelocationTable */
+       .quad   0                               /* Debug */
+       .quad   0                               /* Architecture */
+       .quad   0                               /* Global Ptr */
+       .quad   0                               /* TLS Table */
+       .quad   0                               /* Load Config Table */
+       .quad   0                               /* Bound Import */
+       .quad   0                               /* IAT */
+       .quad   0                               /* Delay Import Descriptor */
+       .quad   0                               /* CLR Runtime Header */
+       .quad   0                               /* Reserved */
 
        /* Section table */
 section_table: