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 SummaryFieldsModifier 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.Relocationopcode
- 
Method SummaryModifier 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.RelocationgetOpcode, getRepeatChunks, getRepeatCount, getSizeInBytes, toDataType
- 
Field Details- 
kPEFRelocSmByImportpublic 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:
 
- 
kPEFRelocSmSetSectCpublic static final int kPEFRelocSmSetSectCThis "RelocSmSetSectC" (CDIS) instruction sets the variablesectionCto the memory address of the instantiated section specified byindex.- See Also:
 
- 
kPEFRelocSmSetSectDpublic static final int kPEFRelocSmSetSectDThis "RelocSmSetSectD" (DTIS) instruction sets the variablesectionDto the memory adddress of the instantiated section specified byindex.- See Also:
 
- 
kPEFRelocSmBySectionpublic 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- 
isMatchpublic boolean isMatch()- Specified by:
- isMatchin class- Relocation
 
- 
getSubopcodepublic int getSubopcode()
- 
getIndexpublic int getIndex()
- 
toString- Overrides:
- toStringin class- Relocation
 
- 
applypublic void apply(ImportStateCache importState, RelocationState relocState, ContainerHeader header, Program program, MessageLog log, TaskMonitor monitor) - Specified by:
- applyin class- Relocation
 
 
-