Part 1
요약·해설
Linker requirement와 main·relocated function·maybe_bss의 실제 주소를 설명합니다.
Boards
CAVS v18 · v25
Signer
rimage
Sections
TEXT · DATA · BSS
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
원문 SHA-256
533A446FE81A33C03695FB1D68FA683EDE62911B6231FCF456FB63067B7C7890
.. _intel_adsp_code_relocation:
Intel ADSP CAVS Code relocation
###############################
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/hello_world
: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
Part 3
한국어 전문 번역
개요
Intel ADSP CAVS v18·v25 board에서 code relocation이 동작하는 모습을 보여주는 간단한 sample입니다. 핵심은 custom linker file입니다. Image signing tool인 rimage는 ELF file의 TEXT, DATA, BSS section이 연속되어 있어야 한다고 요구하므로 linker script가 이를 보장하도록 추가 작업을 수행합니다.
Build와 실행
Application은 다음과 같이 build하고 실행할 수 있습니다.
west build -b intel_adsp/cavs25 samples/hello_world
Sample 출력
main location: 0xbe0105e4
Calling relocated code
Relocated code! reloc location 0xbe008010
maybe_bss location: 0x9e004218 maybe_bss value: 0
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.