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

2020-10-09 Thread Tom Rini
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 wh

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

2020-09-30 Thread Andre Przywara
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. Sign