20 #ifndef LLVM_SUPPORT_ELF_H
21 #define LLVM_SUPPORT_ELF_H
24 #include "llvm/Support/DataTypes.h"
46 static const char ElfMagic[] = {0x7f,
'E',
'L',
'F',
'\0'};
361 #define ELF_RELOC(name, value) name = value,
365 #include "ELFRelocs/x86_64.def"
370 #include "ELFRelocs/i386.def"
375 #include "ELFRelocs/PowerPC.def"
394 return ((1 << Val) >> 2) << 2;
398 (Offset >= 4 * 4 ? (Offset >= 8 * 4 ? (Offset >= 16 * 4 ? 6 : 5) : 4)
399 : (Offset >= 2 * 4 ? 3 : (Offset >= 1 * 4 ? 2 : 0)));
405 #include "ELFRelocs/PowerPC64.def"
410 #include "ELFRelocs/AArch64.def"
428 #include "ELFRelocs/ARM.def"
455 #include "ELFRelocs/AVR.def"
522 #include "ELFRelocs/Mips.def"
582 #include "ELFRelocs/Hexagon.def"
587 #include "ELFRelocs/Lanai.def"
592 #include "ELFRelocs/RISCV.def"
597 #include "ELFRelocs/SystemZ.def"
602 #include "ELFRelocs/Sparc.def"
607 #include "ELFRelocs/WebAssembly.def"
612 #include "ELFRelocs/AMDGPU.def"
617 #include "ELFRelocs/BPF.def"
839 st_info = (b << 4) + (t & 0x0f);
859 st_info = (b << 4) + (t & 0x0f);
void setSymbolAndType(Elf32_Word s, unsigned char t)
Elf64_Word getSymbol() const
void setSymbolAndType(Elf32_Word s, unsigned char t)
union llvm::ELF::Elf64_Dyn::@182 d_un
void setType(unsigned char t)
Elf64_Word getType() const
unsigned char getBinding() const
void setSymbolAndType(Elf64_Word s, Elf64_Word t)
XCORE_SHF_CP_SECTION - All sections with the "c" flag are grouped together by the linker to form the ...
Elf32_Word getSymbol() const
void setType(Elf64_Word t)
static int64_t decodePPC64LocalEntryOffset(unsigned Other)
static unsigned encodePPC64LocalEntryOffset(int64_t Offset)
unsigned char e_ident[EI_NIDENT]
unsigned char getFileClass() const
unsigned char getFileClass() const
void setType(unsigned char t)
void setBinding(unsigned char b)
void setSymbol(Elf64_Word s)
unsigned char getDataEncoding() const
XCORE_SHF_DP_SECTION - All sections with the "d" flag are grouped together by the linker to form the ...
unsigned char getBinding() const
void setSymbolAndType(Elf64_Word s, Elf64_Word t)
Elf32_Word getSymbol() const
static const char ElfMagic[]
unsigned char getType() const
unsigned char getType() const
void setBindingAndType(unsigned char b, unsigned char t)
void setSymbol(Elf32_Word s)
unsigned char getType() const
unsigned char getType() const
unsigned char e_ident[EI_NIDENT]
void setType(Elf64_Word t)
Elf64_Word getType() const
Elf64_Word getSymbol() const
void setType(unsigned char t)
void setType(unsigned char t)
void setSymbol(Elf64_Word s)
void setBindingAndType(unsigned char b, unsigned char t)
union llvm::ELF::Elf32_Dyn::@181 d_un
unsigned char getDataEncoding() const
void setSymbol(Elf32_Word s)
void setBinding(unsigned char b)