The way the .bss section in object files works
The way the .bss section in object files works
..
Last edited by Perica on Sun Dec 03, 2006 9:13 pm, edited 2 times in total.
Re:The way the .bss section in object files works.....
The BSS section is given space in memory when the program is loaded, but no space in the executable file on disk. It can be located anywhere you want, not necessarily at the end. The location of the BSS section depends on how your linker is set up (i.e. what's in your linker script). I believe that, by default, ld puts it at the end of your executable.