From 5f5f7c55048a68a5e3d20e2080ba1e1f11829fb3 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Tue, 1 Aug 2017 14:43:24 -0700 Subject: [PATCH] linker-defs: fix APP_INPUT_SECTION This was not working properly but only noticeable if the sections involved were not preceded by a KERNEL_INPUT_SECTION definition for the same sections (i.e. the application data coming first in the memory map) Signed-off-by: Andrew Boie --- include/linker/linker-defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linker/linker-defs.h b/include/linker/linker-defs.h index c0f8e1b7c69..789d8cab2b6 100644 --- a/include/linker/linker-defs.h +++ b/include/linker/linker-defs.h @@ -103,7 +103,8 @@ #ifdef CONFIG_APPLICATION_MEMORY #define KERNEL_INPUT_SECTION(sect) libzephyr.a (sect) kernel/lib.a (sect) -#define APP_INPUT_SECTION(sect) EXCLUDE_FILE (*libzephyr.a *kernel/lib.a) *(sect) +#define APP_INPUT_SECTION(sect) \ + *(EXCLUDE_FILE (*libzephyr.a *kernel/lib.a) sect) #else #define KERNEL_INPUT_SECTION(sect) *(sect) #define APP_INPUT_SECTION(sect) *(sect)