/external/llvm/lib/Object/ |
H A D | ELF.cpp | 1 //===- ELF.cpp - ELF object file implementation -----------------*- C++ -*-===// 10 #include "llvm/Object/ELF.h" 16 case ELF::name: \ 21 case ELF::EM_X86_64: 28 case ELF::EM_386: 35 case ELF::EM_MIPS: 42 case ELF::EM_AARCH64: 49 case ELF::EM_ARM: 56 case ELF [all...] |
H A D | ELFObjectFile.cpp | 1 //===- ELFObjectFile.cpp - ELF object file implementation -------*- C++ -*-===// 32 if (Ident.first == ELF::ELFCLASS32 && Ident.second == ELF::ELFDATA2LSB) 42 else if (Ident.first == ELF::ELFCLASS32 && Ident.second == ELF::ELFDATA2MSB) 52 else if (Ident.first == ELF::ELFCLASS64 && Ident.second == ELF::ELFDATA2MSB) 62 else if (Ident.first == ELF::ELFCLASS64 && Ident.second == ELF::ELFDATA2LSB) { 74 llvm_unreachable("Buffer is not an ELF objec [all...] |
/external/llvm/include/llvm/MC/ |
H A D | MCELFSymbolFlags.h | 1 //===- MCELFSymbolFlags.h - ELF Symbol Flags ----------------*- C++ -*-===// 10 // This file declares the SymbolFlags used for the ELF target. 17 #include "llvm/Support/ELF.h" 31 ELF_STB_Local = (ELF::STB_LOCAL << ELF_STB_Shift), 32 ELF_STB_Global = (ELF::STB_GLOBAL << ELF_STB_Shift), 33 ELF_STB_Weak = (ELF::STB_WEAK << ELF_STB_Shift), 34 ELF_STB_Loproc = (ELF::STB_LOPROC << ELF_STB_Shift), 35 ELF_STB_Hiproc = (ELF::STB_HIPROC << ELF_STB_Shift), 37 ELF_STT_Notype = (ELF::STT_NOTYPE << ELF_STT_Shift), 38 ELF_STT_Object = (ELF [all...] |
/external/llvm/lib/Target/Sparc/MCTargetDesc/ |
H A D | SparcELFObjectWriter.cpp | 1 //===-- SparcELFObjectWriter.cpp - Sparc ELF Writer -----------------------===// 26 Is64Bit ? ELF::EM_SPARCV9 : ELF::EM_SPARC, 43 return ELF::R_SPARC_DISP32; 50 case FK_Data_1: return ELF::R_SPARC_DISP8; 51 case FK_Data_2: return ELF::R_SPARC_DISP16; 52 case FK_Data_4: return ELF::R_SPARC_DISP32; 53 case FK_Data_8: return ELF::R_SPARC_DISP64; 54 case Sparc::fixup_sparc_call30: return ELF::R_SPARC_WDISP30; 55 case Sparc::fixup_sparc_br22: return ELF [all...] |
/external/llvm/lib/Target/AArch64/MCTargetDesc/ |
H A D | AArch64ELFObjectWriter.cpp | 1 //===-- AArch64ELFObjectWriter.cpp - AArch64 ELF Writer -------------------===// 10 // This file handles ELF-specific object emission, converting LLVM's internal 41 : MCELFObjectTargetWriter(/*Is64Bit*/ true, OSABI, ELF::EM_AARCH64, 65 return ELF::R_AARCH64_PREL16; 67 return ELF::R_AARCH64_PREL32; 69 return ELF::R_AARCH64_PREL64; 72 return ELF::R_AARCH64_ADR_PREL_LO21; 75 return ELF::R_AARCH64_ADR_PREL_PG_HI21; 77 return ELF::R_AARCH64_ADR_GOT_PAGE; 79 return ELF [all...] |
/external/llvm/lib/Target/PowerPC/MCTargetDesc/ |
H A D | PPCELFObjectWriter.cpp | 1 //===-- PPCELFObjectWriter.cpp - PPC ELF Writer ---------------------------===// 38 Is64Bit ? ELF::EM_PPC64 : ELF::EM_PPC, 85 Type = ELF::R_PPC_REL24; 88 Type = ELF::R_PPC_PLTREL24; 91 Type = ELF::R_PPC_LOCAL24PC; 97 Type = ELF::R_PPC_REL14; 103 Type = ELF::R_PPC_REL16; 106 Type = ELF::R_PPC_REL16_LO; 109 Type = ELF [all...] |
/external/llvm/lib/MC/ |
H A D | MCELF.cpp | 1 //===- lib/MC/MCELF.cpp - MC ELF ------------------------------------------===// 10 // This file implements ELF object file writer information. 18 #include "llvm/Support/ELF.h" 23 assert(Binding == ELF::STB_LOCAL || Binding == ELF::STB_GLOBAL || 24 Binding == ELF::STB_WEAK || Binding == ELF::STB_GNU_UNIQUE); 31 assert(Binding == ELF::STB_LOCAL || Binding == ELF::STB_GLOBAL || 32 Binding == ELF [all...] |
H A D | MCSectionELF.cpp | 1 //===- lib/MC/MCSectionELF.cpp - ELF Code Section Representation ----------===// 15 #include "llvm/Support/ELF.h" 78 !(Flags & ELF::SHF_MERGE)) { 79 if (Flags & ELF::SHF_ALLOC) 81 if (Flags & ELF::SHF_EXECINSTR) 83 if (Flags & ELF::SHF_WRITE) 85 if (Flags & ELF::SHF_EXCLUDE) 87 if (Flags & ELF::SHF_TLS) 94 if (Flags & ELF::SHF_ALLOC) 96 if (Flags & ELF [all...] |
H A D | MCAsmInfoELF.cpp | 1 //===-- MCAsmInfoELF.cpp - ELF asm properties -------------------*- C++ -*-===// 11 // should take in general on ELF-based targets 18 #include "llvm/Support/ELF.h" 25 return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS, 0);
|
H A D | MCObjectFileInfo.cpp | 386 EHSectionType = ELF::SHT_PROGBITS; 387 EHSectionFlags = ELF::SHF_ALLOC; 390 EHSectionType = ELF::SHT_X86_64_UNWIND; 392 EHSectionFlags |= ELF::SHF_WRITE; 396 // ELF 397 BSSSection = Ctx->getELFSection(".bss", ELF::SHT_NOBITS, 398 ELF::SHF_WRITE | ELF::SHF_ALLOC); 400 TextSection = Ctx->getELFSection(".text", ELF::SHT_PROGBITS, 401 ELF [all...] |
/external/llvm/tools/llvm-readobj/ |
H A D | ELFDumper.cpp | 1 //===-- ELFDumper.cpp - ELF-specific dumper ---------------------*- C++ -*-===// 11 /// \brief This file implements the ELF-specific dumper for llvm-readobj. 33 using namespace ELF; 174 { "None", ELF::ELFCLASSNONE }, 175 { "32-bit", ELF::ELFCLASS32 }, 176 { "64-bit", ELF::ELFCLASS64 }, 180 { "None", ELF::ELFDATANONE }, 181 { "LittleEndian", ELF::ELFDATA2LSB }, 182 { "BigEndian", ELF::ELFDATA2MSB }, 186 { "None", ELF [all...] |
/external/llvm/lib/Target/XCore/ |
H A D | XCoreTargetObjectFile.cpp | 15 #include "llvm/Support/ELF.h" 24 BSSSection = Ctx.getELFSection(".dp.bss", ELF::SHT_NOBITS, 25 ELF::SHF_ALLOC | ELF::SHF_WRITE | 26 ELF::XCORE_SHF_DP_SECTION); 27 BSSSectionLarge = Ctx.getELFSection(".dp.bss.large", ELF::SHT_NOBITS, 28 ELF::SHF_ALLOC | ELF::SHF_WRITE | 29 ELF::XCORE_SHF_DP_SECTION); 30 DataSection = Ctx.getELFSection(".dp.data", ELF [all...] |
/external/llvm/lib/Target/SystemZ/MCTargetDesc/ |
H A D | SystemZMCObjectWriter.cpp | 1 //===-- SystemZMCObjectWriter.cpp - SystemZ ELF writer --------------------===// 33 : MCELFObjectTargetWriter(/*Is64Bit=*/true, OSABI, ELF::EM_S390, 42 case FK_Data_1: return ELF::R_390_8; 43 case FK_Data_2: return ELF::R_390_16; 44 case FK_Data_4: return ELF::R_390_32; 45 case FK_Data_8: return ELF::R_390_64; 53 case FK_Data_2: return ELF::R_390_PC16; 54 case FK_Data_4: return ELF::R_390_PC32; 55 case FK_Data_8: return ELF::R_390_PC64; 56 case SystemZ::FK_390_PC16DBL: return ELF [all...] |
/external/llvm/lib/Target/Mips/MCTargetDesc/ |
H A D | MipsELFObjectWriter.cpp | 1 //===-- MipsELFObjectWriter.cpp - Mips ELF Writer -------------------------===// 58 : MCELFObjectTargetWriter(_is64Bit, OSABI, ELF::EM_MIPS, 68 unsigned Type = (unsigned)ELF::R_MIPS_NONE; 76 Type = ELF::R_MIPS_32; 80 Type = ELF::R_MIPS_64; 84 Type = setRType((unsigned)ELF::R_MIPS_GPREL32, Type); 85 Type = setRType2((unsigned)ELF::R_MIPS_64, Type); 86 Type = setRType3((unsigned)ELF::R_MIPS_NONE, Type); 89 Type = ELF::R_MIPS_GPREL32; 92 Type = ELF [all...] |
H A D | MipsOptionRecord.cpp | 32 Context.getELFSection(".MIPS.options", ELF::SHT_MIPS_OPTIONS, 33 ELF::SHF_ALLOC | ELF::SHF_MIPS_NOSTRIP, 1, ""); 37 Streamer->EmitIntValue(ELF::ODK_REGINFO, 1); // kind 50 ".reginfo", ELF::SHT_MIPS_REGINFO, ELF::SHF_ALLOC, 24, "");
|
/external/llvm/lib/Target/X86/MCTargetDesc/ |
H A D | X86ELFObjectWriter.cpp | 1 //===-- X86ELFObjectWriter.cpp - X86 ELF Writer ---------------------------===// 15 #include "llvm/Support/ELF.h" 37 /*HasRelocationAddend*/ EMachine != ELF::EM_386) {} 85 return IsPCRel ? ELF::R_X86_64_PC64 : ELF::R_X86_64_64; 87 return IsPCRel ? ELF::R_X86_64_PC32 : ELF::R_X86_64_32; 89 return ELF::R_X86_64_32S; 91 return IsPCRel ? ELF::R_X86_64_PC16 : ELF [all...] |
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
H A D | ARMELFObjectWriter.cpp | 1 //===-- ARMELFObjectWriter.cpp - ARM ELF Writer ---------------------------===// 47 ELF::EM_ARM, 61 case ELF::R_ARM_PREL31: 62 case ELF::R_ARM_ABS32: 86 return ELF::R_ARM_NONE; 91 Type = ELF::R_ARM_REL32; 96 Type = ELF::R_ARM_TLS_IE32; 99 Type = ELF::R_ARM_GOT_PREL; 107 Type = ELF::R_ARM_CALL; 110 Type = ELF [all...] |
/external/llvm/test/DebugInfo/X86/ |
H A D | dbg-asm.s | 6 # RUN: | llvm-readobj -r - | FileCheck -check-prefix CHECK-ELF %s 22 # CHECK-ELF: Relocations [ 23 # CHECK-ELF: Section {{.*}} .rel.debug_info { 24 # CHECK-ELF: 0x6 R_386_32 .debug_abbrev 25 # CHECK-ELF: 0xC R_386_32 .debug_line 26 # CHECK-ELF: } 27 # CHECK-ELF: Section {{.*}} .rel.debug_aranges { 28 # CHECK-ELF: 0x6 R_386_32 .debug_info 29 # CHECK-ELF: } 30 # CHECK-ELF [all...] |
/external/llvm/tools/llvm-objdump/ |
H A D | ELFDump.cpp | 1 //===-- ELFDump.cpp - ELF-specific dumper -----------------------*- C++ -*-===// 11 /// \brief This file implements the ELF-specific dumper for llvm-objdump. 31 case ELF::PT_LOAD: 34 case ELF::PT_GNU_STACK: 37 case ELF::PT_GNU_EH_FRAME: 40 case ELF::PT_INTERP: 43 case ELF::PT_DYNAMIC: 46 case ELF::PT_PHDR: 49 case ELF::PT_TLS: 70 << ((pi->p_flags & ELF [all...] |
/external/llvm/lib/Target/BPF/MCTargetDesc/ |
H A D | BPFELFObjectWriter.cpp | 1 //===-- BPFELFObjectWriter.cpp - BPF ELF Writer ---------------------------===// 31 : MCELFObjectTargetWriter(/*Is64Bit*/ true, OSABI, ELF::EM_NONE, 44 return ELF::R_X86_64_64; 46 return ELF::R_X86_64_PC32;
|
/external/llvm/lib/Target/Hexagon/MCTargetDesc/ |
H A D | HexagonELFObjectWriter.cpp | 36 : MCELFObjectTargetWriter(/*Is64bit*/ false, OSABI, ELF::EM_HEXAGON, 43 unsigned Type = (unsigned)ELF::R_HEX_NONE; 52 Type = (IsPCRel) ? ELF::R_HEX_32_PCREL : ELF::R_HEX_32;
|
/external/llvm/lib/MC/MCParser/ |
H A D | ELFAsmParser.cpp | 1 //===- ELFAsmParser.cpp - ELF Assembly Parser -----------------------------===// 20 #include "llvm/Support/ELF.h" 83 return ParseSectionSwitch(".data", ELF::SHT_PROGBITS, 84 ELF::SHF_WRITE |ELF::SHF_ALLOC, 88 return ParseSectionSwitch(".text", ELF::SHT_PROGBITS, 89 ELF::SHF_EXECINSTR | 90 ELF::SHF_ALLOC, SectionKind::getText()); 93 return ParseSectionSwitch(".bss", ELF::SHT_NOBITS, 94 ELF [all...] |
/external/llvm/test/MC/AsmParser/ |
H A D | align_invalid.s | 1 # RUN: not llvm-mc -triple i386-linux-gnu < %s 2>&1 | FileCheck %s -check-prefix=ELF 5 # ELF: error: alignment must be a power of 2 9 # ELF-NOT: error
|
/external/llvm/include/llvm/Object/ |
H A D | ELFObjectFile.h | 1 //===- ELFObjectFile.h - ELF object file implementation ---------*- C++ -*-===// 22 #include "llvm/Object/ELF.h" 25 #include "llvm/Support/ELF.h" 187 if ((Binding == ELF::STB_GLOBAL || Binding == ELF::STB_WEAK) && 188 (Visibility == ELF::STV_DEFAULT || Visibility == ELF::STV_PROTECTED)) 246 // ELF files in archives. 298 case ELF::SHN_COMMON: 299 case ELF [all...] |
/external/llvm/lib/Target/Hexagon/ |
H A D | HexagonTargetObjectFile.cpp | 23 #include "llvm/Support/ELF.h" 37 ".sdata", ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC); 38 SmallBSSSection = getContext().getELFSection(".sbss", ELF::SHT_NOBITS, 39 ELF::SHF_WRITE | ELF::SHF_ALLOC); 95 // Otherwise, we work the same as ELF.
|