commit | a17fe86de2be667d60abc0b904db81e320645bea | [log] [tgz] |
---|---|---|
author | Patryk Duda <pdk@semihalf.com> | Fri Sep 01 15:57:18 2023 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Wed Sep 13 11:46:56 2023 +0200 |
tree | 5105f355b0b0a8c51436d3cafe014d5b3c3370f7 | |
parent | 12ba4dff1e1b0097a866b16333fb60bef829592e [diff] |
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: Patryk Duda <pdk@semihalf.com>