Lines Matching defs:ELF
546 if (auto *ELF = dyn_cast<ELFObjectFileBase>(Obj))
547 return getELFRelocationValueString(ELF, Rel, Result);
624 return Elf && Elf->getEMachine() == ELF::EM_AARCH64;
629 return Elf && Elf->getEMachine() == ELF::EM_ARM;
634 return Elf && Elf->getEMachine() == ELF::EM_CSKY;
1156 if (SymbolType == ELF::STT_SECTION)
1162 if (SymbolType == ELF::STT_COMMON)
1232 Symbols.emplace_back(Address, Name, ELF::STT_NOTYPE);
1317 // For ELF we do not adjust non-allocatable sections like debug ones,
1323 return ELFSectionRef(Section).getFlags() & ELF::SHF_ALLOC;
1432 Obj.isELF() ? getElfSymbolType(Obj, Symbol) : (uint8_t)ELF::STT_NOTYPE;
1521 // On other PowerPC platforms (ELF), a function call is encoded as
1583 LabelAddrs[LabelNum], *SynthesizedLabelNames.back(), ELF::STT_NOTYPE));
1721 if (getElfSymbolType(Obj, Symbol) != ELF::STT_SECTION &&
1811 AllSymbols[Sec->second].emplace_back(VA, Name, ELF::STT_NOTYPE);
1813 AbsoluteSymbols.emplace_back(VA, Name, ELF::STT_NOTYPE);
1918 Section.isText() ? ELF::STT_FUNC : ELF::STT_OBJECT);
1974 // Distinguish ELF data from code symbols, which will be used later on to
1983 // Any ELF symbol type that is not clearly data will be regarded as code.
1999 if (SymTy != ELF::STT_OBJECT && SymTy != ELF::STT_COMMON) {
2194 // ARM and AArch64 ELF binaries can interleave data and text in the
2568 // When disassembling big-endian Arm ELF, the instruction endianness is
2570 // that instruction endianness matches the ELF file endianness; in
2582 !(Elf32BE->getPlatformFlags() & ELF::EF_ARM_BE8))) {
2671 if (O.isELF() && (ELFSectionRef(Section).getFlags() & ELF::SHF_ALLOC))
2696 if (O.isELF() && ELFSectionRef(Section).getType() == ELF::SHT_CREL) {
2724 // show it only when the platform is ELF and either we have at least one section
2866 const ELFObjectFileBase *ELF = cast<const ELFObjectFileBase>(&O);
2867 auto Symbols = ELF->getDynamicSymbolIterators();
2869 ELF->readDynsymVersions();
2941 if (ELFSymbolRef(Symbol).getELFType() == ELF::STT_GNU_IFUNC)
2943 if (ELFSymbolRef(Symbol).getBinding() == ELF::STB_GNU_UNIQUE)
3041 case ELF::STV_DEFAULT:
3043 case ELF::STV_INTERNAL:
3046 case ELF::STV_HIDDEN:
3049 case ELF::STV_PROTECTED:
3129 "for ELF and Mach-O executable files.\n";
3228 // For ELF only now.
3231 if (Elf->getEType() != ELF::ET_REL)
3243 if (ELFSectionRef(Section).getFlags() & ELF::SHF_ALLOC) {