X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FGenFds%2FDataSection.py;fp=BaseTools%2FSource%2FPython%2FGenFds%2FDataSection.py;h=5af3ee7b7f7c2462a0097b1551bd44f6aac91ad0;hp=f20fd702254ae48454bc814a1b981034136a5bba;hb=d8be01079b3c7b554ac8126e97e73fba8894e519;hpb=3a7a6761143a4840faea0bd84daada3ac0f1bd22 diff --git a/BaseTools/Source/Python/GenFds/DataSection.py b/BaseTools/Source/Python/GenFds/DataSection.py index f20fd70225..5af3ee7b7f 100644 --- a/BaseTools/Source/Python/GenFds/DataSection.py +++ b/BaseTools/Source/Python/GenFds/DataSection.py @@ -80,14 +80,7 @@ class DataSection (DataSectionClassObject): #Get PE Section alignment when align is set to AUTO if self.Alignment == 'Auto' and self.SecType in (BINARY_FILE_TYPE_TE, BINARY_FILE_TYPE_PE32): - ImageObj = PeImageClass (Filename) - if ImageObj.SectionAlignment < 0x400: - self.Alignment = str (ImageObj.SectionAlignment) - elif ImageObj.SectionAlignment < 0x100000: - self.Alignment = str (ImageObj.SectionAlignment // 0x400) + 'K' - else: - self.Alignment = str (ImageObj.SectionAlignment // 0x100000) + 'M' - + self.Alignment = "0" NoStrip = True if self.SecType in (BINARY_FILE_TYPE_TE, BINARY_FILE_TYPE_PE32): if self.KeepReloc is not None: