Message ID | CAKv+Gu9+uPsLQFyTP-x=1QkzSZKX8OXk0=4F3UGniOSQuzB7Qw@mail.gmail.com |
---|---|
State | New |
Headers | show |
--- a/BaseTools/Source/C/Common/BasePeCoff.c +++ b/BaseTools/Source/C/Common/BasePeCoff.c @@ -336,8 +336,6 @@ Returns: // if ((!(ImageContext->IsTeImage)) && ((PeHdr->Pe32.FileHeader.Characteristics & EFI_IMAGE_FILE_RELOCS_STRIPPED) != 0)) { ImageContext->RelocationsStripped = TRUE; - } else if ((ImageContext->IsTeImage) && (TeHdr->DataDirectory[0].Size == 0)) { - ImageContext->RelocationsStripped = TRUE;