disable bss
Posted: Sat May 13, 2006 6:34 am
Hello, is it possible to disable the bss section ?
I mean if i have following:
uninitialized_data will go in the bss section and the linker doesnt reserve space for it in the binary file.
If i initialize the array:
Then it goes into the data section.
Is it possible to say the linker that uninitialized data goes into the data section, too so that the linker reserves the space for uninitialized data in the binary.
Thanks in advance.
I mean if i have following:
Code: Select all
char uninitialized_data[4096];
void main() { .......... }
If i initialize the array:
Code: Select all
char uninitialized_data[4096] = "blabla...";
void main() { .......... }
Is it possible to say the linker that uninitialized data goes into the data section, too so that the linker reserves the space for uninitialized data in the binary.
Thanks in advance.