NoRelocation
Previous  Top  Next

NoRelocation - Strips relocation information from the resulting executable

Windows executables can optionally contain base relocation information which enables Windows to load the EXE image at an alternate starting memory address. If the base address is above 0x40000 the exectuable will always be loaded at its specified base address, so relocation information is not needed and can be safely stripped out of the resulting image. Relocation information is typically fairly small on disk, so removing this information will not have a big impact on the size of the EXE files generated.

Example

This will strip relocation information from the generated EXE file

[app.exe]  
Source=%ProgramFilesDir%\myapp\app.exe  
NoRelocation=1