This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_CODE_DATA_RELOCATION

Relocate code/data sections

Type: bool

Help

When selected this will relocate .text, data and .bss sections from
the specified files and places it in the required memory region. The
files should be specified in the CMakeList.txt file with
a cmake API zephyr_code_relocate().

Direct dependencies

CPU_CORTEX_M && ARM

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At arch/arm/Kconfig:37

Included via Kconfig:8Kconfig.zephyr:37arch/Kconfig:12

Menu path: (Top) → ARM Options

config CODE_DATA_RELOCATION
    bool "Relocate code/data sections"
    depends on CPU_CORTEX_M && ARM
    help
      When selected this will relocate .text, data and .bss sections from
      the specified files and places it in the required memory region. The
      files should be specified in the CMakeList.txt file with
      a cmake API zephyr_code_relocate().

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)