20 #ifndef LLVM_BINARYFORMAT_ELF_H
21 #define LLVM_BINARYFORMAT_ELF_H
44 static const char ElfMagic[] = {0x7f,
'E',
'L',
'F',
'\0'};
363 #define ELF_RELOC(name, value) name = value,
367 #include "ELFRelocs/x86_64.def"
372 #include "ELFRelocs/i386.def"
377 #include "ELFRelocs/PowerPC.def"
396 return ((1 << Val) >> 2) << 2;
400 (Offset >= 4 * 4 ? (Offset >= 8 * 4 ? (Offset >= 16 * 4 ? 6 : 5) : 4)
401 : (Offset >= 2 * 4 ? 3 : (Offset >= 1 * 4 ? 2 : 0)));
407 #include "ELFRelocs/PowerPC64.def"
412 #include "ELFRelocs/AArch64.def"
430 #include "ELFRelocs/ARM.def"
457 #include "ELFRelocs/AVR.def"
524 #include "ELFRelocs/Mips.def"
586 #include "ELFRelocs/Hexagon.def"
591 #include "ELFRelocs/Lanai.def"
596 #include "ELFRelocs/RISCV.def"
601 #include "ELFRelocs/SystemZ.def"
606 #include "ELFRelocs/Sparc.def"
611 #include "ELFRelocs/WebAssembly.def"
616 #include "ELFRelocs/AMDGPU.def"
621 #include "ELFRelocs/BPF.def"
840 st_info = (b << 4) + (t & 0x0f);
860 st_info = (b << 4) + (t & 0x0f);
1364 #endif // LLVM_BINARYFORMAT_ELF_H
void setSymbolAndType(Elf32_Word s, unsigned char t)
Elf64_Word getSymbol() const
void setSymbolAndType(Elf32_Word s, unsigned char t)
void setType(unsigned char t)
Elf64_Word getType() const
unsigned char getBinding() const
void setSymbolAndType(Elf64_Word s, Elf64_Word t)
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
All sections with the "d" flag are grouped together by the linker to form the data section and the dp...
unsigned char getBinding() const
void setSymbolAndType(Elf64_Word s, Elf64_Word t)
union llvm::ELF::Elf64_Dyn::@93 d_un
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)
All sections with the "c" flag are grouped together by the linker to form the constant pool and the c...
union llvm::ELF::Elf32_Dyn::@92 d_un
void setSymbol(Elf64_Word s)
void setBindingAndType(unsigned char b, unsigned char t)
unsigned char getDataEncoding() const
void setSymbol(Elf32_Word s)
void setBinding(unsigned char b)