From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Fri, 4 Sep 2020 12:42:32 -0600 Subject: [PATCH v2 1/3] arm64: Mention 4K aligned load addresses in the PIE Kconfig help In-Reply-To: <20200904090749.4067768-2-edgar.iglesias@gmail.com> References: <20200904090749.4067768-1-edgar.iglesias@gmail.com> <20200904090749.4067768-2-edgar.iglesias@gmail.com> Message-ID: <04b3f313-6bf9-a6b0-0c1f-74c110b18000@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 9/4/20 3:07 AM, Edgar E. Iglesias wrote: > From: "Edgar E. Iglesias" > > Mention the requirement of 4K aligned load addresses in the > help section for the POSITION_INDEPENDENT option. > > Suggested-by: Michal Simek > Signed-off-by: Edgar E. Iglesias > --- > arch/arm/Kconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index f30c2639ec..c144c08612 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -21,6 +21,9 @@ config POSITION_INDEPENDENT > information that is embedded in the binary to support U-Boot > relocating itself to the top-of-RAM later during execution. > > + When this option is enabled, U-Boot needs to be loaded at a > + 4K aligned address. I don't believe this restriction should be documented as part of POSITION_INDEPENDENT; the restriction always exists at least for 64-bit ARM, since arch/arm/lib/relocate_64.S relocate_code uses the same assembly sequence that imposes this restriction, and IIUC that code is unconditionally used.