LLVM
15.0.0git
|
#include "ObjCopy/ELF/ELFObject.h"
Public Member Functions | |
GroupSection (ArrayRef< uint8_t > Data) | |
void | setSymTab (const SymbolTableSection *SymTabSec) |
void | setSymbol (Symbol *S) |
void | setFlagWord (ELF::Elf32_Word W) |
void | addMember (SectionBase *Sec) |
Error | accept (SectionVisitor &) const override |
Error | accept (MutableSectionVisitor &Visitor) override |
void | finalize () override |
Error | removeSectionReferences (bool AllowBrokenLinks, function_ref< bool(const SectionBase *)> ToRemove) override |
Error | removeSymbols (function_ref< bool(const Symbol &)> ToRemove) override |
void | markSymbols () override |
void | replaceSectionReferences (const DenseMap< SectionBase *, SectionBase * > &FromTo) override |
void | onRemove () override |
![]() | |
SectionBase ()=default | |
SectionBase (const SectionBase &)=default | |
virtual | ~SectionBase ()=default |
virtual Error | initialize (SectionTableRef SecTable) |
virtual bool | hasContents () const |
Static Public Member Functions | |
static bool | classof (const SectionBase *S) |
Public Attributes | |
ArrayRef< uint8_t > | Contents |
![]() | |
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 |
Definition at line 807 of file ELFObject.h.
|
inlineexplicit |
Definition at line 819 of file ELFObject.h.
References llvm::Data.
|
overridevirtual |
Implements llvm::objcopy::elf::SectionBase.
Definition at line 1183 of file ELFObject.cpp.
References llvm::objcopy::elf::MutableSectionVisitor::visit().
|
overridevirtual |
Implements llvm::objcopy::elf::SectionBase.
Definition at line 1179 of file ELFObject.cpp.
References llvm::objcopy::elf::SectionVisitor::visit().
|
inline |
Definition at line 824 of file ELFObject.h.
|
inlinestatic |
Definition at line 838 of file ELFObject.h.
References S, and llvm::ELF::SHT_GROUP.
|
overridevirtual |
Reimplemented from llvm::objcopy::elf::SectionBase.
Definition at line 1052 of file ELFObject.cpp.
References llvm::objcopy::elf::Symbol::Binding, llvm::ELF::GRP_COMDAT, llvm::objcopy::elf::SectionBase::Index, llvm::objcopy::elf::Symbol::Index, llvm::objcopy::elf::SectionBase::Info, llvm::objcopy::elf::SectionBase::Link, and llvm::ELF::STB_LOCAL.
|
overridevirtual |
Reimplemented from llvm::objcopy::elf::SectionBase.
Definition at line 1088 of file ELFObject.cpp.
References llvm::objcopy::elf::Symbol::Referenced.
|
overridevirtual |
Reimplemented from llvm::objcopy::elf::SectionBase.
Definition at line 1100 of file ELFObject.cpp.
References llvm::objcopy::elf::SectionBase::Flags, and llvm::ELF::SHF_GROUP.
|
overridevirtual |
Reimplemented from llvm::objcopy::elf::SectionBase.
Definition at line 1063 of file ELFObject.cpp.
References llvm::createStringError(), llvm::erase_if(), llvm::invalid_argument, llvm::objcopy::elf::SectionBase::Name, llvm::Error::success(), and ToRemove.
|
overridevirtual |
Reimplemented from llvm::objcopy::elf::SectionBase.
Definition at line 1079 of file ELFObject.cpp.
References llvm::createStringError(), llvm::invalid_argument, llvm::objcopy::elf::Symbol::Name, llvm::Error::success(), this, and ToRemove.
|
overridevirtual |
Reimplemented from llvm::objcopy::elf::SectionBase.
Definition at line 1093 of file ELFObject.cpp.
|
inline |
Definition at line 823 of file ELFObject.h.
References llvm::RISCVFenceField::W.
|
inline |
Definition at line 822 of file ELFObject.h.
References S.
|
inline |
Definition at line 821 of file ELFObject.h.
ArrayRef<uint8_t> llvm::objcopy::elf::GroupSection::Contents |
Definition at line 817 of file ELFObject.h.