## @file\r
# process FFS generation from INF statement\r
#\r
-# Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>\r
# Copyright (c) 2014-2016 Hewlett-Packard Development Company, L.P.<BR>\r
#\r
# This program and the accompanying materials\r
ImageObj = PeImageClass (File)\r
if ImageObj.SectionAlignment < 0x400:\r
self.Alignment = str (ImageObj.SectionAlignment)\r
- else:\r
+ elif ImageObj.SectionAlignment < 0x100000:\r
self.Alignment = str (ImageObj.SectionAlignment / 0x400) + 'K'\r
+ else:\r
+ self.Alignment = str (ImageObj.SectionAlignment / 0x100000) + 'M'\r
\r
if not NoStrip:\r
FileBeforeStrip = os.path.join(self.OutputPath, ModuleName + '.reloc')\r
ImageObj = PeImageClass (GenSecInputFile)\r
if ImageObj.SectionAlignment < 0x400:\r
self.Alignment = str (ImageObj.SectionAlignment)\r
- else:\r
+ elif ImageObj.SectionAlignment < 0x100000:\r
self.Alignment = str (ImageObj.SectionAlignment / 0x400) + 'K'\r
+ else:\r
+ self.Alignment = str (ImageObj.SectionAlignment / 0x100000) + 'M'\r
\r
if not NoStrip:\r
FileBeforeStrip = os.path.join(self.OutputPath, ModuleName + '.reloc')\r