The way the .bss section in object files works

Programming, for all ages and all languages.
Post Reply
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

The way the .bss section in object files works

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 9:13 pm, edited 2 times in total.
Tim

Re:The way the .bss section in object files works.....

Post 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.
Post Reply