Class ElfExtension
java.lang.Object
ghidra.app.util.bin.format.elf.extend.ElfLoadAdapter
ghidra.app.util.bin.format.elf.extend.ElfExtension
- All Implemented Interfaces:
ExtensionPoint
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Check if this extension can handle the specified elf header.abstract boolean
canHandle
(ElfLoadHelper elfLoadHelper) Check if this extension can handle the specified elf image.abstract String
Return the data type naming suffix which should be used when creating types derived from data supplied by this extension.Methods inherited from class ghidra.app.util.bin.format.elf.extend.ElfLoadAdapter
addDynamicTypes, addLoadOptions, addProgramHeaderTypes, addSectionHeaderTypes, calculateSymbolAddress, creatingFunction, evaluateElfSymbol, getAdjustedLoadSize, getAdjustedMemoryOffset, getAdjustedMemorySize, getAdjustedSize, getDefaultAlignment, getDefaultImageBase, getExternalBlockReserveSize, getFilteredLoadInputStream, getLinkageBlockAlignment, getPreferredExternalBlockSize, getPreferredSectionAddress, getPreferredSectionAddressSpace, getPreferredSegmentAddress, getPreferredSegmentAddressSpace, getRelocationClass, getSectionSymbolRelativeOffset, hasFilteredLoadInputStream, isSectionAllocated, isSectionExecutable, isSectionWritable, isSegmentExecutable, isSegmentReadable, isSegmentWritable, processElf, processGotPlt
-
Constructor Details
-
ElfExtension
public ElfExtension()
-
-
Method Details
-
canHandle
Description copied from class:ElfLoadAdapter
Check if this extension can handle the specified elf header. If this method returns true, this extension will be used to obtain extended types definitions and to perform additional load processing.- Overrides:
canHandle
in classElfLoadAdapter
- Parameters:
elf
- elf header- Returns:
- true if this extension should be used when loading the elf image which corresponds to the specified header.
-
canHandle
Description copied from class:ElfLoadAdapter
Check if this extension can handle the specified elf image. This method can provide a more accurate check based upon the actual language utilized. While the ELF header may have stipulated a specific processor via the machine-id, a completely different and incompatible language may have been used.- Overrides:
canHandle
in classElfLoadAdapter
- Parameters:
elfLoadHelper
- elf header- Returns:
- true if this extension can properly support the ELF header and the current program/language.
-
getDataTypeSuffix
Description copied from class:ElfLoadAdapter
Return the data type naming suffix which should be used when creating types derived from data supplied by this extension.- Overrides:
getDataTypeSuffix
in classElfLoadAdapter
- Returns:
- type naming suffix or null
-