reporting bss usage, size vs objdump

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
faisal
Posts: 382
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 45 times
Been thanked: 62 times

reporting bss usage, size vs objdump

Post by faisal »

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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: reporting bss usage, size vs objdump

Post by Giovanni »

Apparently it puts together all sections with similar attributes, heap and BSS are both allocable, non initialized and writable.

Giovanni
Post Reply