zephyr/misc
Sebastian Bøe dbdd722239 ld: Introduce --print-memory-usage
Pass the --print-memory-usage to the linker on the first link if the
toolchain supports it.

Don't use this option with the second link because seeing it twice
could confuse users and using it on the second link would suppress it
when the first link has a ram/flash-usage issue.

Note that the memory regions are symbolic concepts defined by the
linker scripts and do not necessarily map directly to the real
physical address space. Take also note that some platforms do two
passes of the linker so the results do not match exactly to the final
elf file. See also rom_report, ram_report and
https://sourceware.org/binutils/docs/ld/MEMORY.html

This is particularly useful when the linker fails due to excessive
flash/ram usage. When a section does not fit into a memory region the
linker will exit with an error code and will state how big the
overflow was. But it doesn't state what the memory region size is, or
what memory regions exist, which is good to know when debugging
overflow issues.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2017-12-19 16:57:11 -05:00
..
generated kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
CMakeLists.txt lib: move ring_buffer from misc/ to lib/ 2017-12-15 20:02:01 -05:00
empty_file.c Introduce cmake-based rewrite of KBuild 2017-11-08 20:00:22 -05:00
Kconfig ld: Introduce --print-memory-usage 2017-12-19 16:57:11 -05:00
printk.c printk: Add padding support to string format specifiers 2017-11-14 21:32:20 +02:00
reboot.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00