Commit 708c1dc4 authored by Ilya Tagunov's avatar Ilya Tagunov Committed by Daniel DeGrasse
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>
parent bac20e41
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -193,6 +193,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.
 */