Class ELFStandardRelocOperations

java.lang.Object
com.pnfsoftware.jeb.core.units.codeobject.ELFStandardRelocOperations

public class ELFStandardRelocOperations extends Object
Default implementation for ELF relocation operations, for a given relocation. It can be overridden to add operations or customize existing common operations (A, S, P, B).

This class contains operations shared among architectures.

  • Field Details

    • elfUnit

      public final IELFUnit elfUnit
      ELF unit.
    • mem

      public final IVirtualMemory mem
      Memory object.
    • actualImageBase

      public final long actualImageBase
      Actual image base.
    • theoriticalImageBase

      public final long theoriticalImageBase
      Preferred image base.
    • deltaImageBase

      public final long deltaImageBase
      Difference between the actual and preferred image bases.
    • se

      public final IELFSymbolEntry se
      Symbol entry, if any.
    • relocEntry

      public final IELFRelocationEntry relocEntry
      Relocation entry.
    • relocTable

      public final IELFRelocationTable relocTable
      Relocation table.
    • targetAddress

      public final long targetAddress
      Target address of the relocation.
    • endianness

      public final Endianness endianness
      File endianness.
  • Constructor Details

  • Method Details

    • A

      public long A() throws MemoryException
      Represents the addend used to compute the value of the relocatable field.
      Returns:
      addend value
      Throws:
      MemoryException - if the implicit addend cannot be read
    • S

      public long S()
      Represents the value of the symbol whose index resides in the relocation entry.
      Returns:
      symbol value
    • P

      public long P()
      Represents the place, as section offset or address, of the storage unit being relocated.
      Returns:
      relocation place
    • B

      public long B()
      Represents the base address at which a shared object was loaded.
      Returns:
      actual image base