Class DyldChainedFixups
java.lang.Object
ghidra.app.util.bin.format.macho.commands.chained.DyldChainedFixups
-
Constructor Summary
ConstructorsConstructorDescriptionDyldChainedFixups(Program program, MachHeader header, List<String> libraryPaths, MessageLog log, TaskMonitor monitor) Creates a newDyldChainedFixups -
Method Summary
Modifier and TypeMethodDescriptionFixes up any chained fixups.voidprocessPointerChain(DyldChainedImports chainedImports, List<Address> unchainedLocList, DyldChainedPtr.DyldChainType pointerFormat, long page, long nextOff, long auth_value_add) Fixes up any chained pointers, starting at the given address.
-
Constructor Details
-
DyldChainedFixups
public DyldChainedFixups(Program program, MachHeader header, List<String> libraryPaths, MessageLog log, TaskMonitor monitor) Creates a newDyldChainedFixups
-
-
Method Details
-
processChainedFixups
Fixes up any chained fixups. Relies on the __thread_starts section being present.- Returns:
- A list of addresses where chained fixups were performed.
- Throws:
Exception- if there was a problem reading/writing memory.
-
processPointerChain
public void processPointerChain(DyldChainedImports chainedImports, List<Address> unchainedLocList, DyldChainedPtr.DyldChainType pointerFormat, long page, long nextOff, long auth_value_add) throws MemoryAccessException, CancelledException Fixes up any chained pointers, starting at the given address.- Parameters:
chainedImports- chained imports (could be null)unchainedLocList- list of locations that were unchainedpointerFormat- format of pointers within this chainpage- within data pages that has pointers to be unchainednextOff- offset within the page that is the chain startauth_value_add- value to be added to each chain pointer- Throws:
MemoryAccessException- IO problem reading fileCancelledException- user cancels
-