public class

LoaderInformation

extends Object
implements ILoaderInformation
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.codeobject.LoaderInformation

Class Overview

Standard implementation of the ILoaderInformation interface, that may be used by parsers implementing ICodeObjectUnit.

Summary

Nested Classes
class LoaderInformation.Builder Builder of LoaderInformation objects. 
[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.codeobject.ILoaderInformation
Public Constructors
LoaderInformation()
Refer to the builder helper class.
Public Methods
long getCompilationTimestamp()
Get the compilation timestamp, if any.
Endianness getEndianness()
Get the endianness.
long getEntryPoint()
Get the relative address of the main entry-point, if any.
int getFlags()
Get generic flags, any combination of FLAG_*.
long getImageBase()
Get the ideal in-memory base address of the file.
long getImageSize()
Get the in-memory size of the file.
String getNotes()
Retrieve custom notes provided by the code object parser.
long getOverlayOffset()
Get the file offset to the overlay (also called 'appended') data in this code object, if any.
ProcessorType getTargetProcessor()
Get the target processor type.
SubsystemType getTargetSubsystem()
Get the target subsystem and/or operating system type.
String getVersion()
Get a version information string about the code object.
int getWordSize()
Get the machine word size, in bits.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.units.codeobject.ILoaderInformation

Public Constructors

public LoaderInformation ()

Refer to the builder helper class.

Public Methods

public long getCompilationTimestamp ()

Get the compilation timestamp, if any.

Returns
  • epoch timestamp in milliseconds

public Endianness getEndianness ()

Get the endianness.

public long getEntryPoint ()

Get the relative address of the main entry-point, if any.

Other exported addresses and symbols are defined within ICodeObjectUnit.

Returns
  • the relative (to the base address) address of the main entry-point

public int getFlags ()

Get generic flags, any combination of FLAG_*. The flags are mostly informative.

Returns
  • the optional flags

public long getImageBase ()

Get the ideal in-memory base address of the file. It is the address of the first byte of the mapped file in memory.

Returns
  • absolute address in bytes

public long getImageSize ()

Get the in-memory size of the file. It is the address of the loaded or memory-mapped loader file.

Returns
  • size in bytes

public String getNotes ()

Retrieve custom notes provided by the code object parser.

Returns
  • may be null

public long getOverlayOffset ()

Get the file offset to the overlay (also called 'appended') data in this code object, if any. Overlay data, although part of a binary file, is normally not mapped to memory by the code object loaders.

Returns
  • the overlay data offset in file, 0 if none or N/A. A code object without overlay data may also return a value equal to the input size itself

public ProcessorType getTargetProcessor ()

Get the target processor type.

public SubsystemType getTargetSubsystem ()

Get the target subsystem and/or operating system type.

public String getVersion ()

Get a version information string about the code object.

public int getWordSize ()

Get the machine word size, in bits. May be redundant with getTargetProcessor().

Returns
  • word size; common WS include 32-bit and 64-bit

public String toString ()