Don't zero Linker version of EFI image.
authorlgao4 <lgao4@c2973edb-eda0-4c78-bc6a-9341b269661f>
Sun, 14 Mar 2010 04:43:01 +0000 (04:43 +0000)
committerlgao4 <lgao4@c2973edb-eda0-4c78-bc6a-9341b269661f>
Sun, 14 Mar 2010 04:43:01 +0000 (04:43 +0000)
git-svn-id: https://edk2-buildtools.svn.sourceforge.net/svnroot/edk2-buildtools/trunk/BaseTools@1930 c2973edb-eda0-4c78-bc6a-9341b269661f

Source/C/GenFw/GenFw.c

index 4d60814..ee02f85 100644 (file)
@@ -3213,8 +3213,6 @@ Returns:
 \r
   if (PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) {\r
     Optional32 = (EFI_IMAGE_OPTIONAL_HEADER32 *)&PeHdr->Pe32.OptionalHeader;\r
 \r
   if (PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) {\r
     Optional32 = (EFI_IMAGE_OPTIONAL_HEADER32 *)&PeHdr->Pe32.OptionalHeader;\r
-    Optional32->MajorLinkerVersion          = 0;\r
-    Optional32->MinorLinkerVersion          = 0;\r
     Optional32->MajorOperatingSystemVersion = 0;\r
     Optional32->MinorOperatingSystemVersion = 0;\r
     Optional32->MajorImageVersion           = 0;\r
     Optional32->MajorOperatingSystemVersion = 0;\r
     Optional32->MinorOperatingSystemVersion = 0;\r
     Optional32->MajorImageVersion           = 0;\r
@@ -3307,8 +3305,6 @@ Returns:
     }\r
   } else if (PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) {\r
     Optional64 = (EFI_IMAGE_OPTIONAL_HEADER64 *)&PeHdr->Pe32.OptionalHeader;\r
     }\r
   } else if (PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) {\r
     Optional64 = (EFI_IMAGE_OPTIONAL_HEADER64 *)&PeHdr->Pe32.OptionalHeader;\r
-    Optional64->MajorLinkerVersion          = 0;\r
-    Optional64->MinorLinkerVersion          = 0;\r
     Optional64->MajorOperatingSystemVersion = 0;\r
     Optional64->MinorOperatingSystemVersion = 0;\r
     Optional64->MajorImageVersion           = 0;\r
     Optional64->MajorOperatingSystemVersion = 0;\r
     Optional64->MinorOperatingSystemVersion = 0;\r
     Optional64->MajorImageVersion           = 0;\r