LLVM: llvm::objcopy:🧝:RelocationSectionBase Class Reference (original) (raw)

#include "[ObjCopy/ELF/ELFObject.h](ELFObject%5F8h%5Fsource.html)"

Inheritance diagram for llvm::objcopy:🧝:RelocationSectionBase:

[legend]

Public Member Functions
const SectionBase * getSection () const
void setSection (SectionBase *Sec)
StringRef getNamePrefix () const
Public Member Functions inherited from llvm::objcopy:🧝:SectionBase
SectionBase ()=default
SectionBase (const SectionBase &)=default
virtual ~SectionBase ()=default
virtual Error initialize (SectionTableRef SecTable)
virtual void finalize ()
virtual Error removeSectionReferences (bool AllowBrokenLinks, function_ref< bool(const SectionBase *)> ToRemove)
virtual Error removeSymbols (function_ref< bool(const Symbol &)> ToRemove)
virtual Error accept (SectionVisitor &Visitor) const =0
virtual Error accept (MutableSectionVisitor &Visitor)=0
virtual void markSymbols ()
virtual void replaceSectionReferences (const DenseMap< SectionBase *, SectionBase * > &)
virtual bool hasContents () const
virtual ArrayRef< uint8_t > getContents () const
virtual void onRemove ()
virtual void restoreSymTabLink (SymbolTableSection &)
Static Public Member Functions
static bool classof (const SectionBase *S)
Protected Attributes
SectionBase * SecToApplyRel = nullptr
Additional Inherited Members
Public Attributes inherited from llvm::objcopy:🧝:SectionBase
std::string Name
Segment * ParentSegment = nullptr
uint64_t HeaderOffset = 0
uint32_t Index = 0
uint32_t OriginalIndex = 0
uint64_t OriginalFlags = 0
uint64_t OriginalType = ELF::SHT_NULL
uint64_t OriginalOffset = std::numeric_limits<uint64_t>::max()
uint64_t Addr = 0
uint64_t Align = 1
uint32_t EntrySize = 0
uint64_t Flags = 0
uint64_t Info = 0
uint64_t Link = ELF::SHN_UNDEF
uint64_t NameIndex = 0
uint64_t Offset = 0
uint64_t Size = 0
uint64_t Type = ELF::SHT_NULL
ArrayRef< uint8_t > OriginalData
bool HasSymbol = false

Detailed Description

Definition at line 877 of file ELFObject.h.

Member Function Documentation

classof()

bool llvm::objcopy:🧝:RelocationSectionBase::classof ( const SectionBase * S) inlinestatic

Definition at line 887 of file ELFObject.h.

References llvm::is_contained(), llvm::objcopy:🧝:SectionBase::OriginalType, llvm::objcopy:🧝:SectionBase::SectionBase(), llvm::ELF::SHT_CREL, llvm::ELF::SHT_REL, and llvm::ELF::SHT_RELA.

Referenced by llvm::objcopy:🧝:RelocationSection::classof().

getNamePrefix()

StringRef RelocationSectionBase::getNamePrefix ( ) const

Definition at line 886 of file ELFObject.cpp.

References llvm_unreachable, llvm::ELF::SHT_CREL, llvm::ELF::SHT_REL, llvm::ELF::SHT_RELA, and llvm::objcopy:🧝:SectionBase::Type.

getSection()

const SectionBase * llvm::objcopy:🧝:RelocationSectionBase::getSection ( ) const inline

Definition at line 882 of file ELFObject.h.

References llvm::objcopy:🧝:SectionBase::SectionBase(), and SecToApplyRel.

setSection()

void llvm::objcopy:🧝:RelocationSectionBase::setSection ( SectionBase * Sec) inline

Definition at line 883 of file ELFObject.h.

References llvm::objcopy:🧝:SectionBase::SectionBase(), and SecToApplyRel.

Referenced by llvm::objcopy:🧝:RelocSectionWithSymtabBase< SymTabType >::initialize().

Member Data Documentation

SecToApplyRel

SectionBase* llvm::objcopy:🧝:RelocationSectionBase::SecToApplyRel = nullptr protected

Definition at line 879 of file ELFObject.h.

Referenced by llvm::objcopy:🧝:RelocSectionWithSymtabBase< SymTabType >::finalize(), getSection(), llvm::objcopy:🧝:DynamicRelocationSection::removeSectionReferences(), llvm::objcopy:🧝:RelocationSection::replaceSectionReferences(), and setSection().


The documentation for this class was generated from the following files: