summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/C/GenFw/ElfConvert.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-06-29 03:17:34 +0000
committeryingke <yingke@Edk2>2015-06-29 03:17:34 +0000
commit54b1b57a59b5297304a8d7fd3838e1122bebc2b2 (patch)
tree631a7cf3b870686d42e2d280c5120e914e0d8ab5 /BaseTools/Source/C/GenFw/ElfConvert.h
parentbbb6369486306c9f96088ff272a46f7c5d7991ad (diff)
downloadedk2-54b1b57a59b5297304a8d7fd3838e1122bebc2b2.tar.gz
edk2-54b1b57a59b5297304a8d7fd3838e1122bebc2b2.tar.bz2
edk2-54b1b57a59b5297304a8d7fd3838e1122bebc2b2.zip
BaseTools: Update GenFw to support 4K alignment.
Get maximum section alignment from each ELF section, and this alignment is used to create PE header. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17727 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/Source/C/GenFw/ElfConvert.h')
-rw-r--r--BaseTools/Source/C/GenFw/ElfConvert.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/BaseTools/Source/C/GenFw/ElfConvert.h b/BaseTools/Source/C/GenFw/ElfConvert.h
index b27a2f9d22..56f165eae5 100644
--- a/BaseTools/Source/C/GenFw/ElfConvert.h
+++ b/BaseTools/Source/C/GenFw/ElfConvert.h
@@ -34,6 +34,7 @@ extern UINT32 mOutImageType;
// Common EFI specific data.
//
#define ELF_HII_SECTION_NAME ".hii"
+#define MAX_COFF_ALIGNMENT 0x10000
//
// Filter Types