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 intkPEFRelocSmByImportThis "RelocSmByImport" (SYMB) instruction adds the address of the imported symbol whose index is held inindexto the word pointed to byrelocAddress.static intkPEFRelocSmBySectionThis "RelocSmBySection" (SECN) instruction adds the address of the instantiated section specified byindexto the word pointed to byrelocAddress.static intkPEFRelocSmSetSectCThis "RelocSmSetSectC" (CDIS) instruction sets the variablesectionCto the memory address of the instantiated section specified byindex.static intkPEFRelocSmSetSectDThis "RelocSmSetSectD" (DTIS) instruction sets the variablesectionDto 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 voidapply(ImportStateCache importState, RelocationState relocState, ContainerHeader header, Program program, MessageLog log, TaskMonitor monitor)intgetIndex()intgetSubopcode()booleanisMatch()java.lang.StringtoString()-
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 inindexto the word pointed to byrelocAddress. After the addition,relocAddresspoints to just past the modified word, andimportindexis set toindex+1.- See Also:
- Constant Field Values
-
kPEFRelocSmSetSectC
public static final int kPEFRelocSmSetSectC
This "RelocSmSetSectC" (CDIS) instruction sets the variablesectionCto 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 variablesectionDto 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 byindexto the word pointed to byrelocAddress. After execution,relocAddresspoints to just past the modified word.- See Also:
- Constant Field Values
-
-
Method Detail
-
isMatch
public boolean isMatch()
- Specified by:
isMatchin classRelocation
-
getSubopcode
public int getSubopcode()
-
getIndex
public int getIndex()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classRelocation
-
apply
public void apply(ImportStateCache importState, RelocationState relocState, ContainerHeader header, Program program, MessageLog log, TaskMonitor monitor)
- Specified by:
applyin classRelocation
-
-