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' };
356 #define ELF_RELOC(name, value) name = value,
360 #include "ELFRelocs/x86_64.def"
365 #include "ELFRelocs/i386.def"
370 #include "ELFRelocs/PowerPC.def"
387 static inline int64_t
390 return ((1 << Val) >> 2) << 2;
392 static inline unsigned
394 unsigned Val = (Offset >= 4 * 4
396 ? (Offset >= 16 * 4 ? 6 : 5)
400 : (Offset >= 1 * 4 ? 2 : 0)));
406 #include "ELFRelocs/PowerPC64.def"
411 #include "ELFRelocs/AArch64.def"
429 #include "ELFRelocs/ARM.def"
497 #include "ELFRelocs/Mips.def"
555 #include "ELFRelocs/Hexagon.def"
560 #include "ELFRelocs/SystemZ.def"
565 #include "ELFRelocs/Sparc.def"
776 st_info = (b << 4) + (t & 0x0f);
796 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)
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
union llvm::ELF::Elf64_Dyn::@158 d_un
void setType(unsigned char t)
void setBinding(unsigned char b)
void setSymbol(Elf64_Word s)
unsigned char getDataEncoding() const
unsigned char getBinding() const
void setSymbolAndType(Elf64_Word s, Elf64_Word t)
Elf32_Word getSymbol() const
union llvm::ELF::Elf32_Dyn::@157 d_un
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)
XCORE_SHF_CP_SECTION - All sections with the "c" flag are grouped together by the linker to form the ...
void setBindingAndType(unsigned char b, unsigned char t)
unsigned char getDataEncoding() const
XCORE_SHF_DP_SECTION - All sections with the "d" flag are grouped together by the linker to form the ...
void setSymbol(Elf32_Word s)
void setBinding(unsigned char b)