Class LoadCommand
- java.lang.Object
- 
- ghidra.app.util.bin.format.macho.commands.LoadCommand
 
- 
- All Implemented Interfaces:
- StructConverter
 - Direct Known Subclasses:
- BuildVersionCommand,- DyldInfoCommand,- DynamicLibraryCommand,- DynamicLinkerCommand,- DynamicSymbolTableCommand,- EncryptedInformationCommand,- EntryPointCommand,- FileSetEntryCommand,- FixedVirtualMemoryFileCommand,- LinkEditDataCommand,- LinkerOptionCommand,- ObsoleteCommand,- PrebindChecksumCommand,- PreboundDynamicLibraryCommand,- RoutinesCommand,- RunPathCommand,- SegmentCommand,- SourceVersionCommand,- SubClientCommand,- SubFrameworkCommand,- SubLibraryCommand,- SubUmbrellaCommand,- SymbolTableCommand,- ThreadCommand,- TwoLevelHintsCommand,- UnsupportedLoadCommand,- UuidCommand,- VersionMinCommand
 
 public abstract class LoadCommand extends java.lang.Object implements StructConverter Represents a load_command structure.- See Also:
- mach-o/loader.h
 
- 
- 
Constructor SummaryConstructors Constructor Description LoadCommand()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ProgramFragmentcreateFragment(FlatProgramAPI api, Address baseAddress, ProgramModule module)abstract java.lang.StringgetCommandName()Returns the name of this command.intgetCommandSize()Total size of command in bytesintgetCommandType()Type of load commandlonggetStartIndex()Returns the binary start index of this load command.protected voidinitLoadCommand(FactoryBundledWithBinaryReader reader)abstract voidmarkup(MachHeader header, FlatProgramAPI api, Address baseAddress, boolean isBinary, ProgramModule parentModule, TaskMonitor monitor, MessageLog log)Mark-up the program with the data structures for this load command.protected voidupdateMonitor(TaskMonitor monitor)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface ghidra.app.util.bin.StructConvertertoDataType
 
- 
 
- 
- 
- 
Method Detail- 
initLoadCommandprotected void initLoadCommand(FactoryBundledWithBinaryReader reader) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
getStartIndexpublic long getStartIndex() Returns the binary start index of this load command.- Returns:
- the binary start index of this load command
 
 - 
getCommandTypepublic int getCommandType() Type of load command- Returns:
- type of load command
 
 - 
getCommandSizepublic int getCommandSize() Total size of command in bytes- Returns:
- total size of command in bytes
 
 - 
getCommandNamepublic abstract java.lang.String getCommandName() Returns the name of this command.- Returns:
- the name of this command
 
 - 
markuppublic abstract void markup(MachHeader header, FlatProgramAPI api, Address baseAddress, boolean isBinary, ProgramModule parentModule, TaskMonitor monitor, MessageLog log) Mark-up the program with the data structures for this load command.- Parameters:
- header- the mach header
- api- the flat program api
- baseAddress- the base address to apply the mark-up
- isBinary- true if mach-o was loaded as binary
- parentModule- parent module to create fragments
- monitor- the task monitor
- log- the message logS
 
 - 
createFragmentprotected final ProgramFragment createFragment(FlatProgramAPI api, Address baseAddress, ProgramModule module) throws java.lang.Exception - Throws:
- java.lang.Exception
 
 - 
updateMonitorprotected final void updateMonitor(TaskMonitor monitor) 
 
- 
 
-