Skip to content
Commit b1a3ce40 authored by Ederson de Souza's avatar Ederson de Souza Committed by Carles Cufí
Browse files

scripts/build: Add program header support for gen_relocate_app.py

Some linker scripts also associate memory regions with program headers
(PHDRS [1]). This patch adds support on gen_relocate_app.py to also
place a phdr alongside the memory region.

To keep things simple (and more natural), the format is basically the
same used in linker scripts - an space followed by ':<phdr_name>', like:

  SRAM2\ :phdr0:COPY:/home/xyz/zephyr/samples/hello_world/src/main.c

(Note the escape char before the space.)

[1] https://sourceware.org/binutils/docs/ld/PHDRS.html



Signed-off-by: default avatarEderson de Souza <ederson.desouza@intel.com>
parent d7f46136
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment