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

Tom Rini trini at konsulko.com
Fri Oct 9 15:02:34 CEST 2020


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 at arm.com>
> Reviewed-by: Stephen Warren <swarren at 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>


More information about the U-Boot mailing list