Class DyldCacheProgramBuilder


  • public class DyldCacheProgramBuilder
    extends MachoProgramBuilder
    Builds up a DYLD Cache Program by parsing the DYLD Cache headers.
    • Constructor Detail

      • DyldCacheProgramBuilder

        protected DyldCacheProgramBuilder​(Program program,
                                          ByteProvider provider,
                                          FileBytes fileBytes,
                                          boolean shouldProcessSymbols,
                                          boolean shouldCreateDylibSections,
                                          MessageLog log,
                                          TaskMonitor monitor)
        Creates a new DyldCacheProgramBuilder based on the given information.
        Parameters:
        program - The Program to build up
        provider - The ByteProvider that contains the DYLD Cache bytes
        fileBytes - Where the Mach-O's bytes came from
        shouldProcessSymbols - True if symbols should be processed; otherwise, false
        shouldCreateDylibSections - True if memory blocks should be created for DYLIB sections; otherwise, false
        log - The log
        monitor - A cancelable task monitor
    • Method Detail

      • buildProgram

        public static void buildProgram​(Program program,
                                        ByteProvider provider,
                                        FileBytes fileBytes,
                                        boolean shouldProcessSymbols,
                                        boolean shouldCreateDylibSections,
                                        MessageLog log,
                                        TaskMonitor monitor)
                                 throws java.lang.Exception
        Builds up a DYLD Cache Program.
        Parameters:
        program - The Program to build up
        provider - The ByteProvider that contains the DYLD Cache's bytes
        fileBytes - Where the Mach-O's bytes came from
        shouldProcessSymbols - True if symbols should be processed; otherwise, false
        shouldCreateDylibSections - True if memory blocks should be created for DYLIB sections; otherwise, false
        log - The log
        monitor - A cancelable task monitor
        Throws:
        java.lang.Exception - if a problem occurs
      • build

        protected void build()
                      throws java.lang.Exception
        Overrides:
        build in class MachoProgramBuilder
        Throws:
        java.lang.Exception