]> git.baikalelectronics.ru Git - arm-tf.git/commit
uniphier: make uniphier_mmap_setup() work with PIE
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 17 Jan 2020 04:46:38 +0000 (13:46 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 24 Jan 2020 13:34:50 +0000 (22:34 +0900)
commitc64873ab94cbb7cc7860ed348f0c55a9dec146e4
tree7e1a9c1555574ca6364efbf8988c972656154435
parent577b24411accd329d11c7d918d9104498d9a4e1a
uniphier: make uniphier_mmap_setup() work with PIE

BL2_BASE, BL31_BASE, and BL32_BASE are defined in platform_def.h,
that is, determined at link-time.

On the other hand, BL2_END, BL31_END, and BL32_END are derived from
the symbols produced by the linker scripts. So, they are fixed-up
at run-time if ENABLE_PIE is enabled.

To make it work in a position-indepenent manner, use BL_CODE_BASE and
BL_END, both of which are relocatable.

Change-Id: Ic179a7c60eb64c5f3024b178690b3ac7cbd7521b
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
plat/socionext/uniphier/tsp/uniphier_tsp_setup.c
plat/socionext/uniphier/uniphier.h
plat/socionext/uniphier/uniphier_bl2_setup.c
plat/socionext/uniphier/uniphier_bl31_setup.c
plat/socionext/uniphier/uniphier_xlat_setup.c