REL32
Rel32 is a relocation type used in 32-bit x86 object formats to represent a 32-bit signed displacement that is relative to the program counter. It is commonly found in formats such as ELF for Linux and COFF/PE for Windows, where the relocation type may be referred to as REL32 or IMAGE_REL_BASED_REL32, depending on the format.
Rel32 enables position-independent addressing by encoding a relative offset rather than an absolute address. The 32-bit
During linking or loading, the linker patches the relocation site with a 32-bit signed displacement. The resulting
Rel32 is primarily used for PC-relative addressing within 32-bit x86 binaries. It supports references to symbols
Limitations and modern context
Because it relies on a 32-bit relative offset, very large address spaces or cross-module references exceeding