Class DyldChainedFixups

java.lang.Object
ghidra.app.util.bin.format.macho.commands.chained.DyldChainedFixups

public class DyldChainedFixups extends Object
  • Constructor Details

  • Method Details

    • processChainedFixups

      public List<Address> processChainedFixups() throws Exception
      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 unchained
      pointerFormat - format of pointers within this chain
      page - within data pages that has pointers to be unchained
      nextOff - offset within the page that is the chain start
      auth_value_add - value to be added to each chain pointer
      Throws:
      MemoryAccessException - IO problem reading file
      CancelledException - user cancels