Class DyldChainedFixupsCommand
java.lang.Object
ghidra.app.util.bin.format.macho.commands.LoadCommand
ghidra.app.util.bin.format.macho.commands.LinkEditDataCommand
ghidra.app.util.bin.format.macho.commands.DyldChainedFixupsCommand
- All Implemented Interfaces:
StructConverter
Represents a
dyld_chained_fixups_command
structure- See Also:
-
Field Summary
Fields inherited from class ghidra.app.util.bin.format.macho.commands.LinkEditDataCommand
dataoff, dataReader, datasize
-
Method Summary
Modifier and TypeMethodDescriptiongetChainedFixups
(BinaryReader reader, long imagebase, SymbolTable symbolTable, MessageLog log, TaskMonitor monitor) Gets theDyldChainedFixupHeader
Gets the name of this load commandvoid
markup
(Program program, MachHeader header, String source, TaskMonitor monitor, MessageLog log) Marks up thisLoadCommand
data with data structures and comments.void
markupRawBinary
(MachHeader header, FlatProgramAPI api, Address baseAddress, ProgramModule parentModule, TaskMonitor monitor, MessageLog log) Marks-up thisLoadCommand
with data structures and comments.Methods inherited from class ghidra.app.util.bin.format.macho.commands.LinkEditDataCommand
getLinkerDataOffset, getLinkerDataSize, toDataType
Methods inherited from class ghidra.app.util.bin.format.macho.commands.LoadCommand
createFragment, createPlateComment, fileOffsetToAddress, getCommandSize, getCommandType, getContextualName, getStartIndex, markupPlateComment, setEndian, updateMonitor
-
Method Details
-
getChainHeader
Gets theDyldChainedFixupHeader
- Returns:
- The
DyldChainedFixupHeader
-
getCommandName
Description copied from class:LoadCommand
Gets the name of this load command- Overrides:
getCommandName
in classLinkEditDataCommand
- Returns:
- The name of this load command
-
markup
public void markup(Program program, MachHeader header, String source, TaskMonitor monitor, MessageLog log) throws CancelledException Description copied from class:LoadCommand
Marks up thisLoadCommand
data with data structures and comments. Assumes the program was imported as a Mach-O.- Overrides:
markup
in classLinkEditDataCommand
- Parameters:
program
- TheProgram
to mark upheader
- The Mach-O headersource
- A name that represents where the header came from (could be null)monitor
- A cancellable task monitorlog
- The log- Throws:
CancelledException
- if the user cancelled the operation
-
markupRawBinary
public void markupRawBinary(MachHeader header, FlatProgramAPI api, Address baseAddress, ProgramModule parentModule, TaskMonitor monitor, MessageLog log) Description copied from class:LoadCommand
Marks-up thisLoadCommand
with data structures and comments. Assumes the program was imported as a Raw Binary.- Overrides:
markupRawBinary
in classLinkEditDataCommand
- Parameters:
header
- The Mach-O headerapi
- AFlatProgramAPI
baseAddress
- The base address of the programparentModule
- The parentmodule
to create fragmentsmonitor
- A cancellable task monitorlog
- The log- See Also:
-
getChainedFixups
public List<DyldFixup> getChainedFixups(BinaryReader reader, long imagebase, SymbolTable symbolTable, MessageLog log, TaskMonitor monitor) throws IOException, CancelledException Walks this command's chained fixup information and collects aList
ofDyldFixup
s that will need to be applied to the image- Parameters:
reader
- ABinaryReader
that can read the imageimagebase
- The image basesymbolTable
- TheSymbolTable
, or null if not availablelog
- The logmonitor
- A cancellable monitor- Returns:
- A
List
ofDyldFixup
s - Throws:
IOException
- If there was an IO-related issueCancelledException
- If the user cancelled the operation
-