Is DLL always have the same Base Address?

后端 未结 3 1607
死守一世寂寞
死守一世寂寞 2021-01-11 21:58

I\'m studying about windows and DLL stuffs and I have some question about it. :)

I made a simple program that loads my own DLL. This DLL has just simple functions, p

3条回答
  •  梦毁少年i
    2021-01-11 22:39

    i load some DLL(for example, text.dll), is this DLL always have the same Base Address?

    No. It is a preferred base address. If something is already loaded at that address, the loader will rebase it and fixup all of the addresses.

    Other things, like Address Space Layout Randomization could cause it to be different every time the process starts.

提交回复
热议问题