commit | e0d397c66fd7fed9f615bd95304d19a4b8074eef | [log] [tgz] |
---|---|---|
author | Andre Przywara <andre.przywara@arm.com> | Wed Sep 30 17:39:14 2020 +0100 |
committer | Tom Rini <trini@konsulko.com> | Thu Oct 08 11:42:36 2020 -0400 |
tree | ead0e6a3694bb5d4fe59e355dbfc0b2e2e6307dd | |
parent | f7582eef9229a6f947539b09f2c38eb5a83faf3d [diff] |
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>