Moved
Moved to
http://techno-jazz.blogspot.com/
Posted at 11:59 am on January 6, 2009 | leave a comment | Filed Under: Web services Architecture | read on
./a.out readonly strings
Ever wondered why this program crashes?
void main() {
char * str = “NonWritable”;
str[0] = ‘X’; /*<< Booom*/
}
Compiling the same using -fwritable-strings option to gcc however did not result in a segmentation fault.
Let me warn you before you try it yourself. [...]
Posted at 5:24 pm on December 2, 2008 | leave a comment | Filed Under: Techno-Jazz | Tagged: bss, decrease executable size, exe format, read only strings | read on