Home
last modified time | relevance | path

Searched refs:relocAttrs (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/lld/MachO/
H A DTarget.h91 assert(type < relocAttrs.size() && "invalid relocation type"); in getRelocAttrs()
92 if (type >= relocAttrs.size()) in getRelocAttrs()
94 return relocAttrs[type]; in getRelocAttrs()
137 llvm::ArrayRef<RelocAttrs> relocAttrs; variable
H A DRelocations.cpp36 const RelocAttrs &relocAttrs = target->getRelocAttrs(r.type); in validateSymbolRelocation() local
40 return (isec->getLocation(r.offset) + ": " + relocAttrs.name + in validateSymbolRelocation()
45 if (relocAttrs.hasAttr(RelocAttrBits::TLV) != sym->isTlv()) in validateSymbolRelocation()
H A DInputSection.cpp96 const RelocAttrs &relocAttrs = target->getRelocAttrs(type); in resolveSymbolVA() local
97 if (relocAttrs.hasAttr(RelocAttrBits::BRANCH)) in resolveSymbolVA()
99 if (relocAttrs.hasAttr(RelocAttrBits::GOT)) in resolveSymbolVA()
101 if (relocAttrs.hasAttr(RelocAttrBits::TLV)) in resolveSymbolVA()
H A DWriter.cpp653 const RelocAttrs &relocAttrs = target->getRelocAttrs(r.type); in prepareSymbolRelocation() local
655 if (relocAttrs.hasAttr(RelocAttrBits::BRANCH)) { in prepareSymbolRelocation()
658 } else if (relocAttrs.hasAttr(RelocAttrBits::GOT)) { in prepareSymbolRelocation()
659 if (relocAttrs.hasAttr(RelocAttrBits::POINTER) || needsBinding(sym)) in prepareSymbolRelocation()
661 } else if (relocAttrs.hasAttr(RelocAttrBits::TLV)) { in prepareSymbolRelocation()
664 } else if (relocAttrs.hasAttr(RelocAttrBits::UNSIGNED)) { in prepareSymbolRelocation()
H A DInputFiles.cpp503 const RelocAttrs &relocAttrs = target->getRelocAttrs(rel.r_type); in validateRelocationInfo() local
505 auto message = [relocAttrs, file, sec, rel, &valid](const Twine &diagnostic) { in validateRelocationInfo()
507 return (relocAttrs.name + " relocation " + diagnostic + " at offset " + in validateRelocationInfo()
513 if (!relocAttrs.hasAttr(RelocAttrBits::LOCAL) && !rel.r_extern) in validateRelocationInfo()
515 if (relocAttrs.hasAttr(RelocAttrBits::PCREL) != rel.r_pcrel) in validateRelocationInfo()
519 !relocAttrs.hasAttr(RelocAttrBits::UNSIGNED)) in validateRelocationInfo()
522 !relocAttrs.hasAttr(static_cast<RelocAttrBits>(1 << rel.r_length))) { in validateRelocationInfo()
526 widths[(static_cast<int>(relocAttrs.bits) >> 2) & 3] + in validateRelocationInfo()
/freebsd/contrib/llvm-project/lld/MachO/Arch/
H A DARM64_32.cpp120 relocAttrs = {relocAttrsArray.data(), relocAttrsArray.size()}; in ARM64_32()
H A DX86_64.cpp220 relocAttrs = {relocAttrsArray.data(), relocAttrsArray.size()}; in X86_64()
H A DARM64.cpp204 relocAttrs = {relocAttrsArray.data(), relocAttrsArray.size()}; in ARM64()