Class ELFRelocationContext
java.lang.Object
com.pnfsoftware.jeb.core.units.codeobject.ELFRelocationContext
ELF relocation contexts can be registered using the
ELFPluginsService.
A relocation context means a type of ELF (e.g. executable, or dynamic file) and an architecture (e.g. Arm). A context consists of one or more relocation applicators.
-
Constructor Summary
ConstructorsConstructorDescriptionELFRelocationContext(ELFRelocationApplicator<?>... relocApplicators) Create a relocation context. -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanDetermine whether this context applies to the given file.Get the relocation applicators supported by this context.protected booleanisMappedAtPreferredAddress(IELFUnit elfUnit, long actualImageBase) Determine whether the file is mapped at its preferred image base.
-
Constructor Details
-
ELFRelocationContext
Create a relocation context.- Parameters:
relocApplicators- relocation applicators supported by this context
-
-
Method Details
-
getApplicableRelocations
Get the relocation applicators supported by this context.- Returns:
- relocation applicators
-
canApply
Determine whether this context applies to the given file.- Parameters:
elfUnit- ELF unitactualImageBase- actual image base- Returns:
- true if this context can process the file
-
isMappedAtPreferredAddress
Determine whether the file is mapped at its preferred image base.- Parameters:
elfUnit- ELF unitactualImageBase- actual image base- Returns:
- true if the actual image base is the preferred image base
-