diff options
author | Chen-Yu Tsai <wens@csie.org> | 2016-06-19 12:38:34 +0800 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2016-07-15 15:54:57 +0200 |
commit | a1274cc94a20a0fc6715522d021ab84969b6bf91 (patch) | |
tree | 5962fadabe4eebc1dbfd63dbb0a9642a0c42051b /post | |
parent | 1e77ce0e8b77c1e4ed516b5f8a46ef6d06921432 (diff) | |
download | u-boot-imx-a1274cc94a20a0fc6715522d021ab84969b6bf91.zip u-boot-imx-a1274cc94a20a0fc6715522d021ab84969b6bf91.tar.gz u-boot-imx-a1274cc94a20a0fc6715522d021ab84969b6bf91.tar.bz2 |
ARM: Page align secure section only when it is executed in situ
Targets that define CONFIG_ARMV7_SECURE_BASE will copy the secure section
to another address before execution.
Since the secure section in the u-boot image is only storage, there's
no reason to page align it and increase the binary image size.
Page align the secure section only when CONFIG_ARMV7_SECURE_BASE is not
defined. And instead of just aligning the __secure_start symbol, align
the whole .__secure_start section. This also makes the section empty,
so we need to add KEEP() to the input entry to prevent the section from
being garbage collected.
Also use ld constant "COMMONPAGESIZE" instead of hardcoded page size.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'post')
0 files changed, 0 insertions, 0 deletions