Class MachoProgramUtils

java.lang.Object
ghidra.app.util.opinion.MachoProgramUtils

public class MachoProgramUtils extends Object
  • Constructor Details

    • MachoProgramUtils

      public MachoProgramUtils()
  • Method Details

    • getNextAvailableAddress

      public static Address getNextAvailableAddress(Program program)
      Gets the next available Address in the Program
      Parameters:
      program - The Program
      Returns:
      The next available Address in the Program
    • addExternalBlock

      public static Address addExternalBlock(Program program, long size, MessageLog log) throws Exception
      Adds the EXERNAL block to memory, or adds to an existing one
      Parameters:
      program - The Program
      size - The desired size of the new EXTERNAL block
      log - The MessageLog
      Returns:
      The Address of the new (or new piece) of EXTERNAL block
      Throws:
      Exception - if there was an issue creating or adding to the EXTERNAL block