From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Fri, 4 Sep 2020 12:45:33 -0600 Subject: [PATCH v2 3/3] arm64: Add support for larger PIE U-boot In-Reply-To: <20200904090749.4067768-4-edgar.iglesias@gmail.com> References: <20200904090749.4067768-1-edgar.iglesias@gmail.com> <20200904090749.4067768-4-edgar.iglesias@gmail.com> Message-ID: 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" > > Linking a U-boot larger than 1MB fails with PIE enabled: > u-boot/arch/arm/cpu/armv8/start.S:71:(.text+0x3c): relocation > truncated to fit: R_AARCH64_ADR_PREL_LO21 against symbol `__rel_dyn_end' > defined in .bss_start section in u-boot. > > This extends the supported range by using adrp & add to load symbols > early while starting up. This patch looks conceptually fine to me, but I won't ack this version due to the issue pointed out by Michal.