Skip to contentSkip to conversation

riscv: Complete efi header for RV32/64

PATCH New Leo Liang 3 participants 3 messages Nov 17, 2020 – Nov 23, 2020 RISC-V

lore
Share & tools
lore

Leo Liang

author
#0 lore raw

PATCH 3/3 riscv: Complete efi header for RV32/64

Date: Mon, 16 Nov 2020 17:07:41 +0800
From: Leo Yu-Chi Liang <[email protected]>
Subject: [PATCH 3/3] riscv: Complete efi header for RV32/64

This patch depends on Atish's patch.
(https://patchwork.ozlabs.org/project/uboot/patch/20201013192331.3236458-1-atish.patra at 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)

Cc rick at andestech.com
Cc alankao at andestech.com
Cc atish.patra at wdc.com
Cc xypron.glpk at gmx.de
Cc bmeng.cn at gmail.com
---
 arch/riscv/lib/crt0_riscv_efi.S | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/riscv/lib/crt0_riscv_efi.S +10 -0
index 48ff89553b..e7c4d99c21 100644
@@ -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:
Signature · 1 line
2.17.0
#1 lore raw

PATCH 3/3 riscv: Complete efi header for RV32/64

Quoted 11 lines · Leo Liang

Date: Mon, 16 Nov 2020 17:07:41 +0800
From: Leo Yu-Chi Liang <[email protected]>
Subject: [PATCH 3/3] riscv: Complete efi header for RV32/64

This patch depends on Atish's patch.
(https://patchwork.ozlabs.org/project/uboot/patch/20201013192331.3236458-1-atish.patra at 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)

Quoted 31 lines
Cc rick at andestech.com
Cc alankao at andestech.com
Cc atish.patra at wdc.com
Cc xypron.glpk at gmx.de
Cc bmeng.cn at gmail.com
---
 arch/riscv/lib/crt0_riscv_efi.S | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/riscv/lib/crt0_riscv_efi.S +10 -0
index 48ff89553b..e7c4d99c21 100644
@@ -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:
#2 lore raw

PATCH 3/3 riscv: Complete efi header for RV32/64

In reply to Leo Liang
Quoted 43 lines · Leo Liang

Date: Mon, 16 Nov 2020 17:07:41 +0800
From: Leo Yu-Chi Liang <[email protected]>
Subject: [PATCH 3/3] riscv: Complete efi header for RV32/64

This patch depends on Atish's patch.
(https://patchwork.ozlabs.org/project/uboot/patch/20201013192331.3236458-1-atish.patra at 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)

Cc rick at andestech.com
Cc alankao at andestech.com
Cc atish.patra at wdc.com
Cc xypron.glpk at gmx.de
Cc bmeng.cn at gmail.com
---
 arch/riscv/lib/crt0_riscv_efi.S | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/riscv/lib/crt0_riscv_efi.S +10 -1
index 48ff89553b..e7c4d99c21 100644
@@ -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:
--
Quoted 1 line

2.17.0

Signature · 2 lines
Regards,
Atish