]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GenFw/GenFw.c
BaseTools: Roll back GenFw Change to keep unknown field in RSDS debug entry
[mirror_edk2.git] / BaseTools / Source / C / GenFw / GenFw.c
index af60c92763c4c8020559d46972e5f8321c460f00..33ba917fda813d5a203943a1f49ec619c8a5b26d 100644 (file)
@@ -2903,13 +2903,7 @@ Returns:
       }\r
       if (DebugEntry->Type == EFI_IMAGE_DEBUG_TYPE_CODEVIEW) {\r
         RsdsEntry = (EFI_IMAGE_DEBUG_CODEVIEW_RSDS_ENTRY *) (FileBuffer + DebugEntry->FileOffset);\r
-        if (RsdsEntry->Signature == CODEVIEW_SIGNATURE_RSDS) {\r
-          RsdsEntry->Unknown  = 0;\r
-          RsdsEntry->Unknown2 = 0;\r
-          RsdsEntry->Unknown3 = 0;\r
-          RsdsEntry->Unknown4 = 0;\r
-          RsdsEntry->Unknown5 = 0;\r
-        } else if (RsdsEntry->Signature == CODEVIEW_SIGNATURE_MTOC) {\r
+        if (RsdsEntry->Signature == CODEVIEW_SIGNATURE_MTOC) {\r
           // MTOC sets DebugDirectoryEntrySize to size of the .debug section, so fix it.\r
           if (!ZeroDebugFlag) {\r
             if (Optional32Hdr->Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) {\r