diff options
| author | Alistair Delva <[email protected]> | 2021-10-20 21:31:32 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-11-15 14:33:32 -0500 |
| commit | 9d3d981661000d8496d3b7836f3bd55d6534dd05 (patch) | |
| tree | f95003c3e313616247ed7d0b3036264d091e9b85 /scripts/objdiff | |
| parent | 9272805139a104c83dff8230e03e9626dd9bc195 (diff) | |
arm64: relocate-rela: Add support for ld.lld
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 <[email protected]>
Signed-off-by: Alistair Delva <[email protected]>
Cc: David Brazdil <[email protected]>
Cc: Scott Wood <[email protected]>
Cc: Tom Rini <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
