Class CoffRelocationHandler

  • All Implemented Interfaces:

    public abstract class CoffRelocationHandler
    extends java.lang.Object
    implements ExtensionPoint
    An abstract class used to perform COFF relocations. Classes should extend this class to provide relocations in a machine/processor specific way.
    • Constructor Detail

      • CoffRelocationHandler

        public CoffRelocationHandler()
    • Method Detail

      • canRelocate

        public abstract boolean canRelocate​(CoffFileHeader fileHeader)
        Checks to see whether or not an instance of this COFF relocation hander can handle relocating the COFF defined by the provided file header.
        fileHeader - The file header associated with the COFF to relocate.
        True if this relocation handler can do the relocation; otherwise, false.
      • relocate

        public abstract void relocate​(Program program,
                                      Address address,
                                      Symbol symbol,
                                      CoffRelocation relocation)
                               throws MemoryAccessException,
        Performs a relocation.
        program - The program to relocate.
        address - The address at which to perform the relocation.
        symbol - The symbol used during relocation.
        relocation - The relocation information to use to perform the relocation.
        MemoryAccessException - If there is a problem accessing memory during the relocation.
        NotFoundException - If this handler didn't find a way to perform the relocation.