]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: Add support for larger PIE U-Boot
authorEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Wed, 9 Sep 2020 17:07:26 +0000 (19:07 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 22 Sep 2020 10:47:28 +0000 (12:47 +0200)
commit28c851f12847096dbe7a4e480d1092630cd01936
tree1202f680cebf8c853ac96789a1256b5c55d22476
parent04d13b5d09c17a076260e2b9fb92c0d708d37264
arm64: Add support for larger PIE U-Boot

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.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv8/start.S
arch/arm/lib/crt0_64.S