zephyr/samples/boards/intel/adsp/code_relocation/README.rst
Benjamin Cabé e2c1b93a5c samples: boards: intel: group Intel board samples
Group all Intel board samples in samples/boards/intel to
keep samples/boards/ organized by vendor
Added missing code-sample directive to the code relocation sample.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-09-13 13:43:09 +02:00

36 lines
905 B
ReStructuredText

.. zephyr:code-sample:: intel_adsp_code_relocation
:name: Code relocation
Relocate code using custom linker script.
Overview
********
A simple sample that shows code relocation working for Intel ADSP CAVS
boards (v18 and v25). The interesting bit is the custom linker file.
As rimage (the tool used to sign the image) mandates that elf files
sections TEXT, DATA and BSS be contiguous, some work is done in the
linker script to ensure that.
Building and Running
********************
This application can be built and executed as follows:
.. zephyr-app-commands::
:zephyr-app: samples/boards/intel/adsp/code_relocation
:board: intel_adsp/cavs25
:goals: build
:compact:
Sample Output
=============
.. code-block:: console
main location: 0xbe0105e4
Calling relocated code
Relocated code! reloc location 0xbe008010
maybe_bss location: 0x9e004218 maybe_bss value: 0