]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: PIE: Skip fixups if distance is zero
authorAndre Przywara <andre.przywara@arm.com>
Wed, 30 Sep 2020 16:39:14 +0000 (17:39 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 8 Oct 2020 15:42:36 +0000 (11:42 -0400)
commit9a984f100ed1d2d4a3aed7db9cfd1a3892e2bccd
treeead0e6a3694bb5d4fe59e355dbfc0b2e2e6307dd
parenteabc0902155aa36f603f628360706767202affb2
arm64: PIE: Skip fixups if distance is zero

When the actual offset between link and runtime address is zero, there
is no need for patching up U-Boot early when running with
CONFIG_POSITION_INDEPENDENT.

Skip the whole routine when the distance is 0.

This helps when U-Boot is loaded into ROM, or in otherwise sensitive
memory locations.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
arch/arm/cpu/armv8/start.S