23 BPFELFObjectWriter(uint8_t OSABI);
24 ~BPFELFObjectWriter()
override =
default;
28 const MCFixup &Fixup,
bool IsPCRel)
const override;
33 BPFELFObjectWriter::BPFELFObjectWriter(uint8_t OSABI)
41 switch ((
unsigned)Fixup.
getKind()) {
45 return ELF::R_BPF_64_64;
47 return ELF::R_BPF_64_32;
49 return ELF::R_BPF_64_64;
51 return ELF::R_BPF_64_32;
56 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)...
static unsigned getRelocType(const MCValue &Target, const MCFixupKind FixupKind, const bool IsPCRel)
Translates generic PPC fixup kind to Mach-O/PPC relocation type enum.
A four-byte section relative fixup.
Context object for machine code objects.
Function Alias Analysis false
MCFixupKind getKind() const
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
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.