20 BPFELFObjectWriter(uint8_t OSABI);
22 ~BPFELFObjectWriter()
override;
26 bool IsPCRel)
const override;
30 BPFELFObjectWriter::BPFELFObjectWriter(uint8_t OSABI)
34 BPFELFObjectWriter::~BPFELFObjectWriter() {}
36 unsigned BPFELFObjectWriter::GetRelocType(
const MCValue &
Target,
40 switch ((
unsigned)Fixup.
getKind()) {
44 return ELF::R_X86_64_64;
46 return ELF::R_X86_64_PC32;
51 uint8_t OSABI,
bool IsLittleEndian) {
This represents an "assembler immediate".
MCObjectWriter * createBPFELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI, bool IsLittleEndian)
Defines the object file and target independent interfaces used by the assembler backend to write nati...
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
A four-byte section relative fixup.
MCFixupKind getKind() const
PowerPC TLS Dynamic Call Fixup
Target - Wrapper for Target specific information.
MCObjectWriter * createELFObjectWriter(MCELFObjectTargetWriter *MOTW, raw_pwrite_stream &OS, bool IsLittleEndian)
Construct a new ELF writer instance.
A eight-byte section relative fixup.
An abstract base class for streams implementations that also support a pwrite operation.