mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-12 08:05:58 +00:00
The .init_array vector is, in fact, read-only data, so put it there. Previously it was placed at the end of the ROM, but was unknown to the x86 memory protection code with XIP enabled (because it was not part of the text, rodata, or kernel RAM). Until recently, the XIP implementation artificially bloated _image_rodata_size to cover the entire ROM, so the (mis)placement of .init_array went unnoticed. Signed-off-by: Charles E. Youse <charles.youse@intel.com>
7 lines
249 B
CMake
7 lines
249 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_sources_ifdef(CONFIG_COVERAGE_GCOV coverage.c)
|
|
|
|
zephyr_linker_sources_ifdef(CONFIG_COVERAGE_GCOV RAM_SECTIONS coverage_ram.ld)
|
|
zephyr_linker_sources_ifdef(CONFIG_COVERAGE_GCOV RODATA coverage_rodata.ld)
|