Class FunctionStartsCommand
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.FunctionStartsCommand
- All Implemented Interfaces:
StructConverter
Represents a LC_FUNCTION_STARTS command.
-
Field Summary
Fields inherited from class ghidra.app.util.bin.format.macho.commands.LinkEditDataCommand
dataoff, dataReader, datasize
-
Method Summary
Modifier and TypeMethodDescriptionfindFunctionStartAddrs
(Address textSegmentAddr) Finds theList
of function start addressesvoid
markup
(Program program, MachHeader header, String source, TaskMonitor monitor, MessageLog log) Marks up thisLoadCommand
data with data structures and comments.Methods inherited from class ghidra.app.util.bin.format.macho.commands.LinkEditDataCommand
getCommandName, getLinkerDataOffset, getLinkerDataSize, markupRawBinary, 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
-
findFunctionStartAddrs
Finds theList
of function start addresses- Parameters:
textSegmentAddr
- TheAddress
of the function starts' __TEXT segment- Returns:
- The
List
of function start addresses - Throws:
IOException
- if there was an issue reading bytes
-
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
-