Can anyone help me interpret this simple disassembly from WinDbg?

前端 未结 5 1102
野性不改
野性不改 2020-12-23 08:34

I got the following simple C++ code:

#include 
int main(void)
{
    ::printf(\"\\nHello,debugger!\\n\");
}

And from WinDbg,

5条回答
  •  囚心锁ツ
    2020-12-23 09:22

    For the record, I suspect that ILT means "Incremental Linking Thunk".

    The way incremental linking (and Edit&Continue) works is the following: the linker adds a layer of indirection for every call via thunks which are grouped at the beginning of executable, and adds a huge reserved space after them. This way, when you're relinking the updated executable it can just put any new/changed code into the reserved area and patch only the affected thunks, without changing the rest of the code.

提交回复
热议问题