[PATCH v2 2/6] arm64: PIE: Skip fixups if distance is zero

Tom Rini
2020-10-09T13:02:34Z

On Wed, Sep 30, 2020 at 05:39:14PM +0100, Andre Przywara wrote:

> 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>

Applied to u-boot/master, thanks!

--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201009/3697064f/attachment.sig>