Package ghidra.app.util.opinion
Class DyldCacheProgramBuilder
java.lang.Object
ghidra.app.util.opinion.MachoProgramBuilder
ghidra.app.util.opinion.DyldCacheProgramBuilder
Builds up a DYLD Cache
Program by parsing the DYLD Cache headers.-
Field Summary
Fields inherited from class ghidra.app.util.opinion.MachoProgramBuilder
fileBytes, HEADER_SYMBOL, listing, log, machoHeader, memory, monitor, program, provider, reader, space -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDyldCacheProgramBuilder(Program program, ByteProvider provider, FileBytes fileBytes, DyldCacheOptions options, MessageLog log, TaskMonitor monitor) Creates a newDyldCacheProgramBuilderbased on the given information. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuild()static voidbuildProgram(Program program, ByteProvider provider, FileBytes fileBytes, DyldCacheOptions options, MessageLog log, TaskMonitor monitor) Builds up a DYLD CacheProgram.Methods inherited from class ghidra.app.util.opinion.MachoProgramBuilder
buildProgram, createNamespace, createOneByteFunction, fixupExternalLibrary, fixupProgramTree, getMachoBaseAddress, markupAndSetGolangInitialProgramProperties, markupChainedFixups, markupHeaders, markupLoadCommandData, markupProgramVars, markupSections, processAbsoluteSymbols, processChainedFixups, processCorruptLoadCommands, processDyldInfo, processEncryption, processEntryPoint, processExports, processExternalRelocations, processLibraries, processLocalRelocations, processMemoryBlocks, processNewExport, processSectionRelocations, processStubs, processSymbolTables, processUndefinedSymbols, processUnsupportedLoadCommands, renameObjMsgSendRtpSymbol, setCompiler, setProgramDescription, setProgramImageBase, setRelocatableProperty, setupHeaderAddr
-
Constructor Details
-
DyldCacheProgramBuilder
protected DyldCacheProgramBuilder(Program program, ByteProvider provider, FileBytes fileBytes, DyldCacheOptions options, MessageLog log, TaskMonitor monitor) Creates a newDyldCacheProgramBuilderbased on the given information.- Parameters:
program- TheProgramto build upprovider- TheByteProviderthat contains the DYLD Cache bytesfileBytes- Where the DYLD Cache's bytes came fromoptions- Options from theDyldCacheLoaderlog- The logmonitor- A cancelable task monitor
-
-
Method Details
-
buildProgram
public static void buildProgram(Program program, ByteProvider provider, FileBytes fileBytes, DyldCacheOptions options, MessageLog log, TaskMonitor monitor) throws Exception Builds up a DYLD CacheProgram.- Parameters:
program- TheProgramto build upprovider- TheByteProviderthat contains the DYLD Cache's bytesfileBytes- Where the Mach-O's bytes came fromoptions- Options from theDyldCacheLoaderlog- The logmonitor- A cancelable task monitor- Throws:
Exception- if a problem occurs
-
build
- Overrides:
buildin classMachoProgramBuilder- Throws:
Exception
-