/frameworks/compile/mclinker/lib/LD/ |
D | ELFFileFormat.cpp | 71 llvm::ELF::SHT_PROGBITS, in initStdSections() 72 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_EXECINSTR, in initStdSections() 76 llvm::ELF::SHT_NULL, in initStdSections() 80 llvm::ELF::SHT_PROGBITS, in initStdSections() 81 llvm::ELF::SHF_ALLOC, in initStdSections() 86 llvm::ELF::SHT_NOBITS, in initStdSections() 87 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initStdSections() 91 llvm::ELF::SHT_PROGBITS, in initStdSections() 96 llvm::ELF::SHT_PROGBITS, in initStdSections() 97 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initStdSections() [all …]
|
D | ELFDynObjFileFormat.cpp | 22 llvm::ELF::SHT_DYNSYM, in initObjectFormat() 23 llvm::ELF::SHF_ALLOC, in initObjectFormat() 27 llvm::ELF::SHT_STRTAB, in initObjectFormat() 28 llvm::ELF::SHF_ALLOC, in initObjectFormat() 32 llvm::ELF::SHT_PROGBITS, in initObjectFormat() 33 llvm::ELF::SHF_ALLOC, in initObjectFormat() 37 llvm::ELF::SHT_HASH, in initObjectFormat() 38 llvm::ELF::SHF_ALLOC, in initObjectFormat() 42 llvm::ELF::SHT_DYNAMIC, in initObjectFormat() 43 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initObjectFormat() [all …]
|
D | ELFExecFileFormat.cpp | 23 llvm::ELF::SHT_DYNSYM, in initObjectFormat() 24 llvm::ELF::SHF_ALLOC, in initObjectFormat() 28 llvm::ELF::SHT_STRTAB, in initObjectFormat() 29 llvm::ELF::SHF_ALLOC, in initObjectFormat() 33 llvm::ELF::SHT_PROGBITS, in initObjectFormat() 34 llvm::ELF::SHF_ALLOC, in initObjectFormat() 38 llvm::ELF::SHT_HASH, in initObjectFormat() 39 llvm::ELF::SHF_ALLOC, in initObjectFormat() 43 llvm::ELF::SHT_DYNAMIC, in initObjectFormat() 44 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initObjectFormat() [all …]
|
D | ELFReader.cpp | 47 llvm::ELF::Elf32_Ehdr* hdr = in isELF() 48 reinterpret_cast<llvm::ELF::Elf32_Ehdr*>(pELFHeader); in isELF() 49 if (0 == memcmp(llvm::ELF::ElfMagic, hdr, 4)) in isELF() 73 size_t entsize = pRegion.size()/sizeof(llvm::ELF::Elf32_Sym); in readSymbols() 74 const llvm::ELF::Elf32_Sym* symtab = in readSymbols() 75 reinterpret_cast<const llvm::ELF::Elf32_Sym*>(pRegion.start()); in readSymbols() 110 st_shndx < llvm::ELF::SHN_LORESERVE && in readSymbols() 111 st_shndx != llvm::ELF::SHN_UNDEF) { in readSymbols() 113 st_shndx = llvm::ELF::SHN_UNDEF; in readSymbols() 133 if (st_shndx < llvm::ELF::SHN_LORESERVE) // including ABS and COMMON in readSymbols() [all …]
|
D | ELFReaderIf.cpp | 37 if (llvm::ELF::SHN_ABS == pShndx && ResolveInfo::Section == result) { in getSymType() 51 if (pShndx == llvm::ELF::SHN_UNDEF) in getSymDesc() 54 if (pShndx < llvm::ELF::SHN_LORESERVE) { in getSymDesc() 64 if (pShndx == llvm::ELF::SHN_ABS) in getSymDesc() 67 if (pShndx == llvm::ELF::SHN_COMMON) in getSymDesc() 70 if (pShndx >= llvm::ELF::SHN_LOPROC && in getSymDesc() 71 pShndx <= llvm::ELF::SHN_HIPROC) in getSymDesc() 87 case llvm::ELF::STB_LOCAL: in getSymBinding() 89 case llvm::ELF::STB_GLOBAL: in getSymBinding() 90 if (pShndx == llvm::ELF::SHN_ABS) in getSymBinding() [all …]
|
D | ELFBinaryReader.cpp | 47 llvm::ELF::SHT_NULL, in readBinary() 55 llvm::ELF::SHF_WRITE | llvm::ELF::SHF_ALLOC, in readBinary() 68 llvm::ELF::SHT_STRTAB, in readBinary() 75 llvm::ELF::SHT_SYMTAB, in readBinary() 131 llvm::ELF::SHT_STRTAB, in readBinary()
|
D | ELFSegment.cpp | 42 if ((type() == llvm::ELF::PT_LOAD) && (flag() & llvm::ELF::PF_W) != 0x0) { in isDataSegment() 56 if ((type() == llvm::ELF::PT_LOAD) && (flag() & llvm::ELF::PF_W) != 0x0) { in isBssSegment()
|
/frameworks/compile/mclinker/lib/Target/ |
D | ELFDynamic.cpp | 102 reserveOne(llvm::ELF::DT_SONAME); // DT_SONAME in reserveEntries() 105 reserveOne(llvm::ELF::DT_SYMBOLIC); // DT_SYMBOLIC in reserveEntries() 109 reserveOne(llvm::ELF::DT_INIT); // DT_INIT in reserveEntries() 112 reserveOne(llvm::ELF::DT_FINI); // DT_FINI in reserveEntries() 115 reserveOne(llvm::ELF::DT_INIT_ARRAY); // DT_INIT_ARRAY in reserveEntries() 116 reserveOne(llvm::ELF::DT_INIT_ARRAYSZ); // DT_INIT_ARRAYSZ in reserveEntries() 120 reserveOne(llvm::ELF::DT_FINI_ARRAY); // DT_FINI_ARRAY in reserveEntries() 121 reserveOne(llvm::ELF::DT_FINI_ARRAYSZ); // DT_FINI_ARRAYSZ in reserveEntries() 125 reserveOne(llvm::ELF::DT_HASH); // DT_HASH in reserveEntries() 132 reserveOne(llvm::ELF::DT_SYMTAB); // DT_SYMTAB in reserveEntries() [all …]
|
D | GNULDBackend.cpp | 119 return sizeof(llvm::ELF::Elf32_Ehdr) + in sectionStartOffset() 120 numOfSegments() * sizeof(llvm::ELF::Elf32_Phdr); in sectionStartOffset() 122 return sizeof(llvm::ELF::Elf64_Ehdr) + in sectionStartOffset() 123 numOfSegments() * sizeof(llvm::ELF::Elf64_Phdr); in sectionStartOffset() 575 ELFSegment* exec_start = m_ELFSegmentTable.find(llvm::ELF::PT_LOAD, 0x0, 0x0); in finalizeStandardSymbols() 587 ELFSegment* etext = m_ELFSegmentTable.find(llvm::ELF::PT_LOAD, in finalizeStandardSymbols() 588 llvm::ELF::PF_X, in finalizeStandardSymbols() 589 llvm::ELF::PF_W); in finalizeStandardSymbols() 619 ELFSegment* edata = m_ELFSegmentTable.find(llvm::ELF::PT_LOAD, in finalizeStandardSymbols() 620 llvm::ELF::PF_W, in finalizeStandardSymbols() [all …]
|
D | GNUInfo.cpp | 24 return llvm::ELF::ELFOSABI_FREEBSD; in OSABI() 26 return llvm::ELF::ELFOSABI_LINUX; in OSABI() 28 return llvm::ELF::ELFOSABI_NONE; in OSABI()
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
D | MipsRelocator.cpp | 97 if (0 == (pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC)) in scanRelocation() 146 case llvm::ELF::R_MIPS_NONE: in scanLocalReloc() 147 case llvm::ELF::R_MIPS_16: in scanLocalReloc() 149 case llvm::ELF::R_MIPS_32: in scanLocalReloc() 164 case llvm::ELF::R_MIPS_REL32: in scanLocalReloc() 165 case llvm::ELF::R_MIPS_26: in scanLocalReloc() 166 case llvm::ELF::R_MIPS_HI16: in scanLocalReloc() 167 case llvm::ELF::R_MIPS_LO16: in scanLocalReloc() 168 case llvm::ELF::R_MIPS_PC16: in scanLocalReloc() 169 case llvm::ELF::R_MIPS_SHIFT5: in scanLocalReloc() [all …]
|
D | MipsGNUInfo.h | 34 uint32_t machine() const { return llvm::ELF::EM_MIPS; } in machine() 42 return llvm::ELF::EF_MIPS_ARCH_32R2 | in flags() 43 llvm::ELF::EF_MIPS_NOREORDER | in flags() 44 llvm::ELF::EF_MIPS_PIC | in flags() 45 llvm::ELF::EF_MIPS_CPIC | in flags()
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
D | SizeTraits.h | 52 typedef llvm::ELF::Elf32_Addr Addr; // Program address 53 typedef llvm::ELF::Elf32_Off Off; // File offset 54 typedef llvm::ELF::Elf32_Half Half; 55 typedef llvm::ELF::Elf32_Word Word; 56 typedef llvm::ELF::Elf32_Sword Sword; 58 typedef llvm::ELF::Elf32_Ehdr Ehdr; 59 typedef llvm::ELF::Elf32_Shdr Shdr; 60 typedef llvm::ELF::Elf32_Sym Sym; 61 typedef llvm::ELF::Elf32_Rel Rel; 62 typedef llvm::ELF::Elf32_Rela Rela; [all …]
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
D | ARMRelocator.cpp | 83 rel_entry.setType(llvm::ELF::R_ARM_COPY); in addCopyReloc() 152 case llvm::ELF::R_ARM_RELATIVE: in checkValidReloc() 153 case llvm::ELF::R_ARM_COPY: in checkValidReloc() 154 case llvm::ELF::R_ARM_GLOB_DAT: in checkValidReloc() 155 case llvm::ELF::R_ARM_JUMP_SLOT: in checkValidReloc() 156 case llvm::ELF::R_ARM_ABS32: in checkValidReloc() 157 case llvm::ELF::R_ARM_ABS32_NOI: in checkValidReloc() 158 case llvm::ELF::R_ARM_PC24: in checkValidReloc() 159 case llvm::ELF::R_ARM_TLS_DTPMOD32: in checkValidReloc() 160 case llvm::ELF::R_ARM_TLS_DTPOFF32: in checkValidReloc() [all …]
|
D | ARMToARMStub.cpp | 40 addFixup(8u, -4, llvm::ELF::R_ARM_REL32); in ARMToARMStub() 45 addFixup(4u, 0x0, llvm::ELF::R_ARM_ABS32); in ARMToARMStub() 72 case llvm::ELF::R_ARM_PC24: in isMyDuty() 73 case llvm::ELF::R_ARM_CALL: in isMyDuty() 74 case llvm::ELF::R_ARM_JUMP24: in isMyDuty() 75 case llvm::ELF::R_ARM_PLT32: { in isMyDuty()
|
D | ARMToTHMStub.cpp | 42 addFixup(12u, 0x0, llvm::ELF::R_ARM_REL32); in ARMToTHMStub() 47 addFixup(8u, 0x0, llvm::ELF::R_ARM_ABS32); in ARMToTHMStub() 74 case llvm::ELF::R_ARM_CALL: { in isMyDuty() 86 case llvm::ELF::R_ARM_PC24: in isMyDuty() 87 case llvm::ELF::R_ARM_JUMP24: in isMyDuty() 88 case llvm::ELF::R_ARM_PLT32: { in isMyDuty()
|
D | ARMLDBackend.cpp | 80 llvm::ELF::SHT_ARM_EXIDX, in initTargetSections() 81 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_LINK_ORDER, in initTargetSections() 85 llvm::ELF::SHT_PROGBITS, in initTargetSections() 86 llvm::ELF::SHF_ALLOC, in initTargetSections() 90 llvm::ELF::SHT_ARM_ATTRIBUTES, in initTargetSections() 401 case llvm::ELF::SHT_ARM_ATTRIBUTES: { in mergeSection() 534 case llvm::ELF::R_ARM_PC24: in doRelax() 535 case llvm::ELF::R_ARM_CALL: in doRelax() 536 case llvm::ELF::R_ARM_JUMP24: in doRelax() 537 case llvm::ELF::R_ARM_PLT32: in doRelax() [all …]
|
/frameworks/compile/mclinker/lib/Target/X86/ |
D | X86Relocator.cpp | 72 if (0 == (pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC)) in scanRelocation() 214 case llvm::ELF::R_386_32: in scanLocalReloc() 215 case llvm::ELF::R_386_16: in scanLocalReloc() 216 case llvm::ELF::R_386_8: in scanLocalReloc() 228 case llvm::ELF::R_386_PLT32: in scanLocalReloc() 231 case llvm::ELF::R_386_GOTOFF: in scanLocalReloc() 232 case llvm::ELF::R_386_GOTPC: in scanLocalReloc() 236 case llvm::ELF::R_386_GOT32: in scanLocalReloc() 264 case llvm::ELF::R_386_PC32: in scanLocalReloc() 265 case llvm::ELF::R_386_PC16: in scanLocalReloc() [all …]
|
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
D | HexagonAbsoluteStub.cpp | 42 addFixup(8u, 0x0, llvm::ELF::R_HEX_HI16); in HexagonAbsoluteStub() 43 addFixup(12u, 0x0, llvm::ELF::R_HEX_LO16); in HexagonAbsoluteStub() 67 case llvm::ELF::R_HEX_B22_PCREL: in isMyDuty() 70 case llvm::ELF::R_HEX_B15_PCREL: in isMyDuty() 73 case llvm::ELF::R_HEX_B7_PCREL: in isMyDuty() 76 case llvm::ELF::R_HEX_B13_PCREL: in isMyDuty() 79 case llvm::ELF::R_HEX_B9_PCREL: in isMyDuty()
|
D | HexagonLDBackend.cpp | 53 m_CopyRel(llvm::ELF::R_HEX_COPY) { in HexagonLDBackend() 456 llvm::ELF::SHT_PROGBITS, in initTargetSections() 457 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initTargetSections() 461 llvm::ELF::SHT_PROGBITS, in initTargetSections() 462 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initTargetSections() 468 llvm::ELF::SHT_PROGBITS, in initTargetSections() 469 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initTargetSections() 475 llvm::ELF::SHT_PROGBITS, in initTargetSections() 476 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initTargetSections() 482 llvm::ELF::SHT_PROGBITS, in initTargetSections() [all …]
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | ELFReader.h | 47 typedef llvm::ELF::Elf32_Ehdr ELFHeader; 48 typedef llvm::ELF::Elf32_Shdr SectionHeader; 49 typedef llvm::ELF::Elf32_Sym Symbol; 50 typedef llvm::ELF::Elf32_Rel Rel; 51 typedef llvm::ELF::Elf32_Rela Rela; 137 typedef llvm::ELF::Elf64_Ehdr ELFHeader; 138 typedef llvm::ELF::Elf64_Shdr SectionHeader; 139 typedef llvm::ELF::Elf64_Sym Symbol; 140 typedef llvm::ELF::Elf64_Rel Rel; 141 typedef llvm::ELF::Elf64_Rela Rela;
|
/frameworks/compile/libbcc/lib/ExecutionEngine/ |
D | ELFObjectLoaderImpl.cpp | 67 llvm::ELF::Elf32_Ehdr *elf_header = in prepareDebugImage() 68 reinterpret_cast<llvm::ELF::Elf32_Ehdr *>(pDebugImg); in prepareDebugImage() 77 sizeof(llvm::ELF::Elf32_Shdr) * elf_header->e_shnum) > pDebugImgSize) { in prepareDebugImage() 84 llvm::ELF::Elf32_Shdr *section_header_table = in prepareDebugImage() 85 reinterpret_cast<llvm::ELF::Elf32_Shdr *>( in prepareDebugImage() 89 if (section_header_table[i].sh_flags & llvm::ELF::SHF_ALLOC) { in prepareDebugImage() 94 reinterpret_cast<llvm::ELF::Elf32_Addr>(section->getBuffer()); in prepareDebugImage() 143 elf_type = llvm::ELF::STT_FUNC; in getSymbolNameList()
|
/frameworks/compile/mclinker/include/mcld/Target/ |
D | ELFDynamic.h | 58 typedef llvm::ELF::Elf32_Dyn Pair; 59 typedef llvm::ELF::Elf32_Sym Symbol; 60 typedef llvm::ELF::Elf32_Rel Rel; 61 typedef llvm::ELF::Elf32_Rela Rela; 95 typedef llvm::ELF::Elf64_Dyn Pair; 96 typedef llvm::ELF::Elf64_Sym Symbol; 97 typedef llvm::ELF::Elf64_Rel Rel; 98 typedef llvm::ELF::Elf64_Rela Rela;
|
/frameworks/compile/mclinker/unittests/ |
D | LinkerTest.cpp | 366 llvm::ELF::SHT_NULL, in TEST_F() 372 llvm::ELF::SHT_PROGBITS, in TEST_F() 373 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_EXECINSTR, in TEST_F() 387 llvm::ELF::SHT_REL, in TEST_F() 395 llvm::ELF::SHT_PROGBITS, in TEST_F() 396 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in TEST_F() 402 llvm::ELF::SHT_NOBITS, in TEST_F() 403 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in TEST_F() 410 llvm::ELF::SHT_ARM_ATTRIBUTES, in TEST_F() 467 builder.AddRelocation(*rel_text, llvm::ELF::R_ARM_PLT32, *z1gv, 0x4); in TEST_F()
|
/frameworks/compile/mclinker/lib/Core/ |
D | IRBuilder.cpp | 27 if (pFlag & mcld::ELF::SHF_EXCLUDE) in GetELFSectionKind() 30 if (pFlag & llvm::ELF::SHF_MASKPROC) in GetELFSectionKind() 57 case llvm::ELF::SHT_NULL: in GetELFSectionKind() 59 case llvm::ELF::SHT_INIT_ARRAY: in GetELFSectionKind() 60 case llvm::ELF::SHT_FINI_ARRAY: in GetELFSectionKind() 61 case llvm::ELF::SHT_PREINIT_ARRAY: in GetELFSectionKind() 62 case llvm::ELF::SHT_PROGBITS: in GetELFSectionKind() 64 case llvm::ELF::SHT_SYMTAB: in GetELFSectionKind() 65 case llvm::ELF::SHT_DYNSYM: in GetELFSectionKind() 66 case llvm::ELF::SHT_STRTAB: in GetELFSectionKind() [all …]
|