class Segment

Declaration

class Segment { /* full declaration omitted */ };

Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:437

Member Variables

public uint32_t Type = 0
public uint32_t Flags = 0
public uint64_t Offset = 0
public uint64_t VAddr = 0
public uint64_t PAddr = 0
public uint64_t FileSize = 0
public uint64_t MemSize = 0
public uint64_t Align = 0
public uint32_t Index = 0
public uint64_t OriginalOffset = 0
public llvm::objcopy::elf::Segment* ParentSegment = nullptr
public ArrayRef<uint8_t> Contents
public std::set<const SectionBase*, SectionCompare> Sections

Method Overview

  • public Segment(ArrayRef<uint8_t> Data)
  • public Segment()
  • public void addSection(const llvm::objcopy::elf::SectionBase * Sec)
  • public const llvm::objcopy::elf::SectionBase * firstSection() const
  • public ArrayRef<uint8_t> getContents() const
  • public void removeSection(const llvm::objcopy::elf::SectionBase * Sec)

Methods

Segment(ArrayRef<uint8_t> Data)

Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:466

Parameters

ArrayRef<uint8_t> Data

Segment()

Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:467

void addSection(
    const llvm::objcopy::elf::SectionBase* Sec)

Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:476

Parameters

const llvm::objcopy::elf::SectionBase* Sec

const llvm::objcopy::elf::SectionBase*
firstSection() const

Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:469

ArrayRef<uint8_t> getContents() const

Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:478

void removeSection(
    const llvm::objcopy::elf::SectionBase* Sec)

Declared at: llvm/lib/ObjCopy/ELF/ELFObject.h:475

Parameters

const llvm::objcopy::elf::SectionBase* Sec