Class ElfSectionProvider
- java.lang.Object
-
- ghidra.app.util.bin.format.dwarf4.next.sectionprovider.ElfSectionProvider
-
- All Implemented Interfaces:
DWARFSectionProvider,java.io.Closeable,java.lang.AutoCloseable
public class ElfSectionProvider extends java.lang.Object implements DWARFSectionProvider
Fetches DWARF section data from ELF files, directly, without going through the Ghidra memory block api. This section provider usually isn't needed as ELF sections are normally provided as Ghidra memory blocks. In case of extra- large binaries, Ghidra may not be able to map the debug sections into memory and this section provider will allow the DWARF analyzer to still function.
-
-
Constructor Summary
Constructors Constructor Description ElfSectionProvider(java.io.File exeFile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static ElfSectionProvidercreateSectionProviderFor(Program program)ByteProvidergetSectionAsByteProvider(java.lang.String sectionName)booleanhasSection(java.lang.String... sectionNames)
-
-
-
Method Detail
-
createSectionProviderFor
public static ElfSectionProvider createSectionProviderFor(Program program)
-
getSectionAsByteProvider
public ByteProvider getSectionAsByteProvider(java.lang.String sectionName) throws java.io.IOException
- Specified by:
getSectionAsByteProviderin interfaceDWARFSectionProvider- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceDWARFSectionProvider
-
hasSection
public boolean hasSection(java.lang.String... sectionNames)
- Specified by:
hasSectionin interfaceDWARFSectionProvider
-
-