Class SectionTypes

java.lang.Object
ghidra.app.util.bin.format.macho.SectionTypes

public final class SectionTypes extends Object
  • Field Details

    • SECTION_TYPE_MASK

      public static final int SECTION_TYPE_MASK
      256 section types
      See Also:
    • S_REGULAR

      public static final int S_REGULAR
      Type: regular section
      See Also:
    • S_ZEROFILL

      public static final int S_ZEROFILL
      Type: zero fill on demand section
      See Also:
    • S_CSTRING_LITERALS

      public static final int S_CSTRING_LITERALS
      Type: section with only literal C strings
      See Also:
    • S_4BYTE_LITERALS

      public static final int S_4BYTE_LITERALS
      Type: section with only 4 byte literals
      See Also:
    • S_8BYTE_LITERALS

      public static final int S_8BYTE_LITERALS
      Type: section with only 8 byte literals
      See Also:
    • S_LITERAL_POINTERS

      public static final int S_LITERAL_POINTERS
      Type: section with only pointers to literals
      See Also:
    • S_NON_LAZY_SYMBOL_POINTERS

      public static final int S_NON_LAZY_SYMBOL_POINTERS
      Type: section with only non-lazy symbol pointers
      See Also:
    • S_LAZY_SYMBOL_POINTERS

      public static final int S_LAZY_SYMBOL_POINTERS
      Type: section with only lazy symbol pointers
      See Also:
    • S_SYMBOL_STUBS

      public static final int S_SYMBOL_STUBS
      Type: section with only symbol stubs, byte size of stub in the reserved2 field
      See Also:
    • S_MOD_INIT_FUNC_POINTERS

      public static final int S_MOD_INIT_FUNC_POINTERS
      Type: section with only function pointers for initialization
      See Also:
    • S_MOD_TERM_FUNC_POINTERS

      public static final int S_MOD_TERM_FUNC_POINTERS
      Type: section with only function pointers for termination
      See Also:
    • S_COALESCED

      public static final int S_COALESCED
      Type: section contains symbols that are to be coalesced
      See Also:
    • S_GB_ZEROFILL

      public static final int S_GB_ZEROFILL
      Type: zero fill on demand section (that can be larger than 4 gigabytes)
      See Also:
    • S_INTERPOSING

      public static final int S_INTERPOSING
      Type: section with only pairs of function pointers for interposing
      See Also:
    • S_16BYTE_LITERALS

      public static final int S_16BYTE_LITERALS
      section with only 16 byte literals
      See Also:
    • S_DTRACE_DOF

      public static final int S_DTRACE_DOF
      section contains DTrace Object Format
      See Also:
    • S_LAZY_DYLIB_SYMBOL_POINTERS

      public static final int S_LAZY_DYLIB_SYMBOL_POINTERS
      section with only lazy symbol pointers to lazy loaded dylibs
      See Also:
    • S_THREAD_LOCAL_REGULAR

      public static final int S_THREAD_LOCAL_REGULAR
      Section types to support thread local variables. Template of initial values to TLVs.
      See Also:
    • S_THREAD_LOCAL_ZEROFILL

      public static final int S_THREAD_LOCAL_ZEROFILL
      Section types to support thread local variables. Template of initial values to TLVs.
      See Also:
    • S_THREAD_LOCAL_VARIABLES

      public static final int S_THREAD_LOCAL_VARIABLES
      Section types to support thread local variables. TLV descriptors.
      See Also:
    • S_THREAD_LOCAL_VARIABLE_POINTERS

      public static final int S_THREAD_LOCAL_VARIABLE_POINTERS
      Section types to support thread local variables. Pointers to TLV descriptors.
      See Also:
    • S_THREAD_LOCAL_INIT_FUNCTION_POINTERS

      public static final int S_THREAD_LOCAL_INIT_FUNCTION_POINTERS
      Section types to support thread local variables. Functions to call to initialize TLV values.
      See Also:
  • Constructor Details

    • SectionTypes

      public SectionTypes()
  • Method Details

    • getTypeName

      public static final String getTypeName(int type)
      Returns the string name for the constant define of the section type.
      Parameters:
      type - the section type
      Returns:
      string name for the constant define of the section type