]> git.baikalelectronics.ru Git - arm-tf.git/commit
plat/arm: Reduce size of BL31 binary
authorAlexei Fedorov <Alexei.Fedorov@arm.com>
Tue, 21 Jul 2020 16:07:45 +0000 (17:07 +0100)
committerAlexei Fedorov <Alexei.Fedorov@arm.com>
Mon, 10 Aug 2020 10:40:35 +0000 (10:40 +0000)
commitfa1fdb223cdc0b01ef944b5fe9664a16867dfa34
tree2b61012b45e1663bf399243cb9384cc1a3f17fe0
parent8ae3a91c39d8a22acf845f134cb7a093be0ab918
plat/arm: Reduce size of BL31 binary

BL31 binary size is aligned to 4KB because of the
code in include\plat\arm\common\arm_reclaim_init.ld.S:
    __INIT_CODE_UNALIGNED__ = .;
    . = ALIGN(PAGE_SIZE);
    __INIT_CODE_END__ = .;
with all the zero data after the last instruction of
BL31 code to the end of the page.
This causes increase in size of BL31 binary stored in FIP
and its loading time by BL2.
This patch reduces the size of BL31 image by moving
page alignment from __INIT_CODE_END__ to __STACKS_END__
which also increases the stack size for secondary CPUs.

Change-Id: Ie2ec503fc774c22c12ec506d74fd3ef2b0b183a9
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
include/plat/arm/common/arm_reclaim_init.ld.S
plat/arm/common/arm_bl31_setup.c