Reputation: 182
When working in a raw/freestanding environment, I have a question about the .bss section in ELF files. If I link and set the output format to binary (not ELF), where will the .bss section be in the final binary? Additionally, since the .bss section is typically initialized by a loader at runtime in ELF, would using global variables in my kernel cause issues in such an environment?
Upvotes: 1
Views: 42