Package ghidra.app.util.bin.format.pef
Class RelocLgSetOrBySection
java.lang.Object
ghidra.app.util.bin.format.pef.Relocation
ghidra.app.util.bin.format.pef.RelocLgSetOrBySection
- All Implemented Interfaces:
StructConverter
See Apple's -- PEFBinaryFormat.h
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis instruction adds the address of the instantiated section specified byindexto the word pointed to byrelocAddress.static final intThis instruction sets the variablesectionCto the memory address of the instantiated section specified byindex.static final intThis 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()intintbooleanisMatch()toString()Methods inherited from class ghidra.app.util.bin.format.pef.Relocation
getOpcode, getRepeatChunks, getRepeatCount, toDataType
-
Field Details
-
kPEFRelocLgBySection
public static final int kPEFRelocLgBySectionThis 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:
-
kPEFRelocLgSetSectC
public static final int kPEFRelocLgSetSectCThis instruction sets the variablesectionCto the memory address of the instantiated section specified byindex.- See Also:
-
kPEFRelocLgSetSectD
public static final int kPEFRelocLgSetSectDThis instruction sets the variablesectionDto the memory adddress of the instantiated section specified byindex.- See Also:
-
-
Method Details
-
isMatch
public boolean isMatch()- Specified by:
isMatchin classRelocation
-
getSizeInBytes
public int getSizeInBytes()- Overrides:
getSizeInBytesin 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
-