Page 1 of 1
uninitialized global variables in binary format
Posted: Wed Jan 28, 2004 8:36 am
by shahzad
what happens to uninitialized global variables in binary format.in other formats bss section is used for uninitiazed global variables.But how ld treats them when asked to link files to a binary format.
Re:uninitialized global variables in binary format
Posted: Wed Jan 28, 2004 11:25 am
by HOS
i believe that though the bss section does not exist per se in a binary format file, the addresses of all of the "global variables" begin after the end of the file, so it depends on the os that loads the program to what will be in memory directly following the binary image.