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
Modifier and TypeFieldDescriptionstatic final int
This "RelocSmByImport" (SYMB) instruction adds the address of the imported symbol whose index is held inindex
to the word pointed to byrelocAddress
.static final int
This "RelocSmBySection" (SECN) instruction adds the address of the instantiated section specified byindex
to the word pointed to byrelocAddress
.static final int
This "RelocSmSetSectC" (CDIS) instruction sets the variablesectionC
to the memory address of the instantiated section specified byindex
.static final int
This "RelocSmSetSectD" (DTIS) 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
boolean
isMatch()
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 inindex
to the word pointed to byrelocAddress
. After the addition,relocAddress
points to just past the modified word, andimportindex
is set toindex+1
.- See Also:
-
kPEFRelocSmSetSectC
public static final int kPEFRelocSmSetSectCThis "RelocSmSetSectC" (CDIS) instruction sets the variablesectionC
to the memory address of the instantiated section specified byindex
.- See Also:
-
kPEFRelocSmSetSectD
public static final int kPEFRelocSmSetSectDThis "RelocSmSetSectD" (DTIS) instruction sets the variablesectionD
to 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 byindex
to the word pointed to byrelocAddress
. After execution,relocAddress
points to just past the modified word.- See Also:
-
-
Method Details
-
isMatch
public boolean isMatch()- Specified by:
isMatch
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
-