Class ELFPluginsService
java.lang.Object
com.pnfsoftware.jeb.core.units.codeobject.ELFPluginsService
The ELF plugins service is used to provide custom and architecture-specific facility to the
ELF parser.
Currently, this service supports the registration of:
- section processors
- symbol processors
- relocation processors
Note: the current practice is to register additions in a static initializer block of a
native code plugin class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRegister a relocation context.voidRegister a section processor.voidRegister a symbol processor factory.Create a symbol processor for an ELF unit.static ELFPluginsServiceRetrieve the singleton service instance.Retrieve registered relocation contexts.Retrieve registered section processors.Retrieve registered symbol processor factories.
-
Constructor Details
-
ELFPluginsService
public ELFPluginsService()Create an ELF plugins service.
-
-
Method Details
-
getInstance
Retrieve the singleton service instance.- Returns:
- the ELF plugins service
-
addRelocationContext
Register a relocation context.- Parameters:
e- relocation context
-
getRelocationContexts
Retrieve registered relocation contexts.- Returns:
- relocation contexts
-
addSectionProcessor
Register a section processor.- Parameters:
e- section processor
-
getSectionProcessors
Retrieve registered section processors.- Returns:
- section processors
-
addSymbolsProcessorFactory
Register a symbol processor factory.- Parameters:
e- symbol processor factory
-
getSymbolProcessorFactories
Retrieve registered symbol processor factories.- Returns:
- symbol processor factories
-
createSymbolProcessor
Create a symbol processor for an ELF unit.- Parameters:
elf- ELF unit- Returns:
- symbol processor, or null if none applies
-