Interface IELFRelocationApplicator
- All Known Implementing Classes:
ELFRelocationApplicator
,ELFStandardRelocator
public interface IELFRelocationApplicator
Apply one specific relocation type.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
File where the relocation is appliedstatic class
Relocation features needed for application -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(IELFRelocationApplicator.RelocatedFile relocatedFile, IELFRelocationApplicator.RelocInstance relocInstance) Apply the relocation on the provided 'file' instance.default boolean
canApply
(IELFRelocationApplicator.RelocInstance relocInstance) Determine whether the relocation can be applied.int
getType()
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
-