Sunday, August 01, 2010
Compile GNU C program with Debuggin Symbols & Map files
int bbbbbb(){
int* x=0x1414512;
int y=0;
y=*x;
}
int aaaaaa(){
bbbbbb();
}
int main(){
aaaaaa();
}
$ gcc -v -g -o crashme.exe crashme.c -Xlinker -Map=crashme.map ; objdump -d crashme.exe > crashme.exe.objdump
int* x=0x1414512;
int y=0;
y=*x;
}
int aaaaaa(){
bbbbbb();
}
int main(){
aaaaaa();
}
$ gcc -v -g -o crashme.exe crashme.c -Xlinker -Map=crashme.map ; objdump -d crashme.exe > crashme.exe.objdump