summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2022-08-15 18:15:24 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-08-19 05:12:26 +0000
commite2ac68a23b4954d5c0399913a1df3dd9fd90315d (patch)
treef24fbd9c0e323d8b5af90591d4943ab91a25db57 /BaseTools
parent68bf712d4f5928af4c426dc82d27b9783e499d93 (diff)
downloadedk2-e2ac68a23b4954d5c0399913a1df3dd9fd90315d.tar.gz
edk2-e2ac68a23b4954d5c0399913a1df3dd9fd90315d.tar.bz2
edk2-e2ac68a23b4954d5c0399913a1df3dd9fd90315d.zip
BaseTools/Source/C/GenSec: Fix EFI_SECTION_FREEFORM_SUBTYPE_GUID header
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4021 When the size of a EFI_SECTION_FREEFORM_SUBTYPE_GUID section required the use of EFI_FREEFORM_SUBTYPE_GUID_SECTION2 header, set the section type to EFI_SECTION_FREEFORM_SUBTYPE_GUID. Cc: Leif Lindholm <llindhol@qti.qualcomm.com> Cc: Andrew Fish <afish@apple.com> Cc: Konstantin Aladyshev <aladyshev22@gmail.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Yuwei Chen <yuwei.chen@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Acked-by: Konstantin Aladyshev <aladyshev22@gmail.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Leif Lindholm <llindhol@qti.qualcomm.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/C/GenSec/GenSec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/C/GenSec/GenSec.c b/BaseTools/Source/C/GenSec/GenSec.c
index d86cc197cc..a4c2d19aa6 100644
--- a/BaseTools/Source/C/GenSec/GenSec.c
+++ b/BaseTools/Source/C/GenSec/GenSec.c
@@ -1112,7 +1112,7 @@ Returns:
//
if (TotalLength >= MAX_SECTION_SIZE) {
SubtypeGuidSect2 = (EFI_FREEFORM_SUBTYPE_GUID_SECTION2 *) FileBuffer;
- SubtypeGuidSect2->CommonHeader.Type = EFI_SECTION_GUID_DEFINED;
+ SubtypeGuidSect2->CommonHeader.Type = EFI_SECTION_FREEFORM_SUBTYPE_GUID;
SubtypeGuidSect2->CommonHeader.Size[0] = (UINT8) 0xff;
SubtypeGuidSect2->CommonHeader.Size[1] = (UINT8) 0xff;
SubtypeGuidSect2->CommonHeader.Size[2] = (UINT8) 0xff;