summaryrefslogtreecommitdiff
path: root/doc/develop
diff options
context:
space:
mode:
authorSam Edwards <[email protected]>2025-03-15 15:18:07 -0700
committerTom Rini <[email protected]>2025-04-02 14:33:50 -0600
commit7a8121fe6d314b314531eee7487272601f469c1d (patch)
treef6c9270f802e98d88dbcc3710dd850740f2797a2 /doc/develop
parent86838a1ddc8a0e5b5f548a5051e5e68f90fb6660 (diff)
makefile: Add `norelro` linker option
RELRO is an instruction to a dynamic loader to make a memory range read-only after relocations are applied, for added security. Some linkers (e.g. LLD) require that all sections covered by the RELRO are contiguous, so that only a single RELRO is needed. U-Boot at present neither satisfies this requirement (e.g. x86_64 linker script currently puts .dynamic too far from .got) nor preserves the RELRO when converting away from ELF, therefore add `-z norelro` to global linker options. This can be brought back in the future when the linker scripts are cleaned up and U-Boot understands RELROs. Signed-off-by: Sam Edwards <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'doc/develop')
0 files changed, 0 insertions, 0 deletions