zephyr/tests/application_development/code_relocation
Sylvain Chouleur 4454734d12 scripts: code_relocate: support section filter
One might want to select the symbols to be relocated inside a file or
a library. To do this, one can use the FILTER argument of
zephyr_code_relocate which must contain a regular expression of the
section names to be selected for relocation.

The test_function_in_sram2 test case in
`tests/application_development/code_relocation` has been updated to
verify that only one function `function_in_sram()` is relocated to ram
and that the function `function_not_relocated()` is not being relocated
when using relocation filter.

Signed-off-by: Sylvain Chouleur <sylvain.chouleur@gmail.com>
Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2025-02-14 03:02:56 +01:00
..
src scripts: code_relocate: support section filter 2025-02-14 03:02:56 +01:00
test_lib
CMakeLists.txt scripts: code_relocate: support section filter 2025-02-14 03:02:56 +01:00
custom-sections.ld
Kconfig
linker_arm_sram2.ld
linker_riscv_qemu_sram2.ld
linker_xtensa_qemu_sram2.ld
prj_riscv.conf
prj_xtensa.conf
prj.conf
README.rst
testcase.yaml boards: mimxrt1060_evk: Convert to variants 2024-12-20 22:59:59 +01:00

.. _code_relocation:

Code relocation
#################

Overview
********
A simple example that demonstrates how relocation of code, data or bss sections
using a custom linker script.