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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanCheck if this extension can handle the specified elf header.abstract booleancanHandle(ElfLoadHelper elfLoadHelper) Check if this extension can handle the specified elf image.abstract StringReturn 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:ElfLoadAdapterCheck 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:
canHandlein 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:ElfLoadAdapterCheck 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:
canHandlein 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:ElfLoadAdapterReturn the data type naming suffix which should be used when creating types derived from data supplied by this extension.- Overrides:
getDataTypeSuffixin classElfLoadAdapter- Returns:
- type naming suffix or null
-