[PATCH v2 3/3] arm64: Add support for larger PIE U-boot

Stephen Warren swarren at wwwdotorg.org
Fri Sep 4 20:45:33 CEST 2020


On 9/4/20 3:07 AM, Edgar E. Iglesias wrote:
> From: "Edgar E. Iglesias" <edgar.iglesias at xilinx.com>
> 
> 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.


More information about the U-Boot mailing list