summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Yu-Chi Liang <[email protected]>2020-11-16 17:07:41 +0800
committerAndes <[email protected]>2020-12-14 15:16:54 +0800
commit9afaeec6ef8bbc6cf936d2a9c3d28caffca5bf7e (patch)
tree1bb86f5f0d7c4337c21da3221a460fffd28ebc61
parent9ea6952a9ab75d09d8d8958ef7e425d3879b85e3 (diff)
riscv: Complete efi header for RV32/64
This patch depends on Atish's patch. (https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/) 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 <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Reviewed-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Atish Patra <[email protected]>
-rw-r--r--arch/riscv/lib/crt0_riscv_efi.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/riscv/lib/crt0_riscv_efi.S b/arch/riscv/lib/crt0_riscv_efi.S
index 48ff89553b9..e7c4d99c21c 100644
--- a/arch/riscv/lib/crt0_riscv_efi.S
+++ b/arch/riscv/lib/crt0_riscv_efi.S
@@ -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: