From dc5ac89ab9a7c26919bbdfa97daab4ecadca3f89 Mon Sep 17 00:00:00 2001 From: Marcin Niestroj Date: Wed, 29 Jan 2020 15:25:59 +0100 Subject: [PATCH] posix: add zephyr_linker_sources() support Add snippets sections in linker script, so we add support for zephyr_linker_sources() in native_posix arch. Signed-off-by: Marcin Niestroj --- include/arch/posix/linker.ld | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/include/arch/posix/linker.ld b/include/arch/posix/linker.ld index ef41e52d97c..8221f8b805a 100644 --- a/include/arch/posix/linker.ld +++ b/include/arch/posix/linker.ld @@ -22,14 +22,44 @@ SECTIONS { +/* Located in generated directory. This file is populated by the + * zephyr_linker_sources() Cmake function. + */ +#include + #include +/* Located in generated directory. This file is populated by the + * zephyr_linker_sources() Cmake function. + */ +#include + +/* Located in generated directory. This file is populated by the + * zephyr_linker_sources() Cmake function. + */ +#include + #include +/* Located in generated directory. This file is populated by the + * zephyr_linker_sources() Cmake function. + */ +#include + #include __data_ram_end = .; +/* Located in generated directory. This file is populated by the + * zephyr_linker_sources() Cmake function. + */ +#include + +/* Located in generated directory. This file is populated by the + * zephyr_linker_sources() Cmake function. + */ +#include + } INSERT AFTER .data; /*