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
Modifier and TypeFieldDescriptionstatic final int
This instruction adds the address of the instantiated section specified byindex
to the word pointed to byrelocAddress
.static final int
This instruction sets the variablesectionC
to the memory address of the instantiated section specified byindex
.static final int
This 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
Modifier and TypeMethodDescriptionvoid
apply
(ImportStateCache importState, RelocationState relocState, ContainerHeader header, Program program, MessageLog log, TaskMonitor monitor) int
getIndex()
int
int
boolean
isMatch()
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 byindex
to the word pointed to byrelocAddress
. After execution,relocAddress
points to just past the modified word.- See Also:
-
kPEFRelocLgSetSectC
public static final int kPEFRelocLgSetSectCThis instruction sets the variablesectionC
to the memory address of the instantiated section specified byindex
.- See Also:
-
kPEFRelocLgSetSectD
public static final int kPEFRelocLgSetSectDThis instruction sets the variablesectionD
to the memory adddress of the instantiated section specified byindex
.- See Also:
-
-
Method Details
-
isMatch
public boolean isMatch()- Specified by:
isMatch
in classRelocation
-
getSizeInBytes
public int getSizeInBytes()- Overrides:
getSizeInBytes
in classRelocation
-
getSubopcode
public int getSubopcode() -
getIndex
public int getIndex() -
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
-