StripReloc is a free (GPL license) command line utility that removes the relocation (".reloc") section from Win32 PE EXE files, reducing their size. Most compilers/linkers (including Delphi) put a relocation section in EXE files, but this is actually not necessary since EXEs never get relocated. Hence, a relocation section only wastes space.
This program is designed for developers to run on their own applications' executables only. It is not recommended that you run StripReloc indiscriminately on all EXEs you come across, because certain programs may rely on their internal structure staying intact.
StripReloc will not run on DLLs because they can get relocated, and thus need a relocation section.
EXEs run through StripReloc work on all Windows OSes since Windows 95 and NT 3.51 (at least). Windows 3.1x with Win32s is not supported.
This program is distributed "as is" without any warranties, express or implied. Should any problems arise as a result of using it I shall not be held responsible. Your use of the program is entirely at your own risk.
Why not use an EXE compressor?
Some have asked why I made StripReloc when there are EXE compression programs such as ASPack and UPX that will trim more bytes off of executables than StripReloc ever could.
The reason is there are downsides to using EXE compressors. Most notably:
Site contents Copyright © 1997-2012 Jordan Russell. All rights reserved.