reporting bss usage, size vs objdump
Posted: Mon Jan 10, 2022 3:01 am
Why does size report all of RAM being used by bss, and objdump does not? I have configured memcore to use the remaining RAM as heap. Curious as to how the size program winds up reporting that. Because, heap is in a different section.
Code: Select all
$ size ch.elf
text data bss dec hex filename
196368 4276 323392 524036 7ff04 ch.elf
$ objdump -h ch.elf | grep bss
7 .bss 0000bf2c 200018b8 08034fc4 000418b8 2**3
$ objdump -h ch.elf | grep heap
25 .heap 00042810 2000d7e8 2000d7e8 00050000 2**0