summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Burton <richard.burton@arm.com>2023-11-06 14:40:28 +0000
committerRichard Burton <richard.burton@arm.com>2023-11-06 14:40:28 +0000
commit973158f6b0be9c9a757949c2b55690a5b91066bd (patch)
treebc5fa37f3b1d717378473acbda23eedc416f447c
parentbcec675a9239ea021ad08dc937f0b7487eb62dba (diff)
downloadml-embedded-evaluation-kit-973158f6b0be9c9a757949c2b55690a5b91066bd.tar.gz
MLECO-4473: Ensuring Labels objects are not placed in BRAM
Signed-off-by: Richard Burton<richard.burton@arm.com> Change-Id: I833f5edfbd080a67f2863a250be3199879d5f81f
-rw-r--r--scripts/cmake/platforms/mps3/sse-300/mps3-sse-300-debug.ld2
-rw-r--r--scripts/cmake/platforms/mps3/sse-300/mps3-sse-300-release.ld2
-rw-r--r--scripts/cmake/platforms/mps3/sse-300/mps3-sse-300.sct3
-rw-r--r--scripts/cmake/platforms/mps3/sse-310/mps3-sse-310.ld4
-rw-r--r--scripts/cmake/platforms/mps3/sse-310/mps3-sse-310.sct1
5 files changed, 10 insertions, 2 deletions
diff --git a/scripts/cmake/platforms/mps3/sse-300/mps3-sse-300-debug.ld b/scripts/cmake/platforms/mps3/sse-300/mps3-sse-300-debug.ld
index 715cdeb..d30d5e4 100644
--- a/scripts/cmake/platforms/mps3/sse-300/mps3-sse-300-debug.ld
+++ b/scripts/cmake/platforms/mps3/sse-300/mps3-sse-300-debug.ld
@@ -196,6 +196,8 @@ SECTIONS
/* labels */
*(labels)
. = ALIGN (16);
+ *Labels*.obj (*.rodata*)
+ . = ALIGN (16);
/* activation buffers a.k.a tensor arena when memory mode dedicated sram */
*(activation_buf_dram)
. = ALIGN (16);
diff --git a/scripts/cmake/platforms/mps3/sse-300/mps3-sse-300-release.ld b/scripts/cmake/platforms/mps3/sse-300/mps3-sse-300-release.ld
index 2d72ed9..0212753 100644
--- a/scripts/cmake/platforms/mps3/sse-300/mps3-sse-300-release.ld
+++ b/scripts/cmake/platforms/mps3/sse-300/mps3-sse-300-release.ld
@@ -195,6 +195,8 @@ SECTIONS
/* labels */
*(labels)
. = ALIGN (16);
+ *Labels*.obj (*.rodata*)
+ . = ALIGN (16);
/* activation buffers a.k.a tensor arena when memory mode dedicated sram */
*(activation_buf_dram)
. = ALIGN (16);
diff --git a/scripts/cmake/platforms/mps3/sse-300/mps3-sse-300.sct b/scripts/cmake/platforms/mps3/sse-300/mps3-sse-300.sct
index 6da092b..c9b1c44 100644
--- a/scripts/cmake/platforms/mps3/sse-300/mps3-sse-300.sct
+++ b/scripts/cmake/platforms/mps3/sse-300/mps3-sse-300.sct
@@ -1,4 +1,4 @@
-; SPDX-FileCopyrightText: Copyright 2021 Arm Limited and/or its affiliates <open-source-office@arm.com>
+; SPDX-FileCopyrightText: Copyright 2021, 2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
; SPDX-License-Identifier: Apache-2.0
;
; Licensed under the Apache License, Version 2.0 (the "License");
@@ -99,6 +99,7 @@ LOAD_REGION_1 0x70000000 0x02000000
; labels
*.o (labels)
+ Labels.o (+RO-DATA)
; activation buffers a.k.a tensor arena when memory mode dedicated sram
*.o (activation_buf_dram)
diff --git a/scripts/cmake/platforms/mps3/sse-310/mps3-sse-310.ld b/scripts/cmake/platforms/mps3/sse-310/mps3-sse-310.ld
index 4697feb..085be99 100644
--- a/scripts/cmake/platforms/mps3/sse-310/mps3-sse-310.ld
+++ b/scripts/cmake/platforms/mps3/sse-310/mps3-sse-310.ld
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: Copyright 2021 Arm Limited and/or its affiliates <open-source-office@arm.com>
+ * SPDX-FileCopyrightText: Copyright 2021, 2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -207,6 +207,8 @@ SECTIONS
/* labels */
*(labels)
. = ALIGN (16);
+ *Labels*.obj (*.rodata*)
+ . = ALIGN (16);
/* activation buffers a.k.a tensor arena when memory mode dedicated sram */
*(activation_buf_dram)
. = ALIGN (16);
diff --git a/scripts/cmake/platforms/mps3/sse-310/mps3-sse-310.sct b/scripts/cmake/platforms/mps3/sse-310/mps3-sse-310.sct
index 61f2aba..c49f628 100644
--- a/scripts/cmake/platforms/mps3/sse-310/mps3-sse-310.sct
+++ b/scripts/cmake/platforms/mps3/sse-310/mps3-sse-310.sct
@@ -109,6 +109,7 @@ LOAD_REGION_1 0x70000000 0x02000000
; labels
*.o (labels)
+ Labels.o (+RO-DATA)
; activation buffers a.k.a tensor arena when memory mode dedicated sram
*.o (activation_buf_dram)