diff --git a/src/lib/program.ld b/src/lib/program.ld index 1526aadf0a..668b29b18e 100644 --- a/src/lib/program.ld +++ b/src/lib/program.ld @@ -34,7 +34,10 @@ *(.rom.data); *(.text._start); *(.text.stage_entry); +#if ENV_BOOTBLOCK && !(IS_ENABLED(CONFIG_ARCH_BOOTBLOCK_X86_32) || \ + IS_ENABLED(CONFIG_ARCH_BOOTBLOCK_X86_64)) KEEP(*(.id)); +#endif *(.text); *(.text.*);