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 void
close()
static ElfSectionProvider
createSectionProviderFor(Program program)
ByteProvider
getSectionAsByteProvider(java.lang.String sectionName)
boolean
hasSection(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:
getSectionAsByteProvider
in interfaceDWARFSectionProvider
- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceDWARFSectionProvider
-
hasSection
public boolean hasSection(java.lang.String... sectionNames)
- Specified by:
hasSection
in interfaceDWARFSectionProvider
-
-