imagine this bogus program:
void foo ( void )
{
// anything
}
int main ()
{
foo ();
return 0;
}
When compiled in debug mode with Visual Studio, the compiler builds some kind of "function map" or however it is called.
Thus when you for example follow foo () in a debugger, or just try to retrieve the offset of the function via &foo, you find yourself in a "list" of jmp's, which will when you follow them again lead you to the actual function body.
My question is: Is there a possibility to disable this for single choosen functions so that &foo returns the address to the function body, not the jmp. Ofcourse without disabling debug mode.
If not, which flag enables/disables this for the entire program ?
Thanks in advance !
Edit for user SigTerm:
Turn off "incremental linking"
Your question is a lot like this one Address of function is not actual code address
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With