Skip to content
Commit 9a984f10 authored by Andre Przywara's avatar Andre Przywara Committed by Tom Rini
Browse files

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: default avatarAndre Przywara <andre.przywara@arm.com>
Reviewed-by: default avatarStephen Warren <swarren@nvidia.com>
parent eabc0902
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment