Package ghidra.app.util.opinion
Class MSCoffLoader
java.lang.Object
ghidra.app.util.opinion.AbstractProgramLoader
ghidra.app.util.opinion.AbstractLibrarySupportLoader
ghidra.app.util.opinion.CoffLoader
ghidra.app.util.opinion.MSCoffLoader
- All Implemented Interfaces:
Loader,ExtensionPoint,Comparable<Loader>
-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.app.util.opinion.AbstractLibrarySupportLoader
AbstractLibrarySupportLoader.LibrarySearchPath, AbstractLibrarySupportLoader.UnprocessedLibrary -
Field Summary
FieldsFields inherited from class ghidra.app.util.opinion.CoffLoader
COFF_NAME, FAKE_LINK_OPTION_NAMEFields inherited from class ghidra.app.util.opinion.AbstractLibrarySupportLoader
DEPTH_OPTION_NAME, LIBRARY_DEST_FOLDER_OPTION_NAME, LIBRARY_SEARCH_PATH_DUMMY_OPTION_NAME, LINK_EXISTING_OPTION_NAME, LINK_SEARCH_FOLDER_OPTION_NAME, LOAD_LIBRARY_OPTION_NAME, LOAD_ONLY_LIBRARIES_OPTION_NAMEFields inherited from class ghidra.app.util.opinion.AbstractProgramLoader
ANCHOR_LABELS_OPTION_NAME, APPLY_LABELS_OPTION_NAMEFields inherited from interface ghidra.app.util.opinion.Loader
COMMAND_LINE_ARG_PREFIX, loggingDisabled, OPTIONS_PROJECT_SAVE_STATE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()protected intgetSectionAlignment(CoffSectionHeader section) Query a section header for alignment information.protected booleanSpecifies if the library filenames specified by this loader should be exact case match or case-insensitive.booleanMethods inherited from class ghidra.app.util.opinion.CoffLoader
findSupportedLoadSpecs, getDefaultOptions, load, validateOptionsMethods inherited from class ghidra.app.util.opinion.AbstractLibrarySupportLoader
createLibraryByteProvider, findLibraryInLoadedList, findLibraryInProject, getCustomLibrarySearchPaths, getLibraryDestinationFolderPath, getLibraryDestinationSearchFolder, getLibraryLoadDepth, getLibrarySearchFolders, getLibrarySearchPaths, getLinkSearchFolder, getTier, getTierPriority, isLinkExistingLibraries, isLoadLibraries, isOptionalLibraryFilenameExtensions, isValidSearchPath, loadProgram, loadProgramInto, matchSupportedLoadSpec, postLoadProgramFixups, processLibrary, resolveLibraryFile, shouldLoadOnlyLibraries, shouldSearchAllPathsMethods inherited from class ghidra.app.util.opinion.AbstractProgramLoader
createDefaultMemoryBlocks, createProgram, generateBlockName, getLanguageService, joinPaths, load, loadInto, markAsFunction, postLoadCleanup, release, setProgramProperties, shouldApplyProcessorLabelsByDefaultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.app.util.opinion.Loader
compareTo, getPreferredFileName, loadsIntoNewFolder, supportsLoadIntoProgram, supportsLoadIntoProgram
-
Field Details
-
MSCOFF_NAME
- See Also:
-
-
Constructor Details
-
MSCoffLoader
public MSCoffLoader()
-
-
Method Details
-
isMicrosoftFormat
public boolean isMicrosoftFormat()- Overrides:
isMicrosoftFormatin classCoffLoader- Returns:
- true if this loader assumes the Microsoft variant of the COFF format
-
getName
Description copied from interface:LoaderGets theLoader's name, which is used both for display purposes, and to identify theLoaderin the opinion files.- Specified by:
getNamein interfaceLoader- Overrides:
getNamein classCoffLoader- Returns:
- The
Loader's name.
-
isCaseInsensitiveLibraryFilenames
protected boolean isCaseInsensitiveLibraryFilenames()Description copied from class:AbstractLibrarySupportLoaderSpecifies if the library filenames specified by this loader should be exact case match or case-insensitive.Derived loader classes should override this method and specify if the OS that normally handles this type of binary is case-insensitive.
- Overrides:
isCaseInsensitiveLibraryFilenamesin classAbstractLibrarySupportLoader- Returns:
- True if case-insensitive or false if case-sensitive.
-
getSectionAlignment
Description copied from class:CoffLoaderQuery a section header for alignment information. The base version of this method assumes no alignment information is stored in the section header. Subclasses may implement a platform-specific check for alignment information.- Overrides:
getSectionAlignmentin classCoffLoader- Parameters:
section- header object for the section- Returns:
- the alignment requested by the section
-