Class LoadCommand
java.lang.Object
com.ibm.j9ddr.corereaders.macho.LoadCommand
- Direct Known Subclasses:
BuildVersionCommand
,DSymtabCommand
,DyldInfoCommand
,DylibCommand
,DylinkerCommand
,EncryptionCommand64
,EntryPointCommand
,LinkeditDataCommand
,LinkerOptionCommand
,NoteCommand
,PrebindChecksumCommand
,PreboundDylibCommand
,RoutinesCommand64
,RpathCommand
,SegmentCommand64
,SourceVersionCommand
,SubCommand
,SymtabCommand
,ThreadCommand
,TwoLevelHintsCommand
,UuidCommand
,VersionMinCommand
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionlong
long
int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getStringFromAsciiChars
(byte[] chars) static String
getStringFromAsciiChars
(byte[] chars, int start) readCommand
(ImageInputStream stream, long streamSegmentOffset) static LoadCommand
readFullCommand
(ImageInputStream stream, long streamOffset, long segmentOffset, int cpuType)
-
Field Details
-
LC_REQ_DYLD
public static final int LC_REQ_DYLD- See Also:
-
LC_SEGMENT
public static final int LC_SEGMENT- See Also:
-
LC_SYMTAB
public static final int LC_SYMTAB- See Also:
-
LC_SYMSEG
public static final int LC_SYMSEG- See Also:
-
LC_THREAD
public static final int LC_THREAD- See Also:
-
LC_UNIXTHREAD
public static final int LC_UNIXTHREAD- See Also:
-
LC_LOADFVMLIB
public static final int LC_LOADFVMLIB- See Also:
-
LC_IDFVMLIB
public static final int LC_IDFVMLIB- See Also:
-
LC_IDENT
public static final int LC_IDENT- See Also:
-
LC_FVMFILE
public static final int LC_FVMFILE- See Also:
-
LC_PREPAGE
public static final int LC_PREPAGE- See Also:
-
LC_DYSYMTAB
public static final int LC_DYSYMTAB- See Also:
-
LC_LOAD_DYLIB
public static final int LC_LOAD_DYLIB- See Also:
-
LC_ID_DYLIB
public static final int LC_ID_DYLIB- See Also:
-
LC_LOAD_DYLINKER
public static final int LC_LOAD_DYLINKER- See Also:
-
LC_ID_DYLINKER
public static final int LC_ID_DYLINKER- See Also:
-
LC_PREBOUND_DYLIB
public static final int LC_PREBOUND_DYLIB- See Also:
-
LC_ROUTINES
public static final int LC_ROUTINES- See Also:
-
LC_SUB_FRAMEWORK
public static final int LC_SUB_FRAMEWORK- See Also:
-
LC_SUB_UMBRELLA
public static final int LC_SUB_UMBRELLA- See Also:
-
LC_SUB_CLIENT
public static final int LC_SUB_CLIENT- See Also:
-
LC_SUB_LIBRARY
public static final int LC_SUB_LIBRARY- See Also:
-
LC_TWOLEVEL_HINTS
public static final int LC_TWOLEVEL_HINTS- See Also:
-
LC_PREBIND_CKSUM
public static final int LC_PREBIND_CKSUM- See Also:
-
LC_LOAD_WEAK_DYLIB
public static final int LC_LOAD_WEAK_DYLIB- See Also:
-
LC_SEGMENT_64
public static final int LC_SEGMENT_64- See Also:
-
LC_ROUTINES_64
public static final int LC_ROUTINES_64- See Also:
-
LC_UUID
public static final int LC_UUID- See Also:
-
LC_RPATH
public static final int LC_RPATH- See Also:
-
LC_CODE_SIGNATURE
public static final int LC_CODE_SIGNATURE- See Also:
-
LC_SEGMENT_SPLIT_INFO
public static final int LC_SEGMENT_SPLIT_INFO- See Also:
-
LC_REEXPORT_DYLIB
public static final int LC_REEXPORT_DYLIB- See Also:
-
LC_LAZY_LOAD_DYLIB
public static final int LC_LAZY_LOAD_DYLIB- See Also:
-
LC_ENCRYPTION_INFO
public static final int LC_ENCRYPTION_INFO- See Also:
-
LC_DYLD_INFO
public static final int LC_DYLD_INFO- See Also:
-
LC_DYLD_INFO_ONLY
public static final int LC_DYLD_INFO_ONLY- See Also:
-
LC_LOAD_UPWARD_DYLIB
public static final int LC_LOAD_UPWARD_DYLIB- See Also:
-
LC_VERSION_MIN_MACOSX
public static final int LC_VERSION_MIN_MACOSX- See Also:
-
LC_VERSION_MIN_IPHONEOS
public static final int LC_VERSION_MIN_IPHONEOS- See Also:
-
LC_FUNCTION_STARTS
public static final int LC_FUNCTION_STARTS- See Also:
-
LC_DYLD_ENVIRONMENT
public static final int LC_DYLD_ENVIRONMENT- See Also:
-
LC_MAIN
public static final int LC_MAIN- See Also:
-
LC_DATA_IN_CODE
public static final int LC_DATA_IN_CODE- See Also:
-
LC_SOURCE_VERSION
public static final int LC_SOURCE_VERSION- See Also:
-
LC_DYLIB_CODE_SIGN_DRS
public static final int LC_DYLIB_CODE_SIGN_DRS- See Also:
-
LC_ENCRYPTION_INFO_64
public static final int LC_ENCRYPTION_INFO_64- See Also:
-
LC_LINKER_OPTION
public static final int LC_LINKER_OPTION- See Also:
-
LC_LINKER_OPTIMIZATION_HINT
public static final int LC_LINKER_OPTIMIZATION_HINT- See Also:
-
LC_VERSION_MIN_TVOS
public static final int LC_VERSION_MIN_TVOS- See Also:
-
LC_VERSION_MIN_WATCHOS
public static final int LC_VERSION_MIN_WATCHOS- See Also:
-
LC_NOTE
public static final int LC_NOTE- See Also:
-
LC_BUILD_VERSION
public static final int LC_BUILD_VERSION- See Also:
-
cmdType
public int cmdType -
cmdSize
public long cmdSize -
absoluteOffset
public long absoluteOffset -
segmentOffset
public long segmentOffset
-
-
Constructor Details
-
LoadCommand
protected LoadCommand() -
LoadCommand
public LoadCommand(int type, long size, long offset)
-
-
Method Details
-
getStringFromAsciiChars
- Throws:
UnsupportedEncodingException
-
getStringFromAsciiChars
-
readCommand
public LoadCommand readCommand(ImageInputStream stream, long streamSegmentOffset) throws IOException - Throws:
IOException
-
readFullCommand
public static LoadCommand readFullCommand(ImageInputStream stream, long streamOffset, long segmentOffset, int cpuType) throws IOException - Throws:
IOException
-