testsuite: coverage: pin gcov sections for demand paging
This adds the bits to pin the GCOV sections to the pinned sections so they can be accessed during boot when demand paging is enabled. Or else accessing them would result in page faults. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
1ace8efb8a
commit
c9955cf861
1 changed files with 5 additions and 0 deletions
|
@ -2,5 +2,10 @@
|
|||
|
||||
zephyr_sources_ifdef(CONFIG_COVERAGE_GCOV coverage.c)
|
||||
|
||||
if(CONFIG_DEMAND_PAGING AND CONFIG_COVERAGE)
|
||||
zephyr_linker_sources_ifdef(CONFIG_COVERAGE_GCOV PINNED_RAM_SECTIONS coverage_ram.ld)
|
||||
zephyr_linker_sources_ifdef(CONFIG_COVERAGE_GCOV PINNED_RODATA coverage_rodata.ld)
|
||||
else()
|
||||
zephyr_linker_sources_ifdef(CONFIG_COVERAGE_GCOV RAM_SECTIONS coverage_ram.ld)
|
||||
zephyr_linker_sources_ifdef(CONFIG_COVERAGE_GCOV RODATA coverage_rodata.ld)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue