StripReloc

By Chao Lin

Freeware 29 Dec 2005

In category

Components > Files and Drives > Other

Description

TStripReloc is a class which refact from Jordan Russell’s StripReloc.dpr.

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.

Informations

  • Status: Fully functional
  • Source: FW
  • Size: 279 915kB

Platforms:

  • Delphi 2005 (VCL)
  • Delphi 2006 (Win32)
  • Delphi 7

Downloads