Why do IDA and Ollydbg always open some programs with the main() function at the same address?
The address given by IDA is equal to that given by Ollydbg in runtime. However, when I wrote my own C app and ran it, the address of main()
was always different between each runtime in Ollydbg.
In IDA, though, there was always the same address, never equal to the one given by Ollydbg, which looked like just some relative address.
Is this caused by the compiler or by something else?