Package ghidra.app.util.bin.format.pef
Class RelocByIndexGroup
- java.lang.Object
-
- ghidra.app.util.bin.format.pef.Relocation
-
- ghidra.app.util.bin.format.pef.RelocByIndexGroup
-
- All Implemented Interfaces:
StructConverter
public class RelocByIndexGroup extends Relocation
See Apple's -- PEFBinaryFormat.h
-
-
Field Summary
Fields Modifier and Type Field Description static int
kPEFRelocSmByImport
This "RelocSmByImport" (SYMB) instruction adds the address of the imported symbol whose index is held inindex
to the word pointed to byrelocAddress
.static int
kPEFRelocSmBySection
This "RelocSmBySection" (SECN) instruction adds the address of the instantiated section specified byindex
to the word pointed to byrelocAddress
.static int
kPEFRelocSmSetSectC
This "RelocSmSetSectC" (CDIS) instruction sets the variablesectionC
to the memory address of the instantiated section specified byindex
.static int
kPEFRelocSmSetSectD
This "RelocSmSetSectD" (DTIS) instruction sets the variablesectionD
to the memory adddress of the instantiated section specified byindex
.-
Fields inherited from class ghidra.app.util.bin.format.pef.Relocation
opcode
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(ImportStateCache importState, RelocationState relocState, ContainerHeader header, Program program, MessageLog log, TaskMonitor monitor)
int
getIndex()
int
getSubopcode()
boolean
isMatch()
java.lang.String
toString()
-
Methods inherited from class ghidra.app.util.bin.format.pef.Relocation
getOpcode, getSizeInBytes, toDataType
-
-
-
-
Field Detail
-
kPEFRelocSmByImport
public static final int kPEFRelocSmByImport
This "RelocSmByImport" (SYMB) instruction adds the address of the imported symbol whose index is held inindex
to the word pointed to byrelocAddress
. After the addition,relocAddress
points to just past the modified word, andimportindex
is set toindex+1
.- See Also:
- Constant Field Values
-
kPEFRelocSmSetSectC
public static final int kPEFRelocSmSetSectC
This "RelocSmSetSectC" (CDIS) instruction sets the variablesectionC
to the memory address of the instantiated section specified byindex
.- See Also:
- Constant Field Values
-
kPEFRelocSmSetSectD
public static final int kPEFRelocSmSetSectD
This "RelocSmSetSectD" (DTIS) instruction sets the variablesectionD
to the memory adddress of the instantiated section specified byindex
.- See Also:
- Constant Field Values
-
kPEFRelocSmBySection
public static final int kPEFRelocSmBySection
This "RelocSmBySection" (SECN) instruction adds the address of the instantiated section specified byindex
to the word pointed to byrelocAddress
. After execution,relocAddress
points to just past the modified word.- See Also:
- Constant Field Values
-
-
Method Detail
-
isMatch
public boolean isMatch()
- Specified by:
isMatch
in classRelocation
-
getSubopcode
public int getSubopcode()
-
getIndex
public int getIndex()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classRelocation
-
apply
public void apply(ImportStateCache importState, RelocationState relocState, ContainerHeader header, Program program, MessageLog log, TaskMonitor monitor)
- Specified by:
apply
in classRelocation
-
-