- 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
public class LoadCommand extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
LoadCommand.LoadCommandString
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
LoadCommand()
LoadCommand(int type, long size, long offset)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getStringFromAsciiChars(byte[] chars)
static String
getStringFromAsciiChars(byte[] chars, int start)
LoadCommand
readCommand(ImageInputStream stream, long streamSegmentOffset)
static LoadCommand
readFullCommand(ImageInputStream stream, long streamOffset, long segmentOffset, int cpuType)
-
-
-
Field Detail
-
LC_REQ_DYLD
public static final int LC_REQ_DYLD
- See Also:
- Constant Field Values
-
LC_SEGMENT
public static final int LC_SEGMENT
- See Also:
- Constant Field Values
-
LC_SYMTAB
public static final int LC_SYMTAB
- See Also:
- Constant Field Values
-
LC_SYMSEG
public static final int LC_SYMSEG
- See Also:
- Constant Field Values
-
LC_THREAD
public static final int LC_THREAD
- See Also:
- Constant Field Values
-
LC_UNIXTHREAD
public static final int LC_UNIXTHREAD
- See Also:
- Constant Field Values
-
LC_LOADFVMLIB
public static final int LC_LOADFVMLIB
- See Also:
- Constant Field Values
-
LC_IDFVMLIB
public static final int LC_IDFVMLIB
- See Also:
- Constant Field Values
-
LC_IDENT
public static final int LC_IDENT
- See Also:
- Constant Field Values
-
LC_FVMFILE
public static final int LC_FVMFILE
- See Also:
- Constant Field Values
-
LC_PREPAGE
public static final int LC_PREPAGE
- See Also:
- Constant Field Values
-
LC_DYSYMTAB
public static final int LC_DYSYMTAB
- See Also:
- Constant Field Values
-
LC_LOAD_DYLIB
public static final int LC_LOAD_DYLIB
- See Also:
- Constant Field Values
-
LC_ID_DYLIB
public static final int LC_ID_DYLIB
- See Also:
- Constant Field Values
-
LC_LOAD_DYLINKER
public static final int LC_LOAD_DYLINKER
- See Also:
- Constant Field Values
-
LC_ID_DYLINKER
public static final int LC_ID_DYLINKER
- See Also:
- Constant Field Values
-
LC_PREBOUND_DYLIB
public static final int LC_PREBOUND_DYLIB
- See Also:
- Constant Field Values
-
LC_ROUTINES
public static final int LC_ROUTINES
- See Also:
- Constant Field Values
-
LC_SUB_FRAMEWORK
public static final int LC_SUB_FRAMEWORK
- See Also:
- Constant Field Values
-
LC_SUB_UMBRELLA
public static final int LC_SUB_UMBRELLA
- See Also:
- Constant Field Values
-
LC_SUB_CLIENT
public static final int LC_SUB_CLIENT
- See Also:
- Constant Field Values
-
LC_SUB_LIBRARY
public static final int LC_SUB_LIBRARY
- See Also:
- Constant Field Values
-
LC_TWOLEVEL_HINTS
public static final int LC_TWOLEVEL_HINTS
- See Also:
- Constant Field Values
-
LC_PREBIND_CKSUM
public static final int LC_PREBIND_CKSUM
- See Also:
- Constant Field Values
-
LC_LOAD_WEAK_DYLIB
public static final int LC_LOAD_WEAK_DYLIB
- See Also:
- Constant Field Values
-
LC_SEGMENT_64
public static final int LC_SEGMENT_64
- See Also:
- Constant Field Values
-
LC_ROUTINES_64
public static final int LC_ROUTINES_64
- See Also:
- Constant Field Values
-
LC_UUID
public static final int LC_UUID
- See Also:
- Constant Field Values
-
LC_RPATH
public static final int LC_RPATH
- See Also:
- Constant Field Values
-
LC_CODE_SIGNATURE
public static final int LC_CODE_SIGNATURE
- See Also:
- Constant Field Values
-
LC_SEGMENT_SPLIT_INFO
public static final int LC_SEGMENT_SPLIT_INFO
- See Also:
- Constant Field Values
-
LC_REEXPORT_DYLIB
public static final int LC_REEXPORT_DYLIB
- See Also:
- Constant Field Values
-
LC_LAZY_LOAD_DYLIB
public static final int LC_LAZY_LOAD_DYLIB
- See Also:
- Constant Field Values
-
LC_ENCRYPTION_INFO
public static final int LC_ENCRYPTION_INFO
- See Also:
- Constant Field Values
-
LC_DYLD_INFO
public static final int LC_DYLD_INFO
- See Also:
- Constant Field Values
-
LC_DYLD_INFO_ONLY
public static final int LC_DYLD_INFO_ONLY
- See Also:
- Constant Field Values
-
LC_LOAD_UPWARD_DYLIB
public static final int LC_LOAD_UPWARD_DYLIB
- See Also:
- Constant Field Values
-
LC_VERSION_MIN_MACOSX
public static final int LC_VERSION_MIN_MACOSX
- See Also:
- Constant Field Values
-
LC_VERSION_MIN_IPHONEOS
public static final int LC_VERSION_MIN_IPHONEOS
- See Also:
- Constant Field Values
-
LC_FUNCTION_STARTS
public static final int LC_FUNCTION_STARTS
- See Also:
- Constant Field Values
-
LC_DYLD_ENVIRONMENT
public static final int LC_DYLD_ENVIRONMENT
- See Also:
- Constant Field Values
-
LC_MAIN
public static final int LC_MAIN
- See Also:
- Constant Field Values
-
LC_DATA_IN_CODE
public static final int LC_DATA_IN_CODE
- See Also:
- Constant Field Values
-
LC_SOURCE_VERSION
public static final int LC_SOURCE_VERSION
- See Also:
- Constant Field Values
-
LC_DYLIB_CODE_SIGN_DRS
public static final int LC_DYLIB_CODE_SIGN_DRS
- See Also:
- Constant Field Values
-
LC_ENCRYPTION_INFO_64
public static final int LC_ENCRYPTION_INFO_64
- See Also:
- Constant Field Values
-
LC_LINKER_OPTION
public static final int LC_LINKER_OPTION
- See Also:
- Constant Field Values
-
LC_LINKER_OPTIMIZATION_HINT
public static final int LC_LINKER_OPTIMIZATION_HINT
- See Also:
- Constant Field Values
-
LC_VERSION_MIN_TVOS
public static final int LC_VERSION_MIN_TVOS
- See Also:
- Constant Field Values
-
LC_VERSION_MIN_WATCHOS
public static final int LC_VERSION_MIN_WATCHOS
- See Also:
- Constant Field Values
-
LC_NOTE
public static final int LC_NOTE
- See Also:
- Constant Field Values
-
LC_BUILD_VERSION
public static final int LC_BUILD_VERSION
- See Also:
- Constant Field Values
-
cmdType
public int cmdType
-
cmdSize
public long cmdSize
-
absoluteOffset
public long absoluteOffset
-
segmentOffset
public long segmentOffset
-
-
Method Detail
-
getStringFromAsciiChars
public static String getStringFromAsciiChars(byte[] chars) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
getStringFromAsciiChars
public static String getStringFromAsciiChars(byte[] chars, int start)
-
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
-
-