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
See Apple's -- PEFBinaryFormat.h
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis "RelocSmByImport" (SYMB) instruction adds the address of the imported symbol whose index is held inindexto the word pointed to byrelocAddress.static final intThis "RelocSmBySection" (SECN) instruction adds the address of the instantiated section specified byindexto the word pointed to byrelocAddress.static final intThis "RelocSmSetSectC" (CDIS) instruction sets the variablesectionCto the memory address of the instantiated section specified byindex.static final intThis "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
Modifier and TypeMethodDescriptionvoidapply(ImportStateCache importState, RelocationState relocState, ContainerHeader header, Program program, MessageLog log, TaskMonitor monitor) intgetIndex()intbooleanisMatch()toString()Methods inherited from class ghidra.app.util.bin.format.pef.Relocation
getOpcode, getRepeatChunks, getRepeatCount, getSizeInBytes, toDataType
-
Field Details
-
kPEFRelocSmByImport
public static final int kPEFRelocSmByImportThis "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:
-
kPEFRelocSmSetSectC
public static final int kPEFRelocSmSetSectCThis "RelocSmSetSectC" (CDIS) instruction sets the variablesectionCto the memory address of the instantiated section specified byindex.- See Also:
-
kPEFRelocSmSetSectD
public static final int kPEFRelocSmSetSectDThis "RelocSmSetSectD" (DTIS) instruction sets the variablesectionDto the memory adddress of the instantiated section specified byindex.- See Also:
-
kPEFRelocSmBySection
public static final int kPEFRelocSmBySectionThis "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:
-
-
Method Details
-
isMatch
public boolean isMatch()- Specified by:
isMatchin classRelocation
-
getSubopcode
public int getSubopcode() -
getIndex
public int getIndex() -
toString
- Overrides:
toStringin classRelocation
-
apply
public void apply(ImportStateCache importState, RelocationState relocState, ContainerHeader header, Program program, MessageLog log, TaskMonitor monitor) - Specified by:
applyin classRelocation
-