aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Forissier <jerome@forissier.org>2019-05-22 14:23:25 +0200
committerJérôme Forissier <jerome@forissier.org>2019-05-23 15:37:49 +0200
commit561a5d347b4d22a24ab734206422cef925b62f29 (patch)
tree8c5a567dd077bc7de6b34d315cc129febb0a45a8
parent834ce4c65a544eab592f8f339a77d6b7ace4165d (diff)
virt: kern.ld.S: remove PROVIDE() keyword
The linker script for the TEE core exports two symbols using the PROVIDE() keyword. This keyword is not needed; it makes no difference because when CFG_VIRTUALIZATION=y the symbols are *not* defined elsewhere, and they *are* used by a C file, so that a normal symbol will do the same [1]. Therefore, remove the keyword. [1]: https://sourceware.org/binutils/docs/ld/PROVIDE.html#PROVIDE "The PROVIDE keyword may be used to define a symbol [...] only if it is referenced but not defined." Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
-rw-r--r--core/arch/arm/kernel/kern.ld.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/arch/arm/kernel/kern.ld.S b/core/arch/arm/kernel/kern.ld.S
index 29110130..43bd8239 100644
--- a/core/arch/arm/kernel/kern.ld.S
+++ b/core/arch/arm/kernel/kern.ld.S
@@ -463,8 +463,8 @@ __vcore_unpg_rw_size = __flatmap_unpg_rw_size;
#ifdef CFG_VIRTUALIZATION
/* Nexus read-write memory */
-PROVIDE(__vcore_nex_rw_start = __flatmap_nex_rw_start);
-PROVIDE(__vcore_nex_rw_size = __flatmap_nex_rw_size);
+__vcore_nex_rw_start = __flatmap_nex_rw_start;
+__vcore_nex_rw_size = __flatmap_nex_rw_size;
#endif
#ifdef CFG_WITH_PAGER