java.lang.Object
com.ibm.j9ddr.corereaders.aix.XCOFFReader
- All Implemented Interfaces:
IModuleFile
XCOFF spec here: http://publib16.boulder.ibm.com/pseries/en_US/files/aixfiles/XCOFF.htm
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
static final short
static final short
static final short
static final short
static final short
static final short
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
-
Constructor Summary
ConstructorDescriptionXCOFFReader
(File library) XCOFFReader
(File library, long l, long m) XCOFFReader
(String libraryName, ImageInputStream in, long l, long m) -
Method Summary
Modifier and TypeMethodDescriptionlong
void
close()
getSymbols
(long relocationBase) getTextSegment
(long virtualAddress, long virtualSize) Creates a memory source for the .text segment.long
-
Field Details
-
F_RELFLG
public static final short F_RELFLG- See Also:
-
F_EXEC
public static final short F_EXEC- See Also:
-
F_LNNO
public static final short F_LNNO- See Also:
-
F_AR32W
public static final short F_AR32W- See Also:
-
F_DYNLOAD
public static final short F_DYNLOAD- See Also:
-
F_SHROBJ
public static final short F_SHROBJ- See Also:
-
F_LOADONLY
public static final short F_LOADONLY- See Also:
-
STYP_REG
public static final int STYP_REG- See Also:
-
STYP_PAD
public static final int STYP_PAD- See Also:
-
STYP_TEXT
public static final int STYP_TEXT- See Also:
-
STYP_DATA
public static final int STYP_DATA- See Also:
-
STYP_BSS
public static final int STYP_BSS- See Also:
-
STYP_EXCEPT
public static final int STYP_EXCEPT- See Also:
-
STYP_INFO
public static final int STYP_INFO- See Also:
-
STYP_TDATA
public static final int STYP_TDATA- See Also:
-
STYP_TBSS
public static final int STYP_TBSS- See Also:
-
STYP_LOADER
public static final int STYP_LOADER- See Also:
-
STYP_DEBUG
public static final int STYP_DEBUG- See Also:
-
STYP_TYPCHK
public static final int STYP_TYPCHK- See Also:
-
STYP_OVRFLO
public static final int STYP_OVRFLO- See Also:
-
-
Constructor Details
-
XCOFFReader
- Throws:
IOException
-
XCOFFReader
- Throws:
IOException
-
XCOFFReader
- Throws:
IOException
-
-
Method Details
-
baseFileOffset
public long baseFileOffset() -
logicalSize
public long logicalSize() -
getProperties
- Specified by:
getProperties
in interfaceIModuleFile
-
getTextSegment
Description copied from interface:IModuleFile
Creates a memory source for the .text segment.- Specified by:
getTextSegment
in interfaceIModuleFile
- Parameters:
virtualAddress
- Address text segment is mapped into address spacevirtualSize
- Size of mapped section.- Returns:
- IMemorySource backed by the on-disk file.
-
getSymbols
- Specified by:
getSymbols
in interfaceIModuleFile
- Parameters:
relocationBase
- Base address for symbols- Returns:
- Symbols from the file.
- Throws:
IOException
-
close
- Throws:
IOException
-