Test is on Linux 32bit.I use this command to get the context of .text .rodata and .data section:objdump -s -j .text elf_binaryobjdump -s -j .rodata elf_binaryobjdump -s -j .data elf_binaryBut basically when I tried to use this to get the content of .bss section, I always get the error shown below:objdump -s -j .bss elf_binaryobjdump: section '.bss' mentioned in a -j option, but not found in any input fileBasically how can I get the content of .bss section from ELF binary?
Why I can not directly get the content of `.bss` section?
disassembly;binary analysis;elf
The .bss has no content. It's simply a tip to the loader to preallocate some space when starting the program. It will be all 0s at the execution and won't hold any useful information until the program writes to it. After that, you can use a debugger to dump the memory and explore its content.Check the Wikipedia page for more information.