LLVM
15.0.0git
|
This is a value type class that represents a single section in the list of sections in the object file. More...
#include "llvm/Object/ObjectFile.h"
Public Member Functions | |
SectionRef ()=default | |
SectionRef (DataRefImpl SectionP, const ObjectFile *Owner) | |
SectionRef. More... | |
bool | operator== (const SectionRef &Other) const |
bool | operator!= (const SectionRef &Other) const |
bool | operator< (const SectionRef &Other) const |
void | moveNext () |
Expected< StringRef > | getName () const |
uint64_t | getAddress () const |
uint64_t | getIndex () const |
uint64_t | getSize () const |
Expected< StringRef > | getContents () const |
uint64_t | getAlignment () const |
Get the alignment of this section as the actual value (not log 2). More... | |
bool | isCompressed () const |
bool | isText () const |
Whether this section contains instructions. More... | |
bool | isData () const |
Whether this section contains data, not instructions. More... | |
bool | isBSS () const |
Whether this section contains BSS uninitialized data. More... | |
bool | isVirtual () const |
bool | isBitcode () const |
bool | isStripped () const |
bool | isBerkeleyText () const |
Whether this section will be placed in the text segment, according to the Berkeley size format. More... | |
bool | isBerkeleyData () const |
Whether this section will be placed in the data segment, according to the Berkeley size format. More... | |
bool | isDebugSection () const |
Whether this section is a debug section. More... | |
bool | containsSymbol (SymbolRef S) const |
relocation_iterator | relocation_begin () const |
relocation_iterator | relocation_end () const |
iterator_range< relocation_iterator > | relocations () const |
Expected< section_iterator > | getRelocatedSection () const |
Returns the related section if this section contains relocations. More... | |
DataRefImpl | getRawDataRefImpl () const |
const ObjectFile * | getObject () const |
Friends | |
class | SymbolRef |
This is a value type class that represents a single section in the list of sections in the object file.
Definition at line 80 of file ObjectFile.h.
|
default |
|
inline |
Definition at line 433 of file ObjectFile.h.
bool SectionRef::containsSymbol | ( | SymbolRef | S | ) | const |
Definition at line 46 of file ObjectFile.cpp.
References llvm::consumeError(), S, and llvm::Expected< T >::takeError().
|
inline |
Definition at line 460 of file ObjectFile.h.
References llvm::object::ObjectFile::getSectionAddress().
Referenced by llvm::getOffset(), and llvm::RuntimeDyldMachO::getRelocationValueRef().
|
inline |
Get the alignment of this section as the actual value (not log 2).
Definition at line 480 of file ObjectFile.h.
References llvm::object::ObjectFile::getSectionAlignment().
Definition at line 472 of file ObjectFile.h.
References llvm::object::ObjectFile::getSectionContents(), and llvm::Expected< T >::takeError().
Referenced by llvm::object::ResourceSectionRef::load().
|
inline |
Definition at line 464 of file ObjectFile.h.
References llvm::object::ObjectFile::getSectionIndex().
Definition at line 456 of file ObjectFile.h.
References llvm::object::ObjectFile::getSectionName().
|
inline |
Definition at line 540 of file ObjectFile.h.
Referenced by llvm::object::ELFSectionRef::ELFSectionRef(), and llvm::object::ELFSectionRef::getObject().
|
inline |
Definition at line 536 of file ObjectFile.h.
Referenced by llvm::object::ELFSectionRef::getFlags(), llvm::DenseMapInfo< object::SectionRef >::getHashValue(), llvm::object::ELFSectionRef::getOffset(), llvm::object::MachOObjectFile::getSectionID(), llvm::object::COFFObjectFile::getSectionID(), llvm::object::MachOObjectFile::getSectionType(), llvm::object::ELFSectionRef::getType(), and llvm::RuntimeDyldMachO::populateIndirectSymbolPointersSection().
|
inline |
Returns the related section if this section contains relocations.
The returned section may or may not have applied its relocations.
Definition at line 532 of file ObjectFile.h.
References llvm::object::ObjectFile::getRelocatedSection().
|
inline |
Definition at line 468 of file ObjectFile.h.
References llvm::object::ObjectFile::getSectionSize().
|
inline |
Whether this section will be placed in the data segment, according to the Berkeley size format.
This is true if the section is allocatable and contains data (e.g. PROGBITS), but is not text.
Definition at line 516 of file ObjectFile.h.
References llvm::object::ObjectFile::isBerkeleyData().
|
inline |
Whether this section will be placed in the text segment, according to the Berkeley size format.
This is true if the section is allocatable, and contains either code or readonly data.
Definition at line 512 of file ObjectFile.h.
References llvm::object::ObjectFile::isBerkeleyText().
|
inline |
Definition at line 504 of file ObjectFile.h.
References llvm::object::ObjectFile::isSectionBitcode().
|
inline |
Whether this section contains BSS uninitialized data.
Definition at line 496 of file ObjectFile.h.
References llvm::object::ObjectFile::isSectionBSS().
|
inline |
Definition at line 484 of file ObjectFile.h.
References llvm::object::ObjectFile::isSectionCompressed().
|
inline |
Whether this section contains data, not instructions.
Definition at line 492 of file ObjectFile.h.
References llvm::object::ObjectFile::isSectionData().
|
inline |
Whether this section is a debug section.
Definition at line 520 of file ObjectFile.h.
References llvm::object::ObjectFile::isDebugSection().
|
inline |
Definition at line 508 of file ObjectFile.h.
References llvm::object::ObjectFile::isSectionStripped().
|
inline |
Whether this section contains instructions.
Definition at line 488 of file ObjectFile.h.
References llvm::object::ObjectFile::isSectionText().
Referenced by llvm::RuntimeDyldMachO::getRelocationValueRef(), and llvm::RuntimeDyldMachO::processScatteredVANILLA().
|
inline |
Definition at line 500 of file ObjectFile.h.
References llvm::object::ObjectFile::isSectionVirtual().
|
inline |
Definition at line 452 of file ObjectFile.h.
References llvm::object::ObjectFile::moveSectionNext().
|
inline |
Definition at line 443 of file ObjectFile.h.
References Other.
|
inline |
Definition at line 447 of file ObjectFile.h.
|
inline |
Definition at line 438 of file ObjectFile.h.
References Other.
|
inline |
Definition at line 524 of file ObjectFile.h.
References llvm::object::ObjectFile::section_rel_begin().
Referenced by relocations().
|
inline |
Definition at line 528 of file ObjectFile.h.
References llvm::object::ObjectFile::section_rel_end().
Referenced by relocations().
|
inline |
Definition at line 132 of file ObjectFile.h.
References llvm::make_range(), relocation_begin(), and relocation_end().
|
friend |
Definition at line 81 of file ObjectFile.h.