Lines Matching refs:ELF
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()
412 case llvm::ELF::EF_MIPS_ARCH_5: in ArchName()
414 case llvm::ELF::EF_MIPS_ARCH_32: in ArchName()
416 case llvm::ELF::EF_MIPS_ARCH_64: in ArchName()
418 case llvm::ELF::EF_MIPS_ARCH_32R2: in ArchName()
420 case llvm::ELF::EF_MIPS_ARCH_64R2: in ArchName()
422 case llvm::ELF::EF_MIPS_ARCH_32R6: in ArchName()
424 case llvm::ELF::EF_MIPS_ARCH_64R6: in ArchName()
433 bool isInput64Bit = ELF_hdr[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS64; in mergeFlags()
444 reinterpret_cast<const llvm::ELF::Elf64_Ehdr*>(ELF_hdr)->e_flags : in mergeFlags()
445 reinterpret_cast<const llvm::ELF::Elf32_Ehdr*>(ELF_hdr)->e_flags; in mergeFlags()
449 if ((pSD.getSection().flag() & llvm::ELF::SHF_MIPS_GPREL) || in readSection()
450 (pSD.getSection().type() == llvm::ELF::SHT_MIPS_ABIFLAGS)) { in readSection()
459 if (pSD.getSection().type() == llvm::ELF::SHT_MIPS_OPTIONS) { in readSection()
465 const llvm::ELF::Elf_Options* optb = in readSection()
466 reinterpret_cast<const llvm::ELF::Elf_Options*>(region.begin()); in readSection()
467 const llvm::ELF::Elf_Options* opte = in readSection()
468 reinterpret_cast<const llvm::ELF::Elf_Options*>(region.begin() + in readSection()
471 for (const llvm::ELF::Elf_Options* opt = optb; opt < opte; in readSection()
477 case llvm::ELF::ODK_REGINFO: in readSection()
479 const llvm::ELF::Elf32_RegInfo* reg = in readSection()
480 reinterpret_cast<const llvm::ELF::Elf32_RegInfo*>(opt + 1); in readSection()
483 const llvm::ELF::Elf64_RegInfo* reg = in readSection()
484 reinterpret_cast<const llvm::ELF::Elf64_RegInfo*>(opt + 1); in readSection()
751 elfSegmentTable().find(llvm::ELF::PT_INTERP, 0x0, 0x0); in doCreateProgramHdrs()
753 sit = elfSegmentTable().find(llvm::ELF::PT_PHDR, 0x0, 0x0); in doCreateProgramHdrs()
760 llvm::ELF::PT_MIPS_ABIFLAGS, in doCreateProgramHdrs()
761 llvm::ELF::PF_R); in doCreateProgramHdrs()
789 symtab.setSize(symtab.size() + sizeof(llvm::ELF::Elf32_Sym)); in relaxRelocation()
818 if (llvm::ELF::R_MIPS_26 != reloc->type()) in doRelax()
898 bool MipsGNULDBackend::readRelocation(const llvm::ELF::Elf32_Rel& pRel, in readRelocation()
905 bool MipsGNULDBackend::readRelocation(const llvm::ELF::Elf32_Rela& pRel, in readRelocation()
913 bool MipsGNULDBackend::readRelocation(const llvm::ELF::Elf64_Rel& pRel, in readRelocation()
935 bool MipsGNULDBackend::readRelocation(const llvm::ELF::Elf64_Rela& pRel, in readRelocation()
956 void MipsGNULDBackend::emitRelocation(llvm::ELF::Elf32_Rel& pRel, in emitRelocation()
963 void MipsGNULDBackend::emitRelocation(llvm::ELF::Elf32_Rela& pRel, in emitRelocation()
971 void MipsGNULDBackend::emitRelocation(llvm::ELF::Elf64_Rel& pRel, in emitRelocation()
983 void MipsGNULDBackend::emitRelocation(llvm::ELF::Elf64_Rela& pRel, in emitRelocation()
1008 {llvm::ELF::EF_MIPS_ARCH_64R2, llvm::ELF::EF_MIPS_ARCH_64},
1010 {llvm::ELF::EF_MIPS_ARCH_64, llvm::ELF::EF_MIPS_ARCH_5},
1012 {llvm::ELF::EF_MIPS_ARCH_5, llvm::ELF::EF_MIPS_ARCH_4},
1014 {llvm::ELF::EF_MIPS_ARCH_4, llvm::ELF::EF_MIPS_ARCH_3},
1016 {llvm::ELF::EF_MIPS_ARCH_32R2, llvm::ELF::EF_MIPS_ARCH_32},
1018 {llvm::ELF::EF_MIPS_ARCH_3, llvm::ELF::EF_MIPS_ARCH_2},
1019 {llvm::ELF::EF_MIPS_ARCH_32, llvm::ELF::EF_MIPS_ARCH_2},
1021 {llvm::ELF::EF_MIPS_ARCH_2, llvm::ELF::EF_MIPS_ARCH_1},
1027 if (base == llvm::ELF::EF_MIPS_ARCH_32 && in isIsaMatched()
1028 isIsaMatched(llvm::ELF::EF_MIPS_ARCH_64, ext)) in isIsaMatched()
1030 if (base == llvm::ELF::EF_MIPS_ARCH_32R2 && in isIsaMatched()
1031 isIsaMatched(llvm::ELF::EF_MIPS_ARCH_64R2, ext)) in isIsaMatched()
1051 if ((*it)->type() == llvm::ELF::SHT_MIPS_ABIFLAGS) { in getAbiFlags()
1065 return flags & llvm::ELF::EF_MIPS_NAN2008 ? "2008" : "legacy"; in getNanName()
1072 if (newElfFlags & llvm::ELF::EF_MIPS_PIC) in mergeElfFlags()
1073 newElfFlags |= llvm::ELF::EF_MIPS_CPIC; in mergeElfFlags()
1075 if (newElfFlags & llvm::ELF::EF_MIPS_ARCH_ASE_M16) { in mergeElfFlags()
1086 newElfFlags & (llvm::ELF::EF_MIPS_PIC | llvm::ELF::EF_MIPS_CPIC); in mergeElfFlags()
1088 oldElfFlags & (llvm::ELF::EF_MIPS_PIC | llvm::ELF::EF_MIPS_CPIC); in mergeElfFlags()
1094 if (!(newPic & llvm::ELF::EF_MIPS_PIC)) in mergeElfFlags()
1095 oldElfFlags &= ~llvm::ELF::EF_MIPS_PIC; in mergeElfFlags()
1097 oldElfFlags |= llvm::ELF::EF_MIPS_CPIC; in mergeElfFlags()
1100 uint64_t newArch = newElfFlags & llvm::ELF::EF_MIPS_ARCH; in mergeElfFlags()
1101 uint64_t oldArch = oldElfFlags & llvm::ELF::EF_MIPS_ARCH; in mergeElfFlags()
1108 oldElfFlags &= ~llvm::ELF::EF_MIPS_ARCH; in mergeElfFlags()
1113 uint32_t newAbi = newElfFlags & llvm::ELF::EF_MIPS_ABI; in mergeElfFlags()
1114 uint32_t oldAbi = oldElfFlags & llvm::ELF::EF_MIPS_ABI; in mergeElfFlags()
1121 if ((newElfFlags & llvm::ELF::EF_MIPS_NAN2008) != in mergeElfFlags()
1122 (oldElfFlags & llvm::ELF::EF_MIPS_NAN2008)) { in mergeElfFlags()
1130 uint64_t newAse = newElfFlags & llvm::ELF::EF_MIPS_ARCH_ASE; in mergeElfFlags()
1131 uint64_t oldAse = oldElfFlags & llvm::ELF::EF_MIPS_ARCH_ASE; in mergeElfFlags()
1136 if ((newElfFlags & llvm::ELF::EF_MIPS_FP64) != in mergeElfFlags()
1137 (oldElfFlags & llvm::ELF::EF_MIPS_FP64)) { in mergeElfFlags()
1143 oldElfFlags |= newElfFlags & llvm::ELF::EF_MIPS_NOREORDER; in mergeElfFlags()
1144 oldElfFlags |= newElfFlags & llvm::ELF::EF_MIPS_MICROMIPS; in mergeElfFlags()
1145 oldElfFlags |= newElfFlags & llvm::ELF::EF_MIPS_NAN2008; in mergeElfFlags()
1146 oldElfFlags |= newElfFlags & llvm::ELF::EF_MIPS_32BITMODE; in mergeElfFlags()
1155 if (sect->flag() & llvm::ELF::SHF_TLS) { in saveTPOffset()
1193 if (pSection.flag() & llvm::ELF::SHF_MIPS_GPREL) { in mergeSection()
1201 } else if (pSection.type() == llvm::ELF::SHT_MIPS_ABIFLAGS) { in mergeSection()