Home
last modified time | relevance | path

Searched hist:cfc0f0743ad9d68bbdd31ec0e50e4643f3a51dc7 (Results 1 – 1 of 1) sorted by relevance

/optee_os/ldelf/
H A Dldelf.ld.Scfc0f0743ad9d68bbdd31ec0e50e4643f3a51dc7 Mon Sep 09 08:53:37 UTC 2019 Jerome Forissier <jerome@forissier.org> ta: ldelf.ld.S: align __reloc_begin on 8 bytes

__reloc_begin is currently defined as "__reloc_begin = ." just before
the various .rel.* output sections. The problem is, there is no
guarantee that the symbol will actually point to the first relocation
entry due to the alignment constraints on relocation sections. For
instance for Aarch64 relocations, alignment is 8 bytes, but
__reloc_begin has no alignment constraint, so it might end before the
first relocation (this issue was observed with the Clang linker,
ld.lld).

The patch forces the alignment of __reloc_begin on 8 bytes so that
there can be no unwanted padding.

Signed-off-by: Jerome Forissier <jerome@forissier.org>
Acked-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>