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 theDyldChainedFixupHeaderGets the name of this load commandvoidmarkup(Program program, MachHeader header, String source, TaskMonitor monitor, MessageLog log) Marks up thisLoadCommanddata with data structures and comments.voidmarkupRawBinary(MachHeader header, FlatProgramAPI api, Address baseAddress, ProgramModule parentModule, TaskMonitor monitor, MessageLog log) Marks-up thisLoadCommandwith data structures and comments.Methods inherited from class ghidra.app.util.bin.format.macho.commands.LinkEditDataCommand
getLinkerDataOffset, getLinkerDataSize, toDataTypeMethods inherited from class ghidra.app.util.bin.format.macho.commands.LoadCommand
checkCount, createFragment, createPlateComment, fileOffsetToAddress, getCommandSize, getCommandType, getContextualName, getStartIndex, markupPlateComment, updateMonitor
-
Method Details
-
getChainHeader
Gets theDyldChainedFixupHeader- Returns:
- The
DyldChainedFixupHeader
-
getCommandName
Description copied from class:LoadCommandGets the name of this load command- Overrides:
getCommandNamein 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:LoadCommandMarks up thisLoadCommanddata with data structures and comments. Assumes the program was imported as a Mach-O.- Overrides:
markupin classLinkEditDataCommand- Parameters:
program- TheProgramto 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:LoadCommandMarks-up thisLoadCommandwith data structures and comments. Assumes the program was imported as a Raw Binary.- Overrides:
markupRawBinaryin classLinkEditDataCommand- Parameters:
header- The Mach-O headerapi- AFlatProgramAPIbaseAddress- The base address of the programparentModule- The parentmoduleto 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 aListofDyldFixups that will need to be applied to the image- Parameters:
reader- ABinaryReaderthat can read the imageimagebase- The image basesymbolTable- TheSymbolTable, or null if not availablelog- The logmonitor- A cancellable monitor- Returns:
- A
ListofDyldFixups - Throws:
IOException- If there was an IO-related issueCancelledException- If the user cancelled the operation
-