reporting bss usage, size vs objdump

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

Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess

faisal
Posts: 374
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 44 times
Been thanked: 60 times

reporting bss usage, size vs objdump

Postby faisal » 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

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: reporting bss usage, size vs objdump

Postby Giovanni » Mon Jan 10, 2022 7:29 am

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

Giovanni


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 12 guests