aboutsummaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorSummer Qin <summer.qin@arm.com>2020-03-13 17:07:43 +0800
committerSummer Qin <Summer.Qin@arm.com>2020-05-14 04:27:39 +0100
commit331f0f7b9d814a5630f25fc9f138c87008183ace (patch)
treefc7376f8aeda24721b4f1bcbf869ff8f06bbc25a /platform
parentc9a45593d3c6a9e1e4cf74682361f0b54ce4846a (diff)
downloadtrusted-firmware-m-331f0f7b9d814a5630f25fc9f138c87008183ace.tar.gz
Platform: Remove contents in TFM_UNPRIV_DATA section
The objects in TFM_UNPRIV_DATA are designed for sharing data between partitions while it is unnecessary now. Remove the objects in it and update the section usage in following up patches. Change-Id: I1ad62193d0f8f1285a993c04ac1c86f2a4c337a1 Signed-off-by: Summer Qin <summer.qin@arm.com>
Diffstat (limited to 'platform')
-rw-r--r--platform/ext/common/armclang/tfm_common_s.sct3
-rw-r--r--platform/ext/common/armclang/tfm_common_s.sct.template3
-rw-r--r--platform/ext/common/gcc/tfm_common_s.ld11
-rw-r--r--platform/ext/common/gcc/tfm_common_s.ld.template11
4 files changed, 0 insertions, 28 deletions
diff --git a/platform/ext/common/armclang/tfm_common_s.sct b/platform/ext/common/armclang/tfm_common_s.sct
index 26991d5050..c3777a6938 100644
--- a/platform/ext/common/armclang/tfm_common_s.sct
+++ b/platform/ext/common/armclang/tfm_common_s.sct
@@ -227,9 +227,6 @@ LR_CODE S_CODE_START {
#endif /* !defined(TFM_PSA_API) */
TFM_UNPRIV_DATA +0 ALIGN 32 {
- tfm_spm_services.o (+RW +ZI)
- platform_retarget_dev.o (+RW +ZI)
- device_definition.o (+RW +ZI)
}
/**** APP RoT DATA start here */
diff --git a/platform/ext/common/armclang/tfm_common_s.sct.template b/platform/ext/common/armclang/tfm_common_s.sct.template
index dc887eb7a5..c5f5be60fa 100644
--- a/platform/ext/common/armclang/tfm_common_s.sct.template
+++ b/platform/ext/common/armclang/tfm_common_s.sct.template
@@ -160,9 +160,6 @@ LR_CODE S_CODE_START {
#endif /* !defined(TFM_PSA_API) */
TFM_UNPRIV_DATA +0 ALIGN 32 {
- tfm_spm_services.o (+RW +ZI)
- platform_retarget_dev.o (+RW +ZI)
- device_definition.o (+RW +ZI)
}
/**** APP RoT DATA start here */
diff --git a/platform/ext/common/gcc/tfm_common_s.ld b/platform/ext/common/gcc/tfm_common_s.ld
index ba581beef6..0c2e91f1bd 100644
--- a/platform/ext/common/gcc/tfm_common_s.ld
+++ b/platform/ext/common/gcc/tfm_common_s.ld
@@ -683,23 +683,12 @@ SECTIONS
#if defined(TFM_PSA_API)
.TFM_UNPRIV_DATA : ALIGN(32)
{
- */tfm_spm_services.*(.data*)
- */platform_retarget_dev.*(.data*)
- */device_definition.*(.data*)
- . = ALIGN(32);
} > RAM AT> FLASH
Image$$TFM_UNPRIV_DATA$$RW$$Base = ADDR(.TFM_UNPRIV_DATA);
Image$$TFM_UNPRIV_DATA$$RW$$Limit = ADDR(.TFM_UNPRIV_DATA) + SIZEOF(.TFM_UNPRIV_DATA);
.TFM_UNPRIV_BSS : ALIGN(32)
{
- */tfm_spm_services.*(.bss*)
- */platform_retarget_dev.*(.bss*)
- */device_definition.*(.bss*)
- */tfm_spm_services.*(COMMON)
- */platform_retarget_dev.*(COMMON)
- */device_definition.*(COMMON)
- . = ALIGN(32);
} > RAM AT> RAM
Image$$TFM_UNPRIV_DATA$$ZI$$Base = ADDR(.TFM_UNPRIV_BSS);
Image$$TFM_UNPRIV_DATA$$ZI$$Limit = ADDR(.TFM_UNPRIV_BSS) + SIZEOF(.TFM_UNPRIV_BSS);
diff --git a/platform/ext/common/gcc/tfm_common_s.ld.template b/platform/ext/common/gcc/tfm_common_s.ld.template
index 07c8dd531b..ebb59c980b 100644
--- a/platform/ext/common/gcc/tfm_common_s.ld.template
+++ b/platform/ext/common/gcc/tfm_common_s.ld.template
@@ -347,23 +347,12 @@ SECTIONS
#if defined(TFM_PSA_API)
.TFM_UNPRIV_DATA : ALIGN(32)
{
- */tfm_spm_services.*(.data*)
- */platform_retarget_dev.*(.data*)
- */device_definition.*(.data*)
- . = ALIGN(32);
} > RAM AT> FLASH
Image$$TFM_UNPRIV_DATA$$RW$$Base = ADDR(.TFM_UNPRIV_DATA);
Image$$TFM_UNPRIV_DATA$$RW$$Limit = ADDR(.TFM_UNPRIV_DATA) + SIZEOF(.TFM_UNPRIV_DATA);
.TFM_UNPRIV_BSS : ALIGN(32)
{
- */tfm_spm_services.*(.bss*)
- */platform_retarget_dev.*(.bss*)
- */device_definition.*(.bss*)
- */tfm_spm_services.*(COMMON)
- */platform_retarget_dev.*(COMMON)
- */device_definition.*(COMMON)
- . = ALIGN(32);
} > RAM AT> RAM
Image$$TFM_UNPRIV_DATA$$ZI$$Base = ADDR(.TFM_UNPRIV_BSS);
Image$$TFM_UNPRIV_DATA$$ZI$$Limit = ADDR(.TFM_UNPRIV_BSS) + SIZEOF(.TFM_UNPRIV_BSS);