Class ElfComment
java.lang.Object
ghidra.app.util.bin.format.elf.info.ElfComment
- All Implemented Interfaces:
ElfInfoItem
An Elf section that contains null-terminated strings, typically added by the compiler to
the binary
-
Nested Class Summary
Nested classes/interfaces inherited from interface ghidra.app.util.bin.format.elf.info.ElfInfoItem
ElfInfoItem.ItemWithAddress<T>, ElfInfoItem.ReaderFunc<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ElfCommentfromProgram(Program program) Reads an ElfComment from the standard ".comment" section in the specified Program.voidmarkupProgram(Program program, Address address) Markup a program's info and memory with this item.static ElfCommentread(BinaryReader br, Program program) Reads a ElfComment from the specified BinaryReader.toString()
-
Field Details
-
SECTION_NAME
- See Also:
-
-
Constructor Details
-
ElfComment
-
-
Method Details
-
fromProgram
Reads an ElfComment from the standard ".comment" section in the specified Program.- Parameters:
program- Program to read from- Returns:
- new instance, or null if not found or data error
-
read
Reads a ElfComment from the specified BinaryReader.- Parameters:
br- BinaryReader to read fromprogram- unused, present to match the signature ofElfInfoItem.ReaderFunc- Returns:
- new instance, or null if data error
-
getCommentStrings
-
markupProgram
Description copied from interface:ElfInfoItemMarkup a program's info and memory with this item.- Specified by:
markupProgramin interfaceElfInfoItem- Parameters:
program-Programto markupaddress-Addressof the item in the program
-
toString
-