- Relocation table
The relocation table is a list of
pointer s created by thelinker and linked into the MSDOS .exe file. The relocation table tells the loader where these segments can be found in program image loaded into memory.Explanation
Far
pointer s (32-bit pointers with segment:offset, used to address 20-bit 640 KB memory space available toDOS programs), which point to code or data within anDOS executable (EXE ) do not have absolute segments, because the actual address of code/data depends on where the program is loaded in memory and this is not known until the program is loaded.Instead, segments are
relative values in the DOS EXE file. These segments need to be corrected, when the executable has been loaded into memory. The EXE loader uses a relocation table to find the segments which need to be adjusted.32 Bit Windows Program Files
With the advent of 32 bit operating systems, and EXE files conforming to the PE format (Portable Executable) format, relocation table are no longer required or used in EXE files. Still some compilers and linkers do create windows EXE files with relocation tables.
ee also
*
Library (computer science)
*Link editor
*RelocationExternal links
* [http://www.windowsitlibrary.com/Content/356/11/5.html Basic Explanation / File Structure of the Relocation Table ]
Wikimedia Foundation. 2010.