Commit cccd5048 authored by Ilya Tagunov's avatar Ilya Tagunov Committed by Anas Nashif
Browse files

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: default avatarIlya Tagunov <Ilya.Tagunov@synopsys.com>
(cherry picked from commit 708c1dc4)
parent 4b84d556
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -222,6 +222,10 @@ SECTIONS {
		*(".data.*")
		*(".kernel.*")

/* This is an MWDT-specific section, created when -Hccm option is enabled */
		*(".rodata_in_data")
		*(".rodata_in_data.*")

/* Located in generated directory. This file is populated by the
 * zephyr_linker_sources() Cmake function.
 */