Lines Matching defs:ELF
545 if (auto *ELF = dyn_cast<ELFObjectFileBase>(Obj))
546 return getELFRelocationValueString(ELF, Rel, Result);
623 return Elf && Elf->getEMachine() == ELF::EM_AARCH64;
628 return Elf && Elf->getEMachine() == ELF::EM_ARM;
633 return Elf && Elf->getEMachine() == ELF::EM_CSKY;
1155 if (SymbolType == ELF::STT_SECTION)
1161 if (SymbolType == ELF::STT_COMMON)
1231 Symbols.emplace_back(Address, Name, ELF::STT_NOTYPE);
1316 // For ELF we do not adjust non-allocatable sections like debug ones,
1322 return ELFSectionRef(Section).getFlags() & ELF::SHF_ALLOC;
1431 Obj.isELF() ? getElfSymbolType(Obj, Symbol) : (uint8_t)ELF::STT_NOTYPE;
1518 // On other PowerPC platforms (ELF), a function call is encoded as
1580 LabelAddrs[LabelNum], *SynthesizedLabelNames.back(), ELF::STT_NOTYPE));
1718 if (getElfSymbolType(Obj, Symbol) != ELF::STT_SECTION &&
1808 AllSymbols[Sec->second].emplace_back(VA, Name, ELF::STT_NOTYPE);
1810 AbsoluteSymbols.emplace_back(VA, Name, ELF::STT_NOTYPE);
1915 Section.isText() ? ELF::STT_FUNC : ELF::STT_OBJECT);
1971 // Distinguish ELF data from code symbols, which will be used later on to
1980 // Any ELF symbol type that is not clearly data will be regarded as code.
1996 if (SymTy != ELF::STT_OBJECT && SymTy != ELF::STT_COMMON) {
2191 // ARM and AArch64 ELF binaries can interleave data and text in the
2564 // When disassembling big-endian Arm ELF, the instruction endianness is
2566 // that instruction endianness matches the ELF file endianness; in
2578 !(Elf32BE->getPlatformFlags() & ELF::EF_ARM_BE8))) {
2667 if (O.isELF() && (ELFSectionRef(Section).getFlags() & ELF::SHF_ALLOC))
2692 if (O.isELF() && ELFSectionRef(Section).getType() == ELF::SHT_CREL) {
2720 // show it only when the platform is ELF and either we have at least one section
2862 const ELFObjectFileBase *ELF = cast<const ELFObjectFileBase>(&O);
2863 auto Symbols = ELF->getDynamicSymbolIterators();
2865 ELF->readDynsymVersions();
2937 if (ELFSymbolRef(Symbol).getELFType() == ELF::STT_GNU_IFUNC)
2939 if (ELFSymbolRef(Symbol).getBinding() == ELF::STB_GNU_UNIQUE)
3037 case ELF::STV_DEFAULT:
3039 case ELF::STV_INTERNAL:
3042 case ELF::STV_HIDDEN:
3045 case ELF::STV_PROTECTED:
3125 "for ELF and Mach-O executable files.\n";
3224 // For ELF only now.
3227 if (Elf->getEType() != ELF::ET_REL)
3239 if (ELFSectionRef(Section).getFlags() & ELF::SHF_ALLOC) {