Is there a tool gcc or binutils that can show me the big consumers of .bss? I have tried to sum up sizes from objdump -t bin-file | grep bss
but it does not add up to the same as when I do size bin-file
.
I am trying to find out where the ram is going in an embedded project that is using some external libraries.
[EDIT] It turned out to be the heap section defined in the link script that ate the "extra" bss that I did not see.
Print BSS consumption of every object file:
size --common -t *.o