Skip to content
Commit a17fe86d authored by Patryk Duda's avatar Patryk Duda Committed by Carles Cufí
Browse files

arch: common: Force linker to fill empty spaces in rom_start with 0x00



LLVM LLD fills empty spaces (created using ALIGN() or moving the
location counter) in executable segments with TrapInstr pattern,
e.g. for ARM the TrapInstr pattern is 0xd4d4d4d4. GNU LD fills
empty spaces with 0x00 pattern.

We may want to have some section (e.g. rom_start) filled with 0x00,
e.g. because MCU can interpret the pattern as a configuration data.

Signed-off-by: default avatarPatryk Duda <pdk@semihalf.com>
parent 12ba4dff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment