class Section
Declaration
class Section : public SectionBase { /* full declaration omitted */ };
Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:481
Inherits from: SectionBase
Member Variables
- private ArrayRef<uint8_t> Contents
- private llvm::objcopy::elf::SectionBase* LinkSection = nullptr
Inherited from SectionBase:
- public Name
- public ParentSegment = nullptr
- public HeaderOffset = 0
- public Index = 0
- public OriginalIndex = 0
- public OriginalFlags = 0
- public OriginalType = ELF::SHT_NULL
- public OriginalOffset = std::numeric_limits<unsigned long>::max()
- public Addr = 0
- public Align = 1
- public EntrySize = 0
- public Flags = 0
- public Info = 0
- public Link = ELF::SHN_UNDEF
- public NameIndex = 0
- public Offset = 0
- public Size = 0
- public Type = ELF::SHT_NULL
- public OriginalData
- public HasSymbol = false
Method Overview
- public Section(ArrayRef<uint8_t> Data)
- public llvm::Error accept(llvm::objcopy::elf::SectionVisitor & Visitor) const
- public llvm::Error accept(llvm::objcopy::elf::MutableSectionVisitor & Visitor)
- public void finalize()
- public bool hasContents() const
- public llvm::Error initialize(llvm::objcopy::elf::SectionTableRef SecTable)
- public llvm::Error removeSectionReferences(bool AllowBrokenLinks, function_ref<bool (const llvm::objcopy::elf::SectionBase *)> ToRemove)
Inherited from SectionBase:
- public accept
- public accept
- public finalize
- public hasContents
- public initialize
- public markSymbols
- public onRemove
- public removeSectionReferences
- public removeSymbols
- public replaceSectionReferences
Methods
¶Section(ArrayRef<uint8_t> Data)
Section(ArrayRef<uint8_t> Data)
Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:488
Parameters
- ArrayRef<uint8_t> Data
¶llvm::Error accept(
llvm::objcopy::elf::SectionVisitor& Visitor)
const
llvm::Error accept(
llvm::objcopy::elf::SectionVisitor& Visitor)
const
Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:490
Parameters
- llvm::objcopy::elf::SectionVisitor& Visitor
¶llvm::Error accept(
llvm::objcopy::elf::MutableSectionVisitor&
Visitor)
llvm::Error accept(
llvm::objcopy::elf::MutableSectionVisitor&
Visitor)
Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:491
Parameters
¶void finalize()
void finalize()
Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:496
¶bool hasContents() const
bool hasContents() const
Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:497
¶llvm::Error initialize(
llvm::objcopy::elf::SectionTableRef SecTable)
llvm::Error initialize(
llvm::objcopy::elf::SectionTableRef SecTable)
Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:495
Parameters
- llvm::objcopy::elf::SectionTableRef SecTable
¶llvm::Error removeSectionReferences(
bool AllowBrokenLinks,
function_ref<bool(
const llvm::objcopy::elf::SectionBase*)>
ToRemove)
llvm::Error removeSectionReferences(
bool AllowBrokenLinks,
function_ref<bool(
const llvm::objcopy::elf::SectionBase*)>
ToRemove)
Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:492
Parameters
- bool AllowBrokenLinks
- function_ref<bool( const llvm::objcopy::elf::SectionBase*)> ToRemove