class IHexSectionWriterBase

Declaration

class IHexSectionWriterBase : public BinarySectionWriter { /* full declaration omitted */ };

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

Inherits from: BinarySectionWriter

Member Variables

private uint32_t SegmentAddr = 0
private uint32_t BaseAddr = 0
protected uint64_t Offset = 0

Inherited from SectionWriter:

protected Out

Method Overview

  • public IHexSectionWriterBase(llvm::WritableMemoryBuffer & Buf)
  • public uint64_t getBufferOffset() const
  • public llvm::Error visit(const llvm::objcopy::elf::Section & Sec)
  • public llvm::Error visit(const llvm::objcopy::elf::OwnedDataSection & Sec)
  • public llvm::Error visit(const llvm::objcopy::elf::StringTableSection & Sec)
  • public llvm::Error visit(const llvm::objcopy::elf::DynamicRelocationSection & Sec)
  • private uint64_t writeBaseAddr(uint64_t Addr)
  • protected virtual void writeData(uint8_t Type, uint16_t Addr, ArrayRef<uint8_t> Data)
  • protected void writeSection(const llvm::objcopy::elf::SectionBase * Sec, ArrayRef<uint8_t> Data)
  • private uint64_t writeSegmentAddr(uint64_t Addr)

Inherited from BinarySectionWriter:

Inherited from SectionWriter:

Inherited from SectionVisitor:

Methods

IHexSectionWriterBase(
    llvm::WritableMemoryBuffer& Buf)

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

Parameters

llvm::WritableMemoryBuffer& Buf

uint64_t getBufferOffset() const

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

llvm::Error visit(
    const llvm::objcopy::elf::Section& Sec)

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

Parameters

const llvm::objcopy::elf::Section& Sec

llvm::Error visit(
    const llvm::objcopy::elf::OwnedDataSection&
        Sec)

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

Parameters

const llvm::objcopy::elf::OwnedDataSection& Sec

llvm::Error visit(
    const llvm::objcopy::elf::StringTableSection&
        Sec)

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

Parameters

const llvm::objcopy::elf::StringTableSection& Sec

llvm::Error visit(
    const llvm::objcopy::elf::
        DynamicRelocationSection& Sec)

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

Parameters

const llvm::objcopy::elf:: DynamicRelocationSection& Sec

uint64_t writeBaseAddr(uint64_t Addr)

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

Parameters

uint64_t Addr

virtual void writeData(uint8_t Type,
                       uint16_t Addr,
                       ArrayRef<uint8_t> Data)

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

Parameters

uint8_t Type
uint16_t Addr
ArrayRef<uint8_t> Data

void writeSection(
    const llvm::objcopy::elf::SectionBase* Sec,
    ArrayRef<uint8_t> Data)

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

Parameters

const llvm::objcopy::elf::SectionBase* Sec
ArrayRef<uint8_t> Data

uint64_t writeSegmentAddr(uint64_t Addr)

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

Parameters

uint64_t Addr