Interface IELFRelocationApplicator
- All Known Implementing Classes:
ELFRelocationApplicator,ELFStandardRelocator
public interface IELFRelocationApplicator
Apply one specific relocation type.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFile where the relocation is appliedstatic classRelocation features needed for application -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(IELFRelocationApplicator.RelocatedFile relocatedFile, IELFRelocationApplicator.RelocInstance relocInstance) Apply the relocation on the provided 'file' instance.default booleancanApply(IELFRelocationApplicator.RelocInstance relocInstance) Determine whether the relocation can be applied.intgetType()Get the relocation type.
-
Method Details
-
getType
int getType()Get the relocation type.- Returns:
-
canApply
Determine whether the relocation can be applied. By default, the relocation is not applied when the symbol, if there is one, is not mapped. This is particularly important to avoid applying meaningless relocations in static analysis context.- Parameters:
relocInstance-- Returns:
-
apply
void apply(IELFRelocationApplicator.RelocatedFile relocatedFile, IELFRelocationApplicator.RelocInstance relocInstance) throws MemoryException Apply the relocation on the provided 'file' instance.- Parameters:
relocatedFile-relocInstance-- Throws:
MemoryException
-