LLDB mainline
|
Generic representation of an ELF section header. More...
#include <ELFHeader.h>
Public Member Functions | |
ELFSectionHeader () | |
bool | Parse (const lldb_private::DataExtractor &data, lldb::offset_t *offset) |
Parse an ELFSectionHeader entry from the given DataExtracter starting at position offset . | |
Public Attributes | |
elf_word | sh_name |
Section name string index. | |
elf_word | sh_type |
Section type. | |
elf_xword | sh_flags |
Section attributes. | |
elf_addr | sh_addr |
Virtual address of the section in memory. | |
elf_off | sh_offset |
Start of section from beginning of file. | |
elf_xword | sh_size |
Number of bytes occupied in the file. | |
elf_word | sh_link |
Index of associated section. | |
elf_word | sh_info |
Extra section info (overloaded). | |
elf_xword | sh_addralign |
Power of two alignment constraint. | |
elf_xword | sh_entsize |
Byte size of each section entry. | |
Generic representation of an ELF section header.
Definition at line 159 of file ELFHeader.h.
ELFSectionHeader::ELFSectionHeader | ( | ) |
Definition at line 224 of file ELFHeader.cpp.
bool ELFSectionHeader::Parse | ( | const lldb_private::DataExtractor & | data, |
lldb::offset_t * | offset | ||
) |
Parse an ELFSectionHeader entry from the given DataExtracter starting at position offset
.
[in] | data | The DataExtractor to read from. The address size of the extractor determines if a 32 or 64 bit object should be read. |
[in,out] | offset | Pointer to an offset in the data. On return the offset will be advanced by the number of bytes read. |
Definition at line 228 of file ELFHeader.cpp.
References lldb_private::DataExtractor::GetAddressByteSize(), GetMaxU64(), lldb_private::DataExtractor::GetU32(), sh_addr, sh_addralign, sh_flags, sh_link, and sh_name.
Referenced by elf::ELFHeader::ParseHeaderExtension().
elf_addr elf::ELFSectionHeader::sh_addr |
Virtual address of the section in memory.
Definition at line 163 of file ELFHeader.h.
Referenced by ObjectFileELF::DumpELFSectionHeader(), and Parse().
elf_xword elf::ELFSectionHeader::sh_addralign |
Power of two alignment constraint.
Definition at line 168 of file ELFHeader.h.
Referenced by ObjectFileELF::CreateSections(), ObjectFileELF::DumpELFSectionHeader(), GetPltEntrySizeAndOffset(), and Parse().
elf_xword elf::ELFSectionHeader::sh_entsize |
Byte size of each section entry.
Definition at line 169 of file ELFHeader.h.
Referenced by ObjectFileELF::ApplyRelocations(), ObjectFileELF::DumpELFSectionHeader(), GetPltEntrySizeAndOffset(), ParsePLTRelocations(), and ObjectFileELF::ParseSymbolTable().
elf_xword elf::ELFSectionHeader::sh_flags |
Section attributes.
Definition at line 162 of file ELFHeader.h.
Referenced by ObjectFileELF::CreateSections(), ObjectFileELF::DumpELFSectionHeader(), ObjectFileELF::GetBaseAddress(), GetPermissions(), ObjectFileELF::GetSectionType(), and Parse().
elf_word elf::ELFSectionHeader::sh_info |
Extra section info (overloaded).
Definition at line 167 of file ELFHeader.h.
Referenced by ObjectFileELF::DumpELFSectionHeader(), elf::ELFHeader::ParseHeaderExtension(), and ObjectFileELF::RelocateDebugSections().
elf_word elf::ELFSectionHeader::sh_link |
Index of associated section.
Definition at line 166 of file ELFHeader.h.
Referenced by ObjectFileELF::DumpELFSectionHeader(), Parse(), elf::ELFHeader::ParseHeaderExtension(), ObjectFileELF::ParseSymbolTable(), ObjectFileELF::ParseTrampolineSymbols(), and ObjectFileELF::RelocateDebugSections().
elf_word elf::ELFSectionHeader::sh_name |
Section name string index.
Definition at line 160 of file ELFHeader.h.
Referenced by ObjectFileELF::DumpELFSectionHeader(), and Parse().
elf_off elf::ELFSectionHeader::sh_offset |
Start of section from beginning of file.
Definition at line 164 of file ELFHeader.h.
Referenced by ObjectFileELF::CreateSections(), ObjectFileELF::DumpELFSectionHeader(), and ObjectFileELF::GetSectionHeaderInfo().
elf_xword elf::ELFSectionHeader::sh_size |
Number of bytes occupied in the file.
Definition at line 165 of file ELFHeader.h.
Referenced by ObjectFileELF::ApplyRelocations(), ObjectFileELF::CreateSections(), ObjectFileELF::DumpELFSectionHeader(), GetPltEntrySizeAndOffset(), ObjectFileELF::GetSectionHeaderInfo(), elf::ELFHeader::ParseHeaderExtension(), and ParsePLTRelocations().
elf_word elf::ELFSectionHeader::sh_type |
Section type.
Definition at line 161 of file ELFHeader.h.
Referenced by ObjectFileELF::ApplyRelocations(), ObjectFileELF::CreateSections(), ObjectFileELF::DumpELFSectionHeader(), ObjectFileELF::GetSectionHeaderInfo(), ObjectFileELF::GetSectionType(), ObjectFileELF::ParseSymbolTable(), ObjectFileELF::ParseTrampolineSymbols(), and ObjectFileELF::RelocateDebugSections().