I compile a small C programm to test if initialized data will be put in
data section and non initialized data in bss section.
And I'm surprised to see that initialized datas were put in data section
after the compilation step (I can see it in toto.s) but even after
linking, there is still no bss section.
I'm using gcc and I notice that with
arm-elf-objdump -h toto.elf
I can see there is a .bss section and a .stack section but I can't see
arm-elf-objdump -D toto.elf
I see only .text and .data section. Maybe is it because there is no
assembler inside it but I remember that with -D i was able to see .data
section even there is nothing inside it.
With nm toto.elf
I can see that there is symbol b,c,d with B letter so it seems these
value are inside BSS section.
Thanks for your help