ArmPlatformPkg/ArmJunoPkg: use TE 'auto' alignment for SEC modules

No need to hardcode the TE alignment anymore, now that GenFw sets
the PE/COFF alignment according to the alignment requirements of
the ELF input sections.

Also enable FIXED FFS placement so that we can reclaim some of the
space wasted to padding when using clang with 4 KB section alignment.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Tested-by: Leif Lindholm <leif.lindholm@linaro.org>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18195 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Ard Biesheuvel 2015-08-10 07:55:03 +00:00 committed by abiesheuvel
parent 9bdf791f7d
commit 750db7903e
1 changed files with 4 additions and 4 deletions

View File

@ -276,8 +276,8 @@ READ_LOCK_STATUS = TRUE
} }
[Rule.AARCH64.SEC] [Rule.AARCH64.SEC]
FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED { FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED FIXED {
TE TE Align = 4K $(INF_OUTPUT)/$(MODULE_NAME).efi TE TE Align = Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
} }
# A shim specific rule is required to ensure the alignment is 4K. # A shim specific rule is required to ensure the alignment is 4K.
@ -288,13 +288,13 @@ READ_LOCK_STATUS = TRUE
} }
[Rule.Common.PEI_CORE] [Rule.Common.PEI_CORE]
FILE PEI_CORE = $(NAMED_GUID) { FILE PEI_CORE = $(NAMED_GUID) FIXED {
TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
UI STRING ="$(MODULE_NAME)" Optional UI STRING ="$(MODULE_NAME)" Optional
} }
[Rule.Common.PEIM] [Rule.Common.PEIM]
FILE PEIM = $(NAMED_GUID) { FILE PEIM = $(NAMED_GUID) FIXED {
PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
UI STRING="$(MODULE_NAME)" Optional UI STRING="$(MODULE_NAME)" Optional