README.rst
1.. _intel_adsp_code_relocation:
2
3Intel ADSP CAVS Code relocation
4###############################
5
6Overview
7********
8
9A simple sample that shows code relocation working for Intel ADSP CAVS
10boards (v18 and v25). The interesting bit is the custom linker file.
11As rimage (the tool used to sign the image) mandates that elf files
12sections TEXT, DATA and BSS be contiguous, some work is done in the
13linker script to ensure that.
14
15
16Building and Running
17********************
18
19This application can be built and executed as follows:
20
21.. zephyr-app-commands::
22 :zephyr-app: samples/hello_world
23 :board: intel_adsp_cavs25
24 :goals: build
25 :compact:
26
27
28Sample Output
29=============
30
31.. code-block:: console
32
33 main location: 0xbe0105e4
34 Calling relocated code
35 Relocated code! reloc location 0xbe008010
36 maybe_bss location: 0x9e004218 maybe_bss value: 0
37