uninitialized global variables in binary format

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
shahzad

uninitialized global variables in binary format

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

Re:uninitialized global variables in binary format

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