I need to set the flag /FIXED to prevent the rebasing of my VC++ dll without recompiling. (http://msdn.microsoft.com/en-us/library/w368ysh2.aspx). Where is this flag in the PE header?
thank you, Riccardo
The /FIXED linker switch does not correspond to a flag in the PE header, it actually specifies whether a relocation section is added to the PE file by the linker.
The DYNAMIC_BASE
flag Hans Passant talks about specifies whether the OS is allowed to relocate the image in memory when it is loaded (if ASLR is on).