Home
last modified time | relevance | path

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

/optee_os/mk/
H A Dclang.mkb77aa8a014a4a570f532d0bb546683fd7a645e09 Fri Apr 24 08:10:08 UTC 2020 Jerome Forissier <jerome@forissier.org> core: clang: add --apply-dynamic-relocs linker flag

Core ASLR relies on the executable being ready to run from its
preferred load address, because some symbols are used before the MMU is
enabled and relocations are applied. Clang (ld.lld) on Aarch64 needs a
special flag for this: --apply-dynamic-relocs. Without the flag the
R_AARCH64_RELATIVE places are initially filled with zeros.

Signed-off-by: Jerome Forissier <jerome@forissier.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
/optee_os/core/arch/arm/kernel/
H A Dlink.mkb77aa8a014a4a570f532d0bb546683fd7a645e09 Fri Apr 24 08:10:08 UTC 2020 Jerome Forissier <jerome@forissier.org> core: clang: add --apply-dynamic-relocs linker flag

Core ASLR relies on the executable being ready to run from its
preferred load address, because some symbols are used before the MMU is
enabled and relocations are applied. Clang (ld.lld) on Aarch64 needs a
special flag for this: --apply-dynamic-relocs. Without the flag the
R_AARCH64_RELATIVE places are initially filled with zeros.

Signed-off-by: Jerome Forissier <jerome@forissier.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>