/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() 75 pBuilder.CreateSection("", LDFileFormat::Null, llvm::ELF::SHT_NULL, 0x0); in initStdSections() 78 llvm::ELF::SHT_PROGBITS, in initStdSections() 79 llvm::ELF::SHF_ALLOC, in initStdSections() 85 llvm::ELF::SHT_NOBITS, in initStdSections() 86 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initStdSections() 89 ".comment", LDFileFormat::MetaData, llvm::ELF::SHT_PROGBITS, 0x0, 0x1); in initStdSections() 93 llvm::ELF::SHT_PROGBITS, in initStdSections() 94 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initStdSections() [all …]
|
D | ELFExecFileFormat.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() 43 llvm::ELF::SHT_DYNAMIC, in initObjectFormat() 44 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE, in initObjectFormat() [all …]
|
D | ELFDynObjFileFormat.cpp | 21 llvm::ELF::SHT_DYNSYM, in initObjectFormat() 22 llvm::ELF::SHF_ALLOC, in initObjectFormat() 26 llvm::ELF::SHT_STRTAB, in initObjectFormat() 27 llvm::ELF::SHF_ALLOC, in initObjectFormat() 31 llvm::ELF::SHT_PROGBITS, in initObjectFormat() 32 llvm::ELF::SHF_ALLOC, in initObjectFormat() 36 llvm::ELF::SHT_HASH, in initObjectFormat() 37 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 | ELFReader.cpp | 46 const llvm::ELF::Elf32_Ehdr* hdr = in isELF() 47 reinterpret_cast<const llvm::ELF::Elf32_Ehdr*>(pELFHeader); in isELF() 48 if (memcmp(llvm::ELF::ElfMagic, hdr, 4) == 0) in isELF() 70 size_t entsize = pRegion.size() / sizeof(llvm::ELF::Elf32_Sym); in readSymbols() 71 const llvm::ELF::Elf32_Sym* symtab = in readSymbols() 72 reinterpret_cast<const llvm::ELF::Elf32_Sym*>(pRegion.begin()); in readSymbols() 105 if (pInput.type() == Input::Object && st_shndx < llvm::ELF::SHN_LORESERVE && in readSymbols() 106 st_shndx != llvm::ELF::SHN_UNDEF) { in readSymbols() 108 st_shndx = llvm::ELF::SHN_UNDEF; in readSymbols() 129 if (st_shndx < llvm::ELF::SHN_LORESERVE) // including ABS and COMMON in readSymbols() [all …]
|
D | ELFReaderIf.cpp | 34 if (pShndx == llvm::ELF::SHN_ABS && result == ResolveInfo::Section) { in getSymType() 48 if (pShndx == llvm::ELF::SHN_UNDEF) in getSymDesc() 51 if (pShndx < llvm::ELF::SHN_LORESERVE) { in getSymDesc() 60 if (pShndx == llvm::ELF::SHN_ABS) in getSymDesc() 63 if (pShndx == llvm::ELF::SHN_COMMON) in getSymDesc() 66 if (pShndx >= llvm::ELF::SHN_LOPROC && pShndx <= llvm::ELF::SHN_HIPROC) in getSymDesc() 81 case llvm::ELF::STB_LOCAL: in getSymBinding() 83 case llvm::ELF::STB_GLOBAL: in getSymBinding() 84 if (pShndx == llvm::ELF::SHN_ABS) in getSymBinding() 87 case llvm::ELF::STB_WEAK: in getSymBinding() [all …]
|
D | ELFObjectWriter.cpp | 149 if (llvm::ELF::PT_LOAD == (*seg)->type()) { in writeObject() 214 memcpy(header->e_ident, llvm::ELF::ElfMagic, llvm::ELF::EI_MAG3 + 1); in writeELFHeader() 216 header->e_ident[llvm::ELF::EI_CLASS] = in writeELFHeader() 217 (SIZE == 32) ? llvm::ELF::ELFCLASS32 : llvm::ELF::ELFCLASS64; in writeELFHeader() 218 header->e_ident[llvm::ELF::EI_DATA] = in writeELFHeader() 220 ? llvm::ELF::ELFDATA2LSB : llvm::ELF::ELFDATA2MSB; in writeELFHeader() 221 header->e_ident[llvm::ELF::EI_VERSION] = target().getInfo().ELFVersion(); in writeELFHeader() 222 header->e_ident[llvm::ELF::EI_OSABI] = target().getInfo().OSABI(); in writeELFHeader() 223 header->e_ident[llvm::ELF::EI_ABIVERSION] = target().getInfo().ABIVersion(); in writeELFHeader() 228 header->e_type = llvm::ELF::ET_REL; in writeELFHeader() [all …]
|
D | ELFBinaryReader.cpp | 43 pInput, "", LDFileFormat::Null, llvm::ELF::SHT_NULL, 0x0); in readBinary() 50 llvm::ELF::SHF_WRITE | llvm::ELF::SHF_ALLOC, in readBinary() 60 pInput, ".shstrtab", LDFileFormat::NamePool, llvm::ELF::SHT_STRTAB, 0x1); in readBinary() 66 llvm::ELF::SHT_SYMTAB, in readBinary() 121 pInput, ".strtab", LDFileFormat::NamePool, llvm::ELF::SHT_STRTAB, 0x1); in readBinary()
|
/frameworks/compile/mclinker/lib/Target/ |
D | ELFDynamic.cpp | 93 reserveOne(llvm::ELF::DT_SONAME); in reserveEntries() 96 reserveOne(llvm::ELF::DT_SYMBOLIC); in reserveEntries() 100 reserveOne(llvm::ELF::DT_INIT); in reserveEntries() 103 reserveOne(llvm::ELF::DT_FINI); in reserveEntries() 106 reserveOne(llvm::ELF::DT_PREINIT_ARRAY); in reserveEntries() 107 reserveOne(llvm::ELF::DT_PREINIT_ARRAYSZ); in reserveEntries() 111 reserveOne(llvm::ELF::DT_INIT_ARRAY); in reserveEntries() 112 reserveOne(llvm::ELF::DT_INIT_ARRAYSZ); in reserveEntries() 116 reserveOne(llvm::ELF::DT_FINI_ARRAY); in reserveEntries() 117 reserveOne(llvm::ELF::DT_FINI_ARRAYSZ); in reserveEntries() [all …]
|
D | GNULDBackend.cpp | 136 return sizeof(llvm::ELF::Elf32_Ehdr) + in sectionStartOffset() 137 elfSegmentTable().size() * sizeof(llvm::ELF::Elf32_Phdr); in sectionStartOffset() 139 return sizeof(llvm::ELF::Elf64_Ehdr) + in sectionStartOffset() 140 elfSegmentTable().size() * sizeof(llvm::ELF::Elf64_Phdr); in sectionStartOffset() 564 elfSegmentTable().find(llvm::ELF::PT_LOAD, 0x0, 0x0); in finalizeStandardSymbols() 577 llvm::ELF::PT_LOAD, llvm::ELF::PF_X, llvm::ELF::PF_W); in finalizeStandardSymbols() 605 elfSegmentTable().find(llvm::ELF::PT_LOAD, llvm::ELF::PF_W, 0x0); in finalizeStandardSymbols() 654 elfSegmentTable().find(llvm::ELF::PT_TLS, llvm::ELF::PF_R, 0x0); in finalizeTLSSymbol() 800 sizeof(llvm::ELF::Elf32_Word); in sizeNamePools() 825 sizeof(llvm::ELF::Elf32_Sym)); in sizeNamePools() [all …]
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
D | MipsAbiFlags.cpp | 50 assert(pSection.type() == llvm::ELF::SHT_MIPS_ABIFLAGS && in fillBySection() 86 switch (flags & llvm::ELF::EF_MIPS_ARCH) { in getIsaLevel() 87 case llvm::ELF::EF_MIPS_ARCH_1: in getIsaLevel() 89 case llvm::ELF::EF_MIPS_ARCH_2: in getIsaLevel() 91 case llvm::ELF::EF_MIPS_ARCH_3: in getIsaLevel() 93 case llvm::ELF::EF_MIPS_ARCH_4: in getIsaLevel() 95 case llvm::ELF::EF_MIPS_ARCH_5: in getIsaLevel() 97 case llvm::ELF::EF_MIPS_ARCH_32: in getIsaLevel() 98 case llvm::ELF::EF_MIPS_ARCH_32R2: in getIsaLevel() 99 case llvm::ELF::EF_MIPS_ARCH_32R6: in getIsaLevel() [all …]
|
D | MipsRelocator.cpp | 30 if (llvm::ELF::R_MIPS_NONE == pType) in HasSubType() 34 llvm::ELF::R_MIPS_NONE != (type & 0xff); in HasSubType() 50 bool isNone() const { return llvm::ELF::R_MIPS_NONE == type(); } in isNone() 52 bool isLast() const { return llvm::ELF::R_MIPS_NONE == (m_Type >> 8); } in isLast() 105 relEntry->setType(llvm::ELF::R_MIPS_JUMP_SLOT); in helper_PLT_init() 199 if ((pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC) == 0) in scanRelocation() 250 case llvm::ELF::R_MIPS_NONE: in scanLocalReloc() 251 case llvm::ELF::R_MIPS_16: in scanLocalReloc() 253 case llvm::ELF::R_MIPS_32: in scanLocalReloc() 254 case llvm::ELF::R_MIPS_64: in scanLocalReloc() [all …]
|
D | MipsELFDynamic.cpp | 28 reserveOne(llvm::ELF::DT_PLTGOT); in reserveTargetEntries() 30 reserveOne(llvm::ELF::DT_MIPS_RLD_VERSION); in reserveTargetEntries() 31 reserveOne(llvm::ELF::DT_MIPS_FLAGS); in reserveTargetEntries() 32 reserveOne(llvm::ELF::DT_MIPS_BASE_ADDRESS); in reserveTargetEntries() 33 reserveOne(llvm::ELF::DT_MIPS_LOCAL_GOTNO); in reserveTargetEntries() 34 reserveOne(llvm::ELF::DT_MIPS_SYMTABNO); in reserveTargetEntries() 35 reserveOne(llvm::ELF::DT_MIPS_GOTSYM); in reserveTargetEntries() 38 reserveOne(llvm::ELF::DT_MIPS_PLTGOT); in reserveTargetEntries() 43 applyOne(llvm::ELF::DT_PLTGOT, pFormat.getGOT().addr()); in applyTargetEntries() 45 applyOne(llvm::ELF::DT_MIPS_RLD_VERSION, 1); in applyTargetEntries() [all …]
|
D | MipsLDBackend.cpp | 79 if (llvm::ELF::R_MIPS_26 != pType) in needsLA25Stub() 113 ".sdata", LDFileFormat::Target, llvm::ELF::SHT_PROGBITS, in initTargetSections() 114 llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE | llvm::ELF::SHF_MIPS_GPREL, in initTargetSections() 119 llvm::ELF::SHT_MIPS_ABIFLAGS, in initTargetSections() 120 llvm::ELF::SHF_ALLOC, 4); in initTargetSections() 371 namespace ELF { namespace 404 case llvm::ELF::EF_MIPS_ARCH_1: in ArchName() 406 case llvm::ELF::EF_MIPS_ARCH_2: in ArchName() 408 case llvm::ELF::EF_MIPS_ARCH_3: in ArchName() 410 case llvm::ELF::EF_MIPS_ARCH_4: in ArchName() [all …]
|
D | MipsLDBackend.h | 147 void emitSymbol32(llvm::ELF::Elf32_Sym& pSym32, 170 bool readRelocation(const llvm::ELF::Elf32_Rel& pRel, 176 bool readRelocation(const llvm::ELF::Elf32_Rela& pRel, 183 bool readRelocation(const llvm::ELF::Elf64_Rel& pRel, 189 bool readRelocation(const llvm::ELF::Elf64_Rela& pRel, 196 void emitRelocation(llvm::ELF::Elf32_Rel& pRel, 202 void emitRelocation(llvm::ELF::Elf32_Rela& pRel, 209 void emitRelocation(llvm::ELF::Elf64_Rel& pRel, 215 void emitRelocation(llvm::ELF::Elf64_Rela& pRel, 232 typedef llvm::DenseMap<const Input*, llvm::ELF::Elf64_Addr> InputNumMapType;
|
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
D | HexagonRelocator.cpp | 36 if (pType == llvm::ELF::R_HEX_RELATIVE || pSym == NULL) in helper_DynRel_init() 73 rsym, *got_entry, 0x0, llvm::ELF::R_HEX_RELATIVE, pParent); in helper_GOT_init() 77 rsym, *got_entry, 0x0, llvm::ELF::R_HEX_GLOB_DAT, pParent); in helper_GOT_init() 107 rela_entry.setType(llvm::ELF::R_HEX_JMP_SLOT); in helper_PLT_init() 212 if ((pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC) == 0) in scanRelocation() 243 case llvm::ELF::R_HEX_LO16: in scanLocalReloc() 244 case llvm::ELF::R_HEX_HI16: in scanLocalReloc() 245 case llvm::ELF::R_HEX_16: in scanLocalReloc() 246 case llvm::ELF::R_HEX_8: in scanLocalReloc() 247 case llvm::ELF::R_HEX_32_6_X: in scanLocalReloc() [all …]
|
D | HexagonAbsoluteStub.cpp | 43 addFixup(8u, 0x0, llvm::ELF::R_HEX_HI16); in HexagonAbsoluteStub() 44 addFixup(12u, 0x0, llvm::ELF::R_HEX_LO16); in HexagonAbsoluteStub() 65 case llvm::ELF::R_HEX_B22_PCREL: in isMyDuty() 68 case llvm::ELF::R_HEX_B15_PCREL: in isMyDuty() 71 case llvm::ELF::R_HEX_B7_PCREL: in isMyDuty() 74 case llvm::ELF::R_HEX_B13_PCREL: in isMyDuty() 77 case llvm::ELF::R_HEX_B9_PCREL: in isMyDuty()
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
D | SizeTraits.h | 45 typedef llvm::ELF::Elf32_Addr Addr; // Program address 46 typedef llvm::ELF::Elf32_Off Off; // File offset 47 typedef llvm::ELF::Elf32_Half Half; 48 typedef llvm::ELF::Elf32_Word Word; 49 typedef llvm::ELF::Elf32_Sword Sword; 51 typedef llvm::ELF::Elf32_Ehdr Ehdr; 52 typedef llvm::ELF::Elf32_Shdr Shdr; 53 typedef llvm::ELF::Elf32_Sym Sym; 54 typedef llvm::ELF::Elf32_Rel Rel; 55 typedef llvm::ELF::Elf32_Rela Rela; [all …]
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
D | ARMRelocator.cpp | 101 rel_entry.setType(llvm::ELF::R_ARM_RELATIVE); in helper_GOT_init() 106 rel_entry.setType(llvm::ELF::R_ARM_GLOB_DAT); in helper_GOT_init() 141 rel_entry.setType(llvm::ELF::R_ARM_JUMP_SLOT); in helper_PLT_init() 162 if (pType == llvm::ELF::R_ARM_RELATIVE) in helper_DynRel_init() 326 rel_entry.setType(llvm::ELF::R_ARM_COPY); in addCopyReloc() 389 case llvm::ELF::R_ARM_RELATIVE: in checkValidReloc() 390 case llvm::ELF::R_ARM_COPY: in checkValidReloc() 391 case llvm::ELF::R_ARM_GLOB_DAT: in checkValidReloc() 392 case llvm::ELF::R_ARM_JUMP_SLOT: in checkValidReloc() 393 case llvm::ELF::R_ARM_ABS32: in checkValidReloc() [all …]
|
D | ARMToARMStub.cpp | 40 addFixup(8u, -4, llvm::ELF::R_ARM_REL32); in ARMToARMStub() 44 addFixup(4u, 0x0, llvm::ELF::R_ARM_ABS32); in ARMToARMStub() 68 case llvm::ELF::R_ARM_PC24: in isMyDuty() 69 case llvm::ELF::R_ARM_CALL: in isMyDuty() 70 case llvm::ELF::R_ARM_JUMP24: in isMyDuty() 71 case llvm::ELF::R_ARM_PLT32: { in isMyDuty()
|
D | ARMToTHMStub.cpp | 42 addFixup(12u, 0x0, llvm::ELF::R_ARM_REL32); in ARMToTHMStub() 46 addFixup(8u, 0x0, llvm::ELF::R_ARM_ABS32); in ARMToTHMStub() 70 case llvm::ELF::R_ARM_CALL: { in isMyDuty() 82 case llvm::ELF::R_ARM_PC24: in isMyDuty() 83 case llvm::ELF::R_ARM_JUMP24: in isMyDuty() 84 case llvm::ELF::R_ARM_PLT32: { in isMyDuty()
|
/frameworks/compile/mclinker/lib/Target/X86/ |
D | X86Relocator.cpp | 40 if (pType == llvm::ELF::R_386_RELATIVE || pSym == NULL) in helper_DynRel_init() 77 rsym, *got_entry, 0x0, llvm::ELF::R_386_RELATIVE, pParent); in helper_GOT_init() 81 rsym, *got_entry, 0x0, llvm::ELF::R_386_GLOB_DAT, pParent); in helper_GOT_init() 117 rel_entry.setType(llvm::ELF::R_386_JUMP_SLOT); in helper_PLT_init() 173 if ((pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC) == 0) in scanRelocation() 300 case llvm::ELF::R_386_32: in mayHaveFunctionPointerAccess() 301 case llvm::ELF::R_386_16: in mayHaveFunctionPointerAccess() 302 case llvm::ELF::R_386_8: in mayHaveFunctionPointerAccess() 303 case llvm::ELF::R_386_GOTOFF: in mayHaveFunctionPointerAccess() 304 case llvm::ELF::R_386_GOT32: { in mayHaveFunctionPointerAccess() [all …]
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
D | AArch64Relocator.cpp | 95 rel_entry.setType(llvm::ELF::R_AARCH64_COPY); in addCopyReloc() 156 case llvm::ELF::R_AARCH64_ABS64: in scanLocalReloc() 168 llvm::ELF::R_AARCH64_RELATIVE, in scanLocalReloc() 174 case llvm::ELF::R_AARCH64_ABS32: in scanLocalReloc() 175 case llvm::ELF::R_AARCH64_ABS16: in scanLocalReloc() 193 case llvm::ELF::R_AARCH64_ADR_GOT_PAGE: in scanLocalReloc() 194 case llvm::ELF::R_AARCH64_LD64_GOT_LO12_NC: { in scanLocalReloc() 221 case llvm::ELF::R_AARCH64_ABS64: in scanGlobalReloc() 222 case llvm::ELF::R_AARCH64_ABS32: in scanGlobalReloc() 223 case llvm::ELF::R_AARCH64_ABS16: in scanGlobalReloc() [all …]
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | ELFReader.h | 39 typedef llvm::ELF::Elf32_Ehdr ELFHeader; 40 typedef llvm::ELF::Elf32_Shdr SectionHeader; 41 typedef llvm::ELF::Elf32_Sym Symbol; 42 typedef llvm::ELF::Elf32_Rel Rel; 43 typedef llvm::ELF::Elf32_Rela Rela; 124 typedef llvm::ELF::Elf64_Ehdr ELFHeader; 125 typedef llvm::ELF::Elf64_Shdr SectionHeader; 126 typedef llvm::ELF::Elf64_Sym Symbol; 127 typedef llvm::ELF::Elf64_Rel Rel; 128 typedef llvm::ELF::Elf64_Rela Rela;
|
/frameworks/compile/mclinker/include/mcld/Target/ |
D | ELFDynamic.h | 52 typedef llvm::ELF::Elf32_Dyn Pair; 53 typedef llvm::ELF::Elf32_Sym Symbol; 54 typedef llvm::ELF::Elf32_Rel Rel; 55 typedef llvm::ELF::Elf32_Rela Rela; 83 typedef llvm::ELF::Elf64_Dyn Pair; 84 typedef llvm::ELF::Elf64_Sym Symbol; 85 typedef llvm::ELF::Elf64_Rel Rel; 86 typedef llvm::ELF::Elf64_Rela Rela;
|
/frameworks/compile/mclinker/lib/Core/ |
D | IRBuilder.cpp | 34 if (pFlag & llvm::ELF::SHF_EXCLUDE) in GetELFSectionKind() 37 if (pFlag & llvm::ELF::SHF_MASKPROC) in GetELFSectionKind() 65 case llvm::ELF::SHT_NULL: in GetELFSectionKind() 67 case llvm::ELF::SHT_INIT_ARRAY: in GetELFSectionKind() 68 case llvm::ELF::SHT_FINI_ARRAY: in GetELFSectionKind() 69 case llvm::ELF::SHT_PREINIT_ARRAY: in GetELFSectionKind() 70 case llvm::ELF::SHT_PROGBITS: { in GetELFSectionKind() 71 if ((pFlag & llvm::ELF::SHF_EXECINSTR) != 0) in GetELFSectionKind() 76 case llvm::ELF::SHT_SYMTAB: in GetELFSectionKind() 77 case llvm::ELF::SHT_DYNSYM: in GetELFSectionKind() [all …]
|