commit | 845ecd82d575c1bc486e4f9ef9bca65fa6a58025 | [log] [tgz] |
---|---|---|
author | Jerome Forissier <jerome@forissier.org> | Wed Jun 30 17:23:49 2021 +0200 |
committer | Jérôme Forissier <jerome@forissier.org> | Wed Jun 30 20:54:41 2021 +0200 |
tree | 39e1b8872a0e1322481f70f777f667adef4b0448 | |
parent | 0474627c2fa2c3f4896bc475af8dbdefe0223e42 [diff] |
core: arm64: use adr_l to reference stack_tmp_stride When CFG_NUM_THREADS and/or CFG_TEE_CORE_NB_CORE become large enough, link errors are reported: $ make -s CFG_TEE_CORE_NB_CORE=48 CFG_NUM_THREADS=48 \ PLATFORM=vexpress-qemu_armv8a out/arm-plat-vexpress/core/arch/arm/kernel/entry_a64.o: in function `clear_bss': core/arch/arm/kernel/entry_a64.S:160:(.text._start+0x98): relocation truncated to fit: R_AARCH64_ADR_PREL_LO21 against symbol `stack_tmp_stride' defined in .identity_map.stack_tmp_stride section in out/arm-plat-vexpress/core/arch/arm/kernel/thread.o out/arm-plat-vexpress/core/arch/arm/kernel/entry_a64.o: in function `cpu_on_handler': core/arch/arm/kernel/entry_a64.S:443:(.text.cpu_on_handler+0x50): relocation truncated to fit: R_AARCH64_ADR_PREL_LO21 against symbol `stack_tmp_stride' defined in .identity_map.stack_tmp_stride section in out/arm-plat-vexpress/core/arch/arm/kernel/thread.o Fix the issue by replacing the addr instruction with the adr_l macro. Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers