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 <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-08-01 14:43:24 -07:00 committed by Anas Nashif
commit 5f5f7c5504

View file

@ -103,7 +103,8 @@
#ifdef CONFIG_APPLICATION_MEMORY #ifdef CONFIG_APPLICATION_MEMORY
#define KERNEL_INPUT_SECTION(sect) libzephyr.a (sect) kernel/lib.a (sect) #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 #else
#define KERNEL_INPUT_SECTION(sect) *(sect) #define KERNEL_INPUT_SECTION(sect) *(sect)
#define APP_INPUT_SECTION(sect) *(sect) #define APP_INPUT_SECTION(sect) *(sect)