Specifies the type of relocation.
Namespace: SharpAssembler.Core.SymbolsAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public enum RelocationType |
| Visual Basic |
|---|
Public Enumeration RelocationType |
| Visual C++ |
|---|
public enum class RelocationType |
Members
| Member name | Value | Description | |
|---|---|---|---|
| None | 0 | No relocation. | |
| Default32 | 1 | The resulting value is calculated by adding the specified symbol's value to the addend. The resulting value is 32 bit. | |
| Pc32 | 2 | The resulting value is calculated by adding the specified symbol's value to the addend, and subtracting the place (section offset or address) of the storage unit being relocated (computed using r_offset). The resulting value is 32 bit. | |
| Got32 | 3 | This relocation type computes the distance from the base of the global offset table to the symbol's global offset table entry. The resulting value is calculated by adding the offset into the global offset table at which the address of the relocation entry's symbol will reside during execution to the addend, and subtracting the place (section offset or address) of the storage unit being relocated (computed using r_offset). The resulting value is 32 bit. | |
| Plt32 | 4 | This relocation type computes the address of the symbol's procedure linkage table entry. The resulting value is calculated by adding the place (section offset or address) of the procedure linkage table entry for a symbol to the addend, and subtracting the place (section offset or address) of the storage unit being relocated (computed using r_offset). The resulting value is 32 bit. | |
| Copy | 5 | The link editor creates this relocation type for dynamic linking. Its offset member refers to a location in a writable segment. The symbol table index specifies a symbol that should exist both in the current object file and in a shared object. During execution, the dynamic linker copies data associated with the shared object's symbol to the location specified by the offset. | |
| GlobalData | 6 | This relocation type is used to set a global offset table entry to the address of the specified symbol. The resulting value is the specified symbol's value. The resulting value is 32 bit. | |
| JumpSlot | 7 | The link editor creates this relocation type for dynamic linking. Its offset member gives the location of a procedure linkage table entry. The resulting value is the specified symbol's value. The resulting value is 32 bit. | |
| Relative | 8 | The link editor creates this relocation type for dynamic linking. Its offset member gives a location within a shared object that contains a value representing a relative address. The resulting value is calculated by adding the base address at which a shared object has been loaded into memory during execution to the addend. The resulting value is 32 bit. | |
| GotOffset | 9 | This relocation type computes the difference between a symbol's value and the address of the global offset table. The resulting value is calculated by adding the specified symbol's value to the addend, and subtracting the address of the global offset table. The resulting value is 32 bit. | |
| GotPc | 10 | The resulting value is calculated by adding the address of the global offset table to the addend, and subtracting the place (section offset or address) of the storage unit being relocated (computed using r_offset). The resulting value is 32 bit. |