Page 1 of 1
The way the .bss section in object files works
Posted: Wed Jun 11, 2003 2:41 am
by Perica
..
Re:The way the .bss section in object files works.....
Posted: Wed Jun 11, 2003 10:34 am
by Tim
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.