diff --git a/include/arch/posix/linker.ld b/include/arch/posix/linker.ld index d56260e76af..dccb4593c58 100644 --- a/include/arch/posix/linker.ld +++ b/include/arch/posix/linker.ld @@ -22,22 +22,31 @@ SECTIONS { -/* Located in generated directory. This file is populated by the - * zephyr_linker_sources() Cmake function. - */ -#include +SECTION_PROLOGUE(rom_start,,) +{ + /* Located in generated directory. This file is populated by the + * zephyr_linker_sources() Cmake function. + */ + #include +} GROUP_LINK_IN(ROMABLE_REGION) #include -/* Located in generated directory. This file is populated by the - * zephyr_linker_sources() Cmake function. - */ -#include +SECTION_PROLOGUE(_RODATA_SECTION_NAME,,) +{ + /* Located in generated directory. This file is populated by the + * zephyr_linker_sources() Cmake function. + */ + #include +} GROUP_LINK_IN(ROMABLE_REGION) -/* Located in generated directory. This file is populated by the - * zephyr_linker_sources() Cmake function. - */ -#include +SECTION_DATA_PROLOGUE(_DATA_SECTION_NAME,,) +{ + /* Located in generated directory. This file is populated by the + * zephyr_linker_sources() Cmake function. + */ + #include +} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) #include @@ -55,10 +64,13 @@ SECTIONS __data_region_end = .; -/* Located in generated directory. This file is populated by the - * zephyr_linker_sources() Cmake function. - */ -#include +SECTION_DATA_PROLOGUE(_NOINIT_SECTION_NAME,,) +{ + /* Located in generated directory. This file is populated by the + * zephyr_linker_sources() Cmake function. + */ + #include +} GROUP_LINK_IN(RAMABLE_REGION) /* Located in generated directory. This file is populated by the * zephyr_linker_sources() Cmake function.