|
![]() |
|||
|
home products solutions news downloads order support about us |
|
|||
PE Explorer Feature Tour |
||||
|
|
Strip Relocations Relocation Viewer The relocation information helps the operating system load an executable file and apply fixups for absolute addresses. The relocation data is needed by the loader if the image cannot be loaded to the preferred load address ImageBase mentioned in the Optional Header. In this case, the fixed addresses supplied by the linker are no longer valid, and the loader has to apply fixups for absolute addresses used for locations of static variables, string literals, etc. On the other hand, if the loader was able to load the file at the preferred base address, the relocation data is not needed and is ignored. ![]() The Fix-Up Table contains entries for all fixups in the image. The Total Fix-Up Data Size in the Optional Header is the number of bytes in the fixup table. The fixup table is broken into blocks of fixups. Each block represents the fixups for a 4K page. The entries in the Fix-Up Table are called base relocations since their use depends on the base address of the loaded image. Remove Relocations Tool PE Explorer allows you to strip off the table of the base relocations (Fix-Up Table) from the EXE files and save space making them smaller. As a rule, there's no need for an EXE to have a base relocation table. This is because EXEs are the first thing loaded into an address space, and therefore are guaranteed to load at the preferred load address. ![]() We highly recommend that you do not run the Remove Relocations tool on DLLs and drivers: base relocations should always be left in.
|
|||