[PATCH] arm64: relocate-rela: Add support for ld.lld

Tom Rini trini at konsulko.com
Tue Nov 16 20:25:30 CET 2021


On Wed, Oct 20, 2021 at 09:31:32PM +0000, Alistair Delva wrote:

> Cap end of relocations by the binary size.
> 
> Linkers like to insert some auxiliary sections between .rela.dyn and
> .bss_start. These sections don't make their way to the final binary, but
> reloc_rela still tries to relocate them, resulting in attempted read
> past the end of file.
> 
> When linking U-Boot with ld.lld, the STATIC_RELA feature (enabled by
> default on arm64) breaks the build. After this patch, U-Boot can be
> linked successfully with and without CONFIG_STATIC_RELA.
> 
> Originally-from: Elena Petrova <lenaptr at google.com>
> Signed-off-by: Alistair Delva <adelva at google.com>
> Cc: David Brazdil <dbrazdil at google.com>
> Cc: Scott Wood <scottwood at freescale.com>
> Cc: Tom Rini <trini at konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20211116/e3e99e73/attachment.sig>


More information about the U-Boot mailing list