Skip to content

Commit 708c1dc

Browse files
tagunildanieldegrasse
authored andcommitted
linker: arc: add .rodata_in_data section to avoid unexpected placement
The .rodata_in_data section is produced by MWDT toolchain with -Hccm option enabled. This option moves read-only data from the executable memory (ICCM) to the data memory (DCCM), improving performance by reducing conflicts between instruction fetches and data fetches. Signed-off-by: Ilya Tagunov <Ilya.Tagunov@synopsys.com>
1 parent bac20e4 commit 708c1dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/zephyr/arch/arc/v2/linker.ld

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ SECTIONS {
193193
*(".data.*")
194194
*(".kernel.*")
195195

196+
/* This is an MWDT-specific section, created when -Hccm option is enabled */
197+
*(".rodata_in_data")
198+
*(".rodata_in_data.*")
199+
196200
/* Located in generated directory. This file is populated by the
197201
* zephyr_linker_sources() Cmake function.
198202
*/

0 commit comments

Comments
 (0)