|
RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
|
Represents a base relocation, as stored in the image. More...
#include <peexe.h>
Public Types | |
| enum | relocation_type { RelAbsolute = 0 , RelHigh = 1 , RelLow = 2 , RelHighLow = 3 , RelHighAdj = 4 , RelMIPSJmpAddr = 5 , RelARMMov32 = 5 , RelRISCVHigh20 = 5 , RelThumbMov32 = 7 , RelRISCVLow12I = 7 , RelRISCVLow12S = 8 , RelLoongArch32MarkLA = 8 , RelLoongArch64MarkLA = 8 , RelMIPSJmpAddr16 = 9 , RelDir64 = 10 } |
| The type of the relocation, partly dependent on the current CPU. More... | |
Public Member Functions | |
| size_t | GetEntryCount (const PEFormat *format) const |
| The number of base relocation entries required to store this base relocation, typically 1. | |
| size_t | GetRelocationSize (const PEFormat *format) const |
| The number of bytes impacted by this relocation (typically 2 or 4 or 8) | |
Public Attributes | |
| relocation_type | type |
| The type of the relocation, stored as the 4 most significant bits of a 16-bit base relocation entry. | |
| uint16_t | offset |
| The offset of the relocation within the page corresponding to this base relocation block, stored as the 12 least significant bits of a 16-bit base relocation entry. | |
| uint16_t | parameter = 0 |
| For relocation type HighAdj, the 16-bit value stored in the following base relocation entry. | |
Represents a base relocation, as stored in the image.
The type of the relocation, partly dependent on the current CPU.