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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ElfComment
fromProgram
(Program program) Reads an ElfComment from the standard ".comment" section in the specified Program.void
markupProgram
(Program program, Address address) Markup a program's info and memory with this item.static ElfComment
read
(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:ElfInfoItem
Markup a program's info and memory with this item.- Specified by:
markupProgram
in interfaceElfInfoItem
- Parameters:
program
-Program
to markupaddress
-Address
of the item in the program
-
toString
-