zephyr/include/linker
Sebastian Bøe 600c8f7d85 kconfig: Change how optimization level is set
This patch does several things, most notably it changes the semantics
of CONFIG_DEBUG. CONFIG_DEBUG continues to behave as a vaguely defined
"debug mode" that enables printf's, -Og, etc. but now the user may
choose to be in "debug mode" while using a different optimization
level than -Og.

Tp support this a new config is defined to enable -Og;
CONFIG_DEBUG_OPTIMIZATIONS.

Additionally CONFIG_SIZE_OPTIMIZATIONS is introduced to allow the user
to explicitly request optimizing for size instead of relying on
defaulting to it.

The three config's {NO,SIZE,DEBUG}_OPTIMIZATIONS are now organized in
a Kconfig choice to ensure that at most one can be enabled at a time.

Finally, selected users of CONFIG_DEBUG have been ported to use one of
the optimizations configs when it was clear from usage that the
intention was to behave differently when using a different
optimization level and not when in "debug mode".

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-02-05 06:23:20 -08:00
..
common-ram.ld kernel: introduce object validation mechanism 2017-09-07 16:33:33 -07:00
common-rom.ld userspace: add K_THREAD_ACCCESS_GRANT() 2017-10-18 07:37:38 -07:00
intlist.ld build: simplfy how extra build steps are specified 2017-05-13 14:07:09 -04:00
kobject-rom.ld kernel: introduce object validation mechanism 2017-09-07 16:33:33 -07:00
kobject-text.ld kconfig: Change how optimization level is set 2018-02-05 06:23:20 -08:00
kobject.ld kernel: introduce object validation mechanism 2017-09-07 16:33:33 -07:00
linker-defs.h shell: support standalone commands 2018-01-19 12:01:08 -05:00
linker-tool-gcc.h arch: native: Run Zephyr natively in a POSIX OS 2017-12-27 14:16:08 -05:00
linker-tool.h linker: move all linker headers to include/linker 2017-06-18 09:24:04 -05:00
section_tags.h linker: move all linker headers to include/linker 2017-06-18 09:24:04 -05:00
sections.h sections.h: define application-level sections 2017-06-29 07:46:58 -04:00