Class ELFRelocationApplicator<T extends ELFStandardRelocOperations>

java.lang.Object
com.pnfsoftware.jeb.core.units.codeobject.ELFRelocationApplicator<T>
Type Parameters:
T - relocation operation helper type
All Implemented Interfaces:
IELFRelocationApplicator
Direct Known Subclasses:
ELFStandardRelocator

public abstract class ELFRelocationApplicator<T extends ELFStandardRelocOperations> extends Object implements IELFRelocationApplicator
Base class for ELF relocation applicators. Use the ELFStandardRelocator for relocations using ELFStandardRelocOperations.
  • Constructor Details

    • ELFRelocationApplicator

      public ELFRelocationApplicator(int type)
      Create an applicator for a relocation type.
      Parameters:
      type - relocation type
  • Method Details

    • getType

      public int getType()
      Description copied from interface: IELFRelocationApplicator
      Get the relocation type.
      Specified by:
      getType in interface IELFRelocationApplicator
      Returns:
      relocation type
    • applyInternal

      protected abstract void applyInternal(T o) throws MemoryException
      Apply a relocation using the provided operations.
      Parameters:
      o - relocation operations
      Throws:
      MemoryException - if relocation application fails